From 5ee4b1d6f872ca5d6ff460a41316269bdbcb0d42 Mon Sep 17 00:00:00 2001 From: karansohi Date: Mon, 11 May 2026 15:52:38 -0700 Subject: [PATCH] fix(examples/langchain): add agent-control-telemetry workspace dep The SDK's __init__.py imports agent_control_telemetry unconditionally (introduced with OTel support in #177). For published wheels the telemetry package is bundled at build time, but editable installs from this example's [tool.uv.sources] need it declared as a workspace dep. Without this, `uv run python setup_sql_controls.py` (and any script that imports `agent_control`) fails with: ModuleNotFoundError: No module named 'agent_control_telemetry' Mirrors the structure used in #fix/steer-action-demo-missing-telemetry-dep. Co-Authored-By: Claude Opus 4.7 (1M context) --- examples/langchain/pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/langchain/pyproject.toml b/examples/langchain/pyproject.toml index bf249abf..5de10bd2 100644 --- a/examples/langchain/pyproject.toml +++ b/examples/langchain/pyproject.toml @@ -8,6 +8,7 @@ dependencies = [ "agent-control-models", "agent-control-evaluators", "agent-control-sdk", + "agent-control-telemetry", "langchain>=0.3.0", "langchain-community>=0.3.0", "langchain-openai>=0.2.0", @@ -43,3 +44,4 @@ agent-control-sdk = { path = "../../sdks/python", editable = true } agent-control-models = { path = "../../models", editable = true } agent-control-engine = { path = "../../engine", editable = true } agent-control-evaluators = { path = "../../evaluators/builtin", editable = true } +agent-control-telemetry = { path = "../../telemetry", editable = true }