praisonai-derive 0.2.0

Procedural macros for PraisonAI - #[tool] decorator
Documentation

Procedural macros for PraisonAI

This crate provides the #[tool] attribute macro for defining tools.

Example

use praisonai::tool;

#[tool(description = "Search the web for information")]
async fn search_web(query: String) -> String {
    format!("Results for: {}", query)
}