Skip to main content

wrap_tool_call

Function
This function is defined in the middleware module.
Decorator to mark a function as a wrap_tool_call middleware. The function receives (request, call_next) and should call call_next(request) to continue the chain, or return early to short-circuit.

Signature

Parameters

func
WrapToolCallFn
required
No description available.

Returns

Returns
WrapToolCallFn
The result of the operation.

Usage

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 272

Tools Concept

Create Custom Tools

Tool Development