Expand description
§Conversation messages
The conversation history is a Vec<Message> that you own. Pass it to a run with
AgentRequest::with_history in agentai and append AgentResult::new_messages to it to
continue the conversation.
Messages implement Serialize and Deserialize with a format defined by this crate, so a
stored history keeps working when the LLM client used inside agentai changes.
Structs§
- Media
- An image, audio or other file in a message.
- Message
- One message of the conversation history.
- Provider
Data - Provider-specific data in a message. It has no meaning outside the provider that produced it.
- Tool
Call - A tool call requested by the model.
- Tool
Output - What a tool sends back to the model: text and media (for example a generated image), in order.
- Tool
Response - The result of a tool call, sent back to the model.