a clone from the root project for Ryoma AI Platform – made compatible with Pydantic v2
Project description
Ryoma Nicer
A Pydantic v2–compatible fork of Ryoma AI Platform
Overview
Ryoma Nicer is a community-maintained fork of the Ryoma AI Platform, originally created by the Ryoma team. The upstream project provides an AI-powered data agent framework for seamless data analysis, engineering, and visualization.
This fork is:
- Pydantic v2–compatible (
ryoma-nicerruns on Pydantic 2.x) - LangGraph-ready, updated for modern LangGraph (
StateGraph+Pregel) APIs - Actively maintained as part of the “NICER” suite of agents (e.g. baby-NICER)
It is used in production within the NICER stack to power agents such as
WorkflowAgent and SQL agents that run on a LangGraph / LangChain / LangMem
tooling ecosystem.
For the original project, see project-ryoma/ryoma. All architectural credit for the base design goes to the upstream maintainers.
Why This Fork?
Pydantic v2 introduced breaking changes in how models are defined and validated. Many projects, including the original Ryoma AI Platform, were tightly coupled to Pydantic v1. To allow developers to adopt the latest Pydantic improvements without sacrificing Ryoma functionality, this fork:
- Migrates all core model definitions to the Pydantic v2
BaseModelAPI. - Updates validation and config patterns to leverage v2’s faster runtime and stricter type checking.
- Aligns with a modern agent stack, including:
- LangGraph (tested with
langgraph==0.6.x) - LangChain / LangChain Core (tested with
langchain==0.3.x,langchain-core==0.3.x) - Usage inside the NICER suite of agents (e.g. baby-NICER / langgraph-slack).
- LangGraph (tested with
Installation
Install the Pydantic v2–compatible release from PyPI:
pip install ryoma-nicer
Optionally, include supported data source extras:
pip install "ryoma-nicer[snowflake,pyspark,postgres,sqlite,mysql,bigquery]"
Usage
The API surface and usage mirror the original Ryoma. For example, to run a simple SQL agent:
from ryoma_ai.agent.sql import SqlAgent
from ryoma_ai.datasource.postgres import PostgresDataSource
# Initialize data source
datasource = PostgresDataSource("postgresql://user:pass@host:5432/db")
# Create and run SQL agent
agent = SqlAgent("gpt-3.5-turbo").add_datasource(datasource)
agent.stream("SELECT count(*) FROM orders", display=True)
For conceptual details and additional examples, the upstream Ryoma documentation still applies in most cases. Where this fork differs is primarily in:
- Pydantic v2 model definitions
- Updated integrations used by the NICER agent stack
Usage in the NICER agent suite
Within the NICER ecosystem (e.g. baby-NICER / langgraph-slack), this fork
powers agents that run on LangGraph’s compiled graphs (StateGraph.compile(...)
returning a Pregel runtime). For example, WorkflowAgent:
- builds a
StateGraphoverMessageState - compiles it to a
Pregelruntime withMemorySavercheckpointers - uses LangGraph’s
invoke/streamAPIs to manage tool-augmented workflows
This ensures ryoma-nicer works cleanly with modern LangGraph-based systems
while preserving the spirit of the original Ryoma design.
Contribution & Upstream
- Forked from: project-ryoma/ryoma
- Upstream credit: Architectural ideas, core abstractions, and much of the original code come from the Ryoma team.
- Issue tracker & pull requests: Please use this repository to report Pydantic v2 / modern-stack compatibility issues or to propose improvements needed by the NICER suite of agents.
License
This project is released under the Apache License 2.0.
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 ryoma_nicer-0.7.6.tar.gz.
File metadata
- Download URL: ryoma_nicer-0.7.6.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5001b517bc5f5367008ab5fdc461eda5657c254ed4a06cf23edfe81e69f8b3db
|
|
| MD5 |
7b6e57ef1d180c35c5c886b28e560f6e
|
|
| BLAKE2b-256 |
53cf1472fc3c7324a622be54a28fcf504f8683558c054aba4d418354e40f381f
|
File details
Details for the file ryoma_nicer-0.7.6-py3-none-any.whl.
File metadata
- Download URL: ryoma_nicer-0.7.6-py3-none-any.whl
- Upload date:
- Size: 143.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bbc804a32b1232ab01939080351521540612d1ce54fc71940bbc8df18c862a0
|
|
| MD5 |
ee3dbd3717b8478070212c9c87f7e6e9
|
|
| BLAKE2b-256 |
de1d138ad77f334667dc0d42ae1c11bfea377e63c8b5444e45585fa385a2e3ae
|