Skip to main content

HooksConfig

Defined in the Feature Configs module.
AI Agent Configuration for agent hooks/callbacks. Consolidates: hooks, step_callback

Properties

on_step
Optional
No description available.
on_tool_call
Optional
No description available.
middleware
List
No description available.
  • to_dict: Convert to dictionary.

Usage

Agent(hooks=HooksConfig(
        on_step=my_step_callback,
        on_tool_call=my_tool_callback,
        middleware=[my_middleware],
    ))

Source

View on GitHub

praisonaiagents/config/feature_configs.py at line 713