-
Notifications
You must be signed in to change notification settings - Fork 28
fix(deps): update dependency langgraph to >=0.6.11,<0.7 #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
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/langgraph-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
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
48d2304 to
32be549
Compare
32be549 to
de2034d
Compare
de2034d to
55ead39
Compare
55ead39 to
c533ddd
Compare
c533ddd to
990150b
Compare
990150b to
0110c8e
Compare
0110c8e to
526747f
Compare
4641b61 to
ca6adb1
Compare
ca6adb1 to
4c15e7a
Compare
4c15e7a to
e0d8c9b
Compare
e0d8c9b to
148d9fe
Compare
148d9fe to
73796f7
Compare
73796f7 to
29f48ad
Compare
29f48ad to
0542523
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=0.2.20,<0.3->>=0.6.11,<0.7Release Notes
langchain-ai/langgraph (langgraph)
v0.6.11Compare Source
Changes since 0.6.10
v0.6.10Compare Source
Changes since 0.6.9
v0.6.9Compare Source
Changes since 1.0.0a4
v0.6.8Compare Source
Changes since 1.0.0a3
BaseChanneldetection (#6210)CheckpointTask.statecan be aStateSnapshot(#6201)AsyncPregelLoop(#6167)defer=True(#6130)RemoteGraph(#6140)get_graphgenerates unexpected conditional edge (#6122)v0.6.7Compare Source
Changes since 1.0.0a2
v0.6.6Compare Source
Changes since 0.6.5
v0.6.5Compare Source
Changes since 0.6.4
v0.6.4Compare Source
Changes since 0.6.3
updated_channelsto checkpoint (#5828)MessageGraph(#5843)v0.6.3Compare Source
Changes since 0.6.2
AgentState(#5801)configparam (#5798)invokeandainvoke(#5771)v0.6.2Compare Source
Changes since 0.6.1
context_schematoconfig_schemawith correct condition (#5746)v0.6.1Compare Source
Changes since 0.6.0
v0.6.0Compare Source
LangGraph v0.6
We’re excited to announce the release of LangGraph v0.6.0, another significant step toward our v1.0 milestone. This release emphasizes providing a cleaner, more intuitive developer experience for building agentic workflows. Below we’ll cover the headline improvements and minor changes.
🚀 New Context API: Simplified Runtime Context Injection
The biggest improvement in v0.6 is the introduction of the new Context API, which makes it easier to pass run-scoped context in an intuitive and type safe way.
This pattern replaces the previously recommended pattern of injecting run-scoped context into
config['configurable'].Before (v0.5):
After (v0.6):
The
Runtimeclass provides a single interface for accessing information like:previousis also available: the previous return value for the given threadNow, instead of injecting all of the above as separate parameters to node functions,
developers can access them all through a single
runtimeparameter.Migration Path
config_schemais deprecated in favor ofcontext_schema, and will be removed in v2.0.0config_schemaget_config_jsonschemais deprecated in favor ofget_context_jsonschema(though this is generally only used for graph introspection and not by most langgraph users)🔀 Dynamic model & tool selection
create_react_agentcan now dynamically choose both the model and tools at runtime using a custom context object:Then invoke the agent with your desired settings:
Now agents can flexibly adapt their behavior based on runtime context.
🏗️ Durability Mode Support
LangGraph v0.6 introduces a new
durability****argument that gives you fine-grained control over persistence behavior. This provides finer grained control than its predecessor,checkpoint_during.This was predated
"exit"- Save checkpoint only when the graph exitscheckpoint_during=False"async"- Save checkpoint asynchronously while next step executescheckpoint_during=True"sync"- Save checkpoint synchronously before next stepMigration Path
checkpoint_duringis now deprecated in favor of the newdurabilityargument. Backwards compatibility will be maintained until v2.0.0.🛡️ Enhanced Type Safety and Validation
In an effort to make graph building easier for developers, we’ve enhanced the type safety of the
LangGraph APIs.
LangGraph’s
StateGraphandPregelinterfaces are now generic over a graph’s:state_schemacontext_schemainput_schemaoutput_schemaThis means that:
invoke/streamis type checked against the relevant schemacontextavailable via the aforementionedRuntimeclass matches thecontext_schema🔧 A Refined
InterruptInterfaceIn preparation for v1.0, we’ve made a few changes to the
Interruptinterface.Interrupts now have two attributes:
id- a unique identifier for the interruptvalue- the interrupt valueIn v0.6, we’ve removed the following attributes from the
Interruptclass:when- this was always"during"and offered no practical valueresumable- functionally, this is alwaysTruens- this information is now stored in a condensed format in theidattributeinterrupt_idhas been deprecated in favor ofid, but is still usable for backward compatibility🔒 Solidified Public API Surface
Gearing up for v1.0, we’ve solidified what’s public vs. private in the LangGraph API.
We’ve also deprecated some old import paths that have supported backports for ~1 year.
These changes make it easier to maintain a higher quality public API
and reduce the surface area for potential breaking changes.
The following table summarizes the changes:
from langgraph.pregel.types import ...from langgraph.types import ...from langgraph.constants import Sendfrom langgraph.types import Sendfrom langgraph.constants import Interruptfrom langgraph.types import Interruptfrom langgraph.channels import <ErrorClass>from langgraph.errors import <ErrorClass>langgraph.errorsfrom langgraph.constants import TAG_NOSTREAM_ALTfrom langgraph.constants import NOSTREAM🎯 Looking Toward v1.0
LangGraph v0.6 represents our final major changes before the stable v1.0 release.
We anticipate adhering strictly to SemVer post v1.0, leaning into a promise of stability and predictability.
Get Involved
LangGraph is an open source project, and we’d love to hear from you! We’ve rolled out a new LangChain forum for questions, feature requests, and discussions.
Please let us know what you think about the new Runtime API and other changes in v0.6, and if you have any difficulties with which we can help.
Full Changelog
contextAPI (#5566)Runtimeinterface re patch/overrides (#5546)constants.py->_internal/_typing.py(#5518)config['configurable']andconfig_schema) (#5243)nodesignatures vsinput_schemaforadd_node(#5424)Interruptinterface for v1 (#5405)v0.5.4Compare Source
Changes since 0.5.3
ENDwithCommand(#5601)stacklevel=2to the warnings to point to the caller’s codes (#5457)v0.5.3Compare Source
Changes since 0.5.2
uv lock --upgrade(#5471)ABCspec forPregelProtocol(#5485)v0.5.2Compare Source
Changes since 0.5.1
invoke/streamto allow forCommandandNone(#5414)v0.5.1Compare Source
Changes since 0.5.0
v0.5.0Compare 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_schemais 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_schemaThe old names still work but raise a deprecation warning.
New
NodeBuilderutilityA simpler, declarative way to create nodes and attach them to channels. The old
Channel.subscribe_tohelper 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
JsonPlusSerializernow handles NumPy arrays stored in your state (including Fortran-ordered ones) without falling back topickle.Minor breaking changes you might notice
state_schemarequired – add it if you were passing only input and output schemas instead (very rare).input/outputrenaming – rename toinput_schema/output_schema.PregelNodeandRunnable, 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)"outputusage in favor ofoutput_schema(#5095)PregelNode's inheritance fromRunnable(#5093)inputandoutputin favor ofinput_schemaandoutput_schema(#4983)pep 604union syntax andpep 585generic syntax (#4963)StateGraph(dict)(#4964)retry->retry_policy(#4957)initandinvoke/stream(#4932)state_schemainStateGraph.__init__(#4897)MessageGraph(#4875)v0.4.10Compare Source
Changes since 0.4.9
MessageGraph(#4875)"outputusage in favor ofoutput_schema(#5095)PregelNode's inheritance fromRunnable(#5093)inputandoutputin favor ofinput_schemaandoutput_schema(#4983)pep 604union syntax andpep 585generic syntax (#4963)StateGraph(dict)(#4964)retry->retry_policy(#4957)initandinvoke/stream(#4932)state_schemainStateGraph.__init__(#4897)MessageGraph(#4875)v0.4.9Compare Source
Changes since 0.5.0rc1
v0.4.8Compare Source
Changes since 0.4.7
state_schemainStateGraph.__init__(#4897)MessageGraph(#4875)v0.4.7Compare Source
Changes since 0.4.6
v0.4.6Compare Source
Changes since 0.4.5
messages/message-tuplestream (#4722)messages/message-tuplestreamv0.4.5Compare Source
Changes since 0.4.4
v0.4.4Compare Source
Changes since 0.4.3
v0.4.3Compare Source
Changes since 0.4.2
v0.4.2Compare Source
Changes since 0.4.1
v0.4.1Compare Source
langgraph 0.4.1
Summary of Changes
ENDin StateGraph edges to properly terminate graph execution #4458mergeparameter #4473TAG_NOSTREAMfrom "langsmith:nostream" to "nostream", maintaining backwards compatibility #4473push_ui_message#4467Detailed Changes
langgraph.graph.state.StateGraph
ENDconstant inget_writesand_control_staticfunctions, ensuring proper graph termination when returning toEND#4458langgraph.graph.ui
mergeparameter topush_ui_messagefunction, allowing incremental updates to UI messages #4473ui_message_reducerto support merging props from existing messages when themergeflag is set #4473push_ui_messageby removing old metadata merging which could cause unexpected behavior #4467langgraph.constants
TAG_NOSTREAMfrom "langsmith:nostream" to "nostream" #4473TAG_NOSTREAM_ALTwith the old value ("langsmith:nostream") for backward compatibility #4473langgraph.graph.schema_utils
SchemaCoercionMapper#4448langgraph.utils.pydantic
lru_cachefor better performance #4448langgraph.channels.base.BaseChannel
v0.4.0Compare Source
langgraph 0.4.0
Summary of Changes
"values"stream mode #4374Detailed Changes
langgraph.types.Interrupt
interrupt_idproperty 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
interruptsfield to track interrupts that occurred in a step and are pending resolution #4406langgraph.types.Command
resumeparameter to support mapping interrupt IDs to resume values #4406resumeparameter #4406langgraph.pregel.Pregel
invokeandainvokemethods to properly collect and handle interrupts in streamed output #4374"values"and"updates"stream modes #4374langgraph.graph.branch.Writer
langgraph.p
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.