Skip to main content

Swiss AI Hub REST API, WebSocket gateway, and MCP server (FastAPI) for the Swiss AI Agent Protocol.

Project description

Swiss AI Hub API

REST API, WebSocket gateway, and MCP server for the Swiss AI Hub platform. Built on FastAPI, it bridges frontends and external clients to Swiss AI Hub services via the Swiss AI Agent Protocol.

  • Dynamic endpoints — agent and process endpoints are registered at runtime from NATS discovery, not hardcoded.
  • Real-time — WebSocket and OpenAI-compatible SSE streaming of agent display events.
  • Importable — mount any subset of controllers on an ApiRunner to build your own API.

Installation

pip install swiss-ai-hub-api

This pulls in swiss-ai-hub-core.

Usage

from swiss_ai_hub.api.routes.agent import AgentController

Links

License

Apache-2.0

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

swiss_ai_hub_api-0.291.5.tar.gz (142.7 kB view details)

Uploaded Source

Built Distribution

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

swiss_ai_hub_api-0.291.5-py3-none-any.whl (272.8 kB view details)

Uploaded Python 3

File details

Details for the file swiss_ai_hub_api-0.291.5.tar.gz.

File metadata

  • Download URL: swiss_ai_hub_api-0.291.5.tar.gz
  • Upload date:
  • Size: 142.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for swiss_ai_hub_api-0.291.5.tar.gz
Algorithm Hash digest
SHA256 6595ac82b09432be1551af55fe0ea5d60a8d69402d079098688370f3e9c6c739
MD5 8a099ac0449e12cf781c4faf0850082a
BLAKE2b-256 572239f76092ac414f581a3168c0e301e85ded80390b43a07a9bf45ea10613c2

See more details on using hashes here.

File details

Details for the file swiss_ai_hub_api-0.291.5-py3-none-any.whl.

File metadata

  • Download URL: swiss_ai_hub_api-0.291.5-py3-none-any.whl
  • Upload date:
  • Size: 272.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for swiss_ai_hub_api-0.291.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a41c9f6e3b4f708b7e871a39ed6f6e8496329348f75ab48b1f59cafa164fe613
MD5 16cace070b87a7ddab9dc2d2116b87c9
BLAKE2b-256 5161fde33059f9e143bbdd9d27adde7323740b6b9df013f4ad3c8842b4b27667

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