amigo_sdk 0.89.0__py3-none-any.whl → 0.90.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.89.0"
1
+ __version__ = "0.90.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-13T05:34:52+00:00
3
+ # timestamp: 2025-12-13T11:10:09+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1635,6 +1635,11 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1635
1635
  deny = 'Deny'
1636
1636
 
1637
1637
 
1638
+ class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1639
+ key: str = Field(..., title='Key')
1640
+ value: Optional[str] = Field(..., title='Value')
1641
+
1642
+
1638
1643
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1639
1644
  agent_version_number: Optional[int] = Field(
1640
1645
  ...,
@@ -1663,11 +1668,6 @@ AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
1663
1668
  )
1664
1669
 
1665
1670
 
1666
- class AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag(BaseModel):
1667
- key: str = Field(..., title='Key')
1668
- value: Optional[str] = Field(..., title='Value')
1669
-
1670
-
1671
1671
  AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1672
1672
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1673
1673
  )
@@ -1965,6 +1965,20 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1965
1965
  )
1966
1966
 
1967
1967
 
1968
+ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1969
+ BaseModel
1970
+ ):
1971
+ id: str = Field(..., title='Id')
1972
+ name: str = Field(..., title='Name')
1973
+ is_active: bool = Field(..., title='Is Active')
1974
+ applied_to_services: List[str] = Field(..., title='Applied To Services')
1975
+ tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1976
+ created_at: AwareDatetime = Field(..., title='Created At')
1977
+ creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1978
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1979
+ updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1980
+
1981
+
1968
1982
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1969
1983
  applied_to_services_ids: List[str] = Field(
1970
1984
  ...,
@@ -1985,18 +1999,14 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1985
1999
  )
1986
2000
 
1987
2001
 
1988
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1989
- BaseModel
1990
- ):
1991
- id: str = Field(..., title='Id')
1992
- name: str = Field(..., title='Name')
1993
- is_active: bool = Field(..., title='Is Active')
1994
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1995
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1996
- created_at: AwareDatetime = Field(..., title='Created At')
1997
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1998
- updated_at: AwareDatetime = Field(..., title='Updated At')
1999
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
2002
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
2003
+ dynamic_behavior_sets: List[
2004
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
2005
+ ] = Field(
2006
+ ...,
2007
+ description='The retrieved dynamic behavior sets.',
2008
+ title='Dynamic Behavior Sets',
2009
+ )
2000
2010
 
2001
2011
 
2002
2012
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10787,19 +10797,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10787
10797
  )
10788
10798
 
10789
10799
 
10790
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10800
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10791
10801
  AnnotationStateInputNextState
10792
10802
  ):
10793
10803
  pass
10794
10804
 
10795
10805
 
10796
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10806
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10797
10807
  BaseModel
10798
10808
  ):
10799
10809
  description: str = Field(..., min_length=1)
10800
10810
  next_state: Union[
10801
10811
  StateOrRefName,
10802
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10812
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10803
10813
  ] = Field(..., title='Next State')
10804
10814
 
10805
10815
 
@@ -10967,6 +10977,13 @@ class RoleModifyRoleResponse(BaseModel):
10967
10977
  )
10968
10978
 
10969
10979
 
10980
+ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10981
+ llm_name: LLMType
10982
+ params: Optional[Dict[str, Any]] = Field(
10983
+ {}, description='LLM-specific parameters to use.', title='Params'
10984
+ )
10985
+
10986
+
10970
10987
  class ServiceCreateServiceResponse(BaseModel):
10971
10988
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10972
10989
 
@@ -11042,13 +11059,6 @@ class ServiceUpdateServiceRequest(BaseModel):
11042
11059
  )
11043
11060
 
11044
11061
 
11045
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11046
- llm_name: LLMType
11047
- params: Optional[Dict[str, Any]] = Field(
11048
- {}, description='LLM-specific parameters to use.', title='Params'
11049
- )
11050
-
11051
-
11052
11062
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11053
11063
  background: str = Field(
11054
11064
  ..., description='The background of the simulation persona.', min_length=1
@@ -11167,16 +11177,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11167
11177
  )
11168
11178
 
11169
11179
 
11170
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11171
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11172
- run_count: int = Field(
11173
- ...,
11174
- description='The number of times to run the unit test.',
11175
- gt=0,
11176
- title='Run Count',
11177
- )
11178
-
11179
-
11180
11180
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11181
11181
  simulation_unit_test_set_id: str = Field(
11182
11182
  ...,
@@ -11236,40 +11236,6 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11236
11236
  )
11237
11237
 
11238
11238
 
11239
- class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11240
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11241
- name: str = Field(
11242
- ..., description='The name of the simulation persona.', title='Name'
11243
- )
11244
- role: str = Field(
11245
- ..., description='The role of the simulation persona.', title='Role'
11246
- )
11247
- tags: Dict[str, Optional[str]] = Field(
11248
- ..., description='The tags of the simulation persona.', title='Tags'
11249
- )
11250
- is_deleted: bool = Field(
11251
- ...,
11252
- description='Whether the simulation persona is deleted.',
11253
- title='Is Deleted',
11254
- )
11255
- created_at: AwareDatetime = Field(
11256
- ...,
11257
- description='The timestamp when the simulation persona was created.',
11258
- title='Created At',
11259
- )
11260
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11261
- ..., description='The user who created the simulation persona.'
11262
- )
11263
- updated_at: AwareDatetime = Field(
11264
- ...,
11265
- description='The timestamp when the simulation persona was last updated.',
11266
- title='Updated At',
11267
- )
11268
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11269
- Field(..., description='The user who last updated the simulation persona.')
11270
- )
11271
-
11272
-
11273
11239
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11274
11240
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11275
11241
  ...,
@@ -11301,37 +11267,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11301
11267
  )
11302
11268
 
11303
11269
 
11304
- class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11305
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11306
- name: str = Field(
11307
- ..., description='The name of the simulation scenario.', title='Name'
11308
- )
11309
- tags: Dict[str, Optional[str]] = Field(
11310
- ..., description='The tags of the simulation scenario.', title='Tags'
11311
- )
11312
- is_deleted: bool = Field(
11313
- ...,
11314
- description='Whether the simulation scenario is deleted.',
11315
- title='Is Deleted',
11316
- )
11317
- created_at: AwareDatetime = Field(
11318
- ...,
11319
- description='The timestamp when the simulation scenario was created.',
11320
- title='Created At',
11321
- )
11322
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11323
- Field(..., description='The user who created the simulation scenario.')
11324
- )
11325
- updated_at: AwareDatetime = Field(
11326
- ...,
11327
- description='The timestamp when the simulation scenario was last updated.',
11328
- title='Updated At',
11329
- )
11330
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11331
- Field(..., description='The user who last updated the simulation scenario.')
11332
- )
11333
-
11334
-
11335
11270
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11336
11271
  presigned_url: str = Field(
11337
11272
  ...,
@@ -11420,21 +11355,68 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11420
11355
  )
11421
11356
 
11422
11357
 
11423
- class SimulationSearchSimulationPersonasResponse(BaseModel):
11424
- simulation_personas: List[
11425
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11426
- ] = Field(
11427
- ..., description='The list of simulation personas.', title='Simulation Personas'
11358
+ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11359
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11360
+ name: str = Field(
11361
+ ..., description='The name of the simulation persona.', title='Name'
11362
+ )
11363
+ role: str = Field(
11364
+ ..., description='The role of the simulation persona.', title='Role'
11365
+ )
11366
+ tags: Dict[str, Optional[str]] = Field(
11367
+ ..., description='The tags of the simulation persona.', title='Tags'
11368
+ )
11369
+ is_deleted: bool = Field(
11370
+ ...,
11371
+ description='Whether the simulation persona is deleted.',
11372
+ title='Is Deleted',
11373
+ )
11374
+ created_at: AwareDatetime = Field(
11375
+ ...,
11376
+ description='The timestamp when the simulation persona was created.',
11377
+ title='Created At',
11378
+ )
11379
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11380
+ ..., description='The user who created the simulation persona.'
11381
+ )
11382
+ updated_at: AwareDatetime = Field(
11383
+ ...,
11384
+ description='The timestamp when the simulation persona was last updated.',
11385
+ title='Updated At',
11386
+ )
11387
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11388
+ Field(..., description='The user who last updated the simulation persona.')
11428
11389
  )
11429
11390
 
11430
11391
 
11431
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11432
- simulation_scenarios: List[
11433
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11434
- ] = Field(
11392
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11393
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11394
+ name: str = Field(
11395
+ ..., description='The name of the simulation scenario.', title='Name'
11396
+ )
11397
+ tags: Dict[str, Optional[str]] = Field(
11398
+ ..., description='The tags of the simulation scenario.', title='Tags'
11399
+ )
11400
+ is_deleted: bool = Field(
11435
11401
  ...,
11436
- description='The list of simulation scenarios.',
11437
- title='Simulation Scenarios',
11402
+ description='Whether the simulation scenario is deleted.',
11403
+ title='Is Deleted',
11404
+ )
11405
+ created_at: AwareDatetime = Field(
11406
+ ...,
11407
+ description='The timestamp when the simulation scenario was created.',
11408
+ title='Created At',
11409
+ )
11410
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11411
+ Field(..., description='The user who created the simulation scenario.')
11412
+ )
11413
+ updated_at: AwareDatetime = Field(
11414
+ ...,
11415
+ description='The timestamp when the simulation scenario was last updated.',
11416
+ title='Updated At',
11417
+ )
11418
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11419
+ Field(..., description='The user who last updated the simulation scenario.')
11438
11420
  )
11439
11421
 
11440
11422
 
@@ -11495,39 +11477,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11495
11477
  )
11496
11478
 
11497
11479
 
11498
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11499
- RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11500
- ):
11501
- root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11502
- Field(
11503
- ...,
11504
- description='The unit test runs that are part of this set.',
11505
- min_length=1,
11506
- title='Unit Test Runs',
11507
- )
11508
- )
11509
-
11510
-
11511
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11512
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11513
- None, description='The name of the simulation unit test set.'
11514
- )
11515
- description: Optional[
11516
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11517
- ] = Field(
11518
- {},
11519
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11520
- title='Description',
11521
- )
11522
- unit_test_runs: Optional[
11523
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11524
- ] = Field(
11525
- None,
11526
- description='The unit test runs that are part of this set.',
11527
- title='Unit Test Runs',
11528
- )
11529
- tags: Optional[Dict[str, Optional[str]]] = Field(
11530
- None, description='The tags of the simulation unit test set.', title='Tags'
11480
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11481
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11482
+ run_count: int = Field(
11483
+ ...,
11484
+ description='The number of times to run the unit test.',
11485
+ gt=0,
11486
+ title='Run Count',
11531
11487
  )
11532
11488
 
11533
11489
 
@@ -11726,7 +11682,7 @@ class UserGetMemoriesResponse(BaseModel):
11726
11682
  )
11727
11683
 
11728
11684
 
11729
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11685
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11730
11686
  num_conversations: int = Field(
11731
11687
  ...,
11732
11688
  description='The number of conversations the user has created.',
@@ -12181,7 +12137,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12181
12137
  [], description='The IDs of the messages to retrieve.', title='Id'
12182
12138
  )
12183
12139
  message_type: Optional[List[MessageType]] = Field(
12184
- ['user-message', 'external-event', 'agent-message'],
12140
+ ['external-event', 'user-message', 'agent-message'],
12185
12141
  description='The type of messages to retrieve.',
12186
12142
  title='Message Type',
12187
12143
  )
@@ -13987,7 +13943,7 @@ class ServiceInstance(BaseModel):
13987
13943
  agent_id: str = Field(
13988
13944
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13989
13945
  )
13990
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
13946
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13991
13947
  ..., description='The tags of the service.', title='Tags'
13992
13948
  )
13993
13949
 
@@ -14040,7 +13996,7 @@ class SimulationUnitTestSet(BaseModel):
14040
13996
  description='Whether the unit test set has been deleted.',
14041
13997
  title='Is Deleted',
14042
13998
  )
14043
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
13999
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14044
14000
  ..., description='The tags of the simulation unit test set.', title='Tags'
14045
14001
  )
14046
14002
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14079,7 +14035,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14079
14035
  description='Whether the unit test set has been deleted.',
14080
14036
  title='Is Deleted',
14081
14037
  )
14082
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14038
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14083
14039
  ..., description='The tags of the simulation unit test set.', title='Tags'
14084
14040
  )
14085
14041
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14195,7 +14151,7 @@ class ToolInstance(BaseModel):
14195
14151
  description='A list of encrypted environment variables that some versions of this tool uses.',
14196
14152
  title='Secret Envvars',
14197
14153
  )
14198
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14154
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14199
14155
  ..., description='The tags of the simulation persona.', title='Tags'
14200
14156
  )
14201
14157
 
@@ -14526,7 +14482,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14526
14482
 
14527
14483
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14528
14484
  dynamic_behavior_sets: List[
14529
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14485
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14530
14486
  ] = Field(
14531
14487
  ...,
14532
14488
  description='The retrieved dynamic behavior sets.',
@@ -14550,16 +14506,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14550
14506
  )
14551
14507
 
14552
14508
 
14553
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14554
- dynamic_behavior_sets: List[
14555
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14556
- ] = Field(
14557
- ...,
14558
- description='The retrieved dynamic behavior sets.',
14559
- title='Dynamic Behavior Sets',
14560
- )
14561
-
14562
-
14563
14509
  class MetricCreateMetricRequest(BaseModel):
14564
14510
  name: str = Field(
14565
14511
  ...,
@@ -14818,7 +14764,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14818
14764
  )
14819
14765
 
14820
14766
 
14821
- class RoleModifyRoleRequestPermissionGrant(BaseModel):
14767
+ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14822
14768
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14823
14769
  ...,
14824
14770
  description='Whether this grant allows or denies the specified access.',
@@ -14835,6 +14781,45 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14835
14781
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14836
14782
 
14837
14783
 
14784
+ class RoleModifyRoleRequest(BaseModel):
14785
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14786
+ None,
14787
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
14788
+ )
14789
+ permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14790
+ None,
14791
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14792
+ title='Permission Grants',
14793
+ )
14794
+ frontend_view: Optional[FrontendView] = Field(
14795
+ None,
14796
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14797
+ )
14798
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14799
+ Field(
14800
+ {},
14801
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14802
+ title='Inherited From',
14803
+ )
14804
+ )
14805
+
14806
+
14807
+ class ServiceCreateServiceRequestVersionSet(BaseModel):
14808
+ agent_version_number: Optional[int] = Field(
14809
+ ...,
14810
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14811
+ title='Agent Version Number',
14812
+ )
14813
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14814
+ ...,
14815
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14816
+ title='Service Hierarchical State Machine Version Number',
14817
+ )
14818
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14819
+ Field(..., title='Llm Model Preferences')
14820
+ )
14821
+
14822
+
14838
14823
  class ServiceGetServicesResponse(BaseModel):
14839
14824
  services: List[ServiceInstance] = Field(
14840
14825
  ..., description='The services that are found.', title='Services'
@@ -14855,20 +14840,10 @@ class ServiceGetServicesResponse(BaseModel):
14855
14840
  )
14856
14841
 
14857
14842
 
14858
- class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14859
- agent_version_number: Optional[int] = Field(
14860
- ...,
14861
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14862
- title='Agent Version Number',
14863
- )
14864
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14865
- ...,
14866
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14867
- title='Service Hierarchical State Machine Version Number',
14843
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
14844
+ version_set: ServiceCreateServiceRequestVersionSet = Field(
14845
+ ..., description='The version set to upsert.'
14868
14846
  )
14869
- llm_model_preferences: Dict[
14870
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14871
- ] = Field(..., title='Llm Model Preferences')
14872
14847
 
14873
14848
 
14874
14849
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14920,7 +14895,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14920
14895
  ..., description='The description of the simulation unit test set.'
14921
14896
  )
14922
14897
  unit_test_runs: List[
14923
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14898
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14924
14899
  ] = Field(
14925
14900
  ...,
14926
14901
  description='The unit test runs that are part of this set.',
@@ -14934,7 +14909,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14934
14909
 
14935
14910
  class SimulationGetSimulationPersonasResponse(BaseModel):
14936
14911
  simulation_personas: List[
14937
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14912
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14938
14913
  ] = Field(
14939
14914
  ..., description='The list of simulation personas.', title='Simulation Personas'
14940
14915
  )
@@ -14958,7 +14933,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14958
14933
 
14959
14934
  class SimulationGetSimulationScenariosResponse(BaseModel):
14960
14935
  simulation_scenarios: List[
14961
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14936
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14962
14937
  ] = Field(
14963
14938
  ...,
14964
14939
  description='The list of simulation scenarios.',
@@ -15006,6 +14981,24 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
15006
14981
  )
15007
14982
 
15008
14983
 
14984
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
14985
+ simulation_personas: List[
14986
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14987
+ ] = Field(
14988
+ ..., description='The list of simulation personas.', title='Simulation Personas'
14989
+ )
14990
+
14991
+
14992
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
14993
+ simulation_scenarios: List[
14994
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14995
+ ] = Field(
14996
+ ...,
14997
+ description='The list of simulation scenarios.',
14998
+ title='Simulation Scenarios',
14999
+ )
15000
+
15001
+
15009
15002
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
15010
15003
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
15011
15004
  ...,
@@ -15019,6 +15012,42 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15019
15012
  )
15020
15013
 
15021
15014
 
15015
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
15016
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
15017
+ ):
15018
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
15019
+ Field(
15020
+ ...,
15021
+ description='The unit test runs that are part of this set.',
15022
+ min_length=1,
15023
+ title='Unit Test Runs',
15024
+ )
15025
+ )
15026
+
15027
+
15028
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
15029
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15030
+ None, description='The name of the simulation unit test set.'
15031
+ )
15032
+ description: Optional[
15033
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
15034
+ ] = Field(
15035
+ {},
15036
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
15037
+ title='Description',
15038
+ )
15039
+ unit_test_runs: Optional[
15040
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
15041
+ ] = Field(
15042
+ None,
15043
+ description='The unit test runs that are part of this set.',
15044
+ title='Unit Test Runs',
15045
+ )
15046
+ tags: Optional[Dict[str, Optional[str]]] = Field(
15047
+ None, description='The tags of the simulation unit test set.', title='Tags'
15048
+ )
15049
+
15050
+
15022
15051
  class ToolGetToolVersionsResponse(BaseModel):
15023
15052
  tool_versions: List[ToolVersionInstance] = Field(
15024
15053
  ...,
@@ -15137,7 +15166,7 @@ class UserGetUsersResponseUserInstance(BaseModel):
15137
15166
  ..., description='The last name of the user.', title='Last Name'
15138
15167
  )
15139
15168
  email: str = Field(..., description='Email of the user.', title='Email')
15140
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15169
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15141
15170
  ..., description="Statistics about the user's usage of the Amigo platform."
15142
15171
  )
15143
15172
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15243,7 +15272,7 @@ class ActionStateInput(BaseModel):
15243
15272
  Field(..., title='Boundary Constraints')
15244
15273
  )
15245
15274
  exit_conditions: List[
15246
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15275
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15247
15276
  ] = Field(..., title='Exit Conditions')
15248
15277
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15249
15278
  ..., title='Action Tool Call Specs'
@@ -15352,7 +15381,7 @@ class DecisionStateInput(BaseModel):
15352
15381
  type: Literal['decision'] = Field(..., title='Type')
15353
15382
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15354
15383
  exit_conditions: List[
15355
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15384
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15356
15385
  ] = Field(..., title='Exit Conditions')
15357
15386
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15358
15387
  ..., title='Decision Guidelines'
@@ -15393,7 +15422,7 @@ class Metric(BaseModel):
15393
15422
  additional_notes: Optional[str] = Field(
15394
15423
  ..., description='Additional notes about the metric.', title='Additional Notes'
15395
15424
  )
15396
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15425
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15397
15426
  ..., description='The tags of the metric.', title='Tags'
15398
15427
  )
15399
15428
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15463,7 +15492,7 @@ class MetricInstance(BaseModel):
15463
15492
  additional_notes: Optional[str] = Field(
15464
15493
  ..., description='Additional notes about the metric.', title='Additional Notes'
15465
15494
  )
15466
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15495
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15467
15496
  ..., description='The tags of the metric.', title='Tags'
15468
15497
  )
15469
15498
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15665,7 +15694,7 @@ class SimulationUnitTest(BaseModel):
15665
15694
  is_deleted: bool = Field(
15666
15695
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15667
15696
  )
15668
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15697
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15669
15698
  ..., description='The tags of the simulation persona.', title='Tags'
15670
15699
  )
15671
15700
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15710,7 +15739,7 @@ class SimulationUnitTestInstance(BaseModel):
15710
15739
  is_deleted: bool = Field(
15711
15740
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15712
15741
  )
15713
- tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15742
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15714
15743
  ..., description='The tags of the simulation persona.', title='Tags'
15715
15744
  )
15716
15745
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -16010,7 +16039,7 @@ class RoleCreateRoleRequest(BaseModel):
16010
16039
  description: str = Field(
16011
16040
  ..., description='A description about the role.', min_length=1
16012
16041
  )
16013
- permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
16042
+ permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
16014
16043
  ...,
16015
16044
  description='A list of permission grants associated with this role.',
16016
16045
  title='Permission Grants',
@@ -16036,29 +16065,6 @@ class RoleGetRolesResponse(BaseModel):
16036
16065
  )
16037
16066
 
16038
16067
 
16039
- class RoleModifyRoleRequest(BaseModel):
16040
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
16041
- None,
16042
- description='A description about the role. Only updated if specified. This field is a mutable field.',
16043
- )
16044
- permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
16045
- None,
16046
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
16047
- title='Permission Grants',
16048
- )
16049
- frontend_view: Optional[FrontendView] = Field(
16050
- None,
16051
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
16052
- )
16053
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
16054
- Field(
16055
- {},
16056
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16057
- title='Inherited From',
16058
- )
16059
- )
16060
-
16061
-
16062
16068
  class ServiceCreateServiceRequest(BaseModel):
16063
16069
  service_hierarchical_state_machine_id: str = Field(
16064
16070
  ...,
@@ -16081,11 +16087,9 @@ class ServiceCreateServiceRequest(BaseModel):
16081
16087
  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.',
16082
16088
  title='Is Active',
16083
16089
  )
16084
- release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
16085
- Field(
16086
- None,
16087
- 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.',
16088
- )
16090
+ release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16091
+ None,
16092
+ 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.',
16089
16093
  )
16090
16094
  keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
16091
16095
  [],
@@ -16098,12 +16102,6 @@ class ServiceCreateServiceRequest(BaseModel):
16098
16102
  )
16099
16103
 
16100
16104
 
16101
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
16102
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
16103
- ..., description='The version set to upsert.'
16104
- )
16105
-
16106
-
16107
16105
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16108
16106
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16109
16107
  description: str = Field(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.89.0
3
+ Version: 0.90.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=rGmy-Yz0nzn6UU-btR286O467NZm2g-sU8t9L490r_w,139
1
+ amigo_sdk/__init__.py,sha256=Mxe_TpbSCMUnWJ10nBK8qAyp4UYKGdxV7vy9wfe0L-g,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=2TOHOTb78mJTE-CEEB0N8U9QLLMHsPMZ_tYTBCW4_30,459725
9
+ amigo_sdk/generated/model.py,sha256=dDPj9a9EKB686jU0GAkgIZ2S6ck7gF62__tSuetlqbE,459444
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.89.0.dist-info/METADATA,sha256=LJCKxqd2VZTctCBrxHjH-eesoctQ8_rvGuGGmFUsTcw,8499
15
- amigo_sdk-0.89.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.89.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.89.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.89.0.dist-info/RECORD,,
14
+ amigo_sdk-0.90.0.dist-info/METADATA,sha256=3uCo-lU99nVRntaSm9B4-oJmYD0c8m0phNMMpfLpBdI,8499
15
+ amigo_sdk-0.90.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.90.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.90.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.90.0.dist-info/RECORD,,