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

# Base Verification Hook • AI Agent SDK

> BaseVerificationHook: Base class for verification hooks.

# BaseVerificationHook

> Defined in the [**verification**](../modules/verification) module.

<Badge color="blue">AI Agent</Badge>

Base class for verification hooks.

Provides common functionality for verification hooks.
Subclass this to create custom verification hooks.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph TD
    event["Event Trigger"] --> hook["Hook: BaseVerificationHook"]
    hook --> decision{"Decision"}
    decision -- "Allow" --> proc["Process"]
    decision -- "Deny" --> block["Block"]
    style hook fill:#189AB4,color:#fff
    style event fill:#8B0000,color:#fff
    style proc fill:#8B0000,color:#fff
    style block fill:#8B0000,color:#fff
```

## Constructor

<ParamField query="name" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="timeout" type="float" required={false} default="60.0">
  No description available.
</ParamField>

## Properties

<ResponseField name="name" type="str">
  No description available.
</ResponseField>

<ResponseField name="timeout_seconds" type="float">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="run()" icon="function" href="../functions/BaseVerificationHook-run">
    Run the verification hook.
  </Card>
</CardGroup>

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
class MyTestRunner(BaseVerificationHook):
        name = "my_tests"
        
        def _execute(self, context):
            # Run your tests
            return VerificationResult(success=True, output="Tests passed")
```

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Hooks Concept" icon="anchor" href="/docs/concepts/hooks" />

  <Card title="Hook Events" icon="bolt" href="/docs/features/hook-events" />

  <Card title="Callbacks" icon="phone" href="/docs/features/callbacks" />
</CardGroup>
