# Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Oldest test-only dependency pins for langchain unit tests.
#
# Only pin provider libraries that have NO lower bound in pyproject.toml. The package's own 
# declared deps — opentelemetry-instrumentation, opentelemetry-util-genai, and langchain 
# (via the instruments extra) — are resolved to their
# pyproject floors by UV_RESOLUTION=lowest-direct on the oldest tox factor, so they are NOT pinned
# here to avoid drift between the declared bound and the tested version.

# langchain-core is transitive, so lowest-direct does not floor it: pin the floor that
# langchain 0.3.22 declares, which is the oldest core with the set_config_context boundary.
langchain-core==0.3.49
# LangGraph is optional and has no bound in pyproject.toml: 0.3.18 is the oldest release with
# the node boundary (langgraph.utils.runnable.set_config_context) the instrumentation wraps.
langgraph==0.3.18
langchain-openai==0.2.0
langchain-aws==0.2.2
langchain-google-genai==2.0.0
langchain-anthropic==0.3.0
boto3==1.37.0

opentelemetry-instrumentation-httpx >= 0.64b0, <1
opentelemetry-instrumentation-genai-openai[instruments]==1.2b0
# The oldest OpenAI client still passes the removed httpx proxies argument.
httpx==0.27.2

# Drop this once opentelemetry-util-genai 1.3b0 is published.
-e util/opentelemetry-util-genai
