amigo_sdk 0.90.0__py3-none-any.whl → 0.91.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.90.0"
1
+ __version__ = "0.91.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-13T11:10:09+00:00
3
+ # timestamp: 2025-12-14T08:50:01+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1635,11 +1635,6 @@ 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
-
1643
1638
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1644
1639
  agent_version_number: Optional[int] = Field(
1645
1640
  ...,
@@ -1668,6 +1663,11 @@ AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
1668
1663
  )
1669
1664
 
1670
1665
 
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
  )
@@ -1709,6 +1709,12 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1709
1709
  )
1710
1710
 
1711
1711
 
1712
+ class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1713
+ major: int = Field(..., title='Major')
1714
+ minor: int = Field(..., title='Minor')
1715
+ patch: int = Field(..., title='Patch')
1716
+
1717
+
1712
1718
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1713
1719
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1714
1720
  user_org_id: str = Field(
@@ -1716,12 +1722,6 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1716
1722
  )
1717
1723
 
1718
1724
 
1719
- class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1720
- major: int = Field(..., title='Major')
1721
- minor: int = Field(..., title='Minor')
1722
- patch: int = Field(..., title='Patch')
1723
-
1724
-
1725
1725
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1726
1726
  enable_response_recommendation: Optional[bool] = Field(
1727
1727
  False,
@@ -1965,20 +1965,6 @@ 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
-
1982
1968
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1983
1969
  applied_to_services_ids: List[str] = Field(
1984
1970
  ...,
@@ -1999,14 +1985,18 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1999
1985
  )
2000
1986
 
2001
1987
 
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
- )
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
2010
2000
 
2011
2001
 
2012
2002
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10767,13 +10757,6 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10767
10757
  )
10768
10758
 
10769
10759
 
10770
- class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10771
- description: str = Field(..., min_length=1)
10772
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10773
- ..., title='Tags'
10774
- )
10775
-
10776
-
10777
10760
  class OrganizationCreateOrganizationResponse(BaseModel):
10778
10761
  org_id: str = Field(
10779
10762
  ...,
@@ -10915,22 +10898,18 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10915
10898
  )
10916
10899
 
10917
10900
 
10918
- class OrganizationModifyOrganizationRequestUserDimensions(
10919
- RootModel[List[OrganizationCreateOrganizationRequestUserDimension]]
10920
- ):
10921
- root: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
10922
- ...,
10923
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10924
- min_length=1,
10925
- title='User Dimensions',
10926
- )
10927
-
10928
-
10929
10901
  OrganizationModifyOrganizationRequestPreferences = (
10930
10902
  OrganizationCreateOrganizationRequestPreferences
10931
10903
  )
10932
10904
 
10933
10905
 
10906
+ class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10907
+ description: str = Field(..., min_length=1)
10908
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10909
+ ..., title='Tags'
10910
+ )
10911
+
10912
+
10934
10913
  class RoleAssignRoleRequest(BaseModel):
10935
10914
  user_id: str = Field(
10936
10915
  ...,
@@ -10977,13 +10956,6 @@ class RoleModifyRoleResponse(BaseModel):
10977
10956
  )
10978
10957
 
10979
10958
 
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
-
10987
10959
  class ServiceCreateServiceResponse(BaseModel):
10988
10960
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10989
10961
 
@@ -11059,6 +11031,13 @@ class ServiceUpdateServiceRequest(BaseModel):
11059
11031
  )
11060
11032
 
11061
11033
 
11034
+ class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11035
+ llm_name: LLMType
11036
+ params: Optional[Dict[str, Any]] = Field(
11037
+ {}, description='LLM-specific parameters to use.', title='Params'
11038
+ )
11039
+
11040
+
11062
11041
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11063
11042
  background: str = Field(
11064
11043
  ..., description='The background of the simulation persona.', min_length=1
@@ -11177,6 +11156,16 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11177
11156
  )
11178
11157
 
11179
11158
 
11159
+ class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11160
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11161
+ run_count: int = Field(
11162
+ ...,
11163
+ description='The number of times to run the unit test.',
11164
+ gt=0,
11165
+ title='Run Count',
11166
+ )
11167
+
11168
+
11180
11169
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11181
11170
  simulation_unit_test_set_id: str = Field(
11182
11171
  ...,
@@ -11236,6 +11225,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11236
11225
  )
11237
11226
 
11238
11227
 
11228
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11229
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11230
+ name: str = Field(
11231
+ ..., description='The name of the simulation persona.', title='Name'
11232
+ )
11233
+ role: str = Field(
11234
+ ..., description='The role of the simulation persona.', title='Role'
11235
+ )
11236
+ tags: Dict[str, Optional[str]] = Field(
11237
+ ..., description='The tags of the simulation persona.', title='Tags'
11238
+ )
11239
+ is_deleted: bool = Field(
11240
+ ...,
11241
+ description='Whether the simulation persona is deleted.',
11242
+ title='Is Deleted',
11243
+ )
11244
+ created_at: AwareDatetime = Field(
11245
+ ...,
11246
+ description='The timestamp when the simulation persona was created.',
11247
+ title='Created At',
11248
+ )
11249
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11250
+ ..., description='The user who created the simulation persona.'
11251
+ )
11252
+ updated_at: AwareDatetime = Field(
11253
+ ...,
11254
+ description='The timestamp when the simulation persona was last updated.',
11255
+ title='Updated At',
11256
+ )
11257
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11258
+ Field(..., description='The user who last updated the simulation persona.')
11259
+ )
11260
+
11261
+
11239
11262
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11240
11263
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11241
11264
  ...,
@@ -11267,6 +11290,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11267
11290
  )
11268
11291
 
11269
11292
 
11293
+ class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11294
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11295
+ name: str = Field(
11296
+ ..., description='The name of the simulation scenario.', title='Name'
11297
+ )
11298
+ tags: Dict[str, Optional[str]] = Field(
11299
+ ..., description='The tags of the simulation scenario.', title='Tags'
11300
+ )
11301
+ is_deleted: bool = Field(
11302
+ ...,
11303
+ description='Whether the simulation scenario is deleted.',
11304
+ title='Is Deleted',
11305
+ )
11306
+ created_at: AwareDatetime = Field(
11307
+ ...,
11308
+ description='The timestamp when the simulation scenario was created.',
11309
+ title='Created At',
11310
+ )
11311
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11312
+ Field(..., description='The user who created the simulation scenario.')
11313
+ )
11314
+ updated_at: AwareDatetime = Field(
11315
+ ...,
11316
+ description='The timestamp when the simulation scenario was last updated.',
11317
+ title='Updated At',
11318
+ )
11319
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11320
+ Field(..., description='The user who last updated the simulation scenario.')
11321
+ )
11322
+
11323
+
11270
11324
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11271
11325
  presigned_url: str = Field(
11272
11326
  ...,
@@ -11355,68 +11409,21 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11355
11409
  )
11356
11410
 
11357
11411
 
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.')
11412
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11413
+ simulation_personas: List[
11414
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11415
+ ] = Field(
11416
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11389
11417
  )
11390
11418
 
11391
11419
 
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(
11401
- ...,
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(
11420
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11421
+ simulation_scenarios: List[
11422
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11423
+ ] = Field(
11414
11424
  ...,
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.')
11425
+ description='The list of simulation scenarios.',
11426
+ title='Simulation Scenarios',
11420
11427
  )
11421
11428
 
11422
11429
 
@@ -11477,13 +11484,39 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11477
11484
  )
11478
11485
 
11479
11486
 
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',
11487
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11488
+ RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11489
+ ):
11490
+ root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11491
+ Field(
11492
+ ...,
11493
+ description='The unit test runs that are part of this set.',
11494
+ min_length=1,
11495
+ title='Unit Test Runs',
11496
+ )
11497
+ )
11498
+
11499
+
11500
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11501
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11502
+ None, description='The name of the simulation unit test set.'
11503
+ )
11504
+ description: Optional[
11505
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11506
+ ] = Field(
11507
+ {},
11508
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11509
+ title='Description',
11510
+ )
11511
+ unit_test_runs: Optional[
11512
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11513
+ ] = Field(
11514
+ None,
11515
+ description='The unit test runs that are part of this set.',
11516
+ title='Unit Test Runs',
11517
+ )
11518
+ tags: Optional[Dict[str, Optional[str]]] = Field(
11519
+ None, description='The tags of the simulation unit test set.', title='Tags'
11487
11520
  )
11488
11521
 
11489
11522
 
@@ -11682,7 +11715,7 @@ class UserGetMemoriesResponse(BaseModel):
11682
11715
  )
11683
11716
 
11684
11717
 
11685
- class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11718
+ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11686
11719
  num_conversations: int = Field(
11687
11720
  ...,
11688
11721
  description='The number of conversations the user has created.',
@@ -12137,7 +12170,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12137
12170
  [], description='The IDs of the messages to retrieve.', title='Id'
12138
12171
  )
12139
12172
  message_type: Optional[List[MessageType]] = Field(
12140
- ['external-event', 'user-message', 'agent-message'],
12173
+ ['external-event', 'agent-message', 'user-message'],
12141
12174
  description='The type of messages to retrieve.',
12142
12175
  title='Message Type',
12143
12176
  )
@@ -13943,7 +13976,7 @@ class ServiceInstance(BaseModel):
13943
13976
  agent_id: str = Field(
13944
13977
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13945
13978
  )
13946
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13979
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
13947
13980
  ..., description='The tags of the service.', title='Tags'
13948
13981
  )
13949
13982
 
@@ -13996,7 +14029,7 @@ class SimulationUnitTestSet(BaseModel):
13996
14029
  description='Whether the unit test set has been deleted.',
13997
14030
  title='Is Deleted',
13998
14031
  )
13999
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14032
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14000
14033
  ..., description='The tags of the simulation unit test set.', title='Tags'
14001
14034
  )
14002
14035
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14035,7 +14068,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14035
14068
  description='Whether the unit test set has been deleted.',
14036
14069
  title='Is Deleted',
14037
14070
  )
14038
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14071
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14039
14072
  ..., description='The tags of the simulation unit test set.', title='Tags'
14040
14073
  )
14041
14074
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14151,7 +14184,7 @@ class ToolInstance(BaseModel):
14151
14184
  description='A list of encrypted environment variables that some versions of this tool uses.',
14152
14185
  title='Secret Envvars',
14153
14186
  )
14154
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14187
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14155
14188
  ..., description='The tags of the simulation persona.', title='Tags'
14156
14189
  )
14157
14190
 
@@ -14166,7 +14199,7 @@ class ToolVersionInstance(BaseModel):
14166
14199
  description='The ID of the tool that this version belongs to.',
14167
14200
  title='Tool Id',
14168
14201
  )
14169
- version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14202
+ version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14170
14203
  ..., description='The version of the tool.'
14171
14204
  )
14172
14205
  required_envvars: List[str] = Field(
@@ -14482,7 +14515,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14482
14515
 
14483
14516
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14484
14517
  dynamic_behavior_sets: List[
14485
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14518
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14486
14519
  ] = Field(
14487
14520
  ...,
14488
14521
  description='The retrieved dynamic behavior sets.',
@@ -14506,6 +14539,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14506
14539
  )
14507
14540
 
14508
14541
 
14542
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14543
+ dynamic_behavior_sets: List[
14544
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14545
+ ] = Field(
14546
+ ...,
14547
+ description='The retrieved dynamic behavior sets.',
14548
+ title='Dynamic Behavior Sets',
14549
+ )
14550
+
14551
+
14509
14552
  class MetricCreateMetricRequest(BaseModel):
14510
14553
  name: str = Field(
14511
14554
  ...,
@@ -14562,7 +14605,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14562
14605
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14563
14606
  min_length=1,
14564
14607
  )
14565
- user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14608
+ user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14566
14609
  ...,
14567
14610
  description='User dimensions for the organization.',
14568
14611
  title='User Dimensions',
@@ -14707,6 +14750,17 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14707
14750
  )
14708
14751
 
14709
14752
 
14753
+ class OrganizationModifyOrganizationRequestUserDimensions(
14754
+ RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14755
+ ):
14756
+ root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14757
+ ...,
14758
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14759
+ min_length=1,
14760
+ title='User Dimensions',
14761
+ )
14762
+
14763
+
14710
14764
  class OrganizationModifyOrganizationRequest(BaseModel):
14711
14765
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14712
14766
  None,
@@ -14804,22 +14858,6 @@ class RoleModifyRoleRequest(BaseModel):
14804
14858
  )
14805
14859
 
14806
14860
 
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
-
14823
14861
  class ServiceGetServicesResponse(BaseModel):
14824
14862
  services: List[ServiceInstance] = Field(
14825
14863
  ..., description='The services that are found.', title='Services'
@@ -14840,10 +14878,20 @@ class ServiceGetServicesResponse(BaseModel):
14840
14878
  )
14841
14879
 
14842
14880
 
14843
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
14844
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14845
- ..., description='The version set to upsert.'
14881
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14882
+ agent_version_number: Optional[int] = Field(
14883
+ ...,
14884
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14885
+ title='Agent Version Number',
14846
14886
  )
14887
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14888
+ ...,
14889
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14890
+ title='Service Hierarchical State Machine Version Number',
14891
+ )
14892
+ llm_model_preferences: Dict[
14893
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14894
+ ] = Field(..., title='Llm Model Preferences')
14847
14895
 
14848
14896
 
14849
14897
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14895,7 +14943,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14895
14943
  ..., description='The description of the simulation unit test set.'
14896
14944
  )
14897
14945
  unit_test_runs: List[
14898
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14946
+ SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14899
14947
  ] = Field(
14900
14948
  ...,
14901
14949
  description='The unit test runs that are part of this set.',
@@ -14909,7 +14957,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14909
14957
 
14910
14958
  class SimulationGetSimulationPersonasResponse(BaseModel):
14911
14959
  simulation_personas: List[
14912
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14960
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14913
14961
  ] = Field(
14914
14962
  ..., description='The list of simulation personas.', title='Simulation Personas'
14915
14963
  )
@@ -14933,7 +14981,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14933
14981
 
14934
14982
  class SimulationGetSimulationScenariosResponse(BaseModel):
14935
14983
  simulation_scenarios: List[
14936
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14984
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14937
14985
  ] = Field(
14938
14986
  ...,
14939
14987
  description='The list of simulation scenarios.',
@@ -14981,24 +15029,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14981
15029
  )
14982
15030
 
14983
15031
 
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
-
15002
15032
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
15003
15033
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
15004
15034
  ...,
@@ -15012,42 +15042,6 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15012
15042
  )
15013
15043
 
15014
15044
 
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
-
15051
15045
  class ToolGetToolVersionsResponse(BaseModel):
15052
15046
  tool_versions: List[ToolVersionInstance] = Field(
15053
15047
  ...,
@@ -15150,7 +15144,7 @@ class UserGetUserModelResponse(BaseModel):
15150
15144
  )
15151
15145
 
15152
15146
 
15153
- class UserGetUsersResponseUserInstance(BaseModel):
15147
+ class UserSearchUsersResponseUserInstance(BaseModel):
15154
15148
  org_id: str = Field(
15155
15149
  ...,
15156
15150
  description='The ID of the organization that this user belongs to.',
@@ -15166,7 +15160,7 @@ class UserGetUsersResponseUserInstance(BaseModel):
15166
15160
  ..., description='The last name of the user.', title='Last Name'
15167
15161
  )
15168
15162
  email: str = Field(..., description='Email of the user.', title='Email')
15169
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15163
+ user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15170
15164
  ..., description="Statistics about the user's usage of the Amigo platform."
15171
15165
  )
15172
15166
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15175,12 +15169,6 @@ class UserGetUsersResponseUserInstance(BaseModel):
15175
15169
  )
15176
15170
 
15177
15171
 
15178
- class UserSearchUsersResponse(BaseModel):
15179
- users: List[UserGetUsersResponseUserInstance] = Field(
15180
- ..., description='Users in this organization.', title='Users'
15181
- )
15182
-
15183
-
15184
15172
  class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
15185
15173
  webhook_deliveries: List[WebhookDeliveryInstance] = Field(
15186
15174
  ..., description='The retrieved webhook deliveries.', title='Webhook Deliveries'
@@ -15422,7 +15410,7 @@ class Metric(BaseModel):
15422
15410
  additional_notes: Optional[str] = Field(
15423
15411
  ..., description='Additional notes about the metric.', title='Additional Notes'
15424
15412
  )
15425
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15413
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15426
15414
  ..., description='The tags of the metric.', title='Tags'
15427
15415
  )
15428
15416
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15492,7 +15480,7 @@ class MetricInstance(BaseModel):
15492
15480
  additional_notes: Optional[str] = Field(
15493
15481
  ..., description='Additional notes about the metric.', title='Additional Notes'
15494
15482
  )
15495
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15483
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15496
15484
  ..., description='The tags of the metric.', title='Tags'
15497
15485
  )
15498
15486
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15694,7 +15682,7 @@ class SimulationUnitTest(BaseModel):
15694
15682
  is_deleted: bool = Field(
15695
15683
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15696
15684
  )
15697
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15685
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15698
15686
  ..., description='The tags of the simulation persona.', title='Tags'
15699
15687
  )
15700
15688
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15739,7 +15727,7 @@ class SimulationUnitTestInstance(BaseModel):
15739
15727
  is_deleted: bool = Field(
15740
15728
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15741
15729
  )
15742
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15730
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15743
15731
  ..., description='The tags of the simulation persona.', title='Tags'
15744
15732
  )
15745
15733
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -16087,9 +16075,11 @@ class ServiceCreateServiceRequest(BaseModel):
16087
16075
  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.',
16088
16076
  title='Is Active',
16089
16077
  )
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.',
16078
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
16079
+ Field(
16080
+ None,
16081
+ 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.',
16082
+ )
16093
16083
  )
16094
16084
  keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
16095
16085
  [],
@@ -16102,6 +16092,12 @@ class ServiceCreateServiceRequest(BaseModel):
16102
16092
  )
16103
16093
 
16104
16094
 
16095
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
16096
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
16097
+ ..., description='The version set to upsert.'
16098
+ )
16099
+
16100
+
16105
16101
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16106
16102
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16107
16103
  description: str = Field(
@@ -16257,7 +16253,7 @@ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16257
16253
  tool_id: str = Field(
16258
16254
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16259
16255
  )
16260
- tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16256
+ tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16261
16257
  ..., description='The version of the tool that was invoked.'
16262
16258
  )
16263
16259
 
@@ -16271,7 +16267,7 @@ class ToolSearchToolInvocationsResponse(BaseModel):
16271
16267
 
16272
16268
 
16273
16269
  class UserGetUsersResponse(BaseModel):
16274
- users: List[UserGetUsersResponseUserInstance] = Field(
16270
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16275
16271
  ..., description='Users in this organization.', title='Users'
16276
16272
  )
16277
16273
  has_more: bool = Field(
@@ -16284,6 +16280,12 @@ class UserGetUsersResponse(BaseModel):
16284
16280
  )
16285
16281
 
16286
16282
 
16283
+ class UserSearchUsersResponse(BaseModel):
16284
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16285
+ ..., description='Users in this organization.', title='Users'
16286
+ )
16287
+
16288
+
16287
16289
  class SimulationUnitTestSetRunInstance(BaseModel):
16288
16290
  org_id: str = Field(..., title='Org Id')
16289
16291
  id: str = Field(..., title='Id')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.90.0
3
+ Version: 0.91.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=Mxe_TpbSCMUnWJ10nBK8qAyp4UYKGdxV7vy9wfe0L-g,139
1
+ amigo_sdk/__init__.py,sha256=EdXtEYEF9IRNsV36jRztrW_x6L2qnkHmu0CfOZ0-Pno,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=dDPj9a9EKB686jU0GAkgIZ2S6ck7gF62__tSuetlqbE,459444
9
+ amigo_sdk/generated/model.py,sha256=h51VyTn94b0e6wpXHC00DaRROOzHGmKlyo1pDjxhJ7k,459742
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.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,,
14
+ amigo_sdk-0.91.0.dist-info/METADATA,sha256=QAWIxow4fHlgsrhxYbY9vBWdVvIESjS9foraPksCEZs,8499
15
+ amigo_sdk-0.91.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.91.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.91.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.91.0.dist-info/RECORD,,