ebiose-cloud-sdk 0.1.2519.dev0__tar.gz → 0.1.2536.dev0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ebiose-cloud-sdk
3
- Version: 0.1.2519.dev0
3
+ Version: 0.1.2536.dev0
4
4
  Summary: Auto-generated Pydantic models for the Ebiose Cloud Backend API.
5
5
  Author: Ebiose
6
6
  Requires-Python: >=3.12
@@ -32,43 +32,35 @@ class AdminCreditRequestOutputModel(BaseModel):
32
32
  use_case: str | None = None
33
33
 
34
34
 
35
- class AgentFilterDto(BaseModel):
36
- model_config = ConfigDict(
37
- extra="forbid",
38
- )
39
- op: str | None = None
40
- path: str | None = None
41
- value: Any | None = None
42
-
43
-
44
- class AgentInArenaDto(BaseModel):
35
+ class AgentDto(BaseModel):
45
36
  model_config = ConfigDict(
46
37
  extra="forbid",
47
38
  )
39
+ admitted_at: AwareDatetime | None = None
48
40
  agent_id: str
41
+ born_in_cycle_id: str | None = None
49
42
  cost: float
50
43
  created_at: AwareDatetime | None = None
51
- cycle_id: str
52
44
  definition_json: Any
53
45
  depth: int
54
46
  derived_from_agent_id: str | None = None
55
- forge_id: str
47
+ ecosystem_id: str | None = None
56
48
  founder: str | None = None
57
- metrics_json: Any
58
49
  name: str
59
50
  origin_evolution_cycle_id: str | None = None
60
51
  parent_agent_ids: list[str]
61
52
  parent_evolver_id: str | None = None
62
53
  parent_meta_agent_id: str | None = None
63
54
  role: str | None = None
64
- score: float | None = None
65
- submitted_at: AwareDatetime | None = None
55
+ topology_digest: str | None = None
56
+ xp: float | None = None
66
57
 
67
58
 
68
59
  class AgentLeaderboardEntryDto(BaseModel):
69
60
  model_config = ConfigDict(
70
61
  extra="forbid",
71
62
  )
63
+ admitted: bool | None = None
72
64
  agent_id: str | None = None
73
65
  created_at: AwareDatetime | None = None
74
66
  fitness: float | None = None
@@ -211,6 +203,50 @@ class CycleStatus(StrEnum):
211
203
  expired = "expired"
212
204
 
213
205
 
206
+ class EcosystemDetail(BaseModel):
207
+ model_config = ConfigDict(
208
+ extra="forbid",
209
+ )
210
+ age: int
211
+ decay: float
212
+ ecosystem_id: str
213
+ food: float
214
+ hp_initial: float
215
+ is_default: bool
216
+ law: str
217
+ living: int
218
+ name: str
219
+ spawn_price: float
220
+
221
+
222
+ class EcosystemSummary(BaseModel):
223
+ model_config = ConfigDict(
224
+ extra="forbid",
225
+ )
226
+ ecosystem_id: str
227
+ is_default: bool
228
+ name: str
229
+
230
+
231
+ class EnsureDefaultEcosystemRequest(BaseModel):
232
+ model_config = ConfigDict(
233
+ extra="forbid",
234
+ )
235
+ decay: float | None = None
236
+ food: float | None = None
237
+ hp_initial: float | None = None
238
+ law: str | None = None
239
+ spawn_price: float | None = None
240
+
241
+
242
+ class EnsureDefaultEcosystemResponse(BaseModel):
243
+ model_config = ConfigDict(
244
+ extra="forbid",
245
+ )
246
+ ecosystem_id: str
247
+ name: str
248
+
249
+
214
250
  class EventDetailsResponse(BaseModel):
215
251
  model_config = ConfigDict(
216
252
  extra="forbid",
@@ -288,6 +324,13 @@ class GeneResponse(BaseModel):
288
324
  slot_id: str | None = None
289
325
 
290
326
 
327
+ class GetAgentsResponse(BaseModel):
328
+ model_config = ConfigDict(
329
+ extra="forbid",
330
+ )
331
+ agents: list[AgentDto] | None = None
332
+
333
+
291
334
  class IngestEventDto(BaseModel):
292
335
  model_config = ConfigDict(
293
336
  extra="forbid",
@@ -320,6 +363,13 @@ class ListAgentsResponse(BaseModel):
320
363
  next_cursor: str | None = None
321
364
 
322
365
 
366
+ class ListEcosystemsResponse(BaseModel):
367
+ model_config = ConfigDict(
368
+ extra="forbid",
369
+ )
370
+ items: list[EcosystemSummary]
371
+
372
+
323
373
  class ListEventsResponse(BaseModel):
324
374
  model_config = ConfigDict(
325
375
  extra="forbid",
@@ -405,6 +455,63 @@ class LoginInputModel(BaseModel):
405
455
  password: str | None = None
406
456
 
407
457
 
458
+ class MetabolismEntryDto(BaseModel):
459
+ model_config = ConfigDict(
460
+ extra="forbid",
461
+ )
462
+ age_after: int
463
+ born: int
464
+ created_at: AwareDatetime
465
+ cycle_id: str
466
+ decay_per_head: float
467
+ effort_total: float
468
+ exhausted: int
469
+ fed: int
470
+ hp_total_after: float
471
+ law: str
472
+ pool_size: int
473
+ population_after: int
474
+ population_before: int
475
+ spawns: int
476
+ starved: int
477
+
478
+
479
+ class MetabolismPage(BaseModel):
480
+ model_config = ConfigDict(
481
+ extra="forbid",
482
+ )
483
+ items: list[MetabolismEntryDto]
484
+ total: int
485
+
486
+
487
+ class MetabolismReportDto(BaseModel):
488
+ model_config = ConfigDict(
489
+ extra="forbid",
490
+ )
491
+ age_after: int
492
+ born: list[str]
493
+ exhausted: int
494
+ fed: list[str]
495
+ hp_total_after: float
496
+ population_after: int
497
+ population_before: int
498
+ starved: int
499
+
500
+
501
+ class MetabolizeRequest(BaseModel):
502
+ model_config = ConfigDict(
503
+ extra="forbid",
504
+ )
505
+ cycle_id: str
506
+ decay_per_head: float
507
+ effort_by_agent: dict[str, float]
508
+ hp_initial: float
509
+ law: str
510
+ run_cost_by_winner: dict[str, float] | None = None
511
+ spawns: int
512
+ winners: list[str]
513
+
514
+
408
515
  class ModelInfo(BaseModel):
409
516
  model_config = ConfigDict(
410
517
  extra="forbid",
@@ -442,6 +549,8 @@ class PersistAgentRequest(BaseModel):
442
549
  parent_meta_agent_id: str | None = None
443
550
  phenotype: Any
444
551
  role: AgentRole | None = None
552
+ topology_digest: str | None = None
553
+ xp: float | None = None
445
554
 
446
555
 
447
556
  class PersistAgentResponse(BaseModel):
@@ -451,6 +560,27 @@ class PersistAgentResponse(BaseModel):
451
560
  agent_id: str = Field(..., min_length=1)
452
561
 
453
562
 
563
+ class PopulationHeader(BaseModel):
564
+ model_config = ConfigDict(
565
+ extra="forbid",
566
+ )
567
+ admitted_at: AwareDatetime
568
+ agent_id: str
569
+ born_in_cycle_id: str
570
+ hp: float
571
+ run_cost: float | None = None
572
+ topology_digest: str | None = None
573
+ xp: float
574
+
575
+
576
+ class PopulationPage(BaseModel):
577
+ model_config = ConfigDict(
578
+ extra="forbid",
579
+ )
580
+ items: list[PopulationHeader]
581
+ total: int
582
+
583
+
454
584
  class ProblemDetails(BaseModel):
455
585
  model_config = ConfigDict(
456
586
  extra="allow",
@@ -463,13 +593,6 @@ class ProblemDetails(BaseModel):
463
593
  type: str | None = None
464
594
 
465
595
 
466
- class QueryAgentsResponse(BaseModel):
467
- model_config = ConfigDict(
468
- extra="forbid",
469
- )
470
- agents: list[AgentInArenaDto] | None = None
471
-
472
-
473
596
  class RedeemCreditCodeInput(BaseModel):
474
597
  model_config = ConfigDict(
475
598
  extra="forbid",
@@ -518,14 +641,6 @@ class SignupInputModel(BaseModel):
518
641
  password: str | None = None
519
642
 
520
643
 
521
- class SortCriterionDto(BaseModel):
522
- model_config = ConfigDict(
523
- extra="forbid",
524
- )
525
- direction: str | None = None
526
- field: str | None = None
527
-
528
-
529
644
  class Spend(BaseModel):
530
645
  model_config = ConfigDict(
531
646
  extra="forbid",
@@ -561,7 +676,7 @@ class StartCycleRequest(BaseModel):
561
676
  budget: float | None = None
562
677
  cycle_config: CycleConfigInputModel | None = None
563
678
  cycle_id: str = Field(..., min_length=1)
564
- ecosystem_id: str = Field(..., min_length=1)
679
+ ecosystem_id: str | None = None
565
680
  forge_id: str = Field(..., min_length=1)
566
681
  forge_name: str = Field(..., min_length=1)
567
682
  forge_spec_json: Any
@@ -703,17 +818,10 @@ class AddCandidateRequest(BaseModel):
703
818
  parent_evolver_id: str | None = None
704
819
  parent_meta_agent_id: str | None = None
705
820
  phenotype: Any
821
+ recruited: bool | None = None
706
822
  role: AgentRole | None = None
707
-
708
-
709
- class AgentQueryDto(BaseModel):
710
- model_config = ConfigDict(
711
- extra="forbid",
712
- )
713
- filters: list[AgentFilterDto] | None = None
714
- limit: int | None = None
715
- shuffle: bool | None = None
716
- sort: list[SortCriterionDto] | None = None
823
+ topology_digest: str | None = None
824
+ xp: float | None = None
717
825
 
718
826
 
719
827
  class BulkGrantOutputModel(BaseModel):
@@ -4,7 +4,7 @@
4
4
 
5
5
  [project]
6
6
  name = "ebiose-cloud-sdk"
7
- version = "0.1.2519.dev0"
7
+ version = "0.1.2536.dev0"
8
8
  description = "Auto-generated Pydantic models for the Ebiose Cloud Backend API."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"