Skip to main content

The official Python SDK for the Evaluation Context Protocol (ECP).

Project description

ECP Python SDK

This is the SDK for building agents that comply with the Evaluation Context Protocol (ECP).

Install

pip install "ecp-sdk==0.2.9"

The latest stable PyPI release is now 0.2.9. Use the install command above to install the matching package version.

For LangChain adaptor support:

pip install "ecp-sdk[langchain]==0.2.9"

For CrewAI adaptor support:

pip install "ecp-sdk[crewai]==0.2.9"

For LlamaIndex adaptor support:

pip install "ecp-sdk[llamaindex]==0.2.9"

For PydanticAI adaptor support:

pip install "ecp-sdk[pydanticai]==0.2.9"

Usage

import ecp

@ecp.agent
class MyAgent:
    ...

Streamable HTTP

Agents can also run as an ECP Streamable HTTP server:

if __name__ == "__main__":
    ecp.serve_http(MyAgent(), host="127.0.0.1", port=8765, path="/ecp")

The endpoint accepts JSON-RPC POST requests at /ecp. It returns JSON for requests, 202 Accepted for notifications, and 405 Method Not Allowed for GET SSE streams until ECP defines server-initiated messages.

Links

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

ecp_sdk-0.3.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

ecp_sdk-0.3.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file ecp_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: ecp_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ecp_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 81ee4d3f190f5409ee8a25e1de2cb424fc9716b5dee48b0de20129fca70d0941
MD5 f7a44e97b83989a7732ff251403656f8
BLAKE2b-256 4cd454d76085d509bead7f192cc329bfd346960bda6b6069d0e25a3fa666c990

See more details on using hashes here.

Provenance

The following attestation bundles were made for ecp_sdk-0.3.0.tar.gz:

Publisher: release.yml on evaluation-context-protocol/ecp

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

File details

Details for the file ecp_sdk-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ecp_sdk-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ecp_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8821b90883c405553a0c58933cbfdd443ead23235ae4da3c11b9362f40318b8
MD5 2740ac0fc43ee7f72c2f3c028d39621f
BLAKE2b-256 a92e418a6baa201ae66d7479f1456124668d4ce969b416f97a86d0e8024174ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for ecp_sdk-0.3.0-py3-none-any.whl:

Publisher: release.yml on evaluation-context-protocol/ecp

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