This page is auto-generated from source code on every push to
main.
Edit JSDoc in packages/sdk/src/client.ts to update it.Constructor
Methods
chat(options)
Sends a non-streaming chat request and returns the full response.
ChatOptions
Returns: ChatResponse
stream(options)
Returns an async iterator that yields token deltas as they arrive.
AsyncIterable<StreamChunk>
chatJson<T>(options)
Sends a chat request with structured JSON output and returns the parsed result as T.
Promise<T>
conversation(options?)
Creates a new Conversation instance for multi-turn chat.
Conversation.