Skip to content

Commit 0080455

Browse files
committed
MAJOR CLEANUP:
1. renamed package to langgraph_compare 2. rewrote docs and README.md to use new name 3. fixed imports in tests to use new name 4. moved main examples to separate folder inside examples dir, fixed imports 5. added examples for comparing different architectures
1 parent 06f2403 commit 0080455

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+685
-367
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# LangGraph Log Parser
1+
# LangGraph Compare
22

33
# Documentation
4-
Documentation is available at: https://serafinski.github.io/LangGraph-Log-Parser/
4+
Documentation is available at: https://serafinski.github.io/LangGraph-Compare/
55

66
# Purpose
77
This Python package facilitates the parsing of run logs generated by [LangGraph](https://langchain-ai.github.io/langgraph/). During execution, logs are stored in an SQLite database in an encoded format _(using msgpack)_. These logs are then decoded and exported to a `json` format. Subsequently, the `json` files are transformed into `csv` files for further analysis.
@@ -45,14 +45,14 @@ sudo dnf install graphviz
4545
## Environment setup
4646
To create virtual environment (using conda), use the following commands:
4747
```dotenv
48-
conda create -n langgraph_log_parser python=3.9
49-
conda activate langgraph_log_parser
50-
pip install langgraph_log_parser
48+
conda create -n langgraph_compare python=3.9
49+
conda activate langgraph_compare
50+
pip install langgraph_compare
5151
```
5252
# Basic Example
5353
This example is based on the [Building a Basic Chatbot](https://langchain-ai.github.io/langgraph/tutorials/introduction/#part-1-build-a-basic-chatbot) from LangGraph documentation.
5454

55-
It will require You to install the following packages _(besides `langgraph_log_parser`)_:
55+
It will require You to install the following packages _(besides `langgraph_compare`)_:
5656
```dotenv
5757
pip install python-dotenv langchain-openai
5858
```
@@ -67,7 +67,7 @@ from langchain_openai import ChatOpenAI
6767
from langgraph.graph import StateGraph, START, END
6868
from langgraph.graph.message import add_messages
6969

70-
from langgraph_log_parser import *
70+
from langgraph_compare import *
7171

7272
exp = create_experiment("main")
7373
memory = exp.memory
@@ -110,7 +110,7 @@ generate_artifacts(event_log, graph, exp)
110110
```
111111
When You have multiple architectures analyzed, You can use the following code to compare them _(by default, it will look in `experiments` directory)_:
112112
```python
113-
from langgraph_log_parser import compare
113+
from langgraph_compare import compare
114114

115115
infrastructures = ["main", "other1", "other2"]
116116

docs/advanced_examples.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ As advanced examples, we are going to use the following tutorials from LangGraph
1515
* `Agent Architectures - Multi-Agent Supervisor <https://langchain-ai.github.io/langgraph/tutorials/multi_agent/agent_supervisor/>`_
1616
* `Agent Architectures - Hierarchical Agent Teams <https://langchain-ai.github.io/langgraph/tutorials/multi_agent/hierarchical_agent_teams/>`_
1717

18-
We are also not going to focus on a basic usage - the main focus is going to be on :class:`langgraph_log_parser.jsons_to_csv.GraphConfig`.
18+
We are also not going to focus on a basic usage - the main focus is going to be on :class:`langgraph_compare.jsons_to_csv.GraphConfig`.
1919

2020
If You want to check basic usage, refer to: :ref:`getting_started`.
2121

@@ -38,8 +38,8 @@ In case of this example - we will have 2 nodes - :code:`researcher`, :code:`char
3838
.. code-block:: python
3939
4040
# Needed imports
41-
from langgraph_log_parser.experiment import create_experiment
42-
from langgraph_log_parser.jsons_to_csv import GraphConfig, export_jsons_to_csv
41+
from langgraph_compare.experiment import create_experiment
42+
from langgraph_compare.jsons_to_csv import GraphConfig, export_jsons_to_csv
4343
4444
# Init for experiment project structure
4545
exp = create_experiment("test")
@@ -62,15 +62,15 @@ This example is based on `Agent Architectures - Multi-Agent Supervisor <https://
6262

6363
`Multi-Agent Supervisor diagram - LangGraph Documentation <https://langchain-ai.github.io/langgraph/tutorials/multi_agent/agent_supervisor/>`_
6464

65-
In this example, we will introduce :class:`langgraph_log_parser.jsons_to_csv.SupervisorConfig`. It will supervise the graph - working more or less work the same as :code:`GraphConfig`. The concept of supervisors will make more sense in :ref:`hierarchical_agent_teams`.
65+
In this example, we will introduce :class:`langgraph_compare.jsons_to_csv.SupervisorConfig`. It will supervise the graph - working more or less work the same as :code:`GraphConfig`. The concept of supervisors will make more sense in :ref:`hierarchical_agent_teams`.
6666

6767
**Example:**
6868

6969
.. code-block:: python
7070
7171
# Needed imports
72-
from langgraph_log_parser.experiment import create_experiment
73-
from langgraph_log_parser.jsons_to_csv import GraphConfig, SupervisorConfig, export_jsons_to_csv
72+
from langgraph_compare.experiment import create_experiment
73+
from langgraph_compare.jsons_to_csv import GraphConfig, SupervisorConfig, export_jsons_to_csv
7474
7575
# Init for experiment project structure
7676
exp = create_experiment("test")
@@ -112,8 +112,8 @@ IMPORTANT: Be sure to call supervisors with different names - so you can differe
112112
.. code-block:: python
113113
114114
# Needed imports
115-
from langgraph_log_parser.experiment import create_experiment
116-
from langgraph_log_parser.jsons_to_csv import GraphConfig, SubgraphConfig, SupervisorConfig, export_jsons_to_csv
115+
from langgraph_compare.experiment import create_experiment
116+
from langgraph_compare.jsons_to_csv import GraphConfig, SubgraphConfig, SupervisorConfig, export_jsons_to_csv
117117
118118
# Init for experiment project structure
119119
exp = create_experiment("test")

docs/conf.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9-
10-
# sphinx-apidoc -o docs langgraph_log_parser
119
import os
1210
import sys
1311
sys.path.insert(0, os.path.abspath('..'))
1412

15-
project = 'LangGraph Log Parser'
13+
project = 'LangGraph Compare'
1614
copyright = '2025, Tomasz Serafiński'
1715
author = 'Tomasz Serafiński'
18-
release = '0.1.14'
16+
release = '0.1.2'
1917

2018
# -- General configuration ---------------------------------------------------
2119
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

0 commit comments

Comments
 (0)