Skip to main content

AG-UI FastAPI adapter for Agent-Spec (LangGraph/Wayflow)

Project description

Open Agent Spec <> AG‑UI (Python)

Agent runner that emits AG‑UI events and a small FastAPI/uvicorn server to stream them to Dojo via SSE.

What this is

  • Agent runner: ag_ui_agentspec/agent.py executes an Agent Spec configuration on a chosen runtime and bridges spans to AG‑UI events.
  • Server wiring: ag_ui_agentspec/endpoint.py exposes a POST SSE endpoint that streams those events to the Dojo frontend.

Supported agent runtimes and Dojo features

  • Wayflow (Oracle's reference agent framework) (chat, frontend tools, backend tools)
  • LangGraph (chat, frontend tools, backend tools, tool call streaming)

Install

Base library plus optional extras so you can choose runtimes. Routers are lazy-loaded; if you don't install a runtime, its routes will not work.

Before installation, please clone the following GitHub repositories:

  • AG-UI and cd ag-ui/integrations/agent-spec/python
  • Agent Spec
  • WayFlow
  • Please put these 3 repos in the same directory.
# Wayflow only
uv pip install -e .[wayflow]

# LangGraph only
uv pip install -e .[langgraph]

# Multiple
uv pip install -e .[wayflow,langgraph]

Run the example server

cd ag-ui/integrations/agent-spec/python/examples
uv sync --extra langgraph --extra wayflow && uv run dev   # both runtimes; serves http://localhost:9003
# or pick one runtime:
# uv sync --extra langgraph && uv run dev
# uv sync --extra wayflow && uv run dev
# then run Dojo (in a separate terminal):
# Option A — run everything from repo root (multiple apps):
#   pnpm dev
# Option B — run only Dojo:
#   cd ag-ui/apps/dojo
#   AGENT_SPEC_URL=http://localhost:9003 pnpm dev (make sure to run pnpm build first)

Environment

  • OpenAI-compatible variables commonly used by the examples (pick your provider):
    • OPENAI_BASE_URL (or provider-specific: OSS_API_URL, LLAMA_API_URL, etc.)
    • OPENAI_MODEL (the model slug, defaults to gpt-4o availble through OpenAI API)
    • OPENAI_API_KEY
  • Dojo server URL:
    • AGENT_SPEC_URL=http://localhost:9003 when running the local example server

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

ag_ui_agent_spec-0.1.0.tar.gz (150.7 kB view details)

Uploaded Source

Built Distribution

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

ag_ui_agent_spec-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file ag_ui_agent_spec-0.1.0.tar.gz.

File metadata

  • Download URL: ag_ui_agent_spec-0.1.0.tar.gz
  • Upload date:
  • Size: 150.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ag_ui_agent_spec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed4f973705070291ecfad410b137cf40f4d50e13e16f3d557256e1050e0029a9
MD5 2d34f8f0c5828a76cfc84f70bda684d7
BLAKE2b-256 7a014a3bdd7c9cd10e5a5b05ad195449615e8aed0f6fe9d5fbdbb57ba8dc6eb8

See more details on using hashes here.

File details

Details for the file ag_ui_agent_spec-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ag_ui_agent_spec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ag_ui_agent_spec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad61524e4ed1501d5e115a13c8a2790873fe63cd8cecfdeb9d602df4e02c72b7
MD5 cb4eb15eba6bdc011144acca5d7b29a8
BLAKE2b-256 db246104f9763b320d0b4c410d0888721356bb0494553b6d953c16c7f56f08ac

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