Praisonai Derive • Rust AI Agent SDK

Procedural macros for PraisonAI

praisonai_derive

Rust AI Agent SDK

Procedural macros for PraisonAI

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

Example

rust,ignore
use praisonai::tool;

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

Import

rust
use praisonai_derive::*;

Functions