Skip to main content

Module message

Module message 

Source
Expand description

Core message types and event protocol.

Structs§

AssistantReasoning
Reasoning payload for one assistant message, stamped with the identity that produced it. Request-history metadata only — never display content.
ContentDigest
Cryptographic digest of an image attachment’s bytes at grant time.
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.
ContentPart
One part of an ordered multimodal message content (ADR-050).
Message
A message in the conversation.
ReasoningBlock
One provider-native reasoning block attached to an assistant message.
StopReason
Reason the assistant stopped generating.
SystemCacheType
Provider-side caching behavior for a system prompt range.

Functions§

extract_tool_calls_from_text
project_displayable_reasoning
strip_tool_syntax