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

python
def evaluate(command: str) -> LifecycleCommandDecision

Parameters

ParamField str

The resolved command / scheduled-job command string (may also carry appended script text — every segment is scanned).

Returns

ResponseField LifecycleCommandDecision

An 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 GitHub

praisonaiagents/gateway/protocols.py at line 7109


Related Documentation