Generic helpers for GenAI
Project description
DataRobot GenAI Library
Features
- AG-UI integration—agents expose a standard AG-UI event stream (
RunAgentInputin, lifecycle + text + tool-call events out), so UIs and the DataRobot platform can render runs consistently without bespoke adapters per framework. - Multi-agent systems out of the box—first-class patterns for planner/writer crews, LangGraph multi-node graphs, and LlamaIndex
AgentWorkflowhandoffs; wrap them with one helper and keep the same streaming contract. - Unified LLM layer (DataRobot-compatible)—one
get_llm()entry point per integration (LangGraph, LlamaIndex, CrewAI, NAT), all backed by the same LiteLLM-based routing to the DataRobot LLM Gateway, LLM deployments, NIM, or external providers—driven by the same environment andConfig, so every component speaks to DataRobot consistently. - Utilities for common GenAI workflows.
- Orchestration—build agents from universal pieces in the low-code
workflow.yamlinterface. Combine and reuse LLMs, tools, agents, and evaluators. The design is compatible with and inspired by NeMo Agentic Toolkit. - Evaluating and serving with DRAgent—use a front-end server to plug your agent into a real-world application. It supports distributed tracing, generation and evaluation endpoints, async generations, and two-way communication over WebSockets.
User-facing walkthrough: docs/README.md.
Installation
- Requires Python 3.11–3.13.
- Install:
pip install --upgrade pip
pip install "datarobot-genai"
- Optional extras:
pip install "datarobot-genai[crewai]"
pip install "datarobot-genai[langgraph]"
pip install "datarobot-genai[llamaindex]"
# Multiple extras
pip install "datarobot-genai[crewai,langgraph,llamaindex]"
Available extras include: crewai, langgraph, llamaindex, nat, drmcp, pydanticai.
Excluded Dependencies
Some transitive dependencies are excluded via exclude-dependencies in pyproject.toml because they are unused by this project. Do not re-add them.
| Package | Pulled in by | Reason for exclusion |
|---|---|---|
uv |
build tooling | Not a runtime dependency. |
langchain-milvus |
langchain ecosystem | Unused vector store integration. |
pymilvus |
langchain-milvus | Transitive dependency of langchain-milvus. |
flask |
nvidia-nat-core 1.6.0 | Only used in NAT examples, not core library code (ref). |
Development
Prerequisites: Python 3.11–3.14, uv, Task CLI, pre-commit.
uv sync --all-extras --dev
pre-commit install
task test
Semantic versioning
Every change requires a patch version change and an entry in CHANGELOG.md.
Changes that break backward compatibility require a minor version bump.
TestPyPI
Comment /build on a PR to build and publish a dev version of the package to TestPyPI.
Publishing
- Same-repo PRs—comment
/buildto publish dev builds to TestPyPI (.devN). - Merge to
main—creates tagv{version}and publishes to PyPI automatically. - Version tags—pushing a
v*tag also triggers PyPI publish. - Local release—optional
task release:tag-and-pushcreates and pushesv{version}locally.
Links
- Repository—source and issues.
- PyPI—released packages.
- TestPyPI—dev builds.
License
Apache-2.0—see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datarobot_genai-0.15.11.tar.gz.
File metadata
- Download URL: datarobot_genai-0.15.11.tar.gz
- Upload date:
- Size: 246.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1d242447edd302a7adf8f704cddfb3314c705f670f1789ceab769d554463fb2
|
|
| MD5 |
616c52ec65e1c9638bb5855b36c6daef
|
|
| BLAKE2b-256 |
dc9721b11c81f82e57c871fff46d0fc0b548b895396a06b2590b0325522b7272
|
File details
Details for the file datarobot_genai-0.15.11-py3-none-any.whl.
File metadata
- Download URL: datarobot_genai-0.15.11-py3-none-any.whl
- Upload date:
- Size: 359.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d93e72bf021016c1c44d09efaaf8d013c6963276f05c759b71cd35d980c03a06
|
|
| MD5 |
bd215f63377e550a6f59e9aa7dde588c
|
|
| BLAKE2b-256 |
aa168a1dcf5d91169121b3e97a7083ba3de370c3c4deb45189512205949729fd
|