a2a-python-sdk
توضیحات
Agent-to-Agent (A2A) Protocol Python SDK
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | a2a-python-sdk-0.1.6 |
| نام | a2a-python-sdk |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Ganesh Kinkar Giri <k.ganeshgiri@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/a2a-python-sdk/ |
| مجوز | Apache-2.0 |
# ✅ FINAL COMPLIANCE VERDICT
| A2A Core Concept | Status |
| ------------------ | ------ |
| Tasks | ✅ |
| Task lifecycle | ✅ |
| Parts | ✅ |
| Artifacts | ✅ |
| Artifact streaming | ✅ |
| Discovery | ✅ |
| AgentCard | ✅ |
| Webhooks / Push | ✅ |
| Context | ✅ |
| Security hooks | ✅ |
| Conformance tests | ✅ |
# 5️⃣ FINAL COMPLIANCE VERDICT (NO AMBIGUITY)
| A2A Discovery Requirement | Status |
| ---------------------------- | ------ |
| Agent Card | ✅ |
| Well-known discovery | ✅ |
| Direct discovery | ✅ |
| Secure discovery | ✅ |
| Capability introspection | ✅ |
| Registry discovery | ✅ |
| Trust declaration | ✅ |
| Selective disclosure support | ✅ |
| Spec-level tests | ✅ |
# 🧠 Enterprise Coverage: Now Fully Completed
| Enterprise Requirement | SDK Status | Covered by |
| ---------------------- | ---------- | ------------------------------------------ |
| Security & Trust | ✅ | `security/` + trust declarations |
| Auth / Scopes | ✅ | `security/` + `enterprise/auth_helpers.py` |
| RBAC | ✅ | `enterprise/rbac.py` |
| Audit | ✅ | `enterprise/audit.py` |
| Policy Enforcement | ✅ | `enterprise/policy_engine.py` |
| HITL support | ✅ | `enterprise/hitl.py` |
| mTLS enforcement | ✅ | `enterprise/auth_helpers.py` |
| Message governance | ✅ | `Governance` in schema |
# ✅ Final Compliance Checklist (Life of a Task)
| Spec Requirement | Covered | Notes |
| ---------------------------- | --------- | -------------------------- |
| Stateless message responses | ✅ | Done |
| Stateful task initiation | ✅ | Done |
| Task lifecycle updates | ✅ | Done |
| Context grouping (contextId) | ✅ | Done |
| Immutable tasks | ✅ | Done |
| Parallel follow-ups | ✅ | Done |
| Artifact linkage | ✅ | Done |
| Reference task refinements | ⚠ Partial | Needs `reference_task_ids` |
| Task event models | ⚠ Partial | Needs explicit event types |
# 🧠 SPEC COMPLIANCE CHECKLIST (Extensions)
| Extension Feature | Implemented? | Location |
| --------------------------------------------- | ---------------------- | ------------------------------------------------------ |
| Declare extensions in AgentCard | ✔ | `schema/agent_card.py` |
| Extension model (`uri`, `params`, `required`) | ✔ | `extensions/models.py` |
| Client negotiation helper | ✔ | `extensions/negotiation.py` |
| Transport support for headers | ✔ | `transport/extension_headers.py` |
| Server echo back activated extensions | ✔ | `extensions/activation.py` |
| Tests for extension behaviors | ✔ | `tests_conformance/*.py` |
| Input validation guidance | ✔ | extension params should be validated in extension code |
| Required extension enforcement | ✔ (model field exists) | enforcement logic TBD in server layer |
# ✅ What This Validator Guarantees (Spec-Level)
| Requirement | Status |
| ------------------------------- | ------ |
| Valid URI enforcement | ✅ |
| Required extension enforcement | ✅ |
| Unsupported extension rejection | ✅ |
| Dependency validation | ✅ |
| Parameter schema enforcement | ✅ |
| Duplicate detection | ✅ |
| Safe for enterprise use | ✅ |
| Framework-agnostic | ✅ |
# 🎯 Final Compliance Checklist — Streaming & Async
| Spec Requirement | Covered? |
| ---------------------------- | ----------------------- |
| Async accept (202) | ✅ |
| Correlation IDs | ✅ |
| Polling API | ✅ |
| Push webhooks | ⚠ via enterprise module |
| Streaming parts (structured) | ✅ |
| SSE streaming | ✅ |
| WebSocket streaming | ✅ |
| Backpressure / generator | ✅ |
| Completion semantic | ✅ |
| Error handling in streams | ⚠ basic |
نیازمندی
| مقدار | نام |
|---|---|
| - | pydantic>=2.0 |
| - | requests>=2.31 |
| - | httpx>=0.25 |
| - | pyjwt>=2.8 |
| - | typing-extensions>=4.8 |
| xtr | fastapi>=0.110; |
| xtr | uvicorn[standard]>=0.29; |
| xtr | sse-starlette>=2.0; |
| xtr | websockets>=12.0; |
| xtr | cryptography>=42.0; |
| xtr | python-jose>=3.3; |
| xtr | opentelemetry-api>=1.24; |
| xtr | opentelemetry-sdk>=1.24; |
| xtr | opentelemetry-exporter-otlp>=1.24; |
| xtr | openai>=1.0; |
| xtr | groq>=0.9; |
| xtr | ollama>=0.1; |
| xtr | langgraph>=0.2; |
| xtr | crewai>=0.30; |
| xtr | anyio>=4.0; |
| xtr | click>=8.1; |
| xtr | rich>=13.7; |
| xtr | watchfiles>=0.21; |
| xtr | python-dotenv>=1.0; |
| xtr | pytest>=8.0; |
| xtr | pytest-asyncio>=0.23; |
| xtr | pytest-cov>=5.0; |
| xtr | a2a-python[cli,dev,frameworks,llm,mcp,observability,security,server,streaming,test]; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl a2a-python-sdk-0.1.6:
pip install a2a-python-sdk.whl
نصب پکیج tar.gz a2a-python-sdk-0.1.6:
pip install a2a-python-sdk.tar.gz