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 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
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 FH and GitHub
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 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
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
William Fu-Hinthorn
ea5d068c7e
Rm irrelevant comment
2024-05-08 10:41:35 -07:00
William FH and GitHub
3e5ea31cdc
Add Spellcheck and import hogwarts ( #419 )
2024-05-08 10:25:11 -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
William FH and GitHub
991d35be08
Update How-to Guides ( #417 )
...
- reduce the number of API keys needed (Use simple tool)
- make everything "tool use" oriented rather than split across agent executor, function calling, tool use, etc.
- Reorg navbar and index
- Fixup some docstrings
- Add more links to ref docs
- Mix up models used
- Simplify a few examples
2024-05-07 23:09:17 -07:00
William FH and GitHub
f49e8dbc98
Update Checkpoints Docstrings ( #418 )
2024-05-07 18:40:31 -07:00
Nuno Campos
eef5f0e4b2
0.0.47
2024-05-07 18:02:24 -07:00
Nuno Campos
89629bf9a0
Add fix for calling update state on empty thread
2024-05-07 17:52:46 -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
86b4703f10
Remove checkpointer check
2024-05-07 12:29:24 -07:00
William FH and GitHub
dbe10a8c99
Migrate Tool Executor to ReAct Agent ( #409 )
2024-05-07 12:23:04 -07:00
William FH and GitHub
1836367ae0
De-list Deprecated Tutorials ( #407 )
2024-05-07 09:47:26 -07:00
William FH and GitHub
5916e3e424
Note Taker ( #415 )
2024-05-07 09:37:40 -07:00
William FH and GitHub
f7ae9beef9
Update README ( #405 )
2024-05-07 09:36:04 -07:00
Nuno Campos
5fcfaf8506
0.0.46
2024-05-07 08:44:28 -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
7038d222ee
Re-export
2024-05-07 08:14:41 -07:00
Nuno Campos
e892c95194
Export all exceptions from langgraph.errors
2024-05-07 08:07:26 -07:00
Nuno Campos
f4a4b98946
Fix recursion check
2024-05-07 07:57:36 -07:00
William FH and GitHub
a1e55855fb
Update image in tutorial ( #410 )
2024-05-07 07:50:51 -07:00
William FH and GitHub
baf84599df
Update Ref Docs on Checkpointing ( #406 )
2024-05-06 23:03:17 -07:00
William FH and GitHub
b492e67046
Format notebooks ( #404 )
2024-05-06 22:01:05 -07:00
William FH and GitHub
50a0ead50d
Fixup Reflexion for Claude ( #403 )
2024-05-06 21:56:41 -07:00
William FH and GitHub
49ccfdb780
Improve Intro Tutorial ( #402 )
2024-05-06 17:41:12 -07:00
Nuno Campos
bf1989cab7
0.0.45
2024-05-06 17:06:20 -07:00
Nuno Campos
ef3a568dc1
Update core
2024-05-06 17:06:20 -07:00
Erick Friis and GitHub
cd53094f2e
update readme DAG wording
2024-05-06 16:23:13 -07:00
Nuno Campos
0502699136
Update docstrings
2024-05-06 15:14:02 -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
52852cb226
Update langchain-core
2024-05-06 12:20:20 -07:00
Nuno Campos
48865daf02
Fix checkpoint lineage for updates/resumes
2024-05-06 11:53:20 -07:00
Nuno Campos
251bd9744d
Fix lineage of maual state updates
2024-05-06 11:53:20 -07:00
Nuno Campos
48df2d1084
Add assert
2024-05-06 11:53:20 -07:00
Nuno Campos
611ecdb1cd
Checkpoint inputs before starting the first step for easier error recovery
...
- this enables easier retrying, for any error just do .invoke(None, config) no matter which step the error happened on
2024-05-06 11:53:20 -07:00
Nuno Campos
f160f82912
Add checkpoint metadata fields
...
- source: input, update or loop
- step: int
- make step counter continue from previous last step
2024-05-06 11:52:49 -07:00
Nuno Campos
3ff3def62b
Remove option to only checkpoint at end of run
...
- Now that checkpoint at end of each step adds no latency there is not point to keep this
- This will make it easier to add future features
2024-05-06 11:52:49 -07:00
Nuno Campos
f304908102
Add metadata to checkpoints
...
- not yet used in this PR
2024-05-06 11:52:49 -07:00