amigo_sdk 0.70.0__py3-none-any.whl → 0.71.0__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.
amigo_sdk/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.70.0"
1
+ __version__ = "0.71.0"
2
2
  from .sdk_client import AmigoClient, AsyncAmigoClient
3
3
 
4
4
  __all__ = ["__version__", "AmigoClient", "AsyncAmigoClient"]
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: <stdin>
3
- # timestamp: 2025-12-03T16:58:45+00:00
3
+ # timestamp: 2025-12-03T17:33:48+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1663,11 +1663,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1663
1663
  )
1664
1664
 
1665
1665
 
1666
- class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1667
- key: str = Field(..., title='Key')
1668
- value: Optional[str] = Field(..., title='Value')
1669
-
1670
-
1671
1666
  class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1672
1667
  BaseModel
1673
1668
  ):
@@ -1704,6 +1699,11 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1704
1699
  )
1705
1700
 
1706
1701
 
1702
+ class AmigoLibMongoCollectionsToolToolTag(BaseModel):
1703
+ key: str = Field(..., title='Key')
1704
+ value: Optional[str] = Field(..., title='Value')
1705
+
1706
+
1707
1707
  class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1708
1708
  major: int = Field(..., title='Major')
1709
1709
  minor: int = Field(..., title='Minor')
@@ -10775,19 +10775,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10775
10775
  )
10776
10776
 
10777
10777
 
10778
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10778
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10779
10779
  AnnotationStateInputNextState
10780
10780
  ):
10781
10781
  pass
10782
10782
 
10783
10783
 
10784
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10784
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10785
10785
  BaseModel
10786
10786
  ):
10787
10787
  description: str = Field(..., min_length=1)
10788
10788
  next_state: Union[
10789
10789
  StateOrRefName,
10790
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10790
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10791
10791
  ] = Field(..., title='Next State')
10792
10792
 
10793
10793
 
@@ -10951,13 +10951,6 @@ class RoleModifyRoleResponse(BaseModel):
10951
10951
  )
10952
10952
 
10953
10953
 
10954
- class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10955
- llm_name: LLMType
10956
- params: Optional[Dict[str, Any]] = Field(
10957
- {}, description='LLM-specific parameters to use.', title='Params'
10958
- )
10959
-
10960
-
10961
10954
  class ServiceCreateServiceResponse(BaseModel):
10962
10955
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10963
10956
 
@@ -11017,19 +11010,10 @@ class ServiceUpdateServiceRequest(BaseModel):
11017
11010
  )
11018
11011
 
11019
11012
 
11020
- class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
11021
- agent_version_number: Optional[int] = Field(
11022
- ...,
11023
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
11024
- title='Agent Version Number',
11025
- )
11026
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
11027
- ...,
11028
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
11029
- title='Service Hierarchical State Machine Version Number',
11030
- )
11031
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
11032
- Field(..., title='Llm Model Preferences')
11013
+ class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11014
+ llm_name: LLMType
11015
+ params: Optional[Dict[str, Any]] = Field(
11016
+ {}, description='LLM-specific parameters to use.', title='Params'
11033
11017
  )
11034
11018
 
11035
11019
 
@@ -11151,16 +11135,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11151
11135
  )
11152
11136
 
11153
11137
 
11154
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11155
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11156
- run_count: int = Field(
11157
- ...,
11158
- description='The number of times to run the unit test.',
11159
- gt=0,
11160
- title='Run Count',
11161
- )
11162
-
11163
-
11164
11138
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11165
11139
  simulation_unit_test_set_id: str = Field(
11166
11140
  ...,
@@ -11220,6 +11194,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11220
11194
  )
11221
11195
 
11222
11196
 
11197
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11198
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11199
+ name: str = Field(
11200
+ ..., description='The name of the simulation persona.', title='Name'
11201
+ )
11202
+ role: str = Field(
11203
+ ..., description='The role of the simulation persona.', title='Role'
11204
+ )
11205
+ tags: Dict[str, Optional[str]] = Field(
11206
+ ..., description='The tags of the simulation persona.', title='Tags'
11207
+ )
11208
+ is_deleted: bool = Field(
11209
+ ...,
11210
+ description='Whether the simulation persona is deleted.',
11211
+ title='Is Deleted',
11212
+ )
11213
+ created_at: AwareDatetime = Field(
11214
+ ...,
11215
+ description='The timestamp when the simulation persona was created.',
11216
+ title='Created At',
11217
+ )
11218
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11219
+ ..., description='The user who created the simulation persona.'
11220
+ )
11221
+ updated_at: AwareDatetime = Field(
11222
+ ...,
11223
+ description='The timestamp when the simulation persona was last updated.',
11224
+ title='Updated At',
11225
+ )
11226
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11227
+ Field(..., description='The user who last updated the simulation persona.')
11228
+ )
11229
+
11230
+
11223
11231
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11224
11232
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11225
11233
  ...,
@@ -11251,37 +11259,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11251
11259
  )
11252
11260
 
11253
11261
 
11254
- class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11255
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11256
- name: str = Field(
11257
- ..., description='The name of the simulation scenario.', title='Name'
11258
- )
11259
- tags: Dict[str, Optional[str]] = Field(
11260
- ..., description='The tags of the simulation scenario.', title='Tags'
11261
- )
11262
- is_deleted: bool = Field(
11263
- ...,
11264
- description='Whether the simulation scenario is deleted.',
11265
- title='Is Deleted',
11266
- )
11267
- created_at: AwareDatetime = Field(
11268
- ...,
11269
- description='The timestamp when the simulation scenario was created.',
11270
- title='Created At',
11271
- )
11272
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11273
- Field(..., description='The user who created the simulation scenario.')
11274
- )
11275
- updated_at: AwareDatetime = Field(
11276
- ...,
11277
- description='The timestamp when the simulation scenario was last updated.',
11278
- title='Updated At',
11279
- )
11280
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11281
- Field(..., description='The user who last updated the simulation scenario.')
11282
- )
11283
-
11284
-
11285
11262
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11286
11263
  presigned_url: str = Field(
11287
11264
  ...,
@@ -11370,47 +11347,42 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11370
11347
  )
11371
11348
 
11372
11349
 
11373
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11374
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11375
- name: str = Field(
11376
- ..., description='The name of the simulation persona.', title='Name'
11350
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11351
+ simulation_personas: List[
11352
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11353
+ ] = Field(
11354
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11377
11355
  )
11378
- role: str = Field(
11379
- ..., description='The role of the simulation persona.', title='Role'
11356
+
11357
+
11358
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11359
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11360
+ name: str = Field(
11361
+ ..., description='The name of the simulation scenario.', title='Name'
11380
11362
  )
11381
11363
  tags: Dict[str, Optional[str]] = Field(
11382
- ..., description='The tags of the simulation persona.', title='Tags'
11364
+ ..., description='The tags of the simulation scenario.', title='Tags'
11383
11365
  )
11384
11366
  is_deleted: bool = Field(
11385
11367
  ...,
11386
- description='Whether the simulation persona is deleted.',
11368
+ description='Whether the simulation scenario is deleted.',
11387
11369
  title='Is Deleted',
11388
11370
  )
11389
11371
  created_at: AwareDatetime = Field(
11390
11372
  ...,
11391
- description='The timestamp when the simulation persona was created.',
11373
+ description='The timestamp when the simulation scenario was created.',
11392
11374
  title='Created At',
11393
11375
  )
11394
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11395
- ..., description='The user who created the simulation persona.'
11376
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11377
+ Field(..., description='The user who created the simulation scenario.')
11396
11378
  )
11397
11379
  updated_at: AwareDatetime = Field(
11398
11380
  ...,
11399
- description='The timestamp when the simulation persona was last updated.',
11381
+ description='The timestamp when the simulation scenario was last updated.',
11400
11382
  title='Updated At',
11401
11383
  )
11402
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11403
- Field(..., description='The user who last updated the simulation persona.')
11404
- )
11405
-
11406
-
11407
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11408
- simulation_scenarios: List[
11409
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11410
- ] = Field(
11411
- ...,
11412
- description='The list of simulation scenarios.',
11413
- title='Simulation Scenarios',
11384
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11385
+ Field(..., description='The user who last updated the simulation scenario.')
11414
11386
  )
11415
11387
 
11416
11388
 
@@ -11471,39 +11443,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11471
11443
  )
11472
11444
 
11473
11445
 
11474
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11475
- RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11476
- ):
11477
- root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11478
- Field(
11479
- ...,
11480
- description='The unit test runs that are part of this set.',
11481
- min_length=1,
11482
- title='Unit Test Runs',
11483
- )
11484
- )
11485
-
11486
-
11487
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11488
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11489
- None, description='The name of the simulation unit test set.'
11490
- )
11491
- description: Optional[
11492
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11493
- ] = Field(
11494
- {},
11495
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11496
- title='Description',
11497
- )
11498
- unit_test_runs: Optional[
11499
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11500
- ] = Field(
11501
- None,
11502
- description='The unit test runs that are part of this set.',
11503
- title='Unit Test Runs',
11504
- )
11505
- tags: Optional[Dict[str, Optional[str]]] = Field(
11506
- None, description='The tags of the simulation unit test set.', title='Tags'
11446
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11447
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11448
+ run_count: int = Field(
11449
+ ...,
11450
+ description='The number of times to run the unit test.',
11451
+ gt=0,
11452
+ title='Run Count',
11507
11453
  )
11508
11454
 
11509
11455
 
@@ -12136,7 +12082,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12136
12082
  [], description='The IDs of the messages to retrieve.', title='Id'
12137
12083
  )
12138
12084
  message_type: Optional[List[MessageType]] = Field(
12139
- ['agent-message', 'user-message', 'external-event'],
12085
+ ['external-event', 'agent-message', 'user-message'],
12140
12086
  description='The type of messages to retrieve.',
12141
12087
  title='Message Type',
12142
12088
  )
@@ -13942,9 +13888,9 @@ class ServiceInstance(BaseModel):
13942
13888
  agent_id: str = Field(
13943
13889
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13944
13890
  )
13945
- tags: List[
13946
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13947
- ] = Field(..., description='The tags of the service.', title='Tags')
13891
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13892
+ ..., description='The tags of the service.', title='Tags'
13893
+ )
13948
13894
 
13949
13895
 
13950
13896
  class SimulationConversationInvocationSource(BaseModel):
@@ -13995,9 +13941,7 @@ class SimulationUnitTestSet(BaseModel):
13995
13941
  description='Whether the unit test set has been deleted.',
13996
13942
  title='Is Deleted',
13997
13943
  )
13998
- tags: List[
13999
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14000
- ] = Field(
13944
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14001
13945
  ..., description='The tags of the simulation unit test set.', title='Tags'
14002
13946
  )
14003
13947
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14036,9 +13980,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14036
13980
  description='Whether the unit test set has been deleted.',
14037
13981
  title='Is Deleted',
14038
13982
  )
14039
- tags: List[
14040
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14041
- ] = Field(
13983
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14042
13984
  ..., description='The tags of the simulation unit test set.', title='Tags'
14043
13985
  )
14044
13986
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14154,9 +14096,9 @@ class ToolInstance(BaseModel):
14154
14096
  description='A list of encrypted environment variables that some versions of this tool uses.',
14155
14097
  title='Secret Envvars',
14156
14098
  )
14157
- tags: List[
14158
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14159
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14099
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14100
+ ..., description='The tags of the simulation persona.', title='Tags'
14101
+ )
14160
14102
 
14161
14103
 
14162
14104
  class ToolVersionInstance(BaseModel):
@@ -14777,7 +14719,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14777
14719
  )
14778
14720
 
14779
14721
 
14780
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14722
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14781
14723
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14782
14724
  ...,
14783
14725
  description='Whether this grant allows or denies the specified access.',
@@ -14794,62 +14736,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14794
14736
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14795
14737
 
14796
14738
 
14797
- class RoleModifyRoleRequest(BaseModel):
14798
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14799
- None,
14800
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14801
- )
14802
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14803
- None,
14804
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14805
- title='Permission Grants',
14806
- )
14807
- frontend_view: Optional[FrontendView] = Field(
14808
- None,
14809
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14810
- )
14811
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14812
- Field(
14813
- {},
14814
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14815
- title='Inherited From',
14816
- )
14817
- )
14818
-
14819
-
14820
- class ServiceCreateServiceRequest(BaseModel):
14821
- service_hierarchical_state_machine_id: str = Field(
14822
- ...,
14823
- description='The ID of the state machine that this service uses.',
14824
- pattern='^[a-f0-9]{24}$',
14825
- title='Service Hierarchical State Machine Id',
14826
- )
14827
- agent_id: str = Field(
14828
- ...,
14829
- description='The ID of the agent that this service uses.',
14830
- pattern='^[a-f0-9]{24}$',
14831
- title='Agent Id',
14832
- )
14833
- name: str = Field(..., description='The name of this service.', min_length=1)
14834
- description: str = Field(
14835
- ..., description='A description of this service.', min_length=1
14836
- )
14837
- is_active: bool = Field(
14838
- ...,
14839
- description='Whether the newly-created service is active. Only active services are visible to users on the dashboard. You can later adjust the activeness of this service.',
14840
- title='Is Active',
14841
- )
14842
- release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14843
- Field(
14844
- None,
14845
- description='The `release` version set to use for this service. If not specified, the `release` version set will be the same as the `edge` version set, which uses the\nlatest agent and state machine versions with no model preference.',
14846
- )
14847
- )
14848
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14849
- ..., description='The tags of this service.', title='Tags'
14850
- )
14851
-
14852
-
14853
14739
  class ServiceGetServicesResponse(BaseModel):
14854
14740
  services: List[ServiceInstance] = Field(
14855
14741
  ..., description='The services that are found.', title='Services'
@@ -14870,10 +14756,20 @@ class ServiceGetServicesResponse(BaseModel):
14870
14756
  )
14871
14757
 
14872
14758
 
14873
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
14874
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14875
- ..., description='The version set to upsert.'
14759
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14760
+ agent_version_number: Optional[int] = Field(
14761
+ ...,
14762
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14763
+ title='Agent Version Number',
14876
14764
  )
14765
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14766
+ ...,
14767
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14768
+ title='Service Hierarchical State Machine Version Number',
14769
+ )
14770
+ llm_model_preferences: Dict[
14771
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14772
+ ] = Field(..., title='Llm Model Preferences')
14877
14773
 
14878
14774
 
14879
14775
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14925,7 +14821,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14925
14821
  ..., description='The description of the simulation unit test set.'
14926
14822
  )
14927
14823
  unit_test_runs: List[
14928
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14824
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14929
14825
  ] = Field(
14930
14826
  ...,
14931
14827
  description='The unit test runs that are part of this set.',
@@ -14939,7 +14835,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14939
14835
 
14940
14836
  class SimulationGetSimulationPersonasResponse(BaseModel):
14941
14837
  simulation_personas: List[
14942
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14838
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14943
14839
  ] = Field(
14944
14840
  ..., description='The list of simulation personas.', title='Simulation Personas'
14945
14841
  )
@@ -14963,7 +14859,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14963
14859
 
14964
14860
  class SimulationGetSimulationScenariosResponse(BaseModel):
14965
14861
  simulation_scenarios: List[
14966
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14862
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14967
14863
  ] = Field(
14968
14864
  ...,
14969
14865
  description='The list of simulation scenarios.',
@@ -15011,11 +14907,13 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
15011
14907
  )
15012
14908
 
15013
14909
 
15014
- class SimulationSearchSimulationPersonasResponse(BaseModel):
15015
- simulation_personas: List[
15016
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14910
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
14911
+ simulation_scenarios: List[
14912
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
15017
14913
  ] = Field(
15018
- ..., description='The list of simulation personas.', title='Simulation Personas'
14914
+ ...,
14915
+ description='The list of simulation scenarios.',
14916
+ title='Simulation Scenarios',
15019
14917
  )
15020
14918
 
15021
14919
 
@@ -15032,6 +14930,42 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15032
14930
  )
15033
14931
 
15034
14932
 
14933
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14934
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14935
+ ):
14936
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14937
+ Field(
14938
+ ...,
14939
+ description='The unit test runs that are part of this set.',
14940
+ min_length=1,
14941
+ title='Unit Test Runs',
14942
+ )
14943
+ )
14944
+
14945
+
14946
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14947
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14948
+ None, description='The name of the simulation unit test set.'
14949
+ )
14950
+ description: Optional[
14951
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
14952
+ ] = Field(
14953
+ {},
14954
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14955
+ title='Description',
14956
+ )
14957
+ unit_test_runs: Optional[
14958
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
14959
+ ] = Field(
14960
+ None,
14961
+ description='The unit test runs that are part of this set.',
14962
+ title='Unit Test Runs',
14963
+ )
14964
+ tags: Optional[Dict[str, Optional[str]]] = Field(
14965
+ None, description='The tags of the simulation unit test set.', title='Tags'
14966
+ )
14967
+
14968
+
15035
14969
  class ToolGetToolVersionsResponse(BaseModel):
15036
14970
  tool_versions: List[ToolVersionInstance] = Field(
15037
14971
  ...,
@@ -15254,7 +15188,7 @@ class ActionStateInput(BaseModel):
15254
15188
  Field(..., title='Boundary Constraints')
15255
15189
  )
15256
15190
  exit_conditions: List[
15257
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15191
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15258
15192
  ] = Field(..., title='Exit Conditions')
15259
15193
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15260
15194
  ..., title='Action Tool Call Specs'
@@ -15363,7 +15297,7 @@ class DecisionStateInput(BaseModel):
15363
15297
  type: Literal['decision'] = Field(..., title='Type')
15364
15298
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15365
15299
  exit_conditions: List[
15366
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15300
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15367
15301
  ] = Field(..., title='Exit Conditions')
15368
15302
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15369
15303
  ..., title='Decision Guidelines'
@@ -15404,9 +15338,9 @@ class Metric(BaseModel):
15404
15338
  additional_notes: Optional[str] = Field(
15405
15339
  ..., description='Additional notes about the metric.', title='Additional Notes'
15406
15340
  )
15407
- tags: List[
15408
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15409
- ] = Field(..., description='The tags of the metric.', title='Tags')
15341
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15342
+ ..., description='The tags of the metric.', title='Tags'
15343
+ )
15410
15344
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15411
15345
  ..., description='The user who created the metric.'
15412
15346
  )
@@ -15474,9 +15408,9 @@ class MetricInstance(BaseModel):
15474
15408
  additional_notes: Optional[str] = Field(
15475
15409
  ..., description='Additional notes about the metric.', title='Additional Notes'
15476
15410
  )
15477
- tags: List[
15478
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15479
- ] = Field(..., description='The tags of the metric.', title='Tags')
15411
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15412
+ ..., description='The tags of the metric.', title='Tags'
15413
+ )
15480
15414
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15481
15415
  ..., description='The user who created the metric.'
15482
15416
  )
@@ -15676,9 +15610,9 @@ class SimulationUnitTest(BaseModel):
15676
15610
  is_deleted: bool = Field(
15677
15611
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15678
15612
  )
15679
- tags: List[
15680
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15681
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15613
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15614
+ ..., description='The tags of the simulation persona.', title='Tags'
15615
+ )
15682
15616
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15683
15617
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15684
15618
 
@@ -15721,9 +15655,9 @@ class SimulationUnitTestInstance(BaseModel):
15721
15655
  is_deleted: bool = Field(
15722
15656
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15723
15657
  )
15724
- tags: List[
15725
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15726
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15658
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15659
+ ..., description='The tags of the simulation persona.', title='Tags'
15660
+ )
15727
15661
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15728
15662
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15729
15663
 
@@ -16021,7 +15955,7 @@ class RoleCreateRoleRequest(BaseModel):
16021
15955
  description: str = Field(
16022
15956
  ..., description='A description about the role.', min_length=1
16023
15957
  )
16024
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15958
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
16025
15959
  ...,
16026
15960
  description='A list of permission grants associated with this role.',
16027
15961
  title='Permission Grants',
@@ -16047,6 +15981,68 @@ class RoleGetRolesResponse(BaseModel):
16047
15981
  )
16048
15982
 
16049
15983
 
15984
+ class RoleModifyRoleRequest(BaseModel):
15985
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15986
+ None,
15987
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
15988
+ )
15989
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
15990
+ None,
15991
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15992
+ title='Permission Grants',
15993
+ )
15994
+ frontend_view: Optional[FrontendView] = Field(
15995
+ None,
15996
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15997
+ )
15998
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
15999
+ Field(
16000
+ {},
16001
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16002
+ title='Inherited From',
16003
+ )
16004
+ )
16005
+
16006
+
16007
+ class ServiceCreateServiceRequest(BaseModel):
16008
+ service_hierarchical_state_machine_id: str = Field(
16009
+ ...,
16010
+ description='The ID of the state machine that this service uses.',
16011
+ pattern='^[a-f0-9]{24}$',
16012
+ title='Service Hierarchical State Machine Id',
16013
+ )
16014
+ agent_id: str = Field(
16015
+ ...,
16016
+ description='The ID of the agent that this service uses.',
16017
+ pattern='^[a-f0-9]{24}$',
16018
+ title='Agent Id',
16019
+ )
16020
+ name: str = Field(..., description='The name of this service.', min_length=1)
16021
+ description: str = Field(
16022
+ ..., description='A description of this service.', min_length=1
16023
+ )
16024
+ is_active: bool = Field(
16025
+ ...,
16026
+ description='Whether the newly-created service is active. Only active services are visible to users on the dashboard. You can later adjust the activeness of this service.',
16027
+ title='Is Active',
16028
+ )
16029
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
16030
+ Field(
16031
+ None,
16032
+ description='The `release` version set to use for this service. If not specified, the `release` version set will be the same as the `edge` version set, which uses the\nlatest agent and state machine versions with no model preference.',
16033
+ )
16034
+ )
16035
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16036
+ ..., description='The tags of this service.', title='Tags'
16037
+ )
16038
+
16039
+
16040
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
16041
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
16042
+ ..., description='The version set to upsert.'
16043
+ )
16044
+
16045
+
16050
16046
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16051
16047
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16052
16048
  description: str = Field(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.70.0
3
+ Version: 0.71.0
4
4
  Summary: Amigo AI Python SDK
5
5
  Author: Amigo AI
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- amigo_sdk/__init__.py,sha256=f5lR2WPI6sR2xJpKf3k4M0oUwFUzeqSBqcO3UipgrQc,139
1
+ amigo_sdk/__init__.py,sha256=HDbivAb29t5GGkU9dPkkh0GQ6qDToJIqNdRgkpdSMYo,139
2
2
  amigo_sdk/_retry_utils.py,sha256=VbA_Uwv268J80d11R9XfnCjZiV-NwE1aXRsSlRjjRio,2108
3
3
  amigo_sdk/auth.py,sha256=WaM9PcEcnaC6CzNsgRKueHkdSAxNbRylzpR_3Q6guQ0,1765
4
4
  amigo_sdk/config.py,sha256=0eZIo-hcJ8ODftKAr-mwB-FGJxGO5PT5T4dRpyWPqAg,1491
@@ -6,13 +6,13 @@ amigo_sdk/errors.py,sha256=Yn12AxIQ6zE9jnGLWO0MUVbBsmw77Kzh82AijyreOkA,4818
6
6
  amigo_sdk/http_client.py,sha256=tfMXHqMTmlz2ja7aJhOVgbwAiJNlKCzPcK4UGNqXHO8,13488
7
7
  amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
8
8
  amigo_sdk/sdk_client.py,sha256=5nj8hzjHSFRs9JMNabdYIhQAcFE2G1jI_r7SHVGr9No,6106
9
- amigo_sdk/generated/model.py,sha256=53HP0RAAxkl4msbceJG48IsQYARftJozpPxGMMavnO0,457250
9
+ amigo_sdk/generated/model.py,sha256=AMOa2wehaiY0um98EUEV_thJJXDBM1em6PK4_MjFoAk,456924
10
10
  amigo_sdk/resources/conversation.py,sha256=u4kOx5LPbhX92L41UnmPmaF9TkQA5bGev8N00dMoP9I,14805
11
11
  amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
12
12
  amigo_sdk/resources/service.py,sha256=t1iA3nS9co-wuR-x5jBhAXXTWfMeGsLwfQcLycwVrCA,1536
13
13
  amigo_sdk/resources/user.py,sha256=zikijiuGXgmkBVtrldor6XQGQK6jWXonDvNFuQs6XK4,3472
14
- amigo_sdk-0.70.0.dist-info/METADATA,sha256=a3t-Y72PZyYcb7VTrKh8WL1zoJyDDZ371AO3t0FkZgQ,8499
15
- amigo_sdk-0.70.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.70.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.70.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.70.0.dist-info/RECORD,,
14
+ amigo_sdk-0.71.0.dist-info/METADATA,sha256=sbLqyfisJQa45uQja9_jnH95bR46KVTu2DQ5JrM1TU0,8499
15
+ amigo_sdk-0.71.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.71.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.71.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.71.0.dist-info/RECORD,,