Commit Graph
1473 Commits
Author SHA1 Message Date
ZeelandandGitHub 9c0f9fdb31 Add graph for hierarchical agent teams (#458) 2024-05-15 10:55:31 -07:00
William FHandGitHub 4f8346df35 Handle Async Callable (#457) 2024-05-15 10:54:53 -07:00
William FHandGitHub 6774ac1db2 update footer (#456) 2024-05-14 18:55:34 -07:00
Nuno Campos 6f888b6206 Add single arg overload for add_node, which takes function/runnable's name as the node name 2024-05-14 17:51:25 -07:00
Nuno CamposandGitHub 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 52b2c755d7 Use uuid6 as the id for checkpoints
- this avoids conflicts if multiple processes creating checkpoints in same thread at same time
- uuid6 with a monotically increasing clock_seq is sortable by creation time at ms precision (plus clock_seq for ties, plus 48 bits of randomness for further ties)
2024-05-14 16:56:25 -07:00
William FHandGitHub 72cb4bac1b Migrate langchain deps (#452) 2024-05-14 16:48:21 -07:00
Nuno Campos 77db7bf825 0.0.49 2024-05-14 16:32:33 -07:00
Nuno CamposandGitHub 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 a909d90b08 More small fixes following JS impl 2024-05-14 15:36:38 -07:00
Nuno CamposandGitHub 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
Andrew Nguonly 3f325e7b0c Rename parameter for asearch() in BaseCheckpointSaver class. 2024-05-14 14:48:14 -07:00
Andrew Nguonly 306260185a Remove commented out line. 2024-05-14 14:46:07 -07:00
Andrew Nguonly 78e3a240f1 Update implementation for constructing WHERE clause for SqliteSaver so that parameter values are not hardcoded, but bound instead. 2024-05-14 14:44:59 -07:00
Nuno CamposandGitHub 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 273a836fc4 debug: Include task index in task id 2024-05-14 13:35:56 -07:00
Andrew Nguonly 6ce9a2860b Rename metadata_query to metadata_filter. 2024-05-14 12:45:16 -07:00
Andrew Nguonly 28e5d8f699 Update FewShotExamples class to support setting filter and limit params. 2024-05-14 12:41:55 -07:00
Andrew Nguonly 3f34b03ba1 Wow. Adding back extra blank line. 2024-05-14 11:38:46 -07:00
Andrew Nguonly 0093b773f0 Remove extra blank line. 2024-05-14 11:37:04 -07:00
Nuno CamposandGitHub 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
Andrew Nguonly 44c6b414c3 Update implementation of MemorySaver.asearch() to not use custom next_item() iterator function. 2024-05-14 11:23:41 -07:00
Andrew Nguonly d6d33f9551 Fix bug with WHERE clause being incorrect when passing before param. 2024-05-14 10:38:26 -07:00
Nuno Campos 0c37a17172 Fix memory checkpointer list/alist
- add tests for memory checkpointer list and alist
- fix async step counting
2024-05-14 10:37:01 -07:00
Nuno CamposandGitHub 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
William FHandGitHub 7092e230c0 Extraction with Retries (#426) 2024-05-13 23:58:40 -07:00
William FHandGitHub f146668735 Rename "action" to "tools" in tools_condition w/in docs (#445) 2024-05-13 23:41:33 -07:00
William FHandGitHub b933fcdef7 Pause linkcheck (#446) 2024-05-13 23:31:22 -07:00
Nuno CamposandGitHub 63586d86fc Update tool_condition to match default ToolNode name 2024-05-13 18:58:20 -07:00
Andrew Nguonly c80090465f Copy learning.ipynb. 2024-05-13 18:42:55 -07:00
Andrew Nguonly 065e0ff360 Remove unused imports. 2024-05-13 18:34:54 -07:00
William FHandGitHub f335105853 Update Refs to clean up syntax highlighting (#443) 2024-05-13 18:32:42 -07:00
Andrew Nguonly aae05407f4 Lint code. 2024-05-13 18:22:07 -07:00
Nuno Campos a885b1ca53 Small fixes while migrating JS 2024-05-13 17:28:06 -07:00
Andrew Nguonly 7a8cbe18f9 Implement asearch() in AsyncSqliteSaver. 2024-05-13 17:21:17 -07:00
Andrew Nguonly 9b1efe9698 Implement search() for SqliteSaver. 2024-05-13 16:59:59 -07:00
Andrew Nguonly dcb7278c56 Add search and asearch APIs to BaseCheckpointerSaver class. Implement search and asearch in MemorySaver. 2024-05-13 15:55:38 -07:00
William FHandGitHub 2c32a38c42 Use create_react_agent (#441) 2024-05-13 14:32:26 -07:00
William FHandGitHub 1100360ea6 Add comment about fetching from the frontend (#439) 2024-05-13 12:43:26 -07:00
William FHandGitHub 1f045761b6 Add meta merging in docs (#440) 2024-05-13 12:31:43 -07:00
Nuno CamposandGitHub 8c7502fe1b Merge pull request #430 from langchain-ai/harrison/expose-messages-state
add messages state
2024-05-10 17:09:37 -07:00
Harrison Chase c48d5a6160 add messages state 2024-05-10 16:53:22 -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 CamposandGitHub 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 227f409611 Add writes property in checkpoint metadata
- This adds a historic view of the actions taken by nodes inside a thread, supporting rendering a richer history of a thread (eg in debug ui)
2024-05-09 14:30:29 -07:00
William FHandGitHub 006e4df9a4 Add conceptual guide (#424) 2024-05-09 11:10:40 -07:00
Nuno Campos 5397d99b95 Fix pg connection str 2024-05-08 10:48:57 -07:00
Nuno CamposandGitHub 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 CamposandGitHub f883e8242e Merge pull request #422 from langchain-ai/wfh/irrelevant
Rm irrelevant comment
2024-05-08 10:44:49 -07:00
Nuno Campos a6c6b8211f Add tests for calling update on an empty thread
- this would eg be what you'd do in an api like openai assistants api
2024-05-08 10:43:31 -07:00