Module models

Module models 

Source
Expand description

Message and request/response models.

Structs§

Message
Conversation message with role and content blocks.
MessageOptions
Options for LLM message requests.
Metadata
Metadata for request tracking.
Tool
Tool definition for function calling.
ToolResult
Result of a tool invocation, sent back to the assistant.
ToolUse
Tool invocation requested by the assistant.
Usage
Token usage statistics.

Enums§

Content
Content block types that can appear in messages.
ContentBlockType
Type of content block in streaming.
ImageSource
Image source types supported by LLM providers.
Role
Message role in a conversation.
StreamEvent
Events emitted during streaming responses.
ToolChoice
Controls how the model uses tools.