Expand description
Walrus agent library.
Agent: Immutable agent definition with step/run/run_stream.AgentBuilder: Fluent construction with a model provider.AgentConfig: Serializable agent parameters.Session: Lightweight conversation history container.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, session store, and hook orchestration.model: Unified LLM interface types and traits.- Agent event types:
AgentEvent,AgentStep,AgentResponse,AgentStopReason.
Re-exports§
pub use agent::Agent;pub use agent::AgentBuilder;pub use agent::AgentConfig;pub use agent::COMPACT_SENTINEL;pub use agent::config::HeartbeatConfig;pub use agent::event::AgentEvent;pub use agent::event::AgentResponse;pub use agent::event::AgentStep;pub use agent::event::AgentStopReason;pub use agent::tool::ToolRegistry;pub use agent::tool::ToolRequest;pub use agent::tool::ToolSender;
Modules§
- agent
- Immutable agent definition and execution methods.
- model
- Unified LLM interface types and traits.
- paths
- Global paths for the walrus runtime.
- protocol
- Walrus wire protocol — message types and API traits.
- utils
- Shared utilities for markdown-based configuration parsing.
Structs§
- Runtime
- The walrus runtime — agent registry, session store, and hook orchestration.
- Session
- A conversation session tied to a specific agent.
Traits§
- Hook
- Lifecycle backend for agent building, event observation, and tool registration.