Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
dab200d
start pydantic-ai-graph
samuelcolvin Dec 22, 2024
bdd5c2c
lower case state machine
samuelcolvin Dec 22, 2024
a65df82
starting tests
samuelcolvin Dec 22, 2024
af0ba32
add history and logfire
samuelcolvin Dec 22, 2024
877ee36
add example, alter types
samuelcolvin Dec 22, 2024
5cf3ad0
fix dependencies
samuelcolvin Dec 23, 2024
544b6c8
fix ci deps
samuelcolvin Dec 23, 2024
7288cc9
fix tests for other versions
samuelcolvin Dec 23, 2024
0572bda
change node test times
samuelcolvin Dec 23, 2024
d10dc87
pydantic-ai-graph - simplify public generics (#539)
dmontagu Jan 2, 2025
06428bb
Typo in Graph Documentation (#596)
izzyacademy Jan 3, 2025
1a5d3e2
fix linting
samuelcolvin Jan 7, 2025
6faaf97
separate mermaid logic
samuelcolvin Jan 7, 2025
892f661
fix graph type checking
samuelcolvin Jan 7, 2025
02b7f28
bump
samuelcolvin Jan 7, 2025
be3f689
adding node highlighting to mermaid, testing locally
samuelcolvin Jan 7, 2025
749cc31
bump
samuelcolvin Jan 7, 2025
c0d35da
fix type checking imports
samuelcolvin Jan 7, 2025
190fe40
fix for python 3.9
samuelcolvin Jan 7, 2025
ccc0c17
simplify mermaid config
samuelcolvin Jan 8, 2025
50b590f
remove GraphRunner
samuelcolvin Jan 8, 2025
8ac10c7
add Interrupt
samuelcolvin Jan 9, 2025
b63ca74
remove interrupt, replace with "next()"
samuelcolvin Jan 9, 2025
745e3d5
address comments
samuelcolvin Jan 9, 2025
1370f88
switch name to pydantic-graph
samuelcolvin Jan 10, 2025
24cdd35
allow labeling edges and notes for docstrings
samuelcolvin Jan 10, 2025
6990c49
allow notes to be disabled
samuelcolvin Jan 10, 2025
4f69960
adding graph tests
samuelcolvin Jan 10, 2025
29f8a95
more mermaid tests, fix 3.9
samuelcolvin Jan 10, 2025
02c4dc0
rename node to start_node in graph.run()
samuelcolvin Jan 10, 2025
fc7dfc6
more tests for graphs
samuelcolvin Jan 10, 2025
db9543e
coverage in tests
samuelcolvin Jan 10, 2025
e9d1d2b
cleanup graph properties
samuelcolvin Jan 10, 2025
81cb333
infer graph name
samuelcolvin Jan 11, 2025
88c1d46
fix for 3.9
samuelcolvin Jan 11, 2025
0e3ecb3
adding API docs
samuelcolvin Jan 11, 2025
3284ff1
fix state, more docs
samuelcolvin Jan 11, 2025
b4d6c1c
fix graph api examples
samuelcolvin Jan 11, 2025
22708d9
starting graph documentation
samuelcolvin Jan 11, 2025
d1af561
fix examples
samuelcolvin Jan 11, 2025
9d5f45c
more graph documentation
samuelcolvin Jan 11, 2025
a3a0ddc
add GenAI example
samuelcolvin Jan 11, 2025
3994899
more graph docs
samuelcolvin Jan 12, 2025
ecc2434
extending graph docs
samuelcolvin Jan 13, 2025
5717bd5
fix history serialization
samuelcolvin Jan 14, 2025
3cb79c8
add history (de)serialization tests
samuelcolvin Jan 14, 2025
08bb7dd
add mermaid diagram section to graph docs
samuelcolvin Jan 14, 2025
466a7df
fix tests
samuelcolvin Jan 14, 2025
8098d34
add exceptions docs
samuelcolvin Jan 14, 2025
a3f507a
docs tweaks
samuelcolvin Jan 14, 2025
4e9b516
copy edits from @dmontagu
samuelcolvin Jan 15, 2025
a834eed
fix pydantic-graph readme
samuelcolvin Jan 15, 2025
447a259
adding deps to graphs
samuelcolvin Jan 15, 2025
3a1cddd
fix build
samuelcolvin Jan 15, 2025
46d8833
Merge branch 'graph' into graph-deps
samuelcolvin Jan 15, 2025
d78a9d1
fix type hint
samuelcolvin Jan 15, 2025
d653c0a
add deps example and tests
samuelcolvin Jan 15, 2025
e0ab64b
cleanup
samuelcolvin Jan 15, 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
Prev Previous commit
Next Next commit
change node test times
  • Loading branch information
samuelcolvin committed Jan 10, 2025
commit 0572bdaa39860026dcc2133de9f12f26d9358504
16 changes: 8 additions & 8 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ async def run(self, ctx: GraphContext) -> Union[String2Length, End[int]]: # noq
last_node_id='Float2String',
next_node_id='String2Length',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
Snapshot(
last_node_id='String2Length',
next_node_id='Double',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
Snapshot(
last_node_id='Double',
next_node_id='END',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
]
)
Expand All @@ -68,31 +68,31 @@ async def run(self, ctx: GraphContext) -> Union[String2Length, End[int]]: # noq
last_node_id='Float2String',
next_node_id='String2Length',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
Snapshot(
last_node_id='String2Length',
next_node_id='Double',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
Snapshot(
last_node_id='Double',
next_node_id='String2Length',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
Snapshot(
last_node_id='String2Length',
next_node_id='Double',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
Snapshot(
last_node_id='Double',
next_node_id='END',
start_ts=IsNow(tz=timezone.utc),
duration=IsFloat(gt=0, lt=1e-5),
duration=IsFloat(gt=0, lt=1e-3),
),
]
)