Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

VerificationHook

Defined in the verification module.
AI Agent Protocol for verification hooks. Verification hooks are used by Agent autonomy to validate actions. They run after file writes or at configured checkpoints. Implementations must provide:
  • name: Unique identifier for the hook
  • run(): Execute verification and return result

Properties

name
str
No description available.

Methods

run()

Run the verification hook.

Usage

class LintRunner:
        name = "ruff"
        
        def run(self, context=None):
            import subprocess
            result = subprocess.run(["ruff", "check", "."], capture_output=True)
            return VerificationResult(
                success=result.returncode == 0,
                output=result.stdout.decode()
            )

Source

View on GitHub

praisonaiagents/hooks/verification.py at line 62

Hooks Concept

Hook Events

Callbacks