Skip to main content

tool

Function
This function is defined in the praisonai_derive module.
The #[tool] attribute macro for defining tools. This macro transforms a function into a tool that can be used by agents. # Attributes - description: A description of what the tool does (required for LLM understanding) - name: Override the tool name (defaults to function name)

Signature

Parameters

TokenStream
required
No description available.
TokenStream
required
No description available.

Returns

TokenStream
The result of the operation.

Usage

Uses

  • parser
  • is_ident
  • value
  • parse
  • error
  • name
  • unwrap_or_else
  • path
  • push_str
  • trim

Source

View on GitHub

praisonai-derive/src/lib.rs at line 46

Rust Tools

Rust Code Execution

Rust Web Search