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
str
required
No description available.
Source
View on GitHub
praisonaiagents/model_harness/guard.py at line 93
