Skip to main content

wrap_model_call

Function
This function is defined in the middleware module.
Decorator to mark a function as a wrap_model_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
WrapModelCallFn
required
No description available.

Returns

Returns
WrapModelCallFn
The result of the operation.

Usage

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 221