Modules§
Structs§
- Chat
Request - Chat
Response - Message
- Server
Tool - 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_tokensalready includes cached/uncached portions combined — when providers expose cache details separately we capture them here so callers can report cache effectiveness. - WebSearch
Content - Content returned by the server-side web search tool.
- WebSearch
Result Item
Enums§
- Content
Block - Message
Content - Role
- Stop
Reason - Stream
Event - Incremental events emitted during a streaming chat turn.