evaluate • AI Agent SDK
evaluate: Return a :class:`LifecycleCommandDecision` for “command“.
evaluate
Method
</div>
This is a method of the LifecycleCommandGuardPolicy class in the protocols module.
Return a :class:LifecycleCommandDecision for `command`.
Signature
def evaluate(command: str) -> LifecycleCommandDecisionParameters
ParamField
strThe resolved command / scheduled-job command string (may also carry appended script text — every segment is scanned).
Returns
ResponseField
LifecycleCommandDecisionAn allow decision when the command is benign, or a deny decision naming the offending fragment when it would stop / restart / kill this gateway.
Uses
LifecycleCommandDecision
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 7109