ADK.Agent.Config (adk_ex v1.1.0)

Copy Markdown View Source

Configuration struct for creating a custom agent via ADK.Agent.CustomAgent.

Summary

Types

after_callback()

@type after_callback() :: (ADK.Agent.CallbackContext.t() ->
                       {ADK.Types.Content.t() | nil,
                        ADK.Agent.CallbackContext.t()})

before_callback()

@type before_callback() :: (ADK.Agent.CallbackContext.t() ->
                        {ADK.Types.Content.t() | nil,
                         ADK.Agent.CallbackContext.t()})

run_fn()

@type run_fn() :: (ADK.Agent.InvocationContext.t() -> Enumerable.t())

t()

@type t() :: %ADK.Agent.Config{
  after_agent_callbacks: [after_callback()],
  before_agent_callbacks: [before_callback()],
  description: String.t(),
  name: String.t(),
  run: run_fn() | nil,
  sub_agents: [struct()]
}