Skip to main content

Module types

Module types 

Source

Structs§

ImageUrl
An image URL reference.
ToolCall
A tool call requested by the AI model.

Enums§

ContentBlock
A block of content within a message (text, image, etc.).
Message
Message types for the agent system.
MessageContent
Content of a message - can be a simple string or structured content blocks.

Functions§

add_messages
Merge function for messages: appends new messages to existing ones. This is the default reducer for the messages field in agent states.
add_messages_ref
Merge function for messages with reference signature.