Skip to main content

walrus_core/
lib.rs

1//! Walrus agent library.
2//!
3//! - [`Agent`]: Stateful execution unit with step/run/run_stream.
4//! - [`AgentBuilder`]: Fluent construction with a model provider.
5//! - [`AgentConfig`]: Serializable agent parameters.
6//! - [`ToolRegistry`]: Schema-only tool store. No handlers or closures.
7//! - [`ToolSender`] / [`ToolRequest`]: Agent-side tool dispatch primitives.
8//! - [`Hook`]: Lifecycle backend for agent building, events, and tool registration.
9//! - [`Runtime`]: Agent registry, schema store, and hook orchestration.
10//! - [`model`]: Unified LLM interface types and traits.
11//! - Agent event types: [`AgentEvent`], [`AgentStep`], [`AgentResponse`], [`AgentStopReason`].
12
13pub use agent::{
14    Agent, AgentBuilder, AgentConfig,
15    event::{AgentEvent, AgentResponse, AgentStep, AgentStopReason},
16    parse_agent_md,
17    tool::{ToolRegistry, ToolRequest, ToolSender},
18};
19pub use memory::{
20    Embedder, Memory, MemoryEntry, RecallOptions,
21    tools::{RecallInput, RememberInput},
22};
23pub use runtime::{Runtime, hook::Hook};
24
25mod agent;
26pub mod memory;
27pub mod model;
28pub mod protocol;
29mod runtime;
30pub mod utils;