Skip to main content

Module models

Module models 

Source
Expand description

Chat/model re-exports shared by tools and persist layers.

Structs§

CacheControl
Cache control metadata for tool definitions and blocks.
Message
A chat message with role and content blocks.
MessageDelta
Delta payload for message-level updates.
MessageRequest
Request payload for sending a message to the API.
MessageResponse
Response payload for a message request.
ServerToolUsage
Server-side tool usage counters.
SystemBlock
A structured system prompt block.
Tool
Tool definition exposed to the model.
ToolCaller
Metadata describing who invoked a tool call.
Usage
Token usage metadata for a response.

Enums§

ContentBlock
A single content block inside a message.
ContentBlockStart
Content block types used in streaming starts.
Delta
A content delta inside a content_block_delta event.
StreamEvent
Streaming event types for SSE responses.
SystemPrompt
System prompt representation (plain text or structured blocks).

Constants§

DEEPSEEK_V4_CONTEXT_WINDOW_TOKENS
LEGACY_DEEPSEEK_CONTEXT_WINDOW_TOKENS

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.