Skip to content

Commit 4b8bcea

Browse files
committed
[Agentserver] Make tracing dependencies optional
Currently there is an issue with the apistub check stemming from the langchain-azure-ai dependency. However, based on the code, `langchain_azure_ai` isn't needed for the code to run, so it's fine to make this an optional dependency. It's purely for enabling telemetry.
1 parent cea2888 commit 4b8bcea

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-e ../../../eng/tools/azure-sdk-tools
22
../azure-ai-agentserver-core
3-
python-dotenv
3+
python-dotenv
4+
langchain-azure-ai[opentelemetry]>=0.1.4

sdk/agentserver/azure-ai-agentserver-langgraph/pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ dependencies = [
2222
"azure-ai-agentserver-core",
2323
"langchain>0.3.5",
2424
"langchain-openai>0.3.10",
25-
"langchain-azure-ai[opentelemetry]>=0.1.4",
2625
"langgraph>0.5.0",
2726
"opentelemetry-exporter-otlp-proto-http",
2827
]
2928

29+
[project.optional-dependencies]
30+
tracing = [
31+
"langchain-azure-ai[opentelemetry]>=0.1.4",
32+
]
33+
3034
[build-system]
3135
requires = ["setuptools>=69", "wheel"]
3236
build-backend = "setuptools.build_meta"
@@ -64,4 +68,4 @@ pyright = false
6468
verifytypes = false # incompatible python version for -core
6569
verify_keywords = false
6670
mindependency = false # depends on -core package
67-
whl_no_aio = false
71+
whl_no_aio = false

0 commit comments

Comments
 (0)