adk_callbacks behaviour (erlang_adk v0.2.5)
View Sourceadk_callbacks - Behavior and registry for ADK execution callbacks.
Callbacks allow hooking into the execution lifecycle (e.g., on_llm_start, on_tool_call, on_error) for logging, monitoring, or side-effects.
Summary
Functions
Execute a callback hook across all registered handlers.
Run handlers until one explicitly replaces or halts the operation. Observation-only callbacks return ok or continue. A callback may return {replace, Value} to replace an after-hook result, or {halt, Value} to skip the operation wrapped by a before-hook.
Callbacks
Functions
Execute a callback hook across all registered handlers.
Run handlers until one explicitly replaces or halts the operation. Observation-only callbacks return ok or continue. A callback may return {replace, Value} to replace an after-hook result, or {halt, Value} to skip the operation wrapped by a before-hook.