Expand description
Core message types and event protocol.
Structs§
- Assistant
Reasoning - Reasoning payload for one assistant message, stamped with the identity that produced it. Request-history metadata only — never display content.
- Content
Digest - Cryptographic digest of an image attachment’s bytes at grant time.
- Message
Tool Result - Result of a tool execution (message-layer).
- System
Cache Marker - A byte range in the system prompt that is stable enough for provider caching.
- Tool
Call - A tool call requested by the assistant.
- Usage
- Token usage statistics for a turn.
Enums§
- Agent
Event - Events emitted during a turn for streaming.
- Content
Part - One part of an ordered multimodal message content (ADR-050).
- Message
- A message in the conversation.
- Reasoning
Block - One provider-native reasoning block attached to an assistant message.
- Stop
Reason - Reason the assistant stopped generating.
- System
Cache Type - Provider-side caching behavior for a system prompt range.