Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ca2a-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ca2a-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for ca2a-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a735faaaad2c266e8837fe966bf3597df205d7119b53b2751b54dd61c83d336f
MD5 0bc986a631dc4ee89d6893e1b3191ced
BLAKE2b-256 2122c3afb997979d5c8777b0585649131eb9177fcac3b026bf97e8eb81b24603

See more details on using hashes here.

Provenance

The following attestation bundles were made for ca2a-0.1.0.tar.gz:

Publisher: ci.yml on RussellLuo/ca2a

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ca2a-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8af294c203f0ae49643ddd32281905c0f42ea0c9ebdcd553179ee0496f040ed2
MD5 05256affd723851b446c915621143458
BLAKE2b-256 b72240e02993f0e7856dc3fc37f666707a6cd420b606a88cc826133a27e5793e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ca2a-0.1.0-py3-none-any.whl:

Publisher: ci.yml on RussellLuo/ca2a

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page