Skip to main content

Module providers

Module providers 

Source

Modules§

anthropic
openai

Structs§

ChatRequest
ChatResponse
Message
ServerTool
Server-side tool definition. These tools are executed by the API provider rather than by the client. Currently only web_search_tool is supported.
Usage
Token accounting for one provider turn. input_tokens already includes cached/uncached portions combined — when providers expose cache details separately we capture them here so callers can report cache effectiveness.
WebSearchContent
Content returned by the server-side web search tool.
WebSearchResultItem

Enums§

ContentBlock
MessageContent
Role
StopReason
StreamEvent
Incremental events emitted during a streaming chat turn.

Traits§

Provider