protocols
Rust AI Agent SDK Protocol System Module This module provides protocol definitions for agent implementations:AgentProtocol- Minimal protocol for agent implementationsRunnableAgentProtocol- Extended protocol with run/start methodsAgentOSProtocol- Agent OS integration protocol
Example
Import
Classes
MemoryMessage
A message stored in memory.
LlmMessage
An LLM message.
LlmResponse
An LLM response.
ToolCall
A tool call from the LLM.
TokenUsage
Token usage statistics.
ToolSchema
Tool schema for LLM.
AgentOSConfig
Agent OS configuration.
AgentMetrics
Agent metrics for reporting.
BotMessage
A bot message.
BotResponse
A bot response.
BotAttachment
A bot attachment.
BotAction
A bot action/button.
AgentProtocol
Minimal Protocol for agent implementations. This defines the essential interface that any agent must provide. It enables proper mocking and testing…
RunnableAgentProtocol
Extended Protocol for agents that support run/start methods.
ToolProtocol
Protocol for tool implementations.
MemoryProtocol
Protocol for memory implementations.
LlmProtocol
Protocol for LLM provider implementations.
AgentOSProtocol
Protocol for Agent OS integration.
BotProtocol
Bot protocol for chat integrations.

