| name | twilight-ai |
| description | Assist with development in the Twilight AI Go SDK. Use when working in this repository, adding or updating providers, embeddings, tool calling, streaming, examples, or docs for Twilight AI. |
Twilight AI
When To Use
Use this skill when the task involves twilight-ai, especially:
- implementing or refactoring SDK APIs in
sdk/
- adding or updating providers under
provider/
- working on
GenerateText, GenerateTextResult, StreamText, Embed, or EmbedMany
- adding tool-calling, streaming, reasoning, or embedding support
- writing examples, docs, or usage guidance for this library
Project Snapshot
Twilight AI is a lightweight Go AI SDK with a provider-agnostic core API.
- Text generation:
sdk.GenerateText, sdk.GenerateTextResult, sdk.StreamText
- Embeddings:
sdk.Embed, sdk.EmbedMany
- Tool calling:
sdk.Tool, sdk.NewTool[T], WithMaxSteps, approval flow
- MCP tool integration:
sdk.CreateMCPClient, sdk.MCPClient, sdk.MCPClientConfig
- Streaming: typed
StreamPart events over Go channels
- Current providers:
provider/openai/completions
provider/openai/responses
provider/anthropic/messages
provider/google/generativeai