plato-sdk-v2 2.7.3__py3-none-any.whl → 2.7.5__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.
- plato/_generated/__init__.py +1 -1
- plato/_generated/api/v1/testcases/get_testcase_metadata_for_scoring.py +6 -6
- plato/_generated/api/v2/__init__.py +14 -2
- plato/_generated/api/v2/admin/__init__.py +3 -0
- plato/_generated/api/v2/admin/cache/__init__.py +11 -0
- plato/_generated/api/v2/admin/cache/clear_all.py +74 -0
- plato/_generated/api/v2/admin/cache/clear_single_cache.py +79 -0
- plato/_generated/api/v2/admin/cache/delete_key.py +84 -0
- plato/_generated/api/v2/admin/cache/get_stats.py +70 -0
- plato/_generated/api/v2/admin/cache/list_cache_names.py +67 -0
- plato/_generated/api/v2/sessions/__init__.py +3 -1
- plato/_generated/api/v2/sessions/add_job.py +97 -0
- plato/_generated/api/v2/sessions/connect_network.py +2 -17
- plato/_generated/models/__init__.py +208 -109
- plato/chronos/api/agents/get_agent_schema.py +5 -5
- plato/chronos/api/agents/get_agent_versions.py +5 -5
- plato/chronos/api/agents/list_agents.py +5 -5
- plato/chronos/api/registry/get_agent_schema_api_registry_agents__agent_name__schema_get.py +5 -5
- plato/chronos/api/registry/get_agent_versions_api_registry_agents__agent_name__versions_get.py +5 -5
- plato/chronos/api/registry/list_registry_agents_api_registry_agents_get.py +5 -5
- plato/chronos/api/sessions/__init__.py +2 -0
- plato/chronos/api/sessions/complete_session.py +4 -2
- plato/chronos/api/sessions/list_session_creators.py +57 -0
- plato/chronos/api/sessions/list_sessions.py +30 -2
- plato/chronos/models/__init__.py +39 -19
- plato/v1/cli/sandbox.py +0 -6
- plato/v2/async_/session.py +1 -20
- plato/v2/sync/session.py +1 -20
- {plato_sdk_v2-2.7.3.dist-info → plato_sdk_v2-2.7.5.dist-info}/METADATA +1 -1
- {plato_sdk_v2-2.7.3.dist-info → plato_sdk_v2-2.7.5.dist-info}/RECORD +32 -23
- {plato_sdk_v2-2.7.3.dist-info → plato_sdk_v2-2.7.5.dist-info}/WHEEL +0 -0
- {plato_sdk_v2-2.7.3.dist-info → plato_sdk_v2-2.7.5.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
|
-
# filename:
|
|
3
|
-
# timestamp: 2026-01-
|
|
2
|
+
# filename: tmpio7emwyr.json
|
|
3
|
+
# timestamp: 2026-01-29T20:21:27+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -36,18 +36,6 @@ class Outcome(Enum):
|
|
|
36
36
|
reject = "reject"
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class AddReviewRequest(BaseModel):
|
|
40
|
-
model_config = ConfigDict(
|
|
41
|
-
extra="allow",
|
|
42
|
-
)
|
|
43
|
-
review_type: Annotated[ReviewType, Field(title="Review Type")]
|
|
44
|
-
outcome: Annotated[Outcome, Field(title="Outcome")]
|
|
45
|
-
artifact_id: Annotated[str, Field(title="Artifact Id")]
|
|
46
|
-
video_s3_path: Annotated[str | None, Field(title="Video S3 Path")] = None
|
|
47
|
-
events_s3_path: Annotated[str | None, Field(title="Events S3 Path")] = None
|
|
48
|
-
comments: Annotated[str | None, Field(title="Comments")] = None
|
|
49
|
-
|
|
50
|
-
|
|
51
39
|
class AddSSHKeyRequest(BaseModel):
|
|
52
40
|
model_config = ConfigDict(
|
|
53
41
|
extra="allow",
|
|
@@ -458,6 +446,57 @@ class BulkArchiveTestCasesRequest(BaseModel):
|
|
|
458
446
|
test_case_ids: Annotated[list[int], Field(title="Test Case Ids")]
|
|
459
447
|
|
|
460
448
|
|
|
449
|
+
class CacheClearAllResponse(BaseModel):
|
|
450
|
+
model_config = ConfigDict(
|
|
451
|
+
extra="allow",
|
|
452
|
+
)
|
|
453
|
+
caches_cleared: Annotated[dict[str, int], Field(title="Caches Cleared")]
|
|
454
|
+
total_cleared: Annotated[int, Field(title="Total Cleared")]
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
class CacheClearResponse(BaseModel):
|
|
458
|
+
model_config = ConfigDict(
|
|
459
|
+
extra="allow",
|
|
460
|
+
)
|
|
461
|
+
cache_name: Annotated[str, Field(title="Cache Name")]
|
|
462
|
+
entries_cleared: Annotated[int, Field(title="Entries Cleared")]
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
class CacheKeyDeleteResponse(BaseModel):
|
|
466
|
+
model_config = ConfigDict(
|
|
467
|
+
extra="allow",
|
|
468
|
+
)
|
|
469
|
+
cache_name: Annotated[str, Field(title="Cache Name")]
|
|
470
|
+
key: Annotated[str, Field(title="Key")]
|
|
471
|
+
deleted: Annotated[bool, Field(title="Deleted")]
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
class CacheName(Enum):
|
|
475
|
+
artifact = "artifact"
|
|
476
|
+
artifact_tag = "artifact_tag"
|
|
477
|
+
simulator = "simulator"
|
|
478
|
+
handler = "handler"
|
|
479
|
+
service_type = "service_type"
|
|
480
|
+
organization = "organization"
|
|
481
|
+
api_key = "api_key"
|
|
482
|
+
access = "access"
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
class CacheStats(BaseModel):
|
|
486
|
+
model_config = ConfigDict(
|
|
487
|
+
extra="allow",
|
|
488
|
+
)
|
|
489
|
+
size: Annotated[int, Field(title="Size")]
|
|
490
|
+
ttl_seconds: Annotated[int, Field(title="Ttl Seconds")]
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
class CacheStatsResponse(BaseModel):
|
|
494
|
+
model_config = ConfigDict(
|
|
495
|
+
extra="allow",
|
|
496
|
+
)
|
|
497
|
+
caches: Annotated[dict[str, CacheStats], Field(title="Caches")]
|
|
498
|
+
|
|
499
|
+
|
|
461
500
|
class Capability(Enum):
|
|
462
501
|
forms_and_inputs = "forms_and_inputs"
|
|
463
502
|
search_and_extract = "search_and_extract"
|
|
@@ -630,13 +669,6 @@ class CloseSessionResponse(BaseModel):
|
|
|
630
669
|
"""
|
|
631
670
|
|
|
632
671
|
|
|
633
|
-
class ConnectNetworkRequest(BaseModel):
|
|
634
|
-
model_config = ConfigDict(
|
|
635
|
-
extra="allow",
|
|
636
|
-
)
|
|
637
|
-
host_only: Annotated[bool | None, Field(title="Host Only")] = False
|
|
638
|
-
|
|
639
|
-
|
|
640
672
|
class ConnectRoutingInfoResult(BaseModel):
|
|
641
673
|
model_config = ConfigDict(
|
|
642
674
|
extra="allow",
|
|
@@ -855,7 +887,6 @@ class CreateNetworkResponse(BaseModel):
|
|
|
855
887
|
)
|
|
856
888
|
session_id: Annotated[str, Field(title="Session Id")]
|
|
857
889
|
name: Annotated[str | None, Field(title="Name")] = None
|
|
858
|
-
subnet: Annotated[str, Field(title="Subnet")]
|
|
859
890
|
dns_suffix: Annotated[str, Field(title="Dns Suffix")]
|
|
860
891
|
status: Annotated[str, Field(title="Status")]
|
|
861
892
|
|
|
@@ -1774,7 +1805,6 @@ class NetworkResponse(BaseModel):
|
|
|
1774
1805
|
)
|
|
1775
1806
|
session_id: Annotated[str, Field(title="Session Id")]
|
|
1776
1807
|
name: Annotated[str | None, Field(title="Name")] = None
|
|
1777
|
-
subnet: Annotated[str, Field(title="Subnet")]
|
|
1778
1808
|
dns_suffix: Annotated[str, Field(title="Dns Suffix")]
|
|
1779
1809
|
status: Annotated[str, Field(title="Status")]
|
|
1780
1810
|
member_count: Annotated[int, Field(title="Member Count")]
|
|
@@ -1885,6 +1915,18 @@ class NodeSessionNetworkConfig(BaseModel):
|
|
|
1885
1915
|
"""
|
|
1886
1916
|
Enable session networking (WireGuard-based VM-to-VM communication).
|
|
1887
1917
|
"""
|
|
1918
|
+
gateway_public_key: Annotated[str | None, Field(title="Gateway Public Key")] = None
|
|
1919
|
+
"""
|
|
1920
|
+
WireGuard public key of the session network gateway.
|
|
1921
|
+
"""
|
|
1922
|
+
gateway_endpoint: Annotated[str | None, Field(title="Gateway Endpoint")] = None
|
|
1923
|
+
"""
|
|
1924
|
+
Gateway WireGuard endpoint (ip:port), e.g., '10.0.0.1:51820'.
|
|
1925
|
+
"""
|
|
1926
|
+
gateway_ip: Annotated[str | None, Field(title="Gateway Ip")] = "10.255.0.1"
|
|
1927
|
+
"""
|
|
1928
|
+
Gateway's WireGuard IP address.
|
|
1929
|
+
"""
|
|
1888
1930
|
|
|
1889
1931
|
|
|
1890
1932
|
class NodeSnapshotStoreConfig(BaseModel):
|
|
@@ -2700,18 +2742,12 @@ class SimResetLogInput(BaseModel):
|
|
|
2700
2742
|
"""
|
|
2701
2743
|
|
|
2702
2744
|
|
|
2703
|
-
class
|
|
2745
|
+
class SimReviewComment(BaseModel):
|
|
2704
2746
|
model_config = ConfigDict(
|
|
2705
2747
|
extra="allow",
|
|
2706
2748
|
)
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
outcome: Annotated[Outcome, Field(title="Outcome")]
|
|
2710
|
-
artifact_id: Annotated[str, Field(title="Artifact Id")]
|
|
2711
|
-
video_s3_path: Annotated[str | None, Field(title="Video S3 Path")] = None
|
|
2712
|
-
events_s3_path: Annotated[str | None, Field(title="Events S3 Path")] = None
|
|
2713
|
-
comments: Annotated[str | None, Field(title="Comments")] = None
|
|
2714
|
-
reviewer_user_id: Annotated[int | None, Field(title="Reviewer User Id")] = None
|
|
2749
|
+
comment: Annotated[str, Field(title="Comment")]
|
|
2750
|
+
s3_path: Annotated[str, Field(title="S3 Path")]
|
|
2715
2751
|
|
|
2716
2752
|
|
|
2717
2753
|
class SimStatusHistory(BaseModel):
|
|
@@ -2760,27 +2796,6 @@ class Status1(Enum):
|
|
|
2760
2796
|
out_of_service = "out_of_service"
|
|
2761
2797
|
|
|
2762
2798
|
|
|
2763
|
-
class SimulatorConfig(BaseModel):
|
|
2764
|
-
model_config = ConfigDict(
|
|
2765
|
-
extra="allow",
|
|
2766
|
-
)
|
|
2767
|
-
type: Annotated[Type8, Field(title="Type")]
|
|
2768
|
-
cookies: Annotated[list[ChromeCookie] | None, Field(title="Cookies")] = None
|
|
2769
|
-
authentication: Authentication | None = None
|
|
2770
|
-
default_start_path: Annotated[str | None, Field(title="Default Start Path")] = "/"
|
|
2771
|
-
status: Annotated[Status1 | None, Field(title="Status")] = Status1.not_started
|
|
2772
|
-
env_assignees: Annotated[list[int] | None, Field(title="Env Assignees")] = None
|
|
2773
|
-
env_review_assignees: Annotated[list[int] | None, Field(title="Env Review Assignees")] = None
|
|
2774
|
-
data_assignees: Annotated[list[int] | None, Field(title="Data Assignees")] = None
|
|
2775
|
-
data_review_assignees: Annotated[list[int] | None, Field(title="Data Review Assignees")] = None
|
|
2776
|
-
status_history: Annotated[list[SimStatusHistory] | None, Field(title="Status History")] = None
|
|
2777
|
-
reviews: Annotated[list[SimReview] | None, Field(title="Reviews")] = None
|
|
2778
|
-
assigned_user_id: Annotated[int | None, Field(title="Assigned User Id")] = None
|
|
2779
|
-
base_artifact_id: Annotated[str | None, Field(title="Base Artifact Id")] = None
|
|
2780
|
-
data_artifact_id: Annotated[str | None, Field(title="Data Artifact Id")] = None
|
|
2781
|
-
notes: Annotated[str | None, Field(title="Notes")] = None
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
2799
|
class SimulatorIdResponse(BaseModel):
|
|
2785
2800
|
model_config = ConfigDict(
|
|
2786
2801
|
extra="allow",
|
|
@@ -2804,16 +2819,6 @@ class SimulatorListItem(BaseModel):
|
|
|
2804
2819
|
image_uri: Annotated[str | None, Field(title="Image Uri")] = None
|
|
2805
2820
|
|
|
2806
2821
|
|
|
2807
|
-
class SimulatorMetadata(BaseModel):
|
|
2808
|
-
model_config = ConfigDict(
|
|
2809
|
-
extra="allow",
|
|
2810
|
-
)
|
|
2811
|
-
id: Annotated[int, Field(title="Id")]
|
|
2812
|
-
name: Annotated[str, Field(title="Name")]
|
|
2813
|
-
imgUrl: Annotated[str | None, Field(title="Imgurl")] = None
|
|
2814
|
-
config: SimulatorConfig | None = None
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
2822
|
class SimulatorRepositoryResponse(BaseModel):
|
|
2818
2823
|
model_config = ConfigDict(
|
|
2819
2824
|
extra="allow",
|
|
@@ -3673,23 +3678,6 @@ class AppApiV1EnvRoutesBatchLogRequest(BaseModel):
|
|
|
3673
3678
|
count: Annotated[int, Field(title="Count")]
|
|
3674
3679
|
|
|
3675
3680
|
|
|
3676
|
-
class AppApiV1EnvRoutesUpdateSimulatorRequest(BaseModel):
|
|
3677
|
-
model_config = ConfigDict(
|
|
3678
|
-
extra="allow",
|
|
3679
|
-
)
|
|
3680
|
-
name: Annotated[str | None, Field(title="Name")] = None
|
|
3681
|
-
url: Annotated[str | None, Field(title="Url")] = None
|
|
3682
|
-
description: Annotated[str | None, Field(title="Description")] = None
|
|
3683
|
-
imgUrl: Annotated[str | None, Field(title="Imgurl")] = None
|
|
3684
|
-
config: SimulatorConfig | None = None
|
|
3685
|
-
ancestors: Annotated[list[str] | None, Field(title="Ancestors")] = None
|
|
3686
|
-
enabled: Annotated[bool | None, Field(title="Enabled")] = None
|
|
3687
|
-
simType: Annotated[str | None, Field(title="Simtype")] = None
|
|
3688
|
-
jobName: Annotated[str | None, Field(title="Jobname")] = None
|
|
3689
|
-
internalAppPort: Annotated[int | None, Field(title="Internalappport")] = None
|
|
3690
|
-
supportedProviders: Annotated[list[str] | None, Field(title="Supportedproviders")] = None
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
3681
|
class AppApiV1PublicBuildRoutesCreateSnapshotRequest(BaseModel):
|
|
3694
3682
|
model_config = ConfigDict(
|
|
3695
3683
|
extra="allow",
|
|
@@ -4150,6 +4138,33 @@ class ModelsScoringConfigJSONSchemaDraft7(BaseModel):
|
|
|
4150
4138
|
"""
|
|
4151
4139
|
|
|
4152
4140
|
|
|
4141
|
+
class AddJobResponse(BaseModel):
|
|
4142
|
+
model_config = ConfigDict(
|
|
4143
|
+
extra="allow",
|
|
4144
|
+
)
|
|
4145
|
+
session_id: Annotated[str, Field(title="Session Id")]
|
|
4146
|
+
"""
|
|
4147
|
+
Session ID the job was added to
|
|
4148
|
+
"""
|
|
4149
|
+
env: EnvInfo
|
|
4150
|
+
"""
|
|
4151
|
+
Created environment info
|
|
4152
|
+
"""
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
class AddReviewRequest(BaseModel):
|
|
4156
|
+
model_config = ConfigDict(
|
|
4157
|
+
extra="allow",
|
|
4158
|
+
)
|
|
4159
|
+
review_type: Annotated[ReviewType, Field(title="Review Type")]
|
|
4160
|
+
outcome: Annotated[Outcome, Field(title="Outcome")]
|
|
4161
|
+
artifact_id: Annotated[str, Field(title="Artifact Id")]
|
|
4162
|
+
video_s3_path: Annotated[str | None, Field(title="Video S3 Path")] = None
|
|
4163
|
+
events_s3_path: Annotated[str | None, Field(title="Events S3 Path")] = None
|
|
4164
|
+
comments: Annotated[str | None, Field(title="Comments")] = None
|
|
4165
|
+
sim_comments: Annotated[list[SimReviewComment] | None, Field(title="Sim Comments")] = None
|
|
4166
|
+
|
|
4167
|
+
|
|
4153
4168
|
class AddSSHKeyResponse(BaseModel):
|
|
4154
4169
|
model_config = ConfigDict(
|
|
4155
4170
|
extra="allow",
|
|
@@ -4168,18 +4183,6 @@ class AddSSHKeyResponse(BaseModel):
|
|
|
4168
4183
|
"""
|
|
4169
4184
|
|
|
4170
4185
|
|
|
4171
|
-
class AnnotatorAssignmentListItem(BaseModel):
|
|
4172
|
-
model_config = ConfigDict(
|
|
4173
|
-
extra="allow",
|
|
4174
|
-
)
|
|
4175
|
-
assignment_id: Annotated[int, Field(title="Assignment Id")]
|
|
4176
|
-
type: AssignmentType
|
|
4177
|
-
stage: AssignmentStage
|
|
4178
|
-
simulator: SimulatorMetadata | None = None
|
|
4179
|
-
createdAt: Annotated[AwareDatetime, Field(title="Createdat")]
|
|
4180
|
-
test_case: TestCaseMetadata | None = None
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
4186
|
class AutoVerifyRequest(BaseModel):
|
|
4184
4187
|
model_config = ConfigDict(
|
|
4185
4188
|
extra="allow",
|
|
@@ -4293,23 +4296,6 @@ class CreateSessionResponse(BaseModel):
|
|
|
4293
4296
|
"""
|
|
4294
4297
|
|
|
4295
4298
|
|
|
4296
|
-
class CreateSimulatorRequest(BaseModel):
|
|
4297
|
-
model_config = ConfigDict(
|
|
4298
|
-
extra="allow",
|
|
4299
|
-
)
|
|
4300
|
-
name: Annotated[str, Field(title="Name")]
|
|
4301
|
-
url: Annotated[str | None, Field(title="Url")] = None
|
|
4302
|
-
description: Annotated[str | None, Field(title="Description")] = None
|
|
4303
|
-
imgUrl: Annotated[str | None, Field(title="Imgurl")] = None
|
|
4304
|
-
config: SimulatorConfig
|
|
4305
|
-
ancestors: Annotated[list[str] | None, Field(title="Ancestors")] = None
|
|
4306
|
-
enabled: Annotated[bool | None, Field(title="Enabled")] = False
|
|
4307
|
-
simType: Annotated[str, Field(title="Simtype")]
|
|
4308
|
-
jobName: Annotated[str | None, Field(title="Jobname")] = None
|
|
4309
|
-
internalAppPort: Annotated[int | None, Field(title="Internalappport")] = None
|
|
4310
|
-
supportedProviders: Annotated[list[str] | None, Field(title="Supportedproviders")] = None
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
4299
|
class DispatchersResponse(BaseModel):
|
|
4314
4300
|
model_config = ConfigDict(
|
|
4315
4301
|
extra="allow",
|
|
@@ -4618,6 +4604,42 @@ class SetDateResponse(BaseModel):
|
|
|
4618
4604
|
results: Annotated[dict[str, SetDateResult], Field(title="Results")]
|
|
4619
4605
|
|
|
4620
4606
|
|
|
4607
|
+
class SimReview(BaseModel):
|
|
4608
|
+
model_config = ConfigDict(
|
|
4609
|
+
extra="allow",
|
|
4610
|
+
)
|
|
4611
|
+
timestamp_iso: Annotated[str, Field(title="Timestamp Iso")]
|
|
4612
|
+
review_type: Annotated[ReviewType, Field(title="Review Type")]
|
|
4613
|
+
outcome: Annotated[Outcome, Field(title="Outcome")]
|
|
4614
|
+
artifact_id: Annotated[str, Field(title="Artifact Id")]
|
|
4615
|
+
reviewer_user_id: Annotated[int | None, Field(title="Reviewer User Id")] = None
|
|
4616
|
+
sim_comments: Annotated[list[SimReviewComment] | None, Field(title="Sim Comments")] = None
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
class SimulatorConfigInput(BaseModel):
|
|
4620
|
+
model_config = ConfigDict(
|
|
4621
|
+
extra="allow",
|
|
4622
|
+
)
|
|
4623
|
+
type: Annotated[Type8, Field(title="Type")]
|
|
4624
|
+
cookies: Annotated[list[ChromeCookie] | None, Field(title="Cookies")] = None
|
|
4625
|
+
authentication: Authentication | None = None
|
|
4626
|
+
default_start_path: Annotated[str | None, Field(title="Default Start Path")] = "/"
|
|
4627
|
+
status: Annotated[Status1 | None, Field(title="Status")] = Status1.not_started
|
|
4628
|
+
env_assignees: Annotated[list[int] | None, Field(title="Env Assignees")] = None
|
|
4629
|
+
env_review_assignees: Annotated[list[int] | None, Field(title="Env Review Assignees")] = None
|
|
4630
|
+
data_assignees: Annotated[list[int] | None, Field(title="Data Assignees")] = None
|
|
4631
|
+
data_review_assignees: Annotated[list[int] | None, Field(title="Data Review Assignees")] = None
|
|
4632
|
+
status_history: Annotated[list[SimStatusHistory] | None, Field(title="Status History")] = None
|
|
4633
|
+
reviews: Annotated[list[SimReview] | None, Field(title="Reviews")] = None
|
|
4634
|
+
assigned_user_id: Annotated[int | None, Field(title="Assigned User Id")] = None
|
|
4635
|
+
base_artifact_id: Annotated[str | None, Field(title="Base Artifact Id")] = None
|
|
4636
|
+
data_artifact_id: Annotated[str | None, Field(title="Data Artifact Id")] = None
|
|
4637
|
+
notes: Annotated[str | None, Field(title="Notes")] = None
|
|
4638
|
+
|
|
4639
|
+
|
|
4640
|
+
SimulatorConfigOutput = SimulatorConfigInput
|
|
4641
|
+
|
|
4642
|
+
|
|
4621
4643
|
class SimulatorInfoResponse(BaseModel):
|
|
4622
4644
|
model_config = ConfigDict(
|
|
4623
4645
|
extra="allow",
|
|
@@ -4627,6 +4649,16 @@ class SimulatorInfoResponse(BaseModel):
|
|
|
4627
4649
|
tags: Annotated[list[SimulatorTagInfo], Field(title="Tags")]
|
|
4628
4650
|
|
|
4629
4651
|
|
|
4652
|
+
class SimulatorMetadata(BaseModel):
|
|
4653
|
+
model_config = ConfigDict(
|
|
4654
|
+
extra="allow",
|
|
4655
|
+
)
|
|
4656
|
+
id: Annotated[int, Field(title="Id")]
|
|
4657
|
+
name: Annotated[str, Field(title="Name")]
|
|
4658
|
+
imgUrl: Annotated[str | None, Field(title="Imgurl")] = None
|
|
4659
|
+
config: SimulatorConfigOutput | None = None
|
|
4660
|
+
|
|
4661
|
+
|
|
4630
4662
|
class SnapshotStatusResponse(BaseModel):
|
|
4631
4663
|
model_config = ConfigDict(
|
|
4632
4664
|
extra="allow",
|
|
@@ -4715,6 +4747,23 @@ class WaitForReadyResponse(BaseModel):
|
|
|
4715
4747
|
"""
|
|
4716
4748
|
|
|
4717
4749
|
|
|
4750
|
+
class AppApiV1EnvRoutesUpdateSimulatorRequest(BaseModel):
|
|
4751
|
+
model_config = ConfigDict(
|
|
4752
|
+
extra="allow",
|
|
4753
|
+
)
|
|
4754
|
+
name: Annotated[str | None, Field(title="Name")] = None
|
|
4755
|
+
url: Annotated[str | None, Field(title="Url")] = None
|
|
4756
|
+
description: Annotated[str | None, Field(title="Description")] = None
|
|
4757
|
+
imgUrl: Annotated[str | None, Field(title="Imgurl")] = None
|
|
4758
|
+
config: SimulatorConfigInput | None = None
|
|
4759
|
+
ancestors: Annotated[list[str] | None, Field(title="Ancestors")] = None
|
|
4760
|
+
enabled: Annotated[bool | None, Field(title="Enabled")] = None
|
|
4761
|
+
simType: Annotated[str | None, Field(title="Simtype")] = None
|
|
4762
|
+
jobName: Annotated[str | None, Field(title="Jobname")] = None
|
|
4763
|
+
internalAppPort: Annotated[int | None, Field(title="Internalappport")] = None
|
|
4764
|
+
supportedProviders: Annotated[list[str] | None, Field(title="Supportedproviders")] = None
|
|
4765
|
+
|
|
4766
|
+
|
|
4718
4767
|
class AppApiV2SchemasArtifactSimConfigDataset(BaseModel):
|
|
4719
4768
|
model_config = ConfigDict(
|
|
4720
4769
|
extra="allow",
|
|
@@ -4766,6 +4815,39 @@ class AppSchemasBuildModelsSimConfigDataset(BaseModel):
|
|
|
4766
4815
|
"""
|
|
4767
4816
|
|
|
4768
4817
|
|
|
4818
|
+
class AddJobRequest(BaseModel):
|
|
4819
|
+
model_config = ConfigDict(
|
|
4820
|
+
extra="allow",
|
|
4821
|
+
)
|
|
4822
|
+
env: Annotated[
|
|
4823
|
+
EnvFromSimulator | EnvFromArtifact | EnvFromResource,
|
|
4824
|
+
Field(discriminator="type", title="Env"),
|
|
4825
|
+
]
|
|
4826
|
+
"""
|
|
4827
|
+
Environment configuration for the new job
|
|
4828
|
+
"""
|
|
4829
|
+
timeout: Annotated[int | None, Field(title="Timeout")] = 1800
|
|
4830
|
+
"""
|
|
4831
|
+
VM timeout in seconds (default: 30 minutes)
|
|
4832
|
+
"""
|
|
4833
|
+
heartbeat_timeout: Annotated[int | None, Field(title="Heartbeat Timeout")] = None
|
|
4834
|
+
"""
|
|
4835
|
+
Per-VM heartbeat timeout. None=use default (300s), 0=disabled.
|
|
4836
|
+
"""
|
|
4837
|
+
|
|
4838
|
+
|
|
4839
|
+
class AnnotatorAssignmentListItem(BaseModel):
|
|
4840
|
+
model_config = ConfigDict(
|
|
4841
|
+
extra="allow",
|
|
4842
|
+
)
|
|
4843
|
+
assignment_id: Annotated[int, Field(title="Assignment Id")]
|
|
4844
|
+
type: AssignmentType
|
|
4845
|
+
stage: AssignmentStage
|
|
4846
|
+
simulator: SimulatorMetadata | None = None
|
|
4847
|
+
createdAt: Annotated[AwareDatetime, Field(title="Createdat")]
|
|
4848
|
+
test_case: TestCaseMetadata | None = None
|
|
4849
|
+
|
|
4850
|
+
|
|
4769
4851
|
class Envs(RootModel[EnvFromSimulator | EnvFromArtifact | EnvFromResource]):
|
|
4770
4852
|
root: Annotated[
|
|
4771
4853
|
EnvFromSimulator | EnvFromArtifact | EnvFromResource,
|
|
@@ -4799,6 +4881,23 @@ class CreateSessionFromEnvs(BaseModel):
|
|
|
4799
4881
|
"""
|
|
4800
4882
|
|
|
4801
4883
|
|
|
4884
|
+
class CreateSimulatorRequest(BaseModel):
|
|
4885
|
+
model_config = ConfigDict(
|
|
4886
|
+
extra="allow",
|
|
4887
|
+
)
|
|
4888
|
+
name: Annotated[str, Field(title="Name")]
|
|
4889
|
+
url: Annotated[str | None, Field(title="Url")] = None
|
|
4890
|
+
description: Annotated[str | None, Field(title="Description")] = None
|
|
4891
|
+
imgUrl: Annotated[str | None, Field(title="Imgurl")] = None
|
|
4892
|
+
config: SimulatorConfigInput
|
|
4893
|
+
ancestors: Annotated[list[str] | None, Field(title="Ancestors")] = None
|
|
4894
|
+
enabled: Annotated[bool | None, Field(title="Enabled")] = False
|
|
4895
|
+
simType: Annotated[str, Field(title="Simtype")]
|
|
4896
|
+
jobName: Annotated[str | None, Field(title="Jobname")] = None
|
|
4897
|
+
internalAppPort: Annotated[int | None, Field(title="Internalappport")] = None
|
|
4898
|
+
supportedProviders: Annotated[list[str] | None, Field(title="Supportedproviders")] = None
|
|
4899
|
+
|
|
4900
|
+
|
|
4802
4901
|
class CreateVMRequest(BaseModel):
|
|
4803
4902
|
model_config = ConfigDict(
|
|
4804
4903
|
extra="allow",
|
|
@@ -7,7 +7,7 @@ from typing import Any
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from plato.chronos.errors import raise_for_status
|
|
10
|
-
from plato.chronos.models import
|
|
10
|
+
from plato.chronos.models import AgentSchemaResponse
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _build_request_args(
|
|
@@ -39,7 +39,7 @@ def sync(
|
|
|
39
39
|
name: str,
|
|
40
40
|
version: str | None = None,
|
|
41
41
|
x_api_key: str | None = None,
|
|
42
|
-
) ->
|
|
42
|
+
) -> AgentSchemaResponse:
|
|
43
43
|
"""Get agent schema by name and optional version."""
|
|
44
44
|
|
|
45
45
|
request_args = _build_request_args(
|
|
@@ -50,7 +50,7 @@ def sync(
|
|
|
50
50
|
|
|
51
51
|
response = client.request(**request_args)
|
|
52
52
|
raise_for_status(response)
|
|
53
|
-
return
|
|
53
|
+
return AgentSchemaResponse.model_validate(response.json())
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
async def asyncio(
|
|
@@ -58,7 +58,7 @@ async def asyncio(
|
|
|
58
58
|
name: str,
|
|
59
59
|
version: str | None = None,
|
|
60
60
|
x_api_key: str | None = None,
|
|
61
|
-
) ->
|
|
61
|
+
) -> AgentSchemaResponse:
|
|
62
62
|
"""Get agent schema by name and optional version."""
|
|
63
63
|
|
|
64
64
|
request_args = _build_request_args(
|
|
@@ -69,4 +69,4 @@ async def asyncio(
|
|
|
69
69
|
|
|
70
70
|
response = await client.request(**request_args)
|
|
71
71
|
raise_for_status(response)
|
|
72
|
-
return
|
|
72
|
+
return AgentSchemaResponse.model_validate(response.json())
|
|
@@ -7,7 +7,7 @@ from typing import Any
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from plato.chronos.errors import raise_for_status
|
|
10
|
-
from plato.chronos.models import
|
|
10
|
+
from plato.chronos.models import AgentVersionsResponse
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _build_request_args(
|
|
@@ -32,7 +32,7 @@ def sync(
|
|
|
32
32
|
client: httpx.Client,
|
|
33
33
|
name: str,
|
|
34
34
|
x_api_key: str | None = None,
|
|
35
|
-
) ->
|
|
35
|
+
) -> AgentVersionsResponse:
|
|
36
36
|
"""Get all versions of an agent by name."""
|
|
37
37
|
|
|
38
38
|
request_args = _build_request_args(
|
|
@@ -42,14 +42,14 @@ def sync(
|
|
|
42
42
|
|
|
43
43
|
response = client.request(**request_args)
|
|
44
44
|
raise_for_status(response)
|
|
45
|
-
return
|
|
45
|
+
return AgentVersionsResponse.model_validate(response.json())
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
async def asyncio(
|
|
49
49
|
client: httpx.AsyncClient,
|
|
50
50
|
name: str,
|
|
51
51
|
x_api_key: str | None = None,
|
|
52
|
-
) ->
|
|
52
|
+
) -> AgentVersionsResponse:
|
|
53
53
|
"""Get all versions of an agent by name."""
|
|
54
54
|
|
|
55
55
|
request_args = _build_request_args(
|
|
@@ -59,4 +59,4 @@ async def asyncio(
|
|
|
59
59
|
|
|
60
60
|
response = await client.request(**request_args)
|
|
61
61
|
raise_for_status(response)
|
|
62
|
-
return
|
|
62
|
+
return AgentVersionsResponse.model_validate(response.json())
|
|
@@ -7,7 +7,7 @@ from typing import Any
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from plato.chronos.errors import raise_for_status
|
|
10
|
-
from plato.chronos.models import
|
|
10
|
+
from plato.chronos.models import AgentListResponse
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _build_request_args(
|
|
@@ -30,7 +30,7 @@ def _build_request_args(
|
|
|
30
30
|
def sync(
|
|
31
31
|
client: httpx.Client,
|
|
32
32
|
x_api_key: str | None = None,
|
|
33
|
-
) ->
|
|
33
|
+
) -> AgentListResponse:
|
|
34
34
|
"""List all agents for the org."""
|
|
35
35
|
|
|
36
36
|
request_args = _build_request_args(
|
|
@@ -39,13 +39,13 @@ def sync(
|
|
|
39
39
|
|
|
40
40
|
response = client.request(**request_args)
|
|
41
41
|
raise_for_status(response)
|
|
42
|
-
return
|
|
42
|
+
return AgentListResponse.model_validate(response.json())
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
async def asyncio(
|
|
46
46
|
client: httpx.AsyncClient,
|
|
47
47
|
x_api_key: str | None = None,
|
|
48
|
-
) ->
|
|
48
|
+
) -> AgentListResponse:
|
|
49
49
|
"""List all agents for the org."""
|
|
50
50
|
|
|
51
51
|
request_args = _build_request_args(
|
|
@@ -54,4 +54,4 @@ async def asyncio(
|
|
|
54
54
|
|
|
55
55
|
response = await client.request(**request_args)
|
|
56
56
|
raise_for_status(response)
|
|
57
|
-
return
|
|
57
|
+
return AgentListResponse.model_validate(response.json())
|
|
@@ -7,7 +7,7 @@ from typing import Any
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from plato.chronos.errors import raise_for_status
|
|
10
|
-
from plato.chronos.models import
|
|
10
|
+
from plato.chronos.models import ChronosApiRegistryAgentSchemaResponse
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _build_request_args(
|
|
@@ -32,7 +32,7 @@ def sync(
|
|
|
32
32
|
client: httpx.Client,
|
|
33
33
|
agent_name: str,
|
|
34
34
|
version: str | None = None,
|
|
35
|
-
) ->
|
|
35
|
+
) -> ChronosApiRegistryAgentSchemaResponse:
|
|
36
36
|
"""Get schema for an agent version from the registry."""
|
|
37
37
|
|
|
38
38
|
request_args = _build_request_args(
|
|
@@ -42,14 +42,14 @@ def sync(
|
|
|
42
42
|
|
|
43
43
|
response = client.request(**request_args)
|
|
44
44
|
raise_for_status(response)
|
|
45
|
-
return
|
|
45
|
+
return ChronosApiRegistryAgentSchemaResponse.model_validate(response.json())
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
async def asyncio(
|
|
49
49
|
client: httpx.AsyncClient,
|
|
50
50
|
agent_name: str,
|
|
51
51
|
version: str | None = None,
|
|
52
|
-
) ->
|
|
52
|
+
) -> ChronosApiRegistryAgentSchemaResponse:
|
|
53
53
|
"""Get schema for an agent version from the registry."""
|
|
54
54
|
|
|
55
55
|
request_args = _build_request_args(
|
|
@@ -59,4 +59,4 @@ async def asyncio(
|
|
|
59
59
|
|
|
60
60
|
response = await client.request(**request_args)
|
|
61
61
|
raise_for_status(response)
|
|
62
|
-
return
|
|
62
|
+
return ChronosApiRegistryAgentSchemaResponse.model_validate(response.json())
|
plato/chronos/api/registry/get_agent_versions_api_registry_agents__agent_name__versions_get.py
CHANGED
|
@@ -7,7 +7,7 @@ from typing import Any
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from plato.chronos.errors import raise_for_status
|
|
10
|
-
from plato.chronos.models import
|
|
10
|
+
from plato.chronos.models import ChronosApiRegistryAgentVersionsResponse
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _build_request_args(
|
|
@@ -25,7 +25,7 @@ def _build_request_args(
|
|
|
25
25
|
def sync(
|
|
26
26
|
client: httpx.Client,
|
|
27
27
|
agent_name: str,
|
|
28
|
-
) ->
|
|
28
|
+
) -> ChronosApiRegistryAgentVersionsResponse:
|
|
29
29
|
"""Get versions for an agent from the registry."""
|
|
30
30
|
|
|
31
31
|
request_args = _build_request_args(
|
|
@@ -34,13 +34,13 @@ def sync(
|
|
|
34
34
|
|
|
35
35
|
response = client.request(**request_args)
|
|
36
36
|
raise_for_status(response)
|
|
37
|
-
return
|
|
37
|
+
return ChronosApiRegistryAgentVersionsResponse.model_validate(response.json())
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
async def asyncio(
|
|
41
41
|
client: httpx.AsyncClient,
|
|
42
42
|
agent_name: str,
|
|
43
|
-
) ->
|
|
43
|
+
) -> ChronosApiRegistryAgentVersionsResponse:
|
|
44
44
|
"""Get versions for an agent from the registry."""
|
|
45
45
|
|
|
46
46
|
request_args = _build_request_args(
|
|
@@ -49,4 +49,4 @@ async def asyncio(
|
|
|
49
49
|
|
|
50
50
|
response = await client.request(**request_args)
|
|
51
51
|
raise_for_status(response)
|
|
52
|
-
return
|
|
52
|
+
return ChronosApiRegistryAgentVersionsResponse.model_validate(response.json())
|
|
@@ -7,7 +7,7 @@ from typing import Any
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from plato.chronos.errors import raise_for_status
|
|
10
|
-
from plato.chronos.models import
|
|
10
|
+
from plato.chronos.models import ChronosApiRegistryAgentListResponse
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _build_request_args() -> dict[str, Any]:
|
|
@@ -22,23 +22,23 @@ def _build_request_args() -> dict[str, Any]:
|
|
|
22
22
|
|
|
23
23
|
def sync(
|
|
24
24
|
client: httpx.Client,
|
|
25
|
-
) ->
|
|
25
|
+
) -> ChronosApiRegistryAgentListResponse:
|
|
26
26
|
"""List all agents from the registry with their ECR image URIs."""
|
|
27
27
|
|
|
28
28
|
request_args = _build_request_args()
|
|
29
29
|
|
|
30
30
|
response = client.request(**request_args)
|
|
31
31
|
raise_for_status(response)
|
|
32
|
-
return
|
|
32
|
+
return ChronosApiRegistryAgentListResponse.model_validate(response.json())
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
async def asyncio(
|
|
36
36
|
client: httpx.AsyncClient,
|
|
37
|
-
) ->
|
|
37
|
+
) -> ChronosApiRegistryAgentListResponse:
|
|
38
38
|
"""List all agents from the registry with their ECR image URIs."""
|
|
39
39
|
|
|
40
40
|
request_args = _build_request_args()
|
|
41
41
|
|
|
42
42
|
response = await client.request(**request_args)
|
|
43
43
|
raise_for_status(response)
|
|
44
|
-
return
|
|
44
|
+
return ChronosApiRegistryAgentListResponse.model_validate(response.json())
|