Skip to main content

after_model

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

Signature

Parameters

AfterModelFn
required
No description available.

Returns

AfterModelFn
The result of the operation.

Usage

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 206