ADK.Agent.CustomAgent (adk_ex v1.1.0)

Copy Markdown View Source

A custom agent built from an ADK.Agent.Config.

Wraps a user-provided run function with before/after callback hooks. If a before callback returns non-nil Content, the run function is skipped and an event with that content is emitted instead.

Summary

Functions

Creates a new custom agent from a Config.

Types

t()

@type t() :: %ADK.Agent.CustomAgent{config: ADK.Agent.Config.t()}

Functions

new(config)

@spec new(ADK.Agent.Config.t()) :: t()

Creates a new custom agent from a Config.