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.0a3.tar.gz (54.5 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.0a3-py3-none-any.whl (75.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ai37_agent_host-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 3f3317a1259da732aa929c888da0d72b722f2dabfd014166e84b5cc23bf5d3dd
MD5 5c148f2dee9813f41bd67b697e79e183
BLAKE2b-256 fa47b9f532682fdbe0a408d9f26d59bc4e1ca76a8911881ea3cba41620b9ae4f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ai37_agent_host-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f89cfbae7f50c9bab30be2b450c96827bb52586649b7868e50be76e343ec36
MD5 1c1ba49e4a068b5f5f0c92b1d2554c8d
BLAKE2b-256 4acad2d534973fef336a9ce028c673ac9d05307a377a997431de5437f00f7cf2

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