Skip to main content

before_tool

Function
This function is defined in the middleware module.
Decorator to mark a function as a before_tool hook. The function receives a ToolRequest and should return a (possibly modified) ToolRequest.

Signature

Parameters

BeforeToolFn
required
No description available.

Returns

BeforeToolFn
The result of the operation.

Usage

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 241

Tools Concept

Create Custom Tools

Tool Development