Expand description
Chat/model re-exports shared by tools and persist layers.
Structs§
- Cache
Control - Cache control metadata for tool definitions and blocks.
- Message
- A chat message with role and content blocks.
- Message
Delta - Delta payload for message-level updates.
- Message
Request - Request payload for sending a message to the API.
- Message
Response - Response payload for a message request.
- Server
Tool Usage - Server-side tool usage counters.
- System
Block - A structured system prompt block.
- Tool
- Tool definition exposed to the model.
- Tool
Caller - Metadata describing who invoked a tool call.
- Usage
- Token usage metadata for a response.
Enums§
- Content
Block - A single content block inside a message.
- Content
Block Start - Content block types used in streaming starts.
- Delta
- A content delta inside a
content_block_deltaevent. - Stream
Event - Streaming event types for SSE responses.
- System
Prompt - System prompt representation (plain text or structured blocks).
Constants§
Functions§
- compaction_
threshold_ for_ model - Suggested compaction token threshold for a given model.
- context_
window_ for_ model - Map known models to their approximate context window sizes.