Base Verification Hook • AI Agent SDK

BaseVerificationHook: Base class for verification hooks.

BaseVerificationHook

Defined in the verification module.

AI Agent

Base class for verification hooks.

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

Diagram

Allow

Deny

Event Trigger

Hook: BaseVerificationHook

Decision

Process

Block

Constructor

ParamField Optional[str]

No description available.

ParamField float

No description available.

ParamField bool

No description available.

Properties

ResponseField str

No description available.

ResponseField float

No description available.

ResponseField bool

No description available.

Methods

Usage

python
class MyTestRunner(BaseVerificationHook):
        name = "my_tests"

        def _execute(self, context):
            # Run your tests
            return VerificationResult(success=True, output="Tests passed")

Source

View on GitHub

praisonaiagents/hooks/verification.py at line 100


Related Documentation