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.

types

AI Agent Hook Types for PraisonAI Agents. Defines the core types, enums, and dataclasses for the hook system.

Import

from praisonaiagents.hooks import types

Classes

HookEvent

Event names for the hook system.

HookInput

Base hook input - common fields for all events.

HookOutput

Base hook output - common fields for all events.

HookResult

Result from a hook execution.

HookDefinition

Hook definition with matcher and configuration.

CommandHook

Hook that executes a shell command.

FunctionHook

Hook that executes a Python function.

HookExecutionResult

Result of executing a single hook.