Nuno Campos and GitHub
5444563fdc
Only render end node if there is an edge leading to it ( #1022 )
2024-07-15 11:26:05 -07:00
Nuno Campos and GitHub
8cf10fa460
Specific error when updating state as an unknown node ( #1015 )
2024-07-14 06:54:01 -07:00
Nuno Campos and GitHub
71d9d02d26
lib: Add metadata arg to add_node() ( #990 )
...
* lib: Add metadata arg to add_node()
- use metadata when drawing graph
- use metadata for tracing
* Update core
* Lock
2024-07-11 17:03:22 -07:00
Nuno Campos and GitHub
dfb2ac321f
lib: Checkpoint pending writes whenever a node finishes ( #976 )
...
* lib: Checkpoint pending writes whenever a node finishes
- Whenever a node finishes, checkpoint pending writes
* Rename arg
* Add tests, resume from pending writes
* Add comment
* Add descriptive error
* Fix bug found by will
* Fix comments
* Lint
* Don't save pending write if executing only one node in step
2024-07-10 14:28:06 -07:00
Nuno Campos and GitHub
cf75003cbe
cli: Update pip install command
2024-07-09 12:31:08 +01:00
Nuno Campos and GitHub
ca4ad62762
cli: Update messaging for langsmith api key ( #884 )
...
* cli: Update messaging for langsmith api key
* Adjust
2024-06-28 14:04:43 -07:00
Nuno Campos and GitHub
5fa2172066
Update self_hosted.md ( #862 )
2024-06-27 12:32:35 -07:00
Nuno Campos and GitHub
4768bdb0c8
cli: Add back up ( #854 )
...
* Revert "cli: Reduce to test and build commands (#838 )"
This reverts commit 5697f07163 .
* Undo
* Undo
* Undo
* Fix
* Fix
* Add license key admonition
* Quote env vars
* Test
2024-06-27 09:10:21 -07:00
Nuno Campos and GitHub
c6466da098
sdk: Filter assistants by graph_id ( #843 )
2024-06-26 15:23:08 -07:00
Nuno Campos and GitHub
8d103667c8
sdk: Add support to filter threads by status ( #842 )
2024-06-26 14:44:27 -07:00
Nuno Campos and GitHub
5697f07163
cli: Reduce to test and build commands ( #838 )
...
* cli: Reduce to test and build commands
* Bump timeout
* Fix test?
* Fix
* Fix output
2024-06-26 11:53:44 -07:00
Nuno Campos and GitHub
d16ec4f436
cli: Make base image configurable in build command ( #831 )
...
* cli: Make base image configurable in build command
* Lint
* Fix
2024-06-26 09:36:09 -07:00
Nuno Campos and GitHub
b4d815e32a
Add example for context key ( #762 )
2024-06-21 18:15:56 -07:00
Nuno Campos and GitHub
99fa57666e
Add support for using Context channel in StateGraph ( #761 )
...
* Add support for using Context channel in StateGraph
* Fix handling of asynccontextmanager funcs
2024-06-21 17:49:52 -07:00
Nuno Campos and GitHub
755495af46
Merge pull request #703 from langchain-ai/nc/19jun/update-project-info
...
Update pypi info for each package
2024-06-19 08:21:30 -07:00
Nuno Campos and GitHub
4578a653c7
Merge pull request #688 from langchain-ai/vb/move-langgraph-libs
...
libs: add separate langgraph cli, sdk-py, sdk-js libraries and move core langgraph
2024-06-18 17:42:26 -07:00
Nuno Campos and GitHub
25320a45ec
Merge pull request #687 from langchain-ai/dependabot/pip/urllib3-2.2.2
...
Bump urllib3 from 2.2.1 to 2.2.2
2024-06-18 07:53:43 -07:00
Nuno Campos and GitHub
321a63b57c
Merge pull request #677 from langchain-ai/nc/14jun/add-tests-checkpointer-errors
...
Add tests to ensure checkpointer errors are not swallowed
2024-06-14 13:39:30 -07:00
Nuno Campos and GitHub
b1a3e17b67
Merge pull request #673 from langchain-ai/nc/14jun/version-all-channel-changes
...
Version all channel changes
2024-06-14 11:58:28 -07:00
Nuno Campos and GitHub
66796db3c0
Merge pull request #668 from langchain-ai/nc/13jun/configurable-next-version
...
Allow checkpointer to customize assignment of channel versions
2024-06-14 11:58:20 -07:00
Nuno Campos and GitHub
d9ab5b73cf
Merge pull request #666 from langchain-ai/nc/13jun/update-core
...
Update core and add tests for cancellation of astream and astream_events v2
2024-06-13 16:17:50 -07:00
Nuno Campos and GitHub
cc91110257
Merge pull request #663 from langchain-ai/nc/13jun/adjust-default-error-policy
...
Adjust default error policy
2024-06-13 09:24:43 -07:00
Nuno Campos
6cc375dc6a
0.0.66
2024-06-09 18:45:15 -07:00
Nuno Campos and GitHub
2a2f91eb56
Merge pull request #246 from langchain-ai/wfh/tnt-llm
...
TNT-LLM
2024-06-09 18:39:23 -07:00
Nuno Campos and GitHub
b0c448d3be
Merge pull request #528 from langchain-ai/rlm/code-gen-mistral
...
Langgraph Code Generation Example
2024-06-09 18:38:37 -07:00
Nuno Campos
1c61ec507f
Fix typo
2024-06-09 18:31:39 -07:00
Nuno Campos and GitHub
58d3645783
Merge pull request #625 from sushengloong/remove-obsolete-groups
...
Remove obsolete dependency groups from Dockerfile
2024-06-09 18:29:33 -07:00
Nuno Campos and GitHub
b8f9b5c3a0
Merge pull request #631 from langchain-ai/nc/9jun/reducer-unwrap-special-types
...
In Binop channels unwrap types before trying to instantiate
2024-06-09 18:28:53 -07:00
Nuno Campos
2095edef7a
One more
2024-06-09 18:27:14 -07:00
Nuno Campos
fbd3b63837
Fix import
2024-06-09 18:26:44 -07:00
Nuno Campos
3b4fcf6ee6
In Binop channels unwrap types before trying to instantiate
...
- this makes List/Sequence annotations behave same as list
2024-06-09 16:33:23 -07:00
Nuno Campos and GitHub
eb8e77c8d5
Merge pull request #624 from langchain-ai/vb/conditional-edges-typing
...
allow path_map keys to be non-strings in add_conditional_edges
2024-06-07 16:09:38 -07:00
Nuno Campos and GitHub
38a5ca1e20
Merge pull request #617 from langchain-ai/nc/6jun/potential-fix-for-update-state-on-triggered-barrier
2024-06-07 09:20:24 -07:00
Nuno Campos and GitHub
f9e99b12e9
Merge pull request #604 from langchain-ai/nc/5jun/checkpointer-list-filter
...
Expose filter arg in get_state_history
2024-06-05 17:18:52 -07:00
Nuno Campos and GitHub
bdd12be343
Merge pull request #601 from langchain-ai/wfh/se_to_constants
...
Move START & END to constants.py
2024-06-05 08:57:50 -07:00
Nuno Campos and GitHub
683495aceb
Merge pull request #586 from langchain-ai/nfcampos-patch-1
...
copy path_map when passed to add_conditional_edge
2024-06-04 19:54:30 -07:00
Nuno Campos and GitHub
e1d98a00d0
Update graph.py
2024-06-04 08:24:03 -07:00
Nuno Campos and GitHub
cdc3c43e36
Merge pull request #580 from langchain-ai/nc/3jun/serde-handle-unicode-issues
...
serde: Handle unicode issues when encoding
2024-06-03 16:32:14 -07:00
Nuno Campos
e1e502acfd
0.0.61
2024-06-02 14:13:53 -07:00
Nuno Campos
a5d413063e
Fix missing attr
2024-06-02 14:11:17 -07:00
Nuno Campos and GitHub
515f724876
Merge pull request #566 from langchain-ai/harrison/map-reduce-docs
...
add map reduce docs
2024-05-31 16:50:36 -07:00
Nuno Campos and GitHub
fd1faea0ce
Merge pull request #565 from langchain-ai/nc/31may/send
...
Rename Packet to Send
2024-05-31 15:22:55 -07:00
Nuno Campos and GitHub
5f3c61da98
Merge pull request #560 from langchain-ai/nc/30may/stream-updates-asap
...
For stream_mode=updates (the default) stream the output of each node as soon as that node finishes
2024-05-31 15:14:53 -07:00
Nuno Campos and Nuno Campos
81a5720dd0
Add missing metadata
2024-05-31 13:30:05 -07:00
Nuno Campos and GitHub
48f75699b0
Merge pull request #559 from langchain-ai/nc/30may/debug-checkpoint-metadata
...
Add metadata to debug/checkpoint stream events
2024-05-31 13:25:09 -07:00
Nuno Campos and GitHub
1462b5e6b0
Merge pull request #557 from langchain-ai/nc/30may/map-reduce
...
Implement map-reduce api for StateGraph/Pregel
2024-05-31 13:24:36 -07:00
Nuno Campos and GitHub
ff67b99b19
Merge pull request #556 from langchain-ai/nc/30may/rm-uuid6-dep
...
Bundle in uuid6 func due to install issues with uuid6 library
2024-05-30 11:20:02 -07:00
Nuno Campos and GitHub
306f5a75e5
Merge pull request #555 from langchain-ai/nc/30may/return-state-model
...
Support returning non-dict objects as state updates from nodes
2024-05-30 08:43:36 -07:00
Nuno Campos and GitHub
978d7aa539
Merge pull request #554 from langchain-ai/nfcampos-patch-1
...
Update ci rules
2024-05-30 08:10:39 -07:00
Nuno Campos
c820c75caa
Update test.yml
2024-05-30 08:08:46 -07:00
Nuno Campos
cd7c8d4bdd
Update ci rules
2024-05-30 08:08:46 -07:00
Nuno Campos and GitHub
27b98581a6
Merge pull request #550 from langchain-ai/nc/29may/allow-more-annotations
...
Use the last annotation as the reducer
2024-05-29 18:22:11 -07:00
Nuno Campos
4893a24756
0.0.56
2024-05-29 07:15:11 -07:00
Nuno Campos
1ce8a16e1c
Change pydantic detection
2024-05-29 07:14:07 -07:00
Nuno Campos and GitHub
53e7fab49f
Merge pull request #548 from langchain-ai/wfh/better_error
...
More Descriptive TypeError
2024-05-29 06:42:17 -07:00
Nuno Campos and GitHub
070b7965ca
Merge pull request #526 from langchain-ai/nc/22may/multi-stream-mode
...
Add support for requesting multiple stream modes in same stream/astream call
2024-05-22 13:17:54 -07:00
Nuno Campos and GitHub
c32b2c0bb7
Merge pull request #519 from langchain-ai/nc/21may/extend-root-state
...
Add support and tests for using messagegraph checkpoints on a stategraph with 1 __root__ key other keys
2024-05-22 09:15:54 -07:00
Nuno Campos and GitHub
d79017b653
Merge pull request #508 from langchain-ai/nc/20may/add-checkpoint-state-methods
...
Expose checkpoint timestamp in get/update/list state methods
2024-05-20 16:29:02 -07:00
Nuno Campos and GitHub
f20863ddbf
Merge pull request #506 from langchain-ai/nc/20may/fix-stream-v2
...
Add compat with stream_events v2
2024-05-20 13:44:22 -07:00
Nuno Campos and GitHub
e33e4a64f9
Merge pull request #499 from langchain-ai/wfh/warn
2024-05-20 09:46:43 -07:00
Nuno Campos and GitHub
01340928f9
Merge pull request #489 from andrewnguonly/few-shot-filter
...
Add support for passing `Callable` metadata filter to `FewShotExamples` managed value
2024-05-20 08:47:08 -07:00
Nuno Campos and GitHub
997bc8dc3a
Merge pull request #488 from langchain-ai/nc/17may/lc-20
...
Nc/17may/lc 20
2024-05-17 14:48:17 -07:00
Nuno Campos and GitHub
fb8868b710
Merge pull request #487 from andrewnguonly/sqlite-wal
2024-05-17 11:41:42 -07:00
Nuno Campos and GitHub
920978c4ab
Merge pull request #484 from langchain-ai/nc/16may/retry-policy
...
Add retry_policy for graphs
2024-05-16 18:10:32 -07:00
Nuno Campos and GitHub
f03930ad36
Merge pull request #454 from langchain-ai/nc/add-node-single-arg
...
Add single arg overload for add_node, which takes function/runnable's…
2024-05-16 10:59:23 -07:00
Nuno Campos and GitHub
835c411148
Merge pull request #453 from langchain-ai/nc/14may/checkpoint-id-uuid6
...
Use uuid6 as the id for checkpoints
2024-05-14 17:00:02 -07:00
Nuno Campos and GitHub
9a43234ae5
Merge pull request #451 from langchain-ai/nc/14may/small-fixes-ii
...
More small fixes following JS impl
2024-05-14 16:29:09 -07:00
Nuno Campos and GitHub
a694aaa2bb
Merge pull request #444 from langchain-ai/an/10may/few-shot-clone
...
Add `FewShotExamples` managed value (redo)
2024-05-14 15:35:48 -07:00
Nuno Campos and GitHub
46e173c189
Merge pull request #448 from langchain-ai/nc/14may/debug-output-include-task-idx-in-task-id
...
debug: Include task index in task id
2024-05-14 13:38:02 -07:00
Nuno Campos and GitHub
d8af81312a
Merge pull request #447 from langchain-ai/nc/14may/small-fixes
...
Fix memory checkpointer list/alist
2024-05-14 11:24:04 -07:00
Nuno Campos and GitHub
6b5b653c2f
Merge pull request #442 from langchain-ai/nc/13may/small-fixes
...
Small fixes while migrating JS
2024-05-14 10:13:28 -07:00
Nuno Campos and GitHub
63586d86fc
Update tool_condition to match default ToolNode name
2024-05-13 18:58:20 -07:00
Nuno Campos and GitHub
8c7502fe1b
Merge pull request #430 from langchain-ai/harrison/expose-messages-state
...
add messages state
2024-05-10 17:09:37 -07:00
445a110917
Add managed values and IsLastStep ( #330 )
...
* Add managed values and IsLastStep
- managed values are read-only state keys whose values are managed by langgraph
- this PR implements one: IsLastValue, a boolean which is True in the last iteration, eg to allow you to return a nice "ran out of iterations" message to user
* Fix
* Fix some issues
* py39
* Break ref
* Fix types
* Fix
* Fix
* Update state.py
* Don't mutate dictionary while using it in for loop.
---------
Co-authored-by: Andrew Nguonly <andrewnguonly@gmail.com >
2024-05-10 13:44:20 -07:00
Nuno Campos and GitHub
b33aed6f67
Merge pull request #427 from langchain-ai/nc/9may/checkpoint-metadata-writes
...
Add writes property in checkpoint metadata
2024-05-10 10:01:52 -07:00
Nuno Campos and GitHub
cdde575c53
Merge pull request #423 from langchain-ai/nc/8may/test-update-empty-thread
...
Add tests for calling update on an empty thread
2024-05-08 10:45:23 -07:00
Nuno Campos and GitHub
f883e8242e
Merge pull request #422 from langchain-ai/wfh/irrelevant
...
Rm irrelevant comment
2024-05-08 10:44:49 -07:00
Nuno Campos and GitHub
7463c6fd44
Merge pull request #421 from langchain-ai/nfcampos-patch-1
...
Test in python 3.12
2024-05-08 08:53:27 -07:00
Nuno Campos and GitHub
1f374ebb52
Test in python 3.12
2024-05-08 08:13:54 -07:00
Nuno Campos and GitHub
6d5ba331be
Merge pull request #416 from langchain-ai/nfcampos-patch-1
...
Update README.md
2024-05-07 13:11:47 -07:00
Nuno Campos and GitHub
b00a233174
Update README.md
2024-05-07 13:10:22 -07:00
Nuno Campos and GitHub
65dcba2e2a
Merge pull request #411 from langchain-ai/nc/7may/fix-recursion-issue
...
Fix recursion check
2024-05-07 08:33:27 -07:00
Nuno Campos and GitHub
9d56669ffa
Merge pull request #412 from langchain-ai/nc/7may/errors-module
...
Export all exceptions from langgraph.errors
2024-05-07 08:33:17 -07:00
Nuno Campos and GitHub
5bee63c7d5
Merge pull request #387 from langchain-ai/nc/3may/checkpoint-metadata
...
Add metadata to checkpoints, checkpoint inputs before first step
2024-05-06 14:41:29 -07:00
Nuno Campos and GitHub
d1b0be8620
Merge pull request #401 from langchain-ai/dependabot/pip/jinja2-3.1.4
...
Bump jinja2 from 3.1.3 to 3.1.4
2024-05-06 12:22:27 -07:00
Nuno Campos and GitHub
8027d21b4c
Merge pull request #386 from langchain-ai/nc/3may/test-draw-cyclical-edge
...
Add (failing) test for drawing cyclic edge
2024-05-06 12:22:16 -07:00
Nuno Campos and GitHub
a307fc9fc4
Merge pull request #384 from langchain-ai/wfh/markdown_link_relaaaaax
...
Markdown Link Check only on changed files
2024-05-03 12:41:02 -07:00
Nuno Campos and GitHub
4b15a307f8
Merge pull request #382 from langchain-ai/nc/26apr/fix-aiosqlite
...
Use a lock to fix aiosqlite checkpointer running setup multiple times if called in parallel
2024-05-03 12:01:15 -07:00
Nuno Campos and GitHub
01860d6a73
Merge pull request #380 from langchain-ai/nc/3may/state-graph-prefer-pydantic-io-schema
...
StateGraph: use state schema as input/output schema if already a pydantic model
2024-05-03 11:03:49 -07:00
Nuno Campos and GitHub
3ae17e9dd1
Merge pull request #379 from langchain-ai/nc/3may/checkpoint-end-of-step-costfree
...
Make end-of-step chckpointing costfree
2024-05-03 11:00:56 -07:00
Nuno Campos and GitHub
47d057557c
Merge pull request #378 from langchain-ai/nc/3may/state-history-pagination
...
Implement cursor pagination for get_state_history (time travel endpoint)
2024-05-03 11:00:24 -07:00
Nuno Campos and GitHub
bdea491801
Merge pull request #377 from langchain-ai/nc/3may/config-schema
...
Optional 2nd arg to StateGraph with config schema
2024-05-03 10:08:05 -07:00
Nuno Campos and GitHub
740011efa6
Merge pull request #376 from langchain-ai/harrison/configuration-branch
...
add how-to notebook for configuration
2024-05-03 10:01:19 -07:00
Nuno Campos and GitHub
8ec1d2e3e9
Merge pull request #363 from langchain-ai/harrison/add-args
...
Harrison/add args
2024-05-02 15:49:21 -07:00
Nuno Campos and GitHub
7d3133b239
Merge pull request #370 from langchain-ai/nc/30apr/stream-mode-debug
...
Implement stream_mode=debug
2024-04-30 16:54:37 -07:00
Nuno Campos and GitHub
49c95cefcf
Merge pull request #369 from langchain-ai/nc/30apr/test-async-cancellation
...
Add tests for async cancellation
2024-04-30 14:37:56 -07:00
Nuno Campos and GitHub
14a256919d
Merge pull request #368 from langchain-ai/dqbd/pregel-serializable
...
feat(pregel): mark graph as serializable
2024-04-30 13:58:02 -07:00
Nuno Campos and GitHub
d042f0d5fe
Merge pull request #367 from langchain-ai/nc/30apr/interrupt-before-all
...
Implement interrupt_before=* and interrupt_after=*
2024-04-30 13:19:02 -07:00
Nuno Campos and GitHub
c293d3d71d
Merge pull request #366 from langchain-ai/nc/30apr/pregel-no-implicit-channels
...
Pregel: Remove implicit creation of channels referenced by nodes
2024-04-30 10:06:14 -07:00
Nuno Campos and GitHub
f6d332beb9
Merge pull request #362 from langchain-ai/nc/29apr/support-cond-edge-list-literal
...
For cond edges support specifying list of possible destinations as a list or typing annotation
2024-04-30 08:56:05 -07:00