> ## 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:`LivenessDecision` for the supplied timestamps.

# evaluate

Method

> This is a method of the [**LivenessPolicyProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/LivenessPolicyProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Return a :class:`LivenessDecision` for the supplied timestamps.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def evaluate(last_activity: float, now: float) -> LivenessDecision
```

## Parameters

**last\_activity** `float` *required*

No description available.

**now** `float` *required*

No description available.

### Returns

**Returns** `LivenessDecision`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L7231)
>
> `praisonaiagents/gateway/protocols.py` at line 7231

***

## Related Documentation

> [card] [Evaluation Concept](https://praison.ai/docs/docs/concepts/evaluation)

> [card] [LLM as Judge](https://praison.ai/docs/docs/features/llm-as-judge)

> [card] [Evaluation Loop](https://praison.ai/docs/docs/eval/evaluation-loop)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.