Skip to content

Commit 58b25a4

Browse files
authored
fix: install api client from git repo (#1046)
# Motivation <!-- Why is this change necessary? --> Removing the autogenerated api client from this repository in favor of it living in it's own separate repository # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed --------- Co-authored-by: rushilpatel0 <[email protected]>
1 parent d8a0109 commit 58b25a4

29 files changed

+43
-6352
lines changed

pyproject.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ dependencies = [
7272
"datasets",
7373
"colorlog>=6.9.0",
7474
"codegen-sdk-pink>=0.1.0",
75-
"dateutil",
75+
"codegen-api-client",
7676
]
7777

78+
# renovate: datasource=python-version depName=python
7879
license = { text = "Apache-2.0" }
7980
classifiers = [
8081
"Development Status :: 4 - Beta",
@@ -161,11 +162,15 @@ dev-dependencies = [
161162
"modal>=0.73.25",
162163
"pytest-lsp>=1.0.0b1",
163164
"cython>=3.0.11",
165+
"codegen-api-client",
164166
]
165167

166168
[tool.uv.workspace]
167169
exclude = ["codegen-examples"]
168170

171+
[tool.uv.sources]
172+
codegen-api-client = { git = "https://github.com/codegen-sh/codegen-api-client" }
173+
169174

170175
[tool.cython-lint]
171176
max-line-length = 200

src/codegen/agents/agent.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import os
22
from typing import Any, Optional
33

4-
from codegen.agents.client.openapi_client.api.agents_api import AgentsApi
5-
from codegen.agents.client.openapi_client.api_client import ApiClient
6-
from codegen.agents.client.openapi_client.configuration import Configuration
7-
from codegen.agents.client.openapi_client.models.agent_run_response import AgentRunResponse
8-
from codegen.agents.client.openapi_client.models.create_agent_run_input import CreateAgentRunInput
4+
from codegen_api_client.api.agents_api import AgentsApi
5+
from codegen_api_client.api_client import ApiClient
6+
from codegen_api_client.configuration import Configuration
7+
from codegen_api_client.models.agent_run_response import AgentRunResponse
8+
from codegen_api_client.models.create_agent_run_input import CreateAgentRunInput
9+
910
from codegen.agents.constants import CODEGEN_BASE_API_URL
1011

1112

src/codegen/agents/client/.openapi-generator/FILES

-62
This file was deleted.

src/codegen/agents/client/.openapi-generator/VERSION

-1
This file was deleted.

src/codegen/agents/client/README.md

-22
This file was deleted.

src/codegen/agents/client/openapi_client/__init__.py

-44
This file was deleted.

src/codegen/agents/client/openapi_client/api/__init__.py

-6
This file was deleted.

0 commit comments

Comments
 (0)