> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# evaluate • AI Agent SDK

> evaluate: Return a :class:`LifecycleCommandDecision` for ``command``.

# evaluate

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**LifecycleCommandGuardPolicy**](../classes/LifecycleCommandGuardPolicy) class in the [**protocols**](../modules/protocols) module.

Return a :class:`LifecycleCommandDecision` for `command`.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def evaluate(command: str) -> LifecycleCommandDecision
```

## Parameters

<ParamField query="command" type="str" required={true}>
  The resolved command / scheduled-job command string (may also carry appended script text — every segment is scanned).
</ParamField>

### Returns

<ResponseField name="Returns" type="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.
</ResponseField>

## Uses

* `LifecycleCommandDecision`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L5135">
  `praisonaiagents/gateway/protocols.py` at line 5135
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Evaluation Concept" icon="gavel" href="/docs/docs/concepts/evaluation" />

  <Card title="LLM as Judge" icon="scale-balanced" href="/docs/docs/features/llm-as-judge" />

  <Card title="Evaluation Loop" icon="rotate" href="/docs/docs/eval/evaluation-loop" />
</CardGroup>
