Skip to main content

Module client

Module client 

Source
Expand description

AiClient — typed façade over genai + the Anthropic-direct path.

Structs§

AiClient
Typed AI client. Construct via AiClient::new.
ChatRequest
One-shot or streaming chat request.
ChatResponse
Non-streaming chat response.
ChatStream
Async stream of ChatStreamEvents. The stream is !Sync to avoid pinning trade-offs in callers; it is Send so it can move across tokio::spawn boundaries.

Enums§

ChatStreamEvent
One event from the streaming chat path.