A command-line utility for interacting with A2A agents.
Project description
cA2A
ca2a is a command-line utility that helps you interact with A2A agents. It's basically curl for A2A agents.
Installation
pip install ca2a
Usage
$ ca2a -h
usage: ca2a [-h] [-v] url method [items ...]
A command-line utility for interacting with A2A agents.
positional arguments:
url The URL to connect to the A2A agent
method The method to be invoked
items The parameter values (in the form of `key=string_value` or `key:=json_value`), or the header values (in the form of `key:value`)
options:
-h, --help show this help message and exit
-v, --verbose Enable verbose output showing the JSON-RPC request/response
Quick Start
Run an A2A agent (see Helloworld Example):
git clone https://github.com/a2aproject/a2a-samples.git
cd a2a-samples/samples/python/agents/helloworld
uv run .
Send a message to the agent:
ca2a http://localhost:9999 message/send message:='{
"role": "user",
"parts": [{"kind": "text", "text": "Hello"}],
"messageId": "msg_123",
"taskId": "task_123"
}'
Send a streaming message to the agent:
ca2a http://localhost:9999 message/stream message:='{
"role": "user",
"parts": [{"kind": "text", "text": "Hello"}],
"messageId": "msg_123",
"taskId": "task_123"
}'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ca2a-0.1.0.tar.gz.
File metadata
- Download URL: ca2a-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a735faaaad2c266e8837fe966bf3597df205d7119b53b2751b54dd61c83d336f
|
|
| MD5 |
0bc986a631dc4ee89d6893e1b3191ced
|
|
| BLAKE2b-256 |
2122c3afb997979d5c8777b0585649131eb9177fcac3b026bf97e8eb81b24603
|
Provenance
The following attestation bundles were made for ca2a-0.1.0.tar.gz:
Publisher:
ci.yml on RussellLuo/ca2a
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ca2a-0.1.0.tar.gz -
Subject digest:
a735faaaad2c266e8837fe966bf3597df205d7119b53b2751b54dd61c83d336f - Sigstore transparency entry: 292014194
- Sigstore integration time:
-
Permalink:
RussellLuo/ca2a@0a3c0cd608df71fd29c89f5c3061573af7944690 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RussellLuo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@0a3c0cd608df71fd29c89f5c3061573af7944690 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ca2a-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ca2a-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8af294c203f0ae49643ddd32281905c0f42ea0c9ebdcd553179ee0496f040ed2
|
|
| MD5 |
05256affd723851b446c915621143458
|
|
| BLAKE2b-256 |
b72240e02993f0e7856dc3fc37f666707a6cd420b606a88cc826133a27e5793e
|
Provenance
The following attestation bundles were made for ca2a-0.1.0-py3-none-any.whl:
Publisher:
ci.yml on RussellLuo/ca2a
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ca2a-0.1.0-py3-none-any.whl -
Subject digest:
8af294c203f0ae49643ddd32281905c0f42ea0c9ebdcd553179ee0496f040ed2 - Sigstore transparency entry: 292014197
- Sigstore integration time:
-
Permalink:
RussellLuo/ca2a@0a3c0cd608df71fd29c89f5c3061573af7944690 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RussellLuo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@0a3c0cd608df71fd29c89f5c3061573af7944690 -
Trigger Event:
push
-
Statement type: