Last Guardrail Error • AI Agent SDK

last_guardrail_error: The most recent rejection message a guardrail sent back to the model.

last_guardrail_error

Method

</div>

This is a method of the Agent class in the agent module.

The most recent rejection message a guardrail sent back to the model.

Signature

python
def last_guardrail_error() -> Any

Returns

ResponseField Any

The result of the operation.

Source

View on GitHub

praisonaiagents/agent/agent.py at line 7221


Related Documentation