Skip to main content

HooksConfig

Defined in the feature_configs module.
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],
    ))