Skip to main content

wasm_agent/
lib.rs

1// SPDX-License-Identifier: MIT
2#![doc = include_str!("../README.md")]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![warn(missing_docs)]
5
6/// The error type.
7pub mod error;
8pub mod history;
9#[cfg(feature = "js")]
10#[cfg_attr(docsrs, doc(cfg(feature = "js")))]
11pub mod js;
12pub mod loop_runner;
13pub mod native;
14pub mod tools;
15pub mod types;
16
17pub use error::AgentError;
18pub use loop_runner::{parse_react_step, system_prompt, Agent, LoopRunner, NativeStep};
19pub use native::{ToolCall, ToolOutput};
20pub use tools::{ToolRegistry, ToolSpec};
21pub use types::{AgentConfig, Message, ReActStep, Role};