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.ToolRegistry: Schema-only tool store. No handlers or closures.ToolSender/ToolRequest: Agent-side tool dispatch primitives.Hook: Lifecycle backend for agent building, events, and tool registration.Runtime: Agent registry, schema store, and hook orchestration.model: Unified LLM interface types and traits.- Agent event types:
AgentEvent,AgentStep,AgentResponse,AgentStopReason.
Re-exports§
pub use memory::Embedder;pub use memory::Memory;pub use memory::MemoryEntry;pub use memory::RecallOptions;pub use memory::tools::RecallInput;pub use memory::tools::RememberInput;
Modules§
- memory
- Memory abstractions for Walrus agents.
- model
- Unified LLM interface types and traits.
- protocol
- Walrus wire protocol — message types and API 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).
- Runtime
- The walrus runtime — agent registry, schema store, and hook orchestration.
- Tool
Registry - Schema-only registry of named tools.
- Tool
Request - A single tool call request sent by the agent to the runtime’s tool handler.
Enums§
- Agent
Event - A fine-grained event emitted during agent execution.
- Agent
Stop Reason - Why the agent stopped executing.
Traits§
- Hook
- Lifecycle backend for agent building, event observation, and tool registration.
Functions§
- parse_
agent_ md - Parse an agent markdown file (YAML frontmatter + body) into an
AgentConfig.
Type Aliases§
- Tool
Sender - Sender half of the agent tool channel.