Skip to main content

AI37 agent host (Python): A2A + AG-UI + MCP + file-aware store backends поверх a2a-sdk и ai37-agent-sdk. Порт @ai37/agent-host.

Project description

ai37-agent-host (Python)

Host-слой A2A-агентов экосистемы AI37 (Python). Порт TS-пакета @ai37/agent-host поверх официального a2a-sdk (Starlette) и базового ai37-agent-sdk (auth/billing/context).

Разработчик агента реализует один контракт AgentHandler.run(req) -> AgentResult и вызывает create_agent_host(...), а host даёт весь транспорт (A2A JSON-RPC/REST, AG-UI SSE, опц. MCP), JWT-guard, content-negotiation A2UI, file-aware store-backends и Langfuse-трассировку.

Base-SDK (ai37-agent-sdk) — синхронный; host — async. На стыке billing/auth sync-вызовы оборачиваются в anyio.to_thread.run_sync, чтобы не блокировать event-loop.

Статус

Порт в работе (Фаза 2). Готово:

  • types — контракты (AgentHandler/AgentInput/AgentEvent/AgentResult/ContextFile/A2uiComponent/…);
  • als — request-scope на contextvars (current_ctx/current_bearer/current_supported_catalog_ids/…).

В работе: parse, build_task, a2a_executor, auth_guard, output_modes, a2ui, create_agent_host, store_backend (+read_raw), agui, mcp, relay, observability/langfuse.

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

ai37_agent_host-0.1.0a4.tar.gz (55.6 kB view details)

Uploaded Source

Built Distribution

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

ai37_agent_host-0.1.0a4-py3-none-any.whl (77.0 kB view details)

Uploaded Python 3

File details

Details for the file ai37_agent_host-0.1.0a4.tar.gz.

File metadata

  • Download URL: ai37_agent_host-0.1.0a4.tar.gz
  • Upload date:
  • Size: 55.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for ai37_agent_host-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 160b074ceebd25e1163e15fda4c37433813907162d85ff77d33d432888d4eaa3
MD5 e74cb821887514d7bc4a6c5fd7fd7c39
BLAKE2b-256 89bd1ae61d0f74c94d53c32b50dfe726d2c42e408ecf58ec5931bad5d28076dd

See more details on using hashes here.

File details

Details for the file ai37_agent_host-0.1.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for ai37_agent_host-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c6bc19393835a5793fb49749fd52f257c7d162069e7b4e35d81433b764e10e
MD5 24affe6ba62bf659d8b603be9b056a4a
BLAKE2b-256 4ae5141838f3ecca521ed8c17bb63389fc07bc0776918c5a7c26dc66548fed8c

See more details on using hashes here.

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