Skip to content

feat(sdk): Add LangSmith integration metadata to deepagents#1837

Merged
ccurme (ccurme) merged 2 commits into
mainfrom
add-metadata-for-tracing
Mar 12, 2026
Merged

feat(sdk): Add LangSmith integration metadata to deepagents#1837
ccurme (ccurme) merged 2 commits into
mainfrom
add-metadata-for-tracing

Conversation

@tanushree-sharma
Copy link
Copy Markdown
Contributor

@tanushree-sharma Tanushree (tanushree-sharma) commented Mar 12, 2026

Adds ls_integration metadata to every agent created via create_deep_agent(), enabling identification of deepagent traces in LangSmith.

Before
image

After

image

Adds ls_integration and ls_integration_version metadata to every
agent created via create_deep_agent(), enabling identification of
deepagent traces in LangSmith.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added deepagents Related to the `deepagents` SDK / agent harness infra Repo meta changes internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC labels Mar 12, 2026
@mdrxy
Copy link
Copy Markdown
Member

Related: #1379 and langchain-ai/langchain#35295

@tanushree-sharma Tanushree (tanushree-sharma) changed the title chore(sdk): Add LangSmith integration metadata to deepagent root runs feat(sdk): Add LangSmith integration metadata to deepagent root runs Mar 12, 2026
@tanushree-sharma Tanushree (tanushree-sharma) changed the title feat(sdk): Add LangSmith integration metadata to deepagent root runs feat(sdk): Add LangSmith integration metadata to deepagents Mar 12, 2026
@github-actions github-actions Bot added feature New feature/enhancement or request for one and removed infra Repo meta changes labels Mar 12, 2026
@ccurme ccurme (ccurme) merged commit 0e572ff into main Mar 12, 2026
31 checks passed
@ccurme ccurme (ccurme) deleted the add-metadata-for-tracing branch March 12, 2026 20:49
james8814 pushed a commit to james8814/deepagents that referenced this pull request Mar 13, 2026
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"
/>
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"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepagents Related to the `deepagents` SDK / agent harness feature New feature/enhancement or request for one internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants