ADK (ADK v0.0.1-alpha.1)

Copy Markdown View Source

The main entry point for ADK Elixir.

Quick Start

agent = ADK.new("assistant", model: "test", instruction: "Help the user.")
ADK.chat(agent, "Hello!")

Summary

Functions

Send a message and get the final text response. Blocking.

Create a new LLM agent with minimal configuration.

Run an agent and return a list of events.

Create a sequential pipeline from agents.

Functions

chat(agent, message, opts \\ [])

@spec chat(ADK.Agent.t(), String.t(), keyword()) :: String.t() | nil

Send a message and get the final text response. Blocking.

new(name, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: ADK.Agent.LlmAgent.t()

Create a new LLM agent with minimal configuration.

run(agent, message, opts \\ [])

@spec run(ADK.Agent.t(), String.t() | map(), keyword()) :: [ADK.Event.t()]

Run an agent and return a list of events.

sequential(agents, opts \\ [])

@spec sequential(
  [ADK.Agent.t()],
  keyword()
) :: ADK.Agent.t()

Create a sequential pipeline from agents.