Skip to main content

Agent Communication Protocol SDK

Project description

Agent Communication Protocol SDK for Python

Agent Communication Protocol SDK for Python helps developers to serve and consume agents over the Agent Communication Protocol.

Prerequisites

✅ Python >= 3.11

Installation

Install according to your Python package manager:

  • uv add acp-sdk
  • pip install acp-sdk
  • poetry add acp-sdk
  • ...

Quickstart

Register an agent and run the server:

server = Server()

@server.agent()
async def echo(input: list[Message]):
    """Echoes everything"""
    for message in input:
        yield message

server.run(port=8000)

From another process, connect to the server and run the agent:

async with Client(base_url="http://localhost:8000") as client:
    run = await client.run_sync(agent="echo", input=[Message(parts=[MessagePart(content="Howdy!")])])
    print(run)

➡️ Explore more in our examples library.

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

acp_sdk-1.0.3.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

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

acp_sdk-1.0.3-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file acp_sdk-1.0.3.tar.gz.

File metadata

  • Download URL: acp_sdk-1.0.3.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for acp_sdk-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3736cd496f63f6aa337814179728e8303d84b4124161e955ebfd013220144ade
MD5 5dbf31016bcad92e30920a433f087c9e
BLAKE2b-256 fd4738814ee48cdf2084627eed751352cf6f6bf6cc0a3ba52d95b654f99985a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for acp_sdk-1.0.3.tar.gz:

Publisher: release.yml on i-am-bee/acp

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

File details

Details for the file acp_sdk-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: acp_sdk-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for acp_sdk-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a6b3c3d98072eeb7ee001fbd7a53ee25d550226c880b81221ddaad170172ee
MD5 4420ebf4c308b5d899cd220ba8cc261a
BLAKE2b-256 bc69110b0764f94494478dd2a3365682ff22a9596385d041a837f8cd880cde10

See more details on using hashes here.

Provenance

The following attestation bundles were made for acp_sdk-1.0.3-py3-none-any.whl:

Publisher: release.yml on i-am-bee/acp

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