Run Before Model • AI Agent SDK

run_before_model: Run all before_model hooks.

run_before_model

Method

</div>

This is a method of the MiddlewareManager class in the middleware module.

Run all before_model hooks.

Signature

python
def run_before_model(request: ModelRequest) -> ModelRequest

Parameters

ParamField ModelRequest

No description available.

Returns

ResponseField ModelRequest

The result of the operation.

Uses

  • hook

Used By

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 445