wasm-agent 0.2.0

A ReAct and native tool-calling agent loop with no I/O, for WASM, edge workers and plugins: parse model replies, dispatch tools, keep history
Documentation
// SPDX-License-Identifier: MIT
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]

/// The error type.
pub mod error;
pub mod history;
#[cfg(feature = "js")]
#[cfg_attr(docsrs, doc(cfg(feature = "js")))]
pub mod js;
pub mod loop_runner;
pub mod native;
pub mod tools;
pub mod types;

pub use error::AgentError;
pub use loop_runner::{parse_react_step, system_prompt, Agent, LoopRunner, NativeStep};
pub use native::{ToolCall, ToolOutput};
pub use tools::{ToolRegistry, ToolSpec};
pub use types::{AgentConfig, Message, ReActStep, Role};