Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
320cea4
Introduce new graph API
dmontagu Sep 11, 2025
dc64f7c
Make type-checking-compatible with 3.10
dmontagu Sep 22, 2025
fcf2e1e
Update the plan_outline_graph.py script
dmontagu Sep 22, 2025
182fef5
Allow transitioning between BaseNodes and step functions
DouweM Sep 23, 2025
ee44e04
Support step functions that return output or node
DouweM Sep 23, 2025
f70c044
Make handling of nodes downstream of a join more consistent during iter
dmontagu Sep 23, 2025
650d029
Add broken match_node method to GraphBuilder
dmontagu Sep 23, 2025
cbf6fff
Implement GraphBuilder.match_node
DouweM Sep 23, 2025
b5b5d71
Add deps to graph v2
DouweM Sep 23, 2025
8c29dc9
Make state, deps, inputs arguments optional
DouweM Sep 23, 2025
67bb49a
Use new graph in agent graph
DouweM Sep 23, 2025
54cb987
fixes
DouweM Sep 23, 2025
4cc2bae
Pass state and deps to reducer
DouweM Sep 23, 2025
9eab0c5
fix iteration nodes
DouweM Sep 23, 2025
e5ef3c8
Fix graph with temporal
DouweM Sep 24, 2025
6b021df
Remove `activity` and `parallel` attributes
dmontagu Sep 24, 2025
3e5559b
Remove docstring contents of __init__.py
dmontagu Sep 24, 2025
db223a5
Add docstrings
dmontagu Sep 24, 2025
a577427
Make GraphBuilder.edge_from(...).to take a type[BaseNode]
DouweM Sep 24, 2025
db5484d
Update the docstrings/typevars of decision.py
dmontagu Sep 24, 2025
3e443db
Fix generic base nodes
DouweM Sep 24, 2025
1f19672
Update some docstrings
dmontagu Sep 24, 2025
467b38a
Tweak automatic edge creation from step function return hints
DouweM Sep 24, 2025
2a08277
Fix auto instrumentation
DouweM Sep 24, 2025
17ca402
remove logfire
DouweM Sep 24, 2025
c842d01
remove claude generated examples
DouweM Sep 25, 2025
c0161f6
Use 3.10 in CI
DouweM Sep 25, 2025
1904333
Use 3.10 in CI
DouweM Sep 25, 2025
a9ace18
Delete plan
DouweM Sep 25, 2025
06a7883
Use 3.11 for docs in CI
DouweM Sep 25, 2025
a6f6f3f
Rename graph v2 to beta
DouweM Sep 25, 2025
e103ab9
Lint on 3.10 and 3.13
DouweM Sep 25, 2025
4da92dd
Use correct pyright python version
DouweM Sep 25, 2025
a73c781
remove old examples
DouweM Sep 25, 2025
8c9ad90
Merge branch 'main' into dmontagu/new-graph-api
dmontagu Sep 25, 2025
346eebb
Readd infer_name=False
dmontagu Sep 25, 2025
e27c116
Merge main
dmontagu Oct 2, 2025
f7c018b
Add some tests and fix some bugs
dmontagu Oct 2, 2025
4d07089
Fix tests
dmontagu Oct 2, 2025
d5f7729
Add docs
dmontagu Oct 3, 2025
519c5d6
Rename IDs and update some docs
dmontagu Oct 3, 2025
9fc966f
Rename spread to map
dmontagu Oct 3, 2025
d38464e
Fix failing docs tests
dmontagu Oct 3, 2025
b65db2a
Merge main
dmontagu Oct 3, 2025
b1145f2
Fix failing docs test
dmontagu Oct 3, 2025
2d8de15
Fix a bug
dmontagu Oct 3, 2025
e2b4db2
WIP
dmontagu Oct 3, 2025
edd8880
WIP
dmontagu Oct 6, 2025
b515963
Get new tests passing
dmontagu Oct 6, 2025
ae3e2df
Improve typing
dmontagu Oct 6, 2025
12e8883
Merge main
dmontagu Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ on:

env:
COLUMNS: 150
UV_PYTHON: 3.12
UV_PYTHON: "3.10"
UV_FROZEN: "1"

permissions:
contents: read

jobs:
lint:
name: lint on ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.13"]
env:
UV_PYTHON: ${{ matrix.python-version }}
PYRIGHT_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -55,6 +63,8 @@ jobs:

docs:
runs-on: ubuntu-latest
env:
UV_PYTHON: "3.11"
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12
3.10
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ lint: ## Lint the code
uv run ruff format --check
uv run ruff check

PYRIGHT_PYTHON ?= 3.10

.PHONY: typecheck-pyright
typecheck-pyright:
@# PYRIGHT_PYTHON_IGNORE_WARNINGS avoids the overhead of making a request to github on every invocation
PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright
PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright --pythonversion $(PYRIGHT_PYTHON)

.PHONY: typecheck-mypy
typecheck-mypy:
Expand Down
3 changes: 3 additions & 0 deletions docs/api/pydantic_graph/beta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `pydantic_graph.beta`

::: pydantic_graph.beta
3 changes: 3 additions & 0 deletions docs/api/pydantic_graph/beta_decision.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `pydantic_graph.beta.decision`

::: pydantic_graph.beta.decision
3 changes: 3 additions & 0 deletions docs/api/pydantic_graph/beta_graph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `pydantic_graph.beta.graph`

::: pydantic_graph.beta.graph
3 changes: 3 additions & 0 deletions docs/api/pydantic_graph/beta_graph_builder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `pydantic_graph.beta.graph_builder`

::: pydantic_graph.beta.graph_builder
3 changes: 3 additions & 0 deletions docs/api/pydantic_graph/beta_join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `pydantic_graph.beta.join`

::: pydantic_graph.beta.join
3 changes: 3 additions & 0 deletions docs/api/pydantic_graph/beta_node.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `pydantic_graph.beta.node`

::: pydantic_graph.beta.node
3 changes: 3 additions & 0 deletions docs/api/pydantic_graph/beta_step.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `pydantic_graph.beta.step`

::: pydantic_graph.beta.step
Loading
Loading