Junjo 順序
Japanese Translation: order, sequence, procedure
Junjo helps you build and debug AI workflows with this Graph Workflow Execution library, and our optional companion junjo-server telemetry server.
junjo-screenshot.png
Features
- Organizes your python functions and LLM calls into executable graph workflows
- Produces structured opentelemetry logs compatible with any opentelemetry destination
- Helps you visibly trace AI graph workflow executions
- Helps you debug where things go wrong
- Optionally utilize junjo-server for enhanced telemetry visualiations of the graph
Junjo is a decoupled AI Graph Workflow execution framework for python applications. It is optimized for telemetry, eval-driven-development (test driven prompt engineering), concurrent execution with asyncio, and type safety with Pydantic.
Junjo doesn't change how you build your applications, and will not couple you to this framework. Junjo provides building blocks to wrap and organize your existing python functions into scalable, testable, and improvable workflows.
There are zero proprietary AI / LLM implementations in Junjo. Use whatever LLM library you want.
All logs produced are opentelemetry compatible. Exusting otel spans are annotated with workflow execution span wrappers.
It doesn't matter if the functions you add to a Junjo workflow are LLM API calls, database operations, or traditional business logic. You can write your business logic however you want. We just provide a convenient framework for organizing your desired flow into an executable graph.
Building AI Workflows and Agents as a Graph Workflow
Agentic AI applications use LLMs to determine the order of execution of python functions. These functions may involve LLM requests, API requests, database CRUD operations, etc.
The simplest way to organize functions that can be / need to be executed in a certain order is in the form of a directed graph.
A directed graph gives one the building blocks to create any sort of agentic application, including:
- High precision workflows in the form of a Directed Acyclic Graph (DAG)
- Autonomous AI Agents in the form of dynamically determined directed graphs
Priorities
Test (eval) driven development, repeatability, debuggability, and telemetry are CRITICAL for rapid iteration and development of Agentic applications.
Junjo prioritizes the following capabilities above all else to ensure these things are not an afterthought.
- Eval driven development / Test driven development with pytest
- Telemetry
- Visualization
- Type safety (pydantic)
- Concurrency safe (asyncio)
Contributing
This project was made with the uv python package manager.
# Setup and activate the virtual environment
$ uv venv .venv
$ source .venv/bin/activate
# Install optional development dependencies
$ uv pip install -e ".[dev,graphviz]"
Graphviz
Currently Broken
This project can render junjo Graph objects as images. However, it requires Graphviz to be installed on the underlying system (your developer computer or the docker image).
# Install Graphvis on MacOS with homebrew
$ brew install graphviz
# Generate an image from a Graph
from junjo.graphviz.utils import graph_to_graphviz_image
graph_to_graphviz_image(workflow_graph)
Code Linting and Formatting
This project utilizes ruff for linting and auto formatting. The VSCode settings.json in this project helps with additional formatting.
Building The Sphinx Docs
# 1. ensure optional development dependencies are installed (see above)
# 2. ensure the virtual environment is activated (see above)
# Execute the build command to preview the new docs.
# They will appear in a .gitignored folder docs/_build
$ sphinx-build -b html docs docs/_build
Code Generation
Protobuf schema generation
- Requires the optional
devdependencies to be installed viauv pip install -e ".[dev]" - Requires protoc which can be installed into your developer environment host machine (instructions).
- Copy the .proto files from the junjo-server project to
src/telemetry/junjo_server/proto - Run
make protofrom the project root to generate theproto_genfiles for the client - Update any required changes to the
src/telemetry/junjo_server/client.pyfile (type changes, fields, etc.)
Metadata
Release files for junjo 0.41
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| junjo-0.41.tar.gz | 34.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| junjo-0.41-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.3 kB
Release files / junjo-0.41.tar.gz
| Download URL | junjo-0.41.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4052733b04503908338b68e986acf433a53321646d5c9e64a55f3dfbab7ffa4
|
|
BLAKE2b-256 checksum How to use checksums |
94420a012d17460e2a30a8d4cb08b4eb4b48320d81805d848e16036bc228e1b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / junjo-0.41-py3-none-any.whl
| Download URL | junjo-0.41-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6180982fea99c71792b757a0e32ae90b110f4c5c5ce4113bb99562269159f798
|
|
BLAKE2b-256 checksum How to use checksums |
5764b7c04569e9c4f5e20482acf64f8cd6776f73eaca58ebb5d1c8244137d4e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|