Hooks Config • AI Agent SDK

HooksConfig: Configuration for agent hooks/callbacks.

HooksConfig

Defined in the Feature Configs module.

AI Agent

Configuration for agent hooks/callbacks.

Consolidates: hooks, step_callback

Diagram

Allow

Deny

Event Trigger

Hook: HooksConfig

Decision

Process

Block

Properties

ResponseField Optional[Callable]

No description available.

ResponseField Optional[Callable]

No description available.

ResponseField List[Any]

No description available.

ResponseField Optional

No description available.

Internal & Generic Methods
  • to_dict: Convert to dictionary.

Usage

python
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 1409


Related Documentation