-
Notifications
You must be signed in to change notification settings - Fork 31
fix(deps): update dependency langgraph to >=0.5.1,<0.6 #826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ff21c93
to
3548a3b
Compare
3548a3b
to
48f5234
Compare
48f5234
to
fbe989e
Compare
fbe989e
to
8cc9af0
Compare
8cc9af0
to
4907ab9
Compare
4907ab9
to
bd9d3d3
Compare
bd9d3d3
to
4be3d1e
Compare
4be3d1e
to
c84af3a
Compare
c84af3a
to
6dd3d15
Compare
6dd3d15
to
47a7aa2
Compare
47a7aa2
to
1166cb7
Compare
1166cb7
to
0d54b6a
Compare
0d54b6a
to
5e40762
Compare
5e40762
to
f290eba
Compare
f290eba
to
c72e543
Compare
c72e543
to
3554a84
Compare
3554a84
to
417152c
Compare
417152c
to
cb80624
Compare
cb80624
to
565ee2d
Compare
565ee2d
to
beb86ca
Compare
beb86ca
to
359bde1
Compare
359bde1
to
4b2c71a
Compare
4b2c71a
to
95e1c5f
Compare
95e1c5f
to
6f1f17e
Compare
6f1f17e
to
168c2f2
Compare
168c2f2
to
f1461a6
Compare
f1461a6
to
8fcf0c3
Compare
8fcf0c3
to
48d2304
Compare
This PR contains the following updates:
>=0.2.20,<0.3
->>=0.5.1,<0.6
Release Notes
langchain-ai/langgraph (langgraph)
v0.5.1
Compare Source
Changes since 0.5.0
v0.5.0
Compare Source
LangGraph 0.5 – the “Getting-Ready-for-1.0” release 🎉
TL;DR – 0.5 is not a radical rewrite, but a scrub-down and tune-up of the LangGraph core.
APIs are a little stricter, you have more control over streaming, checkpoints are lighter, etc. 99 % of users can upgrade with nothing more than a
pip install --upgrade langgraph==0.5.*
.Why 0.5?
The team’s next big milestone is a 1.0 release in a few months.
To get there we needed to:
0.5 is that housekeeping release.
Headline changes
1. A leaner, stricter StateGraph
state_schema
is now mandatory.“Untyped” graphs were never shown in the docs and produced surprising runtime errors. Requiring an explicit schema fixes that class of bugs and improves static analysis.
input
/output
→input_schema
/output_schema
The old names still work but raise a deprecation warning.
New
NodeBuilder
utilityA simpler, declarative way to create nodes and attach them to channels. The old
Channel.subscribe_to
helper keeps working but will be removed in 1.0.2. Smarter streaming modes
stream_mode="debug"
is now an alias for the pair["tasks", "checkpoints"]
. You can now turn them on individually:This makes it cheaper to subscribe only to the information you need.
3. Checkpointing overhaul
Redundant keys have been dropped and per-task writes are stored directly.
Legacy “pending _sends” data is auto-migrated the first time it is loaded. Custom checkpointers continue to work unchanged.
4. Better serialization
JsonPlusSerializer
now handles NumPy arrays stored in your state (including Fortran-ordered ones) without falling back topickle
.Minor breaking changes you might notice
state_schema
required – add it if you were passing only input and output schemas instead (very rare).input
/output
renaming – rename toinput_schema
/output_schema
.PregelNode
andRunnable
, drop the latter.Nothing else should require code changes.
How to upgrade
pip install -U "langgraph>=0.5"
If you maintain a plugin / custom checkpointer, run your test suite once; the public interfaces are untouched.
What’s next?
We’re hard at work on LangGraph 1.0, chime in here with any comments, feedback or questions, we want to hear from everyone.
Detailed Changelog
MessageGraph
(#4875)"output
usage in favor ofoutput_schema
(#5095)PregelNode
's inheritance fromRunnable
(#5093)input
andoutput
in favor ofinput_schema
andoutput_schema
(#4983)pep 604
union syntax andpep 585
generic syntax (#4963)StateGraph(dict)
(#4964)retry
->retry_policy
(#4957)init
andinvoke
/stream
(#4932)state_schema
inStateGraph.__init__
(#4897)MessageGraph
(#4875)v0.4.10
Compare Source
Changes since 0.4.9
MessageGraph
(#4875)"output
usage in favor ofoutput_schema
(#5095)PregelNode
's inheritance fromRunnable
(#5093)input
andoutput
in favor ofinput_schema
andoutput_schema
(#4983)pep 604
union syntax andpep 585
generic syntax (#4963)StateGraph(dict)
(#4964)retry
->retry_policy
(#4957)init
andinvoke
/stream
(#4932)state_schema
inStateGraph.__init__
(#4897)MessageGraph
(#4875)v0.4.9
Compare Source
Changes since 0.5.0rc1
v0.4.8
Compare Source
Changes since 0.4.7
state_schema
inStateGraph.__init__
(#4897)MessageGraph
(#4875)v0.4.7
Compare Source
Changes since 0.4.6
v0.4.6
Compare Source
Changes since 0.4.5
messages
/message-tuple
stream (#4722)messages
/message-tuple
streamv0.4.5
Compare Source
Changes since 0.4.4
v0.4.4
Compare Source
Changes since 0.4.3
v0.4.3
Compare Source
Changes since 0.4.2
v0.4.2
Compare Source
Changes since 0.4.1
v0.4.1
Compare Source
langgraph 0.4.1
Summary of Changes
END
in StateGraph edges to properly terminate graph execution #4458merge
parameter #4473TAG_NOSTREAM
from "langsmith:nostream" to "nostream", maintaining backwards compatibility #4473push_ui_message
#4467Detailed Changes
langgraph.graph.state.StateGraph
END
constant inget_writes
and_control_static
functions, ensuring proper graph termination when returning toEND
#4458langgraph.graph.ui
merge
parameter topush_ui_message
function, allowing incremental updates to UI messages #4473ui_message_reducer
to support merging props from existing messages when themerge
flag is set #4473push_ui_message
by removing old metadata merging which could cause unexpected behavior #4467langgraph.constants
TAG_NOSTREAM
from "langsmith:nostream" to "nostream" #4473TAG_NOSTREAM_ALT
with the old value ("langsmith:nostream") for backward compatibility #4473langgraph.graph.schema_utils
SchemaCoercionMapper
#4448langgraph.utils.pydantic
lru_cache
for better performance #4448langgraph.channels.base.BaseChannel
v0.4.0
Compare Source
langgraph 0.4.0
Summary of Changes
"values"
stream mode #4374Detailed Changes
langgraph.types.Interrupt
interrupt_id
property that generates a unique ID for the interrupt based on its namespace #4406|
as a separator between namespace elements for better uniqueness #4406langgraph.types.StreamMode
"values"
mode emits all values including interrupts after each step #4374langgraph.types.StateSnapshot
interrupts
field to track interrupts that occurred in a step and are pending resolution #4406langgraph.types.Command
resume
parameter to support mapping interrupt IDs to resume values #4406resume
parameter #4406langgraph.pregel.Pregel
invoke
andainvoke
methods to properly collect and handle interrupts in streamed output #4374"values"
and"updates"
stream modes #4374langgraph.graph.branch.Writer
langgraph.pregel.loop.PregelLoop
langgraph.pregel.draw
add_edge
utility function to prevent duplicate edges in graph visualization #4409v0.3.34
langgraph 0.3.34
Summary of Changes
Detailed Changes
langgraph.pregel.algo.prepare_single_task
langgraph.pregel.loop.PregelLoop
_output_writes
to check task path context before emitting interrupts #4389path[0] == PUSH
andpath[-1] is True
(indicating a call context), interrupts are not emitted as they'll be handled by the parentlanggraph.pregel.read.PregelNode
copy
method to properly drop cached properties when copying nodes #4389flat_writers
,node
, andinput_cache_key
cached properties to ensure proper initialization of the copied nodelanggraph.pregel.remote.sanitize_config_value
langgraph.pregel.remote.RemoteGraph
_sanitize_config
method to use the newsanitize_config_value
function #4389v0.3.32
Compare Source
langgraph 0.3.32
Summary of Changes
draw_graph
functionality (#4354)Detailed Changes
langgraph.graph.schema_utils.SchemaCoercionMapper
model_validate
instead ofmodel_construct
langgraph.graph.branch.Branch
langgraph.pregel.write.ChannelWrite
get_static_writes
method to support static analysis of what a writer might write (#4354)register_writer
to accept static declarations for writersChannelWriteTupleEntry
to declare writes for static analysis_assemble_writes
function for better code organizationlanggraph.pregel.draw
draw_graph
function that simulates execution to discover edgeslanggraph.pregel.messages.StreamMessagesHandler
_find_and_emit_messages
(#4379)langgraph.channels.dynamic_barrier_value.DynamicBarrierValue
v0.3.31
Compare Source
langgraph 0.3.31
Summary of Changes
Detailed Changes
langgraph.constants.CONFIG_KEY_THREAD_ID
langgraph.pregel.Pregel
get_state
,aget_state
) to properly handle thread IDslanggraph.pregel.loop.PregelLoop
v0.3.30
Compare Source
langgraph 0.3.30
Summary of Changes
Command
objects by properly handling unwrapping in responses #4250Detailed Changes
langgraph.pregel.messages.StreamMessagesHandler
Command
objects in streaming responses by extracting the.update
value #4250Command
objects to be used more seamlessly in streaming contexts, both as individual responses and when contained in sequenceslanggraph.utils.fields.get_update_as_tuples
langgraph.graph.state.StateGraph
_get_updates
function to use the newget_update_as_tuples
utility, reducing code duplication #4255langgraph.types.Command
_update_as_tuples
method to use the new centralized utility function #4255v0.3.29
Compare Source
langgraph 0.3.29
Summary of Changes
Detailed Changes
langgraph.graph.state.CompiledStateGraph
schema_to_mapper
dictionary to avoid recreating schema mappers repeatedly (#4242)langgraph.pregel.read.PregelNode
input_cache_key
property for efficient input caching (#4242)langgraph.pregel.algo
_proc_input
to return a value directly instead of being an iterator (#4242)langgraph.pregel.write.ChannelWrite
langgraph.utils.runnable.RunnableCallable
langgraph.utils.runnable.RunnableSeq
v0.3.28
Compare Source
langgraph 0.3.28
Summary of Changes
Detailed Changes
langgraph.func.task
langgraph.graph.schema_utils.SchemaCoercionMapper
functools.lru_cache
to avoid redundant processinglanggraph.graph.state.StateGraph
add_node
to support sequences of retry policies, with documentation for how multiple policies are applied #4240_get_updates
to correctly detect Pydantic model field sets based on their version #4200langgraph.pregel.Pregel
langgraph.pregel.retry
_should_retry_on
helper function to determine if a policy applies to a specific exceptionlanggraph.types
default_retry_on
function with optimized ordering of HTTP error checks for better performancePregelExecutableTask.retry_policy
type to support sequences of policies #4240v0.3.27
Compare Source
langgraph 0.3.27
Summary of Changes
checkpoint_during
parameter to control when checkpoints are created, allowing users to optimize graph execution performance by only checkpointing at the end of a run (PR #4169)Detailed Changes
langgraph.pregel.Pregel
checkpoint_during
parameter tostream()
,astream()
,invoke()
andainvoke()
methods. When set toFalse
, the graph only creates a checkpoint at the end of execution rather than after each step, which can improve performance for large graphs (PR #4169)_StreamingCallbackHandler
is not available, making the library more robust (PR #4203)langgraph.pregel.loop.PregelLoop
checkpoint_every_step
tocheckpoint_during
for clearer semantics (PR #4169)_put_pending_writes()
to handle persisting writes when checkpointing is deferred (PR #4169)langgraph.pregel.remote.RemoteGraph
orjson
in favor of strict type checking (PR #4205)CONF_DROPLIST
to exclude internal configuration keys from being serialized (PR #4205)langgraph.utils.runnable.RunnableSeq
_StreamingCallbackHandler
to improve robustness when the class is not available (PR #4203)v0.3.26
Compare Source
langgraph 0.3.26
Summary of Changes
GraphInterrupt
exceptions were raised unnecessarily in remote graph streaming when no caller namespace was present (#4202)Detailed Changes
langgraph.pregel.remote.RemoteGraph
GraphInterrupt
exceptions in thestream
andastream
methods when a caller namespace is present, preventing unnecessary interrupts in certain streaming contexts (#4202)v0.3.25
Compare Source
langgraph 0.3.25
Summary of Changes
Detailed Changes
langgraph.graph.ui
UIMessage
TypedDict to represent UI component updates with properties and metadata (#4157)RemoveUIMessage
TypedDict for removing UI components from the current state (#4157)AnyUIMessage
Union type combining both message types (#4157)push_ui_message()
function to create and send UI messages for rendering components (#4157)delete_ui_message()
function to remove UI components by ID (#4157)ui_message_reducer()
function to merge UI message lists, handling both additions and removals (#4157)v0.3.24
Compare Source
langgraph 0.3.24
Summary of Changes
Detailed Changes
langgraph.graph.state.StateGraph
_migrate_checkpoint
method to handle migrating between different checkpoint formats (#4125)start:node
,branch:source:condition:node
, or justnode
) to the new unified formatbranch:to:node
(#4125)langgraph.pregel.Pregel
_migrate_checkpoint
method to support checkpoint migration (#4125)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.