10 lines
285 B
Rust
10 lines
285 B
Rust
#[swiftide_macros::tool(
|
|
description = "My first tool",
|
|
param(name = "Message", description = "A message for testing")
|
|
)]
|
|
async fn basic_tool(_agent_context: &dyn AgentContext, msg: &str) -> Result<ToolOutput, ToolError> {
|
|
Ok(format!("Hello {msg}").into())
|
|
}
|
|
|
|
fn main() {}
|