Nuno Campos and GitHub
cf7f6691cf
Improve typings for task, it now returns a mixed sync/async future protocol ( #3186 )
...
- note this type is never instantiated, it is only used for typing (we
cannot make it a protocol as it inherits from concurrent.futures.Future)
2025-01-24 09:19:51 -08:00
Vadym Barda and GitHub
e1140f4fad
ci: always test notebooks on all library versions ( #3191 )
2025-01-23 22:26:32 -05:00
Eugene Yurtsev and GitHub
ae8afb7677
reference: document entrypoint more ( #3189 )
...
add more documentation to the entrypoint primitive
2025-01-23 22:17:20 -05:00
Vadym Barda and GitHub
48040d8ea5
ci: run notebooks in 'development' for PRs ( #3188 )
2025-01-23 21:59:03 -05:00
Vadym Barda and GitHub
ad51bfdf71
ci: only test changed notebooks using 'development' version of the library ( #3187 )
2025-01-23 21:41:47 -05:00
Nuno Campos
996b120613
Undo
2025-01-23 16:59:27 -08:00
Nuno Campos
1093dd55c8
Improve typings for task, it now returns a mixed sync/async future protocol
...
- note this type is never instantiated, it is only used for typing (we cannot make it a protocol as it inherits from concurrent.futures.Future)
2025-01-23 16:57:34 -08:00
Nuno Campos and GitHub
d794875b32
Undo change to test watch mode ( #3184 )
2025-01-23 16:54:03 -08:00
Nuno Campos
6948cf5eb8
Undo change to test watch mode
2025-01-23 16:18:53 -08:00
Nuno Campos and GitHub
bacc2955ae
Remove implementation of get_graph for @entrypoint ( #3183 )
2025-01-23 15:48:22 -08:00
Nuno Campos
f014d96d1c
Remove implementation of get_graph for @entrypoint
2025-01-23 15:39:36 -08:00
Radi and GitHub
7b552ebf4b
Update tool-calling.ipynb ( #3178 )
...
Typo fix
2025-01-23 18:02:43 -05:00
Vadym Barda and GitHub
1e61ddfdbe
langgraph: release 0.2.67 ( #3182 )
0.2.67
2025-01-23 18:01:43 -05:00
Vadym Barda and GitHub
d34846dc08
docs: fix a hub prompt ( #3180 )
2025-01-23 17:21:37 -05:00
Vadym Barda and GitHub
06823e327f
langgraph: update docstrings/api ref for functional api ( #3176 )
2025-01-23 16:48:55 -05:00
Vadym Barda and GitHub
1059ef55d1
langgraph: handle node return annotations with unions ( #3170 )
2025-01-23 14:41:22 -05:00
39552255c8
langgraph: add support for BaseModel updates to Command ( #2747 )
...
Simple update that adds support for the `update` attribute of the
`Command` class to support Pydantic `BaseModel` type.
LangGraph already supports [Pydantic models for graph
states](https://langchain-ai.github.io/langgraph/how-tos/state-model/ ).
Extending support to the `update` attribute allows users to pass custom
BaseModel instances. Additionally, updates defined as `BaseModel` types
are type-validated when created.
https://github.com/langchain-ai/langgraph/issues/2804
---------
Co-authored-by: vbarda <vadym@langchain.dev >
2025-01-23 14:31:44 -05:00
Vadym Barda and GitHub
38bbe67469
langgraph: remove print ( #3167 )
2025-01-23 11:24:18 -05:00
Nuno Campos and GitHub
6335963674
Make scratchpad counters thread-safe ( #3158 )
...
- Same solution as used in python stdlib to name threads and asyncio
tasks
2025-01-23 07:37:04 -08:00
Nuno Campos
8a4c452317
Make test less flaky
2025-01-23 07:27:34 -08:00
Eugene Yurtsev and GitHub
5dc5853161
Add entrypoint.final to decouple return value from save value ( #3135 )
...
* Introduce `entrypoint.final` that allows decoupling what's returned
from the state update.
* moving decorator to class object w/ call to support defining `final`
as a property on it -- this should play nicely w/ IDE tooling / type
checking.
```python
previous_ = None
@entrypoint(checkpointer=MemorySaver())
def foo(msg: str, *, previous: Any) -> entrypoint.final[int, list[str]]:
nonlocal previous_
previous_ = previous
previous = previous or []
return entrypoint.final(value=len(previous), save=previous + [msg])
assert foo.get_output_schema().model_json_schema() == {
"title": "LangGraphOutput",
"type": "integer",
}
config = {"configurable": {"thread_id": "1"}}
assert foo.invoke("hello", config) == 0
assert previous_ is None
assert foo.invoke("goodbye", config) == 1
assert previous_ == ["hello"]
assert foo.invoke("definitely", config) == 2
assert previous_ == ["hello", "goodbye"]
```
2025-01-23 10:18:23 -05:00
Vadym Barda and GitHub
9e066554ba
langgraph: allow async state modifier in create_react_agent ( #3161 )
...
Fixes https://github.com/langchain-ai/langgraph/issues/2875
2025-01-23 09:29:25 -05:00
Nuno Campos
211fd4337d
Undo
2025-01-22 16:44:13 -08:00
Nuno Campos
44bf97ac0e
Fix
2025-01-22 16:32:59 -08:00
Nuno Campos
23c73ae719
Update tests
2025-01-22 16:30:43 -08:00
Nuno Campos and GitHub
4165d479e9
langgraph: add test for interrupting multiple times from a task ( #3148 )
2025-01-22 16:25:03 -08:00
Nuno Campos
c43a9a4bd0
Make scratchpad counters thread-safe
...
- Same solution as used in python stdlib to name threads and asyncio tasks
2025-01-22 16:07:59 -08:00
Nuno Campos
c9613927dc
Lint
2025-01-22 16:05:34 -08:00
Nuno Campos
c697c2aa04
Undo
2025-01-22 16:02:09 -08:00
Nuno Campos
3f2557c9c9
Fix
2025-01-22 16:02:09 -08:00
Nuno Campos
cbad17fa7d
Fix
2025-01-22 16:02:09 -08:00
Nuno Campos
17dacb83a2
Fix
2025-01-22 16:02:09 -08:00
Nuno Campos
3a997be088
Fix
2025-01-22 16:02:09 -08:00
Chester Curme and Nuno Campos
020d10138d
add test case
2025-01-22 16:02:09 -08:00
Vadym Barda and GitHub
303587c4ff
docs: bring back image for concept doc ( #3152 )
2025-01-22 16:08:24 -05:00
Andrew Nguonly and GitHub
7d4e636313
docs: Add note about how to share Postgres instance for self-hosted deployments ( #3139 )
...
### Screenshot

2025-01-22 12:14:24 -08:00
Lance Martin and GitHub
86913caf89
Add agents and workflows overview ( #3040 )
2025-01-22 12:07:47 -08:00
Nuno Campos and GitHub
041faefe29
Remove write to RETURN channel for entrypoint func ( #3149 )
2025-01-22 11:46:14 -08:00
Nuno Campos
b704cf30cc
Lint
2025-01-22 11:34:30 -08:00
Nuno Campos
3915b44180
Format
2025-01-22 11:32:09 -08:00
Nuno Campos
ac1407b23c
Remove write to RETURN channel for entrypoint func
2025-01-22 09:44:52 -08:00
Vadym Barda and GitHub
44840aa23f
docs: add missing api key to cross-thread persistence howto ( #3141 )
2025-01-21 21:24:01 -05:00
Vadym Barda and GitHub
51242e2a32
ci: pin codespell ( #3140 )
2025-01-21 21:22:23 -05:00
Vadym Barda and GitHub
b358e2e7cd
docs: fix typo in persistence howto ( #3138 )
2025-01-21 21:03:00 -05:00
Nuno Campos and GitHub
0d91ab1474
Disable recursing on runnables for task/entrypoint decorated funcs ( #3136 )
2025-01-21 15:47:51 -08:00
Nuno Campos
12ae297194
Disable recursing on runnables for task/entrypoint decorated funcs
2025-01-21 15:36:09 -08:00
Nuno Campos
0177565c6b
Spell check
2025-01-21 15:14:00 -08:00
Bhavya Dhiman and GitHub
c48d495031
fix(requirements.txt): Set requirements path to posix expression so that it can work in windows OS as well. ( #3101 )
...
When I cloned langgraph example, I was not able to run the code because
of the requirements.txt file. The path was set to posix expression which
was not working in windows OS.
I have updated the path to posix expression so that it can work in
windows OS as well.
Try running `langgraph-example` in windows using the langgraph-cli in
windows OS. It was working for linux not in windows.
2025-01-21 14:30:13 -05:00
Vadym Barda and GitHub
22e6468af5
langgraph: release 0.2.66 ( #3128 )
0.2.66
2025-01-21 13:26:29 -05:00
ccurme and GitHub
24bc0c0630
docs: update readme / docs intro page ( #3082 )
2025-01-21 13:19:30 -05:00