David Duong and GitHub
0269dd8818
release(langgraph): 0.4.1 ( #4480 )
2025-04-30 20:24:48 +02:00
Tat Dat Duong
91e9f12b54
release(sdk-js): 0.0.72
2025-04-30 20:19:30 +02:00
Tat Dat Duong
5779d9079f
release(langgraph): 0.4.1
2025-04-30 20:18:25 +02:00
David Duong and GitHub
e02c4b06db
feat(ui): add merge option to UI messages ( #4473 )
...
- Add docs about (partial) streaming UI components from LLMs
- Add missing support for "nostream" in LangGraph
2025-04-30 20:15:57 +02:00
Tat Dat Duong
be1af772f5
Fix lint
2025-04-30 20:04:48 +02:00
Tat Dat Duong
b3371a1d63
Add missing "nostream" support
2025-04-30 19:50:14 +02:00
Tat Dat Duong
5804e788d8
Add docs
2025-04-30 19:46:14 +02:00
Sydney Runkle and GitHub
49c10a9188
packaging: removing pydantic v1 support ( #4448 )
...
Also moving over any logic from `langchain-core` to here as we slowly
drop `langchain-core` dependency.
Pydantic v1 is no longer undergoing active maintenance and v2 has been
out for almost 2 years, so it seems like an appropriate time to drop v1
scar tissue.
2025-04-30 09:10:47 -04:00
Tat Dat Duong
1b6e12ef14
feat(ui): add merge option to UI messages
2025-04-30 11:52:47 +02:00
Tat Dat Duong
20b9b8b1d7
release(sdk): Python 0.1.64 & JS (0.0.71)
2025-04-30 10:33:52 +02:00
William Fu-Hinthorn
91de85a8e6
fix test
2025-04-29 15:55:54 -07:00
Tat Dat Duong
d0a70a15a8
fix(sdk-js): avoid sending run metadata in UI messages
2025-04-30 00:34:22 +02:00
Sydney Runkle
ef1e1659c6
conditional for config
2025-04-29 18:22:18 -04:00
Sydney Runkle
c712e09fbc
conditional for config
2025-04-29 18:17:33 -04:00
Vadym Barda and GitHub
e25dde1df0
docs(reference): filter class methods and add missing docstrings ( #4463 )
2025-04-29 21:31:57 +00:00
d86d0a9311
fix(langgraph): missing conditional edge on get_graph() ( #4458 )
...
Co-authored-by: Nuno Campos <nuno@langchain.dev >
2025-04-29 19:49:48 +00:00
Sydney Runkle
80dca9b9a5
removing remaining v1 logic
2025-04-29 15:11:37 -04:00
Vadym Barda and GitHub
ea55c2d468
docs: simplify docstring / API reference for create_react_agent ( #4457 )
2025-04-29 18:52:43 +00:00
Sydney Runkle
da0994b741
removing langchain-core pydantic utilities
2025-04-29 14:31:28 -04:00
Sydney Runkle
64cfbb0d02
remove v1 test
2025-04-29 13:51:45 -04:00
David Duong and GitHub
9ffa6371e0
feat(sdk-js): add onLangChainEvent and onDebugEvent to useStream ( #4453 )
2025-04-29 15:40:09 +02:00
David Duong and GitHub
4d1e5ab71f
feat(sdk-js): pass the client instead of apiKey/apiUrl ( #4452 )
2025-04-29 15:38:47 +02:00
Tat Dat Duong
8ad5331c89
feat(sdk-js): add onLangChainEvent and onDebugEvent to useStream
2025-04-29 15:34:03 +02:00
Tat Dat Duong
cc62a9fa33
feat(sdk-js): pass the client instead of apiKey/apiUrl
2025-04-29 15:17:55 +02:00
Sydney Runkle
e99028cfc6
what would it look like to remove pydantic v1 support?
2025-04-28 21:44:17 -04:00
Sydney Runkle
6250b364f7
version bumps and locks
2025-04-28 17:39:20 -04:00
Sydney Runkle
2bf8e690b0
test + bug fix
2025-04-28 15:41:37 -04:00
Nuno Campos and GitHub
78581b80c2
Support multiple resume values with Command.resume ( #4406 )
...
* Adding support for mapping interrupt ids -> resume values with the
`Command.resume_map` argument, like:
```py
resume_map = {
i.interrupt_id: f"human input for prompt {i.value}"
for i in parent_graph.get_state(thread_config).interrupts
}
parent_graph.invoke(Command(resume=resume_map), config=thread_config)
```
* Adds an `interrupts` attribute on `StateSnapshot` so that we can
access that directly rather than having to do
`get_state(thread_config).tasks` and then iterate over tasks to find
interrupts
* Deprecates undocumented feature where (if interrupting a graph from
the level of an interrupt), you could pass a dict mapping task ids ->
resume values. Now we recommend and endorse the `interrupt_id` approach
above.
I'll note, from an internal perspective, I would love if we didn't have
to pass around this map, but it seems like the best way right now to
make the necessary resume information necessary at different levels in a
graph with subgraphs.
Fix https://github.com/langchain-ai/langgraph/issues/4028
Slotted to be included in our v0.4.0 release early next week!
2025-04-28 09:06:58 -07:00
Sydney Runkle
5fee0d9d66
skip yielding interrupt if input was a map
2025-04-28 11:47:51 -04:00
William FH and GitHub
67aeba6210
Add schema updates for the configurable headers ( #4437 )
2025-04-28 15:10:07 +00:00
Sydney Runkle
dbf1c28ccd
lint
2025-04-28 10:22:30 -04:00
Sydney Runkle
cb25ef985d
update loop to append mapped tasks to task specific values
2025-04-28 10:18:39 -04:00
Sydney Runkle and GitHub
2f49ebfd53
packaging: Remove Python Upper Bounds ( #4416 )
...
A few notes:
* We shouldn't be using `tool.poetry.dependencies`, that's deprecated -
waiting for a future PR to address this big change though.
* We should remove upper bounds for all deps unless strictly necessary.
2025-04-28 10:03:43 -04:00
Tat Dat Duong
a44d822cd3
feat(js): add message-specific fallback UI components
2025-04-28 12:03:58 +02:00
Tat Dat Duong
28d884b37a
fix(sdk-js): remove client-only bootstrapping warning
2025-04-28 11:52:26 +02:00
William FH and GitHub
d7a0da8f06
checkpointer: Enter stack for blobs dict in InMemorySaver ( #4419 )
2025-04-26 13:57:36 -07:00
Sydney Runkle
5e9bea5134
no upper bounds for python
2025-04-25 17:45:54 -07:00
Sydney Runkle and GitHub
5ddc24ba85
Merge branch 'main' into multi-resumes
2025-04-25 17:05:35 -07:00
Sydney Runkle
0362840d0b
revert debugging note"
...
"
2025-04-25 17:00:26 -07:00
Sydney Runkle
44099d27c8
fixing tests
2025-04-25 16:53:37 -07:00
Nuno Campos and GitHub
8951d162f0
Improve logic for drawing virtual end node ( #4409 )
...
- Don't draw unexpected edges to END node
- If a conditional edge has a custom label for END node then draw it
2025-04-25 15:45:12 -07:00
Nuno Campos
d90126b34e
Fix
2025-04-25 15:38:41 -07:00
Nuno Campos
6d70559618
Upgrade
2025-04-25 15:17:06 -07:00
Nuno Campos
70afd2dc2c
Update all
2025-04-25 15:11:32 -07:00
Nuno Campos
460edde3a7
Lint
2025-04-25 14:37:53 -07:00
Nuno Campos
34d591dedf
Improve logic for drawing virtual end node
...
- Don't draw unexpected edges to END node
- If a conditional edge has a custom label for END node then draw it
2025-04-25 14:37:53 -07:00
Sydney Runkle
50449af1a9
add convenient interrupt access to StateSnapshot
2025-04-24 14:52:54 -07:00
Sydney Runkle
c2fa33e055
linting etc
2025-04-24 13:28:29 -07:00
Sydney Runkle
644a6c3b63
use resume instead of resume_map and deprecate old mapping task_id -> resume logic
2025-04-24 13:26:01 -07:00
Sydney Runkle
b6963d35aa
multi hitl with new hash pattern
2025-04-24 11:21:25 -07:00