Model Request Blocked • AI Agent SDK
ModelRequestBlocked: Raised when a real model request is attempted while requests are blocked.
ModelRequestBlocked
Defined in the guard module.
AI Agent
Raised when a real model request is attempted while requests are blocked.
Derives from `BaseException on purpose: the agent's tool loop catches Exception broadly and turns failures into a None` answer, which would hide exactly the leak this guard exists to expose.
Attributes: model: The model id the blocked request named, if known. provider: The request path that was blocked (e.g. `"litellm.completion"). call_site: "<file>:<line> in <function>"` for the outermost caller outside praisonaiagents, i.e. the line in your code to fix.
Constructor
strNo description available.
Source
View on GitHubpraisonaiagents/model_harness/guard.py at line 93