Skip to main content
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.
Parameters: See ChatOptions Returns: ChatResponse

stream(options)

Returns an async iterator that yields token deltas as they arrive.
Returns: AsyncIterable<StreamChunk>

chatJson<T>(options)

Sends a chat request with structured JSON output and returns the parsed result as T.
Returns: Promise<T>

conversation(options?)

Creates a new Conversation instance for multi-turn chat.
See Conversation.