Skip to content

Commit a3e89aa

Browse files
feat: pass source=agents baggage in trace context headers (#824)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6d21612 commit a3e89aa

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.10.14"
3+
version = "0.10.15"
44
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
88
"uipath>=2.10.61, <2.11.0",
99
"uipath-core>=0.5.15, <0.6.0",
10-
"uipath-platform>=0.1.43, <0.2.0",
10+
"uipath-platform>=0.1.45, <0.2.0",
1111
"uipath-runtime>=0.10.0, <0.11.0",
1212
"langgraph>=1.1.8, <2.0.0",
1313
"langchain-core>=1.2.11, <2.0.0",

src/uipath_langchain/chat/_legacy/http_client/headers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
from urllib.parse import quote
55

6+
from uipath.platform.chat.llm_trace_context import build_trace_context_headers
67
from uipath.platform.common._config import UiPathConfig
78
from uipath.platform.common.constants import (
89
ENV_FOLDER_KEY,
@@ -64,4 +65,6 @@ def build_uipath_headers(
6465
if organization_id := os.getenv(ENV_ORGANIZATION_ID):
6566
headers[HEADER_INTERNAL_ACCOUNT_ID] = organization_id
6667

68+
headers.update(build_trace_context_headers(extra_baggage=["source=agents"]))
69+
6770
return headers

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)