Skip to main content

wasm_agent/
lib.rs

1// SPDX-License-Identifier: MIT
2//! # wasm-agent
3//!
4//! ReAct agent loop for WASM/edge environments.
5//!
6//! Implements the Thought-Action-Observation cycle with a synchronous,
7//! WASM-compatible tool dispatch system. All logic compiles and tests on
8//! the host target; WASM-specific bindings are gated behind
9//! `#[cfg(target_arch = "wasm32")]`.
10
11pub mod error;
12pub mod history;
13pub mod loop_runner;
14pub mod tools;
15pub mod types;
16
17pub use error::AgentError;
18pub use loop_runner::{parse_react_step, LoopRunner};
19pub use tools::{ToolRegistry, ToolSpec};
20pub use types::{AgentConfig, Message, ReActStep, Role};