types • AI Agent SDK
Hook Types for PraisonAI Agents.
types
AI Agent
Hook Types for PraisonAI Agents.
Defines the core types, enums, and dataclasses for the hook system.
Import
from praisonaiagents.hooks import typesClasses
HookEvent
Event names for the hook system.
HookInputBase hook input – common fields for all events.
KanbanHookInputHook input for kanban task lifecycle events.
HookOutputBase hook output – common fields for all events.
HookResultResult from a hook execution.
HookDefinitionHook definition with matcher and configuration.
CommandHookHook that executes a shell command.
FunctionHookHook that executes a Python function.
HookExecutionResultResult of executing a single hook.
Constants
| Name | Value |
|---|---|
_LEGACY_EVENT_VALUES | {'before_message': 'message_received', 'after_message': 'message_sending', 'tool_result_persist': 'after_tool'} |