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.0a1.tar.gz (51.1 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.0a1-py3-none-any.whl (72.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai37_agent_host-0.1.0a1.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.18.0-9-generic

File hashes

Hashes for ai37_agent_host-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 d9f7a05050d685a6f9c87d9762a59fcc46f4aeff2833534f3f467a590f4e8dcf
MD5 599fd3afc381656ba5dad907f6d7df66
BLAKE2b-256 08b1d08a7742eb0c25df6b63c92382778fd5ba2724d8639d219167c1baf40ae1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai37_agent_host-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 72.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.18.0-9-generic

File hashes

Hashes for ai37_agent_host-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 e26e87f0e005581c2edf0941d2ee6d0173a6948bf10e1c56928b8d43162244ca
MD5 2072a74a5e48bfe1e0905c42b8457dbb
BLAKE2b-256 bc7fb9e219ac5be924912b26b42133986ed064c7bfaedae3316887c71ee4974d

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