
a2aproject/a2a-cli
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A2A(Agent2Agent)対応エージェントとやり取りするための公式コマンドラインインターフェイスです.
概要
端末からA2Aエージェントを発見、メッセージ、管理します。 (a2a) は、A2A (Agent2Agent) エージェントの公式コマンド・ライン・クライアントです。 a2a CLI は、A2A のエージェントと連携する一貫した方法です。 捨てられたスクリプトや、エージェントに話せるだけを解析する未加工 JSON はありません。 * バンドルされたスキル記述子から運転される 1 つのコマンド サーフェスを通して A2A の代理店に仕事を委任して下さい — 馬具ごとの注文のプラグイン無し。 * ターミナルからデプロイされたエージェントを検査し、ドライブします。カードを受け取り、メッセージを送信、更新をストリーム化、リストをストリーム化、タスクの削除、各読み取り可能なコマンドを1つ実行します。 *安定したスクリプト可能な表面からエージェントを呼び出します。プロトコルネイティブJSON(-o json)と予測可能な出口コードは、クライアントライブラリは必要ありません。 CLI は、根本的な複雑さを処理します。 エージェントのカードからトランスポート(JSON-RPC、REST、またはgRPC)を交渉し、タスクが終了しないように待機し、エージェントや言語間で同じ動作させます.
概要(AI 翻訳)
端末からA2Aエージェントを発見、メッセージ、管理します。
A2A CLI(a2a)は、A2A(Agent2Agent)エージェントの公式コマンドラインクライアントです。
#A2A CLIの理由
A2Aは双方向プロトコルです。A2Aエージェントはクライアントとして機能し、タスクを外すことができます。 しかし、A2Aレイヤーのないエージェントは、簡単にメッセージを送信したり、更新を受け取ることができません。 A2A CLI は、そのギャップを埋めます。
これにより、ツールを呼び出すことができるモデル、エージェント、またはコーディングハーネスは、A2Aエージェントの能力を発見し、作業を送信できます。
始める3つの方法:
1.Empower AI コーディングアシスタント — コーディングエージェントに [a2a をオフロードするツールをリモート A2A エージェントに提供します。
1。Interact瞬時に - エージェントカードを取得し、メッセージを送信し、端末からリアルタイムの更新をストリームします。
1.ワークフローを自動化 — A2A エージェントと非 A2A エージェントをシームレスに統合し、cli のプロトコルネイティブ JSON の出力と予測可能な出口コードのアドバンテージを取ることによってパイプラインを構築します。
A2Aプロトコルv1.0で構築。
インストール
Homebrew (macOS/Linux)
WinGet (Windows)
ソースから (Linux / Windows / macOS)
既定のバイナリ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
A2A CLI
The A2A CLI (a2a) is the official command-line client for A2A (Agent2Agent) agents, maintained by the A2A Project Team.
Why the A2A CLI
A2A is a bidirectional protocol: any A2A agent can act as a client to another and hand off a task. But an agent without an A2A layer can’t easily send messages or receive updates. The A2A CLI fills that gap.
With it, you — or any model, agent, or coding harness that can call tools — can discover A2A agent’s capabilities and send it work.
Three ways to get started:
- Empower AI coding assistants — give your coding agent the
a2atool to offload work to remote A2A agents. - Interact instantly — fetch agent cards, send messages, and stream real-time updates from the terminal.
- Automate workflows — seamlessly integrate A2A agents with non A2A Agents and build pipelines by taking advanteage of cli’s protocol-native JSON outputs and predictable exit codes.
Built on A2A Protocol v1.0.
Installation
Homebrew (macOS / Linux)
brew tap a2aproject/a2a-cli https://github.com/a2aproject/a2a-cli
brew install a2a
WinGet (Windows)
winget install a2aproject.a2acli
From Source (Linux / Windows / macOS)
go install github.com/a2aproject/a2a-cli@latest
# go install names the binary `a2a-cli`; rename it to `a2a`
mv "$(command -v a2a-cli)" "$(dirname "$(command -v a2a-cli)")/a2a"
Prebuilt binaries
Download an archive from the latest release, extract it, and put the a2a binary on your PATH.
Usage
# Discover an agent's card
a2a card get https://agent.example.com
# Send a message and wait for the result
a2a send -a https://agent.example.com "Hello, what can you do?"
# Stream events as they arrive
a2a send -a https://agent.example.com --stream "Summarize this document"
# Send asynchronously and poll until completion
a2a send -a https://agent.example.com --async "Analyze this dataset"
a2a task get -a https://agent.example.com --wait --timeout 60s
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add a2aproject/a2a-cli