-
Notifications
You must be signed in to change notification settings - Fork 27
fix(deps): update dependency langgraph to >=0.4.3,<0.5 #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
This PR contains the following updates:
>=0.2.20,<0.3
->>=0.4.3,<0.5
Release Notes
langchain-ai/langgraph (langgraph)
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)v0.3.23
Compare Source
langgraph 0.3.23
Summary of Changes
REMOVE_ALL_MESSAGES
identifier to allow clearing all messages in a MessageGraph conversation in one operation #4117empty_checkpoint
function from being imported from a base module to being defined in the pregel checkpoint module #4126Detailed Changes
langgraph.graph.message.add_messages
REMOVE_ALL_MESSAGES
constant identifier ("__remove_all__"
)RemoveMessage
with this special ID is includedlanggraph.pregel.checkpoint.empty_checkpoint
langgraph.checkpoint.base
to being directly defined inlanggraph.pregel.checkpoint
LATEST_VERSION = 2
in the same modulev0.3.22
Compare Source
langgraph 0.3.22
Summary of Changes
copy()
method to all channel classes for more efficient state copying, improving performance (#4106)LazyAtomicCounter
implementation (#4101)destinations
parameter inStateGraph.add_node()
(#4053)PregelScratchpad
(#4098)StateGraph
edge handling for better consistency (#4064)Detailed Changes
langgraph.pregel.runner.PregelRunner
langgraph.channels.base.BaseChannel and all channel implementations
copy()
method to all channel classes for more efficient state copying (#4106)MISSING
constant instead ofNone
(#4103)Optional
types where appropriatelanggraph.pregel.algo.LazyAtomicCounter
PregelScratchpad
to improve thread safetylanggraph.pregel.algo.local_read
copy()
method instead of creating checkpoints, significantly improving performance (#4106)langgraph.utils.future.run_coroutine_threadsafe
langgraph.graph.state.StateGraph
destinations
parameter inadd_node()
to correctly support tuples with multiple strings (#4053)langgraph.types.PregelScratchpad
langgraph.pregel.checkpoint.create_checkpoint
v0.3.21
Compare Source
langgraph 0.3.21
Summary of Changes
Graph
(#4021)Interrupt
objects from the received data (#4040)update
method inTopic
channel fromNone
tobool
(#4029)Detailed Changes
langgraph.graph.graph.Graph
langgraph.pregel.remote.RemoteGraph
Interrupt
objects from the received data, ensuring proper serialization/deserialization of interrupts (#4040)langgraph.channels.topic.Topic
update
method fromNone
tobool
to align with the interface of other channel types (#4029)v0.3.20
Compare Source
langgraph 0.3.20
Summary of Changes
msgpack
dependency withormsgpack
for improved serialization performance #3953Detailed Changes
langgraph.graph.graph.Graph
add_edge
method to log a warning and continue execution instead of raising aValueError
when a subgraph has a missing entrypoint #3997langgraph.pregel.algo
_xxhash_str
fromxxh3_64_hexdigest
toxxh3_128_hexdigest
for better collision resistance when generating UUIDs #4005Dependencies
msgpack
withormsgpack
(version 1.8.0+) dependency for faster and more efficient MessagePack serialization #3953v0.3.19
Compare Source
langgraph 0.3.19
Summary of Changes
Detailed Changes
langgraph.pregel.algo.apply_writes
langgraph.pregel.algo.prepare_next_tasks
trigger_to_nodes
andupdated_channels
to support the optimization (#3916)langgraph.pregel.Pregel
trigger_to_nodes
property to store mapping from triggers to dependent nodes (#3931)validate
method to compute trigger_to_nodes mapping (#3931)langgraph.pregel.PregelLoop
tick
and_first
methods to track and pass updated channels information (#3916)langgraph.pregel.read.PregelNode
subgraphs
parameter to directly specify subgraphs instead of extracting them from bound runnable (#3949)copy
method to properly handle subgraphs (#3949)langgraph.graph.state.StateGraph
writers.append()
instead of|=
operator (#3949)langgraph.utils.runnable.RunnableCallable
func_accepts_config
parameter to explicitly control whether a function accepts config parameter (#3949)langgraph.pregel.algo._xxhash_str
v0.3.18
Compare Source
langgraph 0.3.18
Summary of Changes
Detailed Changes
langgraph.types.PregelExecutableTask
NamedTuple
todataclass
to support weak references (#3924)weakref_slot=True
for Python 3.11+ to reduce memory footprint during executionlanggraph.pregel.runner.PregelRunner
_call
and_acall
methods to properly handle weak references to taskslanggraph.pregel.loop.PregelLoop
dataclasses.replace()
instead of_replace()
to be compatible with the new task implementation (#3924)langgraph.utils.runnable.set_config_context
langgraph.utils.runnable.RunnableCallable
set_config_context
context manager for better context handling (#3922)v0.3.17
Compare Source
langgraph 0.3.17
Summary of Changes
Detailed Changes
langgraph.pregel.Pregel
bulk_update_state
andabulk_update_state
methods to allow applying multiple updates to a graph state in sequence (#3737)update_state
andaupdate_state
methods to use the new bulk update functionality (#3737)langgraph.types.StateUpdate
StateUpdate
type as a NamedTuple with fieldsvalues
andas_node
to represent individual state updates (#3737)langgraph.pregel.algo
v0.3.16
Compare Source
langgraph 0.3.16
Summary of Changes
get_function_nonlocals
to reduce external dependencies (#3894)Detailed Changes
langgraph.graph.schema_utils.SchemaCoercionMapper
max_depth
from 5 to 12, allowing deeper nested schema structuresset
types in schema coercionlanggraph.pregel.Pregel
weakref.WeakMethod
for runner callbackslanggraph.pregel.runner.PregelRunner
_call
and_acall
)langgraph.pregel.utils.get_function_nonlocals
get_function_nonlocals
functionv0.3.15
Compare Source
langgraph 0.3.15
Summary of Changes
is_available()
method on all channel types #3890Detailed Changes
langgraph.channels.base.BaseChannel
is_available()
method to check if a channel has values without having to catch exceptions #3890All Channel Types
MISSING
sentinel value instead of attribute errors for tracking empty state #3890is_available()
implementations to:AnyValue
BinaryOperatorAggregate
DynamicBarrierValue
EphemeralValue
LastValue
NamedBarrierValue
Topic
UntrackedValue
langgraph.graph.state.StateGraph
branch:to:{node}
instead of complex channel names #3891langgraph.pregel.algo
checkpoint_null_version()
and_triggers()
helper functions #3893binascii.unhexlify
instead ofUUID
parsing #3893is_available()
method instead of exception handling #3890langgraph.pregel.io
return_exception
parameter fromread_channel()
as it's no longer needed with the new availability checking #3890langgraph.types
PregelExecutableTask.triggers
type fromlist[str]
to more flexibleSequence[str]
for better performance #3893v0.3.14
Compare Source
langgraph 0.3.14
Summary of Changes
Interrupt
class by hiding thewhen
field from display outputs (#3889)Detailed Changes
langgraph.types.PregelScratchpad
null_resume
storage with aget_null_resume
function that takes aconsume
parameter (#3888)null_resume
,_consume_null_resume
properties, and theconsume_null_resume()
method, replacing them with a cleaner and more versatileget_null_resume(bool)
callable (#3888)langgraph.pregel.algo.prepare_single_task
_scratchpad
function to take aconfig
parameter, allowing it to access the parent scratchpad's resume values (#3889)langgraph.types.Interrupt
Interrupt
class by hiding thewhen
field when printing instances (#3889)langgraph.pregel.loop.PregelLoop
get_null_resume
functionality (#3889)v0.3.13
Compare Source
langgraph 0.3.13
Summary of Changes
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.