feat: Add LangSmith integration metadata to create_agent and init_chat_model#35810
Merged
Conversation
added 2 commits
March 12, 2026 17:12
Merging this PR will not alter performance
|
ccurme (ccurme)
approved these changes
Mar 18, 2026
| # generate responses that match a given schema. | ||
| raise NotImplementedError | ||
|
|
||
| def _get_ls_params( |
Collaborator
There was a problem hiding this comment.
don't think we need the updates to LLMs
Sydney Runkle (sydney-runkle)
pushed a commit
to langchain-ai/langgraph
that referenced
this pull request
Mar 30, 2026
Adds ls_integration metadata to agents created via langgraph: `ls_integration:langgraph` Only sets the value if the key doesn't already exist so that we don't override the `ls_integration` field set in [deepagents](langchain-ai/deepagents#1837), [langchain](langchain-ai/langchain#35810). LangGraph trace <img width="1321" height="1017" alt="image" src="https://github.com/user-attachments/assets/134fad3a-034d-4d90-8fba-318dd7658e3c" /> Deepagents trace (value is correctly not set to langgraph in this case) <img width="1317" height="882" alt="image" src="https://github.com/user-attachments/assets/d9b09346-5827-4267-95c1-f3f77d0c76f3" />
7 tasks
xingshuozhu1998
pushed a commit
to xingshuozhu1998/langgraph
that referenced
this pull request
May 1, 2026
) Adds ls_integration metadata to agents created via langgraph: `ls_integration:langgraph` Only sets the value if the key doesn't already exist so that we don't override the `ls_integration` field set in [deepagents](langchain-ai/deepagents#1837), [langchain](langchain-ai/langchain#35810). LangGraph trace <img width="1321" height="1017" alt="image" src="https://github.com/user-attachments/assets/134fad3a-034d-4d90-8fba-318dd7658e3c" /> Deepagents trace (value is correctly not set to langgraph in this case) <img width="1317" height="882" alt="image" src="https://github.com/user-attachments/assets/d9b09346-5827-4267-95c1-f3f77d0c76f3" />
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
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.
Adds
ls_integrationmetadata to agents created via create_agent() and init_chat_model(), enabling identification of langchain traces in LangSmith. create_agent() gets ls_integration": "langchain_create_agent" and init_chat_model gets "langchain_chat_model"create_agent

init_chat_model
