Skip to main content

Module prelude

Module prelude 

Source
Expand description

Re-exports of the most commonly used types.

Re-exports§

pub use crate::Runtime;

Structs§

AgentConfig
Serializable agent configuration.
InMemory
In-memory store backed by Arc<Mutex<Vec<(String, String)>>>.
Message
A message in the chat
Request
A chat completion request.
Response
A chat completion response from the LLM
StreamChunk
A streaming chat completion chunk
Tool
A tool for the LLM
ToolRegistry
Registry of named tools with their async handlers.

Enums§

Role
The role of a message

Traits§

Hook
Lifecycle backend for agent building, event observation, and tool registration.

Type Aliases§

Handler
Type-erased async tool handler.