William FH and GitHub
7e267897c9
Update auth file paths in build/up ( #3231 )
cli==0.1.70
2025-01-29 05:09:10 -08:00
Andrew Nguonly and GitHub
d279902156
docs: Add LangSmith Integration section for Cloud SaaS concepts ( #3230 )
2025-01-28 13:27:51 -08:00
Eugene Yurtsev and GitHub
440158b969
Update functional_api.md ( #3227 )
2025-01-28 17:57:01 +00:00
0cf3a64d66
Do not inject args in RunnableCallable if arg already exists ( #3185 )
...
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
2025-01-28 12:48:33 -05:00
Vadym Barda and GitHub
953e2907d4
docs: remove MessageGraph from concepts doc ( #3226 )
2025-01-28 10:16:54 -05:00
Vadym Barda and GitHub
0a861815b7
docs: replace 'state_modifier' with 'prompt' ( #3190 )
2025-01-28 02:51:40 +00:00
Eugene Yurtsev and GitHub
928126f2d7
docs: functional api concepts paraphrase ( #3223 )
2025-01-27 21:26:13 -05:00
Vadym Barda and GitHub
0d8fea847a
langgraph: release 0.2.68 ( #3224 )
0.2.68
2025-01-27 21:08:06 -05:00
Eugene Yurtsev and GitHub
b4dc3a851f
functional api: remove generator support ( #3220 )
...
Remove generator support in entrypoint.
2025-01-27 19:42:35 -05:00
Vadym Barda and GitHub
7568862013
langgraph: more unittests for functional API ( #3221 )
2025-01-28 00:41:15 +00:00
Andrew Nguonly and GitHub
69dc5f326e
docs: Add section for Automatic Deletion of LangGraph Cloud SaaS deployments ( #3222 )
2025-01-27 15:42:36 -08:00
90f1e66748
docs: functional api ( #3125 )
...
* Concepts page for the functional API
* How-to guides that show functional API implementations
* API reference for entrypoint, task, entrypoint.final
* Add functional API version to the workflows
---------
Co-authored-by: Vadym Barda <vadym@langchain.dev >
Co-authored-by: ccurme <chester.curme@gmail.com >
2025-01-27 16:31:43 -05:00
Vadym Barda and GitHub
a910a1a341
langgraph: actually fix flaky test ( #3219 )
2025-01-27 16:06:31 -05:00
Vadym Barda and GitHub
554e763994
langgraph: use 'prompt' param for model input preprocessing in create_react_agent ( #3173 )
2025-01-27 19:03:01 +00:00
Vadym Barda and GitHub
adff1df813
langgraph: fix flaky test ( #3218 )
2025-01-27 13:11:17 -05:00
Vadym Barda and GitHub
64b828def6
langgraph: handle task naming for reused class methods ( #3216 )
2025-01-27 17:05:39 +00:00
Jacob Lee and GitHub
9196cc2da8
docs: Fix broken links in README ( #3211 )
2025-01-27 09:15:17 -05:00
David Duong and GitHub
e13a8bc320
fix: missing pgvector in CLI ( #3165 )
...
Fixes https://github.com/langchain-ai/langgraph/issues/3164
cli==0.1.69
2025-01-25 04:27:42 +01:00
Tat Dat Duong
4b5b309152
Bump to 0.1.69
2025-01-25 04:18:18 +01:00
Tat Dat Duong
9d5166a0d3
Fix tests
2025-01-25 04:16:52 +01:00
Nuno Campos and GitHub
5b11683f4e
Fix type hints for entrypoint decorator ( #3198 )
2025-01-24 15:07:21 -08:00
Vadym Barda and GitHub
3fae8d47c3
langgraph: handle more callable types in tasks ( #3203 )
2025-01-24 22:50:42 +00:00
Nuno Campos
be9cb03dfa
Lint
2025-01-24 13:51:16 -08:00
Vadym Barda and GitHub
6926c4bcc0
langgraph: add names for tasks ( #3202 )
2025-01-24 21:42:54 +00:00
Nuno Campos
c04802a344
Fix type hints for entrypoint decorator
2025-01-24 09:31:27 -08:00
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
Tat Dat Duong
6ce9354ee4
fix: missing pgvector in CLI
...
Fixes https://github.com/langchain-ai/langgraph/issues/3164
2025-01-23 15:27:39 +01: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