> ## 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.

# End Execution • AI Agent SDK

> end_execution: Mark execution end.

# end\_execution

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

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

Mark execution end.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def end_execution(duration_ms: float) -> Any
```

## Parameters

<ParamField query="duration_ms" type="float" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `emit`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/escalation/observability.py#L279">
  `praisonaiagents/escalation/observability.py` at line 279
</Card>
