Skip to main content

Crate wasm_agent

Crate wasm_agent 

Source
Expand description

§wasm-agent

ReAct agent loop for WASM/edge environments.

Implements the Thought-Action-Observation cycle with a synchronous, WASM-compatible tool dispatch system. All logic compiles and tests on the host target; WASM-specific bindings are gated behind #[cfg(target_arch = "wasm32")].

Re-exports§

pub use error::AgentError;
pub use loop_runner::parse_react_step;
pub use loop_runner::LoopRunner;
pub use tools::ToolRegistry;
pub use tools::ToolSpec;
pub use types::AgentConfig;
pub use types::Message;
pub use types::ReActStep;
pub use types::Role;

Modules§

error
history
Conversation history management within WASM memory constraints.
loop_runner
ReAct loop runner: Thought -> Action -> Observation -> FinalAnswer.
tools
Tool registry and dispatch for WASM-safe function signatures.
types
Core types for the ReAct agent loop.