Skip to main content

Module message

Module message 

Source
Expand description

Core message types and event protocol.

Structs§

MessageToolResult
Result of a tool execution (message-layer).
SystemCacheMarker
A byte range in the system prompt that is stable enough for provider caching.
ToolCall
A tool call requested by the assistant.
Usage
Token usage statistics for a turn.

Enums§

AgentEvent
Events emitted during a turn for streaming.
Message
A message in the conversation.
StopReason
Reason the assistant stopped generating.
SystemCacheType
Provider-side caching behavior for a system prompt range.

Functions§

extract_tool_calls_from_text
strip_tool_syntax