> ## 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**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/verification.md) module.

AI Agent

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

**name** `Optional[str]`

No description available.

**timeout** `float` (default: 60.0)

No description available.

**blocking** `bool` (default: True)

No description available.

## Properties

**name** `str`

No description available.

**timeout\_seconds** `float`

No description available.

**blocking** `bool`

No description available.

## Methods

> [card] [run()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/BaseVerificationHook-run.md)
>
> Run the verification hook.

## 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] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/verification.py#L100)
>
> `praisonaiagents/hooks/verification.py` at line 100

***

## Related Documentation

> [card] [Hooks Concept](https://praison.ai/docs/docs/concepts/hooks)

> [card] [Hook Events](https://praison.ai/docs/docs/features/hook-events)

> [card] [Callbacks](https://praison.ai/docs/docs/features/callbacks)


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