Skip to main content

Module message

Module message 

Source

Structs§

AnnotationSource
The source a TextAnnotation points to.
Controls
Runtime controls for message processing
ExternalActor
External actor identity for messages originating from external channels (Slack, Discord, Teams, etc.).
ImageContentPart
Image content part (base64 or URL)
ImageFileContentPart
Image file content part (reference to uploaded image)
Message
A message in the conversation
ReasoningConfig
Reasoning configuration for the model
TextAnnotation
A claim-level citation attached to a span of generated text.
TextContentPart
Text content part
ToolCallContentPart
Tool call content part (assistant requesting tool execution)
ToolResultContentPart
Tool result content part (result of tool execution)
VerificationVerdict
Outcome of citation verification (see the citation_verification capability).

Enums§

ContentPart
A part of message content - can be text, image, image_file, tool_call, or tool_result
ContentType
Content type discriminator
ExecutionPhase
Execution phase for assistant messages in multi-step tool-calling flows.
InputContentPart
Input content part - text, image, and image_file (for user input)
MessageRole
Message role in the conversation
VerificationStatus
Whether a cited source entails the claim it is attached to.

Functions§

patch_dangling_tool_calls
Patch dangling tool calls by adding synthetic “cancelled” results.