-
Notifications
You must be signed in to change notification settings - Fork 3.5k
release(langgraph): v1 working branch #6093
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
Draft
sydney-runkle
wants to merge
19
commits into
main
Choose a base branch
from
v1-dev
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.
Draft
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
* Bump version of langgraph to v1.0.0a1 * Bump version of prebuilt to v0.7.0a1 * Fix tests w/ new langchain-core alpha version * Bump min supported python version Deprecating prebuilts tools w/ helpful IDE hinting + deprecation messages. --------- Co-authored-by: ccurme <chester.curme@gmail.com>
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Right now we include configuration as metadata (which is later passed to tracing callbacks). Right now we include any key that doesn't have a dunder prefix and whose value is a string or int. This PR proposes to also exclude keys with certain substrings (key, secret, token). I would also be in favor of dropping support for forwarding configurable values to metadata entirely, but this is a smaller, less controversial change. Add a test.
Raised by @jacoblee93, the following was raising a cryptic deprecation warning: ```py import pytest from langchain_core.language_models import FakeListChatModel from langchain.agents import create_agent @pytest.fixture def test_llm(): return FakeListChatModel(responses=["Hello from test agent!"]) @pytest.fixture def simple_agent(test_llm): return create_agent( model=test_llm, tools=[], prompt="You are a helpful assistant." ) def test_basic_agent_execution(simple_agent): result = simple_agent.invoke({"messages": [{"role": "user", "content": "hi"}]}) assert len(result["messages"]) == 2 assert result["messages"][1].content == "Hello from test agent!" ``` ``` <frozen abc>:106 <frozen abc>:106: LangGraphDeprecatedSinceV10: AgentStatePydantic has been moved to langchain.agents. Please update your import to 'from langchain.agents import AgentStatePydantic'. Deprecated in LangGraph V1.0 to be removed in V2.0. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ``` This fixes that issue. I don't actually think we should re-expose these new states in `langchain.agents` given that middleware agents don't use them. Need to make a call on that.
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.
Diff viewer for langgraph v1 alpha releases