Skip to content

Commit 710fe5d

Browse files
[BUZZOK-27768] Add NAT to python_311_genai_agents environment (#1704)
* remove EXT from Dockerfiles * add nat * add override * update requirements * Reconcile dependencies, updated IDs, tags --------- Co-authored-by: svc-harness-git2 <[email protected]>
1 parent da61de1 commit 710fe5d

File tree

5 files changed

+196
-142
lines changed

5 files changed

+196
-142
lines changed

public_dropin_environments/python311_genai_agents/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ ENV ANNOY_COMPILER_ARGS="-D_CRT_SECURE_NO_WARNINGS,-DANNOYLIB_MULTITHREADED_BUIL
9494

9595
ARG WORKDIR
9696
ARG VENV_PATH
97-
ARG EXT=""
9897

99-
COPY ./pyproject.toml${EXT} ${WORKDIR}/pyproject.toml
98+
COPY ./pyproject.toml ${WORKDIR}/pyproject.toml
10099

101100
WORKDIR ${WORKDIR}
102101
RUN . ${VENV_PATH}/bin/activate && \

public_dropin_environments/python311_genai_agents/Dockerfile.local

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@ ENV ANNOY_COMPILER_ARGS="-D_CRT_SECURE_NO_WARNINGS,-DANNOYLIB_MULTITHREADED_BUIL
134134

135135
ARG WORKDIR
136136
ARG VENV_PATH
137-
ARG EXT=""
138137

139-
COPY ./pyproject.toml${EXT} ${WORKDIR}/pyproject.toml
138+
COPY ./pyproject.toml ${WORKDIR}/pyproject.toml
140139

141140
WORKDIR ${WORKDIR}
142141
RUN . ${VENV_PATH}/bin/activate && \

public_dropin_environments/python311_genai_agents/env_info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "This template environment can be used to create GenAI-powered agents using CrewAI, LangGraph, or Llama-Index. Similar to other drop-in environments, you can either include a .pth artifact or any other code needed to deserialize your model, and optionally a custom.py file. You can also use this environment in codespaces.",
55
"programmingLanguage": "python",
66
"label": "",
7-
"environmentVersionId": "68e68b3735af84120828b074",
7+
"environmentVersionId": "68e80d4278eb0c11d1a15b20",
88
"environmentVersionDescription": "",
99
"isPublic": true,
1010
"isDownloadable": true,
@@ -15,8 +15,8 @@
1515
"contextUrl": "https://github.com/datarobot/datarobot-user-models/tree/master/public_dropin_environments/python311_genai_agents",
1616
"imageRepository": "env-python-genai-agents",
1717
"tags": [
18-
"v11.2.0-68e68b3735af84120828b074",
19-
"68e68b3735af84120828b074",
18+
"v11.2.0-68e80d4278eb0c11d1a15b20",
19+
"68e80d4278eb0c11d1a15b20",
2020
"v11.2.0-latest"
2121
]
2222
}

public_dropin_environments/python311_genai_agents/pyproject.toml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ requires-python = ">=3.10, <3.13"
88
dependencies = [
99
"annotated-types>=0.7.0",
1010
"click>=8.1.8",
11-
"datarobot-drum>=1.17.3",
11+
"datarobot[auth]>=3.8.2",
12+
"datarobot-drum>=1.17.5",
1213
"datarobot-mlops>=11.1.0",
14+
"datarobot-moderations>=11.2.3",
1315
"datarobot-predict>=1.13.2",
1416
"dotenv>=0.9.9",
1517
"langchain-community>=0.3.27",
@@ -35,8 +37,6 @@ dependencies = [
3537
"requests>=2.32.4",
3638
"traceloop-sdk>=0.40.2",
3739
"uvicorn>=0.32.0",
38-
"datarobot[auth]>=3.8.2",
39-
"datarobot-moderations>=11.2.3",
4040

4141
# Docker image requirements (These MUST be included to avoid docker conflicts)
4242
"ecs-logging>=2.2.0",
@@ -53,11 +53,19 @@ dependencies = [
5353
"ujson<5.8.0",
5454
"uwsgi>=2.0.30",
5555

56+
"nvidia-nat==1.3.0rc3; python_version >= '3.11'",
57+
# "nvidia-nat-llama-index==1.3.0rc3; python_version >= '3.11'",
58+
"nvidia-nat-opentelemetry==1.3.0rc3; python_version >= '3.11'",
59+
"nvidia-nat-crewai==1.3.0rc3; python_version >= '3.11'",
60+
"nvidia-nat-langchain==1.3.0rc3; python_version >= '3.11'",
61+
5662
# Agent framework requirements
63+
5764
"crewai>=0.177.0",
5865
"crewai-tools>=0.69.0",
5966
"opentelemetry-instrumentation-crewai>=0.40.5",
6067
"pybase64>=1.4.2",
68+
"pylance<=0.38.1",
6169
"langgraph>=0.4.10",
6270
"langgraph-prebuilt>=0.2.3",
6371
"llama-index<0.14.0",
@@ -174,13 +182,10 @@ docstring-code-line-length = "dynamic"
174182
allow_duplicate_keys = true
175183
line_length = 120
176184

177-
# Pydantic plugin must be disabled with llamaindex, see https://github.com/python/mypy/issues/15927
178185
[tool.mypy]
179186
strict = true
180187
python_version = "3.11"
181-
182188
plugins = "pydantic.mypy"
183-
184189
exclude = """(?x)(
185190
output/ # exclude files starting with "output"
186191
| deployment_.*/
@@ -212,3 +217,8 @@ warn_unused_ignores = true
212217
[[tool.mypy.overrides]]
213218
module = "datarobot.*"
214219
implicit_reexport = true
220+
221+
[tool.uv]
222+
override-dependencies = [
223+
"fastapi==0.118.2",
224+
]

0 commit comments

Comments
 (0)