ADK.A2A.Client (ADK v0.0.1-alpha.1)

Copy Markdown View Source

A2A protocol client — delegates to A2A.Client from the a2a package.

Updated for A2A v1.0.

Summary

Functions

Cancel a task on a remote A2A agent.

Fetch the Agent Card from a remote A2A server.

Get a task's status and history from a remote A2A agent.

Send a streaming message to a remote A2A agent.

Send a message (task) to a remote A2A agent.

Functions

cancel_task(base_url, task_id, opts \\ [])

@spec cancel_task(String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:error, term()}

Cancel a task on a remote A2A agent.

get_agent_card(base_url, opts \\ [])

@spec get_agent_card(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Fetch the Agent Card from a remote A2A server.

get_task(base_url, task_id, opts \\ [])

@spec get_task(String.t(), String.t(), keyword()) :: {:ok, map()} | {:error, term()}

Get a task's status and history from a remote A2A agent.

send_streaming_message(base_url, message, opts \\ [])

@spec send_streaming_message(String.t(), String.t(), keyword()) ::
  {:ok, Enumerable.t()} | {:error, term()}

Send a streaming message to a remote A2A agent.

send_task(base_url, message, opts \\ [])

@spec send_task(String.t(), String.t(), keyword()) :: {:ok, map()} | {:error, term()}

Send a message (task) to a remote A2A agent.