Skip to main content

events

AI Agent Event-specific input types for the hook system. Each event type has its own input class with relevant fields.

Import

from praisonaiagents.hooks import events

Classes

BeforeToolInput

Input for BeforeTool hooks.

AfterToolInput

Input for AfterTool hooks.

BeforeAgentInput

Input for BeforeAgent hooks.

AfterAgentInput

Input for AfterAgent hooks.

SessionStartInput

Input for SessionStart hooks.

SessionEndInput

Input for SessionEnd hooks.

BeforeLLMInput

Input for BeforeLLM hooks.

AfterLLMInput

Input for AfterLLM hooks.

OnErrorInput

Input for OnError hooks.

OnRetryInput

Input for OnRetry hooks.