Expand description
Walrus runtime: agent registry, tool registry, and hook orchestration.
The Runtime holds agents in a plain BTreeMap with per-agent
Mutex for concurrent execution. Tools are stored in a shared
ToolRegistry behind Arc<RwLock> supporting post-startup
registration (e.g. MCP hot-reload).
Modules§
- prelude
- Re-exports of the most commonly used types.
Structs§
- Agent
Config - Serializable agent configuration.
- InMemory
- In-memory store backed by
Arc<Mutex<Vec<(String, String)>>>. - Message
- A message in the chat
- NoEmbedder
- A no-op embedder that always returns an empty vector.
- Request
- A chat completion request.
- Response
- A chat completion response from the LLM
- Runtime
- The walrus runtime — agent registry, tool registry, and hook orchestration.
- Stream
Chunk - A streaming chat completion chunk
- Tool
- A tool for the LLM
- Tool
Registry - 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.
- Memory
- Structured knowledge memory for LLM agents.
Type Aliases§
- Handler
- Type-erased async tool handler.