William Fu-Hinthorn
7f0bfdc139
Feedback
2024-12-18 14:15:54 -08:00
6b45a281c1
fix example in docs of state_schema in create_react_agent ( #2109 )
...
because in
```python
def call_model(
state: AgentState,
config: RunnableConfig,
)
...
if (
(
"remaining_steps" not in state
and state["is_last_step"]
and has_tool_calls
)
```
https://github.com/langchain-ai/langgraph/blob/c0b56bf60d84ed435609c35b0691cd0305ceae78/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py#L543
the AgentState requires is_last_step to have a default value, like
`False`, and `IsLastStep` can satisfy it.
---------
Co-authored-by: Vadym Barda <vadym@langchain.dev >
2024-12-18 11:41:52 -08:00
Bagatur and William Fu-Hinthorn
532bc71c11
langgraph[patch]: format messages in state ( #2199 )
...
Add `format` flag to `add_messages` which allows you to specify if the
contents of messages in state should be formatted in a particular way.
PR only adds support for OpenAI style contents. Helpful if you're using
different models at different nodes and want a unified messages format
to interact with when you manually update messages.
2024-12-18 11:41:52 -08:00
Nuno Campos and William Fu-Hinthorn
ef88b805a7
0.2.60
2024-12-18 11:41:52 -08:00
Nuno Campos and William Fu-Hinthorn
7e8a68f0f0
Fix
2024-12-18 11:41:52 -08:00
Nuno Campos and William Fu-Hinthorn
e20bd15580
lib: Fix incorrect default for Command.update
...
- this should not default to empty tuple, it should default to None
2024-12-18 11:41:52 -08:00
William Fu-Hinthorn
51c57cc819
[SDK] Add studio user object
2024-12-18 11:41:52 -08:00
William FH and GitHub
36fa8e0097
Update ref docs ( #2802 )
2024-12-17 11:54:32 -08:00
William Fu-Hinthorn
bcb11640a5
Update AuthContext
2024-12-17 11:46:30 -08:00
William Fu-Hinthorn
b6c3a0d0fd
Update wording
2024-12-17 11:37:25 -08:00
William Fu-Hinthorn
8c63cc1778
Add excption docs
2024-12-17 11:22:54 -08:00
William Fu-Hinthorn
6756e91ffc
Authenticate return single type
2024-12-17 11:01:54 -08:00
William Fu-Hinthorn
8a02ddd868
[CLI] Handle dependencies js up --watch
2024-12-16 16:19:23 -08:00
William Fu-Hinthorn
006305f6a8
[SDK] relax response typehint
2024-12-16 11:28:21 -08:00
Vadym Barda and GitHub
d9b7aaa5cc
langgraph: relax constraints in ToolNode Command validation ( #2778 )
2024-12-16 14:00:45 -05:00
Vadym Barda and GitHub
d2794eda0a
langgraph: relax type annotation for Command.update ( #2777 )
...
Addresses #2758 , #2747
2024-12-16 14:00:23 -05:00
William Fu-Hinthorn
343dc2d37a
[SDK] Add HTTPException type
2024-12-16 08:45:44 -08:00
William Fu-Hinthorn
77b42e0867
[CLI] Add openapi param to config
2024-12-14 07:25:14 -08:00
William Fu-Hinthorn
70f2efc9a1
Update dev
2024-12-13 17:01:01 -08:00
William Fu-Hinthorn
dbf5b4920e
[CLI] Add auth env var
2024-12-13 16:36:35 -08:00
William Fu-Hinthorn
2713082707
[SDK] Add auth types
2024-12-13 16:17:35 -08:00
Vadym Barda and GitHub
a200027cda
checkpoint: release 2.0.9 ( #2744 )
2024-12-12 15:06:54 -05:00
Nuno Campos
26c1f1ee7a
sdk-py 0.1.44
2024-12-12 11:48:20 -08:00
Nuno Campos and GitHub
cbb7348998
Merge pull request #2736 from langchain-ai/nc/12dec/sdk-command-keys
...
sdk-py: Strip out unused keys in command parameter
2024-12-12 08:18:19 -08:00
Nuno Campos
e5ea4f51c7
sdk-py: Strip out unused keys in command parameter
2024-12-12 08:10:43 -08:00
vbarda
a031f8294e
all lines
2024-12-12 11:06:45 -05:00
vbarda
7d940a4a96
lint
2024-12-12 10:58:50 -05:00
vbarda
6ae0c83c83
checkpoint: set strict_map_key=False in serde
2024-12-12 10:58:07 -05:00
Nuno Campos
1d2b50e438
Fix
2024-12-11 17:34:21 -08:00
Nuno Campos
5146c9fcdf
Disable for old py
2024-12-11 17:04:58 -08:00
Nuno Campos
e8a2f7ef92
lib: Add more tests
...
- add more unit tests (courtesy of claude)
- move tests with large assertions to separate file
2024-12-11 16:20:53 -08:00
Vadym Barda and GitHub
44cdbc781f
langgraph: release 0.2.59 ( #2725 )
2024-12-11 16:45:13 -05:00
Vadym Barda and GitHub
f642fb6545
langgraph[fix]: pass config to tools ( #2724 )
...
Fixes #2723
2024-12-11 21:43:29 +00:00
Eugene Yurtsev and GitHub
d16004c0b6
Merge branch 'main' into eugene/document_interrupt
2024-12-11 13:14:01 -05:00
Eugene Yurtsev
fdf19a5be9
x
2024-12-11 13:12:29 -05:00
Nuno Campos
2b70dba0e0
0.2.58
2024-12-10 14:09:11 -08:00
Nuno Campos and GitHub
dc0398efd1
Merge pull request #2661 from langchain-ai/nc/5dec/perf
...
lib: Performance improvements
2024-12-10 14:04:02 -08:00
Nuno Campos
30f852e7b2
Fix
2024-12-10 13:56:26 -08:00
Tat Dat Duong
7fc6c4b1fa
feat(sdk-js): bump to 0.0.32
2024-12-10 22:52:51 +01:00
Nuno Campos
7f8ec2c590
Fix
2024-12-10 13:46:45 -08:00
Nuno Campos
11e80210a2
lib: Performance improvements
...
- don't create contextvars.Context/asyncio.Task in RunnableSeq (not needed as each step creates it if necessary)
- don't run in-memory-saver methods in background threads (no point as they hold the gil)
- avoid calling should_interrupt when no interrupts set
2024-12-10 11:40:24 -08:00
Nuno Campos
a7ac9ffd4e
Update test
2024-12-10 11:31:41 -08:00
Eugene Yurtsev and Nuno Campos
7cabc0a3dc
reformat
2024-12-10 11:04:07 -08:00
Eugene Yurtsev and Nuno Campos
f9cdfd3ac4
x
2024-12-10 11:03:56 -08:00
Eugene Yurtsev and Nuno Campos
dd778f8ed6
qxqx
2024-12-10 11:03:56 -08:00
Nuno Campos
df5d08f689
Fix
2024-12-10 11:03:01 -08:00
Nuno Campos
a9b94f93ee
Update again
2024-12-10 11:03:01 -08:00
Nuno Campos
5f869b9e75
Update test
2024-12-10 11:03:01 -08:00
Nuno Campos
79562f3f37
lib: Add support for invoke(Command(goto=<str>))
2024-12-10 11:03:01 -08:00
Nuno Campos
081b2cbdcf
Fix
2024-12-10 11:01:25 -08:00