Skip to main content

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-nicer runs 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:

  1. Migrates all core model definitions to the Pydantic v2 BaseModel API.
  2. Updates validation and config patterns to leverage v2’s faster runtime and stricter type checking.
  3. 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).

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 StateGraph over MessageState
  • compiles it to a Pregel runtime with MemorySaver checkpointers
  • uses LangGraph’s invoke/stream APIs 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ryoma_nicer-0.8.1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

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

ryoma_nicer-0.8.1-py3-none-any.whl (148.5 kB view details)

Uploaded Python 3

File details

Details for the file ryoma_nicer-0.8.1.tar.gz.

File metadata

  • Download URL: ryoma_nicer-0.8.1.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ryoma_nicer-0.8.1.tar.gz
Algorithm Hash digest
SHA256 6c360c75e84da5e6e85d402cd9080291e5ff823e33a074ff5b25b126b10ffd9f
MD5 da4bb87cd6af443e657e64730da460fc
BLAKE2b-256 113c2cf8989f99c2e5b31e4d3175c0ca72df20dc5491163da7ce8bd9b5a78517

See more details on using hashes here.

Provenance

The following attestation bundles were made for ryoma_nicer-0.8.1.tar.gz:

Publisher: release.yml on johannescastner/ryoma-4-nicer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ryoma_nicer-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: ryoma_nicer-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 148.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ryoma_nicer-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0733dd980d1bf3e32a864837adafe9d0760ab3b430b0874faa0b36055d0b2f34
MD5 4da1b83d234efb036a7ed5dde33c0962
BLAKE2b-256 dadd710ce1eaf6dd951d3f313ce3e0f5586169c9f33dc2140b2443436b471301

See more details on using hashes here.

Provenance

The following attestation bundles were made for ryoma_nicer-0.8.1-py3-none-any.whl:

Publisher: release.yml on johannescastner/ryoma-4-nicer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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