ebiose-cloud-sdk 0.1.263__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ """Auto-generated Pydantic v2 SDK for the Ebiose Cloud Backend API."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,270 @@
1
+ # AUTO-GENERATED by client-generator/generate.sh — do not edit by hand.
2
+
3
+ from __future__ import annotations
4
+
5
+ from enum import StrEnum
6
+ from typing import Any
7
+
8
+ from pydantic import AwareDatetime, BaseModel, ConfigDict, Field
9
+
10
+
11
+ class AddCandidateResponse(BaseModel):
12
+ model_config = ConfigDict(
13
+ extra="forbid",
14
+ )
15
+ agent_id: str = Field(..., min_length=1)
16
+
17
+
18
+ class AgentFilterDto(BaseModel):
19
+ model_config = ConfigDict(
20
+ extra="forbid",
21
+ )
22
+ op: str | None = None
23
+ path: str | None = None
24
+ value: Any | None = None
25
+
26
+
27
+ class AgentInArenaDto(BaseModel):
28
+ model_config = ConfigDict(
29
+ extra="forbid",
30
+ )
31
+ agent_id: str
32
+ created_at: AwareDatetime | None = None
33
+ cycle_id: str
34
+ forge_id: str
35
+ metrics_json: Any
36
+ model_json: Any
37
+ origin_evolution_cycle_id: str | None = None
38
+ parent_evolver_id: str | None = None
39
+ parent_meta_agent_id: str | None = None
40
+ role: str | None = None
41
+ score: float | None = None
42
+ submitted_at: AwareDatetime | None = None
43
+
44
+
45
+ class AgentRole(StrEnum):
46
+ evolver = "evolver"
47
+ meta = "meta"
48
+
49
+
50
+ class ApiKeyInputModel(BaseModel):
51
+ model_config = ConfigDict(
52
+ extra="forbid",
53
+ )
54
+ expirationDate: AwareDatetime | None = None
55
+ userUuid: str | None = None
56
+
57
+
58
+ class ArenaEntryDto(BaseModel):
59
+ model_config = ConfigDict(
60
+ extra="forbid",
61
+ )
62
+ agent_id: str = Field(..., min_length=1)
63
+ agent_model: Any
64
+ cycle_id: str = Field(..., min_length=1)
65
+ evaluation_metrics: Any
66
+ origin_evolution_cycle_id: str | None = None
67
+ parent_evolver_id: str | None = None
68
+ parent_meta_agent_id: str | None = None
69
+ role: str | None = None
70
+ score: float
71
+
72
+
73
+ class EndCycleRequest(BaseModel):
74
+ model_config = ConfigDict(
75
+ extra="forbid",
76
+ )
77
+ best_agent_ids: list[str]
78
+
79
+
80
+ class LoginInputModel(BaseModel):
81
+ model_config = ConfigDict(
82
+ extra="forbid",
83
+ )
84
+ email: str | None = None
85
+ password: str | None = None
86
+
87
+
88
+ class ProblemDetails(BaseModel):
89
+ detail: str | None = None
90
+ instance: str | None = None
91
+ status: int | None = None
92
+ title: str | None = None
93
+ type: str | None = None
94
+
95
+
96
+ class QueryAgentsResponse(BaseModel):
97
+ model_config = ConfigDict(
98
+ extra="forbid",
99
+ )
100
+ agents: list[AgentInArenaDto] | None = None
101
+
102
+
103
+ class QuotaSelfOutput(BaseModel):
104
+ model_config = ConfigDict(
105
+ extra="forbid",
106
+ )
107
+ availableCredits: float | None = None
108
+ creditsLimit: float | None = None
109
+ creditsUsed: float | None = None
110
+ rpmLimit: int | None = None
111
+ tpmLimit: int | None = None
112
+
113
+
114
+ class Role(StrEnum):
115
+ USER = "USER"
116
+ ADMIN = "ADMIN"
117
+
118
+
119
+ class SelfApiKeyInputModel(BaseModel):
120
+ model_config = ConfigDict(
121
+ extra="forbid",
122
+ )
123
+ expirationDate: AwareDatetime | None = None
124
+
125
+
126
+ class SelfUserInputModel(BaseModel):
127
+ model_config = ConfigDict(
128
+ extra="forbid",
129
+ )
130
+ email: str | None = None
131
+ firstname: str | None = None
132
+ githubId: str | None = None
133
+ lastname: str | None = None
134
+ password: str | None = None
135
+
136
+
137
+ class SignupInputModel(BaseModel):
138
+ model_config = ConfigDict(
139
+ extra="forbid",
140
+ )
141
+ email: str | None = None
142
+ firstname: str | None = None
143
+ githubId: str | None = None
144
+ lastname: str | None = None
145
+ password: str | None = None
146
+
147
+
148
+ class SortCriterionDto(BaseModel):
149
+ model_config = ConfigDict(
150
+ extra="forbid",
151
+ )
152
+ direction: str | None = None
153
+ field: str | None = None
154
+
155
+
156
+ class StartCycleRequest(BaseModel):
157
+ model_config = ConfigDict(
158
+ extra="forbid",
159
+ )
160
+ budget: float | None = None
161
+ cycle_id: str = Field(..., min_length=1)
162
+ ecosystem_id: str = Field(..., min_length=1)
163
+ forge_id: str = Field(..., min_length=1)
164
+ max_iterations: int | None = None
165
+ n_best_agents_to_return: int | None = None
166
+ override_key: bool | None = None
167
+
168
+
169
+ class StartCycleResponse(BaseModel):
170
+ model_config = ConfigDict(
171
+ extra="forbid",
172
+ )
173
+ compute_token: str = Field(..., min_length=1)
174
+ created_at: AwareDatetime
175
+ ecosystem_id: str = Field(..., min_length=1)
176
+ evolution_cycle_id: str = Field(..., min_length=1)
177
+ expires_at: AwareDatetime
178
+
179
+
180
+ class SubmitEntriesRequest(BaseModel):
181
+ model_config = ConfigDict(
182
+ extra="forbid",
183
+ )
184
+ entries: list[ArenaEntryDto]
185
+
186
+
187
+ class UpdateQuotaInput(BaseModel):
188
+ model_config = ConfigDict(
189
+ extra="forbid",
190
+ )
191
+ rpmLimit: int | None = None
192
+ tpmLimit: int | None = None
193
+
194
+
195
+ class UserInputModel(BaseModel):
196
+ model_config = ConfigDict(
197
+ extra="forbid",
198
+ )
199
+ creditsLimit: float | None = None
200
+ email: str | None = None
201
+ firstname: str | None = None
202
+ githubId: str | None = None
203
+ lastname: str | None = None
204
+ password: str | None = None
205
+ role: Role | None = None
206
+ rpmLimit: int | None = None
207
+ tpmLimit: int | None = None
208
+
209
+
210
+ class AddCandidateRequest(BaseModel):
211
+ model_config = ConfigDict(
212
+ extra="forbid",
213
+ )
214
+ agent_id: str = Field(..., min_length=1)
215
+ agent_model: Any
216
+ origin_evolution_cycle_id: str | None = None
217
+ parent_evolver_id: str | None = None
218
+ parent_meta_agent_id: str | None = None
219
+ role: AgentRole | None = None
220
+
221
+
222
+ class AgentQueryDto(BaseModel):
223
+ model_config = ConfigDict(
224
+ extra="forbid",
225
+ )
226
+ filters: list[AgentFilterDto] | None = None
227
+ limit: int | None = None
228
+ shuffle: bool | None = None
229
+ sort: list[SortCriterionDto] | None = None
230
+
231
+
232
+ class ApiKeyOutputModel(BaseModel):
233
+ model_config = ConfigDict(
234
+ extra="forbid",
235
+ )
236
+ createdAt: AwareDatetime | None = None
237
+ expirationDate: AwareDatetime | None = None
238
+ key: str | None = None
239
+ user: UserOutputModel | None = None
240
+ uuid: str | None = None
241
+
242
+
243
+ class LoginOutputModel(BaseModel):
244
+ model_config = ConfigDict(
245
+ extra="forbid",
246
+ )
247
+ token: str | None = None
248
+ user: UserOutputModel | None = None
249
+
250
+
251
+ class UserOutputModel(BaseModel):
252
+ model_config = ConfigDict(
253
+ extra="forbid",
254
+ )
255
+ apiKeys: list[ApiKeyOutputModel] | None = None
256
+ availableCredits: float | None = None
257
+ creditsLimit: float | None = None
258
+ creditsUsed: float | None = None
259
+ email: str | None = None
260
+ firstname: str | None = None
261
+ githubId: str | None = None
262
+ lastname: str | None = None
263
+ role: Role | None = None
264
+ rpmLimit: int | None = None
265
+ tpmLimit: int | None = None
266
+ uuid: str | None = None
267
+
268
+
269
+ ApiKeyOutputModel.model_rebuild()
270
+ LoginOutputModel.model_rebuild()
@@ -0,0 +1,270 @@
1
+ # AUTO-GENERATED by client-generator/generate.sh — do not edit by hand.
2
+
3
+ from __future__ import annotations
4
+
5
+ from enum import StrEnum
6
+ from typing import Any
7
+
8
+ from pydantic import AwareDatetime, BaseModel, ConfigDict, Field
9
+
10
+
11
+ class AddCandidateResponse(BaseModel):
12
+ model_config = ConfigDict(
13
+ extra="forbid",
14
+ )
15
+ agent_id: str = Field(..., min_length=1)
16
+
17
+
18
+ class AgentFilterDto(BaseModel):
19
+ model_config = ConfigDict(
20
+ extra="forbid",
21
+ )
22
+ op: str | None = None
23
+ path: str | None = None
24
+ value: Any | None = None
25
+
26
+
27
+ class AgentInArenaDto(BaseModel):
28
+ model_config = ConfigDict(
29
+ extra="forbid",
30
+ )
31
+ agent_id: str
32
+ created_at: AwareDatetime | None = None
33
+ cycle_id: str
34
+ forge_id: str
35
+ metrics_json: Any
36
+ model_json: Any
37
+ origin_evolution_cycle_id: str | None = None
38
+ parent_evolver_id: str | None = None
39
+ parent_meta_agent_id: str | None = None
40
+ role: str | None = None
41
+ score: float | None = None
42
+ submitted_at: AwareDatetime | None = None
43
+
44
+
45
+ class AgentRole(StrEnum):
46
+ evolver = "evolver"
47
+ meta = "meta"
48
+
49
+
50
+ class ApiKeyInputModel(BaseModel):
51
+ model_config = ConfigDict(
52
+ extra="forbid",
53
+ )
54
+ expirationDate: AwareDatetime | None = None
55
+ userUuid: str | None = None
56
+
57
+
58
+ class ArenaEntryDto(BaseModel):
59
+ model_config = ConfigDict(
60
+ extra="forbid",
61
+ )
62
+ agent_id: str = Field(..., min_length=1)
63
+ agent_model: Any
64
+ cycle_id: str = Field(..., min_length=1)
65
+ evaluation_metrics: Any
66
+ origin_evolution_cycle_id: str | None = None
67
+ parent_evolver_id: str | None = None
68
+ parent_meta_agent_id: str | None = None
69
+ role: str | None = None
70
+ score: float
71
+
72
+
73
+ class EndCycleRequest(BaseModel):
74
+ model_config = ConfigDict(
75
+ extra="forbid",
76
+ )
77
+ best_agent_ids: list[str]
78
+
79
+
80
+ class LoginInputModel(BaseModel):
81
+ model_config = ConfigDict(
82
+ extra="forbid",
83
+ )
84
+ email: str | None = None
85
+ password: str | None = None
86
+
87
+
88
+ class ProblemDetails(BaseModel):
89
+ detail: str | None = None
90
+ instance: str | None = None
91
+ status: int | None = None
92
+ title: str | None = None
93
+ type: str | None = None
94
+
95
+
96
+ class QueryAgentsResponse(BaseModel):
97
+ model_config = ConfigDict(
98
+ extra="forbid",
99
+ )
100
+ agents: list[AgentInArenaDto] | None = None
101
+
102
+
103
+ class QuotaSelfOutput(BaseModel):
104
+ model_config = ConfigDict(
105
+ extra="forbid",
106
+ )
107
+ availableCredits: float | None = None
108
+ creditsLimit: float | None = None
109
+ creditsUsed: float | None = None
110
+ rpmLimit: int | None = None
111
+ tpmLimit: int | None = None
112
+
113
+
114
+ class Role(StrEnum):
115
+ USER = "USER"
116
+ ADMIN = "ADMIN"
117
+
118
+
119
+ class SelfApiKeyInputModel(BaseModel):
120
+ model_config = ConfigDict(
121
+ extra="forbid",
122
+ )
123
+ expirationDate: AwareDatetime | None = None
124
+
125
+
126
+ class SelfUserInputModel(BaseModel):
127
+ model_config = ConfigDict(
128
+ extra="forbid",
129
+ )
130
+ email: str | None = None
131
+ firstname: str | None = None
132
+ githubId: str | None = None
133
+ lastname: str | None = None
134
+ password: str | None = None
135
+
136
+
137
+ class SignupInputModel(BaseModel):
138
+ model_config = ConfigDict(
139
+ extra="forbid",
140
+ )
141
+ email: str | None = None
142
+ firstname: str | None = None
143
+ githubId: str | None = None
144
+ lastname: str | None = None
145
+ password: str | None = None
146
+
147
+
148
+ class SortCriterionDto(BaseModel):
149
+ model_config = ConfigDict(
150
+ extra="forbid",
151
+ )
152
+ direction: str | None = None
153
+ field: str | None = None
154
+
155
+
156
+ class StartCycleRequest(BaseModel):
157
+ model_config = ConfigDict(
158
+ extra="forbid",
159
+ )
160
+ budget: float | None = None
161
+ cycle_id: str = Field(..., min_length=1)
162
+ ecosystem_id: str = Field(..., min_length=1)
163
+ forge_id: str = Field(..., min_length=1)
164
+ max_iterations: int | None = None
165
+ n_best_agents_to_return: int | None = None
166
+ override_key: bool | None = None
167
+
168
+
169
+ class StartCycleResponse(BaseModel):
170
+ model_config = ConfigDict(
171
+ extra="forbid",
172
+ )
173
+ compute_token: str = Field(..., min_length=1)
174
+ created_at: AwareDatetime
175
+ ecosystem_id: str = Field(..., min_length=1)
176
+ evolution_cycle_id: str = Field(..., min_length=1)
177
+ expires_at: AwareDatetime
178
+
179
+
180
+ class SubmitEntriesRequest(BaseModel):
181
+ model_config = ConfigDict(
182
+ extra="forbid",
183
+ )
184
+ entries: list[ArenaEntryDto]
185
+
186
+
187
+ class UpdateQuotaInput(BaseModel):
188
+ model_config = ConfigDict(
189
+ extra="forbid",
190
+ )
191
+ rpmLimit: int | None = None
192
+ tpmLimit: int | None = None
193
+
194
+
195
+ class UserInputModel(BaseModel):
196
+ model_config = ConfigDict(
197
+ extra="forbid",
198
+ )
199
+ creditsLimit: float | None = None
200
+ email: str | None = None
201
+ firstname: str | None = None
202
+ githubId: str | None = None
203
+ lastname: str | None = None
204
+ password: str | None = None
205
+ role: Role | None = None
206
+ rpmLimit: int | None = None
207
+ tpmLimit: int | None = None
208
+
209
+
210
+ class AddCandidateRequest(BaseModel):
211
+ model_config = ConfigDict(
212
+ extra="forbid",
213
+ )
214
+ agent_id: str = Field(..., min_length=1)
215
+ agent_model: Any
216
+ origin_evolution_cycle_id: str | None = None
217
+ parent_evolver_id: str | None = None
218
+ parent_meta_agent_id: str | None = None
219
+ role: AgentRole | None = None
220
+
221
+
222
+ class AgentQueryDto(BaseModel):
223
+ model_config = ConfigDict(
224
+ extra="forbid",
225
+ )
226
+ filters: list[AgentFilterDto] | None = None
227
+ limit: int | None = None
228
+ shuffle: bool | None = None
229
+ sort: list[SortCriterionDto] | None = None
230
+
231
+
232
+ class ApiKeyOutputModel(BaseModel):
233
+ model_config = ConfigDict(
234
+ extra="forbid",
235
+ )
236
+ createdAt: AwareDatetime | None = None
237
+ expirationDate: AwareDatetime | None = None
238
+ key: str | None = None
239
+ user: UserOutputModel | None = None
240
+ uuid: str | None = None
241
+
242
+
243
+ class LoginOutputModel(BaseModel):
244
+ model_config = ConfigDict(
245
+ extra="forbid",
246
+ )
247
+ token: str | None = None
248
+ user: UserOutputModel | None = None
249
+
250
+
251
+ class UserOutputModel(BaseModel):
252
+ model_config = ConfigDict(
253
+ extra="forbid",
254
+ )
255
+ apiKeys: list[ApiKeyOutputModel] | None = None
256
+ availableCredits: float | None = None
257
+ creditsLimit: float | None = None
258
+ creditsUsed: float | None = None
259
+ email: str | None = None
260
+ firstname: str | None = None
261
+ githubId: str | None = None
262
+ lastname: str | None = None
263
+ role: Role | None = None
264
+ rpmLimit: int | None = None
265
+ tpmLimit: int | None = None
266
+ uuid: str | None = None
267
+
268
+
269
+ ApiKeyOutputModel.model_rebuild()
270
+ LoginOutputModel.model_rebuild()
@@ -0,0 +1,38 @@
1
+ Metadata-Version: 2.4
2
+ Name: ebiose-cloud-sdk
3
+ Version: 0.1.263
4
+ Summary: Auto-generated Pydantic models for the Ebiose Cloud Backend API.
5
+ Author: Ebiose
6
+ Requires-Python: >=3.12
7
+ Requires-Dist: pydantic>=2
8
+ Description-Content-Type: text/markdown
9
+
10
+ # ebiose-cloud-sdk
11
+
12
+ Auto-generated Pydantic v2 models for the Ebiose Cloud Backend API.
13
+
14
+ ## Generation
15
+
16
+ This package is regenerated from the Backend's OpenAPI spec
17
+ (`/swagger/v1/swagger.json`) by `client-generator/generate.sh`.
18
+
19
+ Do not hand-edit `ebiose_cloud_sdk/models.py` — it will be overwritten on
20
+ next regeneration.
21
+
22
+ ## Local install
23
+
24
+ From `ebiose-core/`:
25
+
26
+ ```bash
27
+ uv pip install -e ../client-generator/python/
28
+ ```
29
+
30
+ ## Distribution
31
+
32
+ Published to [PyPI](https://pypi.org/project/ebiose-cloud-sdk/) via Trusted
33
+ Publishing (OIDC) by `.github/workflows/sdk-publish.yml` on changes to
34
+ `Backend/**` or `client-generator/**` on `staging` and `main`.
35
+
36
+ ```bash
37
+ pip install ebiose-cloud-sdk
38
+ ```
@@ -0,0 +1,6 @@
1
+ ebiose_cloud_sdk/__init__.py,sha256=uwVCGOttiqSaSyGh9VBipaQoInVgySq_V84NRSKpO1c,94
2
+ ebiose_cloud_sdk/models.py,sha256=g2AaYKlFRB1YNoGkw88ADYrsSmgHgKAa1-JsWD6zeqY,6476
3
+ ebiose_cloud_sdk/models/__init__.py,sha256=g2AaYKlFRB1YNoGkw88ADYrsSmgHgKAa1-JsWD6zeqY,6476
4
+ ebiose_cloud_sdk-0.1.263.dist-info/METADATA,sha256=smVb-XiB3w4QrxfDLBeZ5LJ3cc7JWvUlSez_7DMrhRc,936
5
+ ebiose_cloud_sdk-0.1.263.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
6
+ ebiose_cloud_sdk-0.1.263.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any