Lifecycle Command Decision • AI Agent SDK

LifecycleCommandDecision: Closed decision shape for a self-lifecycle command evaluation.

LifecycleCommandDecision

Defined in the protocols module.

AI Agent

Closed decision shape for a self-lifecycle command evaluation.

Attributes: allow: Whether the command may run (`True) or is refused (False`) because it targets this gateway’s own lifecycle. reason: Model-readable explanation, populated on denial so the caller can surface why the command was blocked. matched: The specific command fragment that triggered the deny (for logging / the blocked-attempt audit line); empty when allowed.

Properties

ResponseField bool

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 6914