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

# run • AI Agent SDK

> run: Run the verification hook.

# run

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

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

Run the verification hook.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def run(context: Optional[Dict[str, Any]]) -> VerificationResult
```

## Parameters

<ParamField query="context" type="Optional" required={false}>
  Optional context
</ParamField>

### Returns

<ResponseField name="Returns" type="VerificationResult">
  VerificationResult
</ResponseField>

## Uses

* `time.time`
* `VerificationResult`

## Used By

* [`Agent.run_until`](../functions/Agent-run_until)
* [`require_approval`](../functions/require_approval)
* [`HookRunner.execute_sync`](../functions/HookRunner-execute_sync)
* [`MCPToolRunner.run`](../functions/MCPToolRunner-run)
* [`Task.execute_callback_sync`](../functions/Task-execute_callback_sync)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/verification.py#L129">
  `praisonaiagents/hooks/verification.py` at line 129
</Card>
