autoagents_core/tool/runtime/
mod.rs

1use super::ToolCallError;
2use std::fmt::Debug;
3
4#[cfg(feature = "wasm")]
5mod wasm;
6
7#[cfg(feature = "wasm")]
8pub use wasm::{WasmRuntime, WasmRuntimeError};
9
10pub trait ToolRuntime: Send + Sync + Debug {
11    fn execute(&self, args: serde_json::Value) -> Result<serde_json::Value, ToolCallError>;
12}