Skip to main content

Crate walrus_core

Crate walrus_core 

Source
Expand description

Walrus agent library.

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.
AgentBuilder
Fluent builder for Agent<M>.
AgentConfig
Serializable agent configuration.
AgentResponse
Final response from a complete agent run.
AgentStep
Data record of one LLM round (one model call + tool dispatch).
ToolRegistry
Registry of named tools with their async handlers.

Enums§

AgentEvent
A fine-grained event emitted during agent execution.
AgentStopReason
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.