Expand description
Walrus agent library.
Agent: Stateful execution unit with step/run/run_stream.AgentBuilder: Fluent construction with a model provider.AgentConfig: Serializable agent parameters.Dispatcher: Generic async trait for tool dispatch.ToolRegistry: Canonical dispatcher — holds(Tool, Handler)pairs.Hook: Lifecycle backend for agent building, events, and tool registration.model: Unified LLM interface types and traits.- Agent event types:
AgentEvent,AgentStep,AgentResponse,AgentStopReason.
Re-exports§
pub use hook::Hook;
Modules§
- hook
- Hook trait — lifecycle backend for agent building, event observation, and tool registration.
- model
- Unified LLM interface types and traits.
- utils
- Shared utilities for markdown-based configuration parsing.
Structs§
- Agent
- A stateful agent execution unit.
- Agent
Builder - Fluent builder for
Agent<M>. - Agent
Config - Serializable agent configuration.
- Agent
Response - Final response from a complete agent run.
- Agent
Step - Data record of one LLM round (one model call + tool dispatch).
- Tool
Registry - Registry of named tools with their async handlers.
Enums§
- Agent
Event - A fine-grained event emitted during agent execution.
- Agent
Stop Reason - Why the agent stopped executing.
Traits§
- Dispatcher
- Generic tool dispatcher.
Functions§
- parse_
agent_ md - Parse an agent markdown file (YAML frontmatter + body) into an
AgentConfig.
Type Aliases§
- Handler
- Type-erased async tool handler.