UDIAgent
LLM-powered data visualization orchestration library for the Universal Discovery Interface (UDI).
UDIAgent orchestrates LLM calls to generate data visualization specs from natural language queries. It can be used as a standalone Python library or deployed as a FastAPI microservice.
Installation
# Core library only
pip install udiagent
# With the reference FastAPI server
pip install udiagent[server]
# With LangFuse observability
pip install udiagent[langfuse]
# With Amazon Bedrock IAM-role (SigV4) authentication
pip install udiagent[bedrock]
# With benchmarking tools
pip install udiagent[benchmark]
# Everything
pip install udiagent[all]
For local development with uv:
uv sync --extra server --extra langfuse --extra test --extra bedrock # server + dev
Quick start
As a library:
from udiagent import UDIAgent, Orchestrator
agent = UDIAgent(gpt_model_name="gpt-5.4", openai_api_key="sk-...")
result = Orchestrator(agent).run(
messages=[{"role": "user", "content": "Show me a bar chart of donors by sex"}],
data_schema='{"resources": [...]}',
data_domains='[{"entity": "donors", "field": "sex", ...}]',
)
# result.tool_calls: the tool calls to apply (RenderVisualization, FilterData, ...)
As a server, for local development (from packages/agent):
INSECURE_DEV_MODE=1 uv run --extra server fastapi dev src/udiagent/server/app.py --port 8007
Documentation
- Library usage: configuration, template sets, reasoning models, OpenAI-compatible backends, Amazon Bedrock, LangFuse.
- Running the server: environment variables, identity providers, server-side query backends, Docker.
- Deployment guide: standing the server up on a host.
- How the agent works: the request flow, chart templates, filters, and regenerating the generated template files.
- Benchmarking: measuring a server configuration.
- Server-side data: compiling the grammar to SQL.
- Reference: the Python API
and the HTTP API
(from
openapi.json).
License
MIT
Metadata
Release files for udiagent 0.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| udiagent-0.12.1.tar.gz | 28.9 MB | With provenance | Details for udiagent-0.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| udiagent-0.12.1-py3-none-any.whl | Python 3 | none | any | Details for udiagent-0.12.1-py3-none-any.whl |
Total release size: 29.2 MB
Release files / udiagent-0.12.1.tar.gz
| Download URL | udiagent-0.12.1.tar.gz |
|---|---|
| Size | 28.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
716268fbabd634bd62afabe1cbfccd5e1ce8b15e109ee7757607334c6dcd3c4e
|
|
BLAKE2b-256 checksum How to use checksums |
b4f83a4b905bfe31f468d59e4c65158aa72fe470336821309018cf729975db57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / udiagent-0.12.1-py3-none-any.whl
| Download URL | udiagent-0.12.1-py3-none-any.whl |
|---|---|
| Size | 286.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a92d9cbbfecaa58b72d7e316de4ef4cbdaab071b4c2f126b3379ee83ec51819a
|
|
BLAKE2b-256 checksum How to use checksums |
a28efc3519e966d177ea05c055bbeaaa12d8ad35aa035d46b312fb3ec489fdd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for udiagent 0.12.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for udiagent-0.12.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.