amigo_sdk 0.92.0__py3-none-any.whl → 0.93.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.92.0"
1
+ __version__ = "0.93.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-15T02:15:40+00:00
3
+ # timestamp: 2025-12-16T21:54:39+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1056,6 +1056,12 @@ class StrippedNonemptyStringWS(RootModel[str]):
1056
1056
  root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
1057
1057
 
1058
1058
 
1059
+ class StrippedNonemptyStringToUpperNoneToLowerNoneStrictNoneMinLengthNoneMaxLengthNonePatternAZaZ09MaxLenMaxLength40(
1060
+ RootModel[str]
1061
+ ):
1062
+ root: str = Field(..., max_length=40, min_length=1, pattern='^[A-Za-z0-9_-]+$')
1063
+
1064
+
1059
1065
  class StrippedNonemptyStringAZAZ02(RootModel[str]):
1060
1066
  root: str = Field(..., min_length=1, pattern='^[a-z-]+( [a-z-]+){0,2}$')
1061
1067
 
@@ -1518,11 +1524,6 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1518
1524
  deny = 'Deny'
1519
1525
 
1520
1526
 
1521
- class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1522
- key: str = Field(..., title='Key')
1523
- value: Optional[str] = Field(..., title='Value')
1524
-
1525
-
1526
1527
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1527
1528
  agent_version_number: Optional[int] = Field(
1528
1529
  ...,
@@ -1592,19 +1593,24 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1592
1593
  )
1593
1594
 
1594
1595
 
1595
- class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1596
- user_id: str = Field(..., description='The ID of the user.', title='User Id')
1597
- user_org_id: str = Field(
1598
- ..., description="The ID of the user's organization.", title='User Org Id'
1599
- )
1596
+ class AmigoLibMongoCollectionsToolToolTag(BaseModel):
1597
+ key: str = Field(..., title='Key')
1598
+ value: Optional[str] = Field(..., title='Value')
1600
1599
 
1601
1600
 
1602
- class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1601
+ class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1603
1602
  major: int = Field(..., title='Major')
1604
1603
  minor: int = Field(..., title='Minor')
1605
1604
  patch: int = Field(..., title='Patch')
1606
1605
 
1607
1606
 
1607
+ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1608
+ user_id: str = Field(..., description='The ID of the user.', title='User Id')
1609
+ user_org_id: str = Field(
1610
+ ..., description="The ID of the user's organization.", title='User Org Id'
1611
+ )
1612
+
1613
+
1608
1614
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1609
1615
  enable_response_recommendation: Optional[bool] = Field(
1610
1616
  False,
@@ -1848,20 +1854,6 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1848
1854
  )
1849
1855
 
1850
1856
 
1851
- class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1852
- BaseModel
1853
- ):
1854
- id: str = Field(..., title='Id')
1855
- name: str = Field(..., title='Name')
1856
- is_active: bool = Field(..., title='Is Active')
1857
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1858
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1859
- created_at: AwareDatetime = Field(..., title='Created At')
1860
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1861
- updated_at: AwareDatetime = Field(..., title='Updated At')
1862
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1863
-
1864
-
1865
1857
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1866
1858
  applied_to_services_ids: List[str] = Field(
1867
1859
  ...,
@@ -1882,14 +1874,18 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1882
1874
  )
1883
1875
 
1884
1876
 
1885
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1886
- dynamic_behavior_sets: List[
1887
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1888
- ] = Field(
1889
- ...,
1890
- description='The retrieved dynamic behavior sets.',
1891
- title='Dynamic Behavior Sets',
1892
- )
1877
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1878
+ BaseModel
1879
+ ):
1880
+ id: str = Field(..., title='Id')
1881
+ name: str = Field(..., title='Name')
1882
+ is_active: bool = Field(..., title='Is Active')
1883
+ applied_to_services: List[str] = Field(..., title='Applied To Services')
1884
+ tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1885
+ created_at: AwareDatetime = Field(..., title='Created At')
1886
+ creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1887
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1888
+ updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1893
1889
 
1894
1890
 
1895
1891
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10650,6 +10646,13 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10650
10646
  )
10651
10647
 
10652
10648
 
10649
+ class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10650
+ description: str = Field(..., min_length=1)
10651
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10652
+ ..., title='Tags'
10653
+ )
10654
+
10655
+
10653
10656
  class OrganizationCreateOrganizationResponse(BaseModel):
10654
10657
  org_id: str = Field(
10655
10658
  ...,
@@ -10673,19 +10676,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10673
10676
  )
10674
10677
 
10675
10678
 
10676
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10679
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10677
10680
  AnnotationStateInputNextState
10678
10681
  ):
10679
10682
  pass
10680
10683
 
10681
10684
 
10682
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10685
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10683
10686
  BaseModel
10684
10687
  ):
10685
10688
  description: str = Field(..., min_length=1)
10686
10689
  next_state: Union[
10687
10690
  StateOrRefName,
10688
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10691
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10689
10692
  ] = Field(..., title='Next State')
10690
10693
 
10691
10694
 
@@ -10791,18 +10794,22 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10791
10794
  )
10792
10795
 
10793
10796
 
10797
+ class OrganizationModifyOrganizationRequestUserDimensions(
10798
+ RootModel[List[OrganizationCreateOrganizationRequestUserDimension]]
10799
+ ):
10800
+ root: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
10801
+ ...,
10802
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10803
+ min_length=1,
10804
+ title='User Dimensions',
10805
+ )
10806
+
10807
+
10794
10808
  OrganizationModifyOrganizationRequestPreferences = (
10795
10809
  OrganizationCreateOrganizationRequestPreferences
10796
10810
  )
10797
10811
 
10798
10812
 
10799
- class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10800
- description: str = Field(..., min_length=1)
10801
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10802
- ..., title='Tags'
10803
- )
10804
-
10805
-
10806
10813
  class RoleAssignRoleRequest(BaseModel):
10807
10814
  user_id: str = Field(
10808
10815
  ...,
@@ -10849,6 +10856,13 @@ class RoleModifyRoleResponse(BaseModel):
10849
10856
  )
10850
10857
 
10851
10858
 
10859
+ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10860
+ llm_name: LLMType
10861
+ params: Optional[Dict[str, Any]] = Field(
10862
+ {}, description='LLM-specific parameters to use.', title='Params'
10863
+ )
10864
+
10865
+
10852
10866
  class ServiceCreateServiceResponse(BaseModel):
10853
10867
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10854
10868
 
@@ -10924,10 +10938,19 @@ class ServiceUpdateServiceRequest(BaseModel):
10924
10938
  )
10925
10939
 
10926
10940
 
10927
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
10928
- llm_name: LLMType
10929
- params: Optional[Dict[str, Any]] = Field(
10930
- {}, description='LLM-specific parameters to use.', title='Params'
10941
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
10942
+ agent_version_number: Optional[int] = Field(
10943
+ ...,
10944
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
10945
+ title='Agent Version Number',
10946
+ )
10947
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
10948
+ ...,
10949
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
10950
+ title='Service Hierarchical State Machine Version Number',
10951
+ )
10952
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
10953
+ Field(..., title='Llm Model Preferences')
10931
10954
  )
10932
10955
 
10933
10956
 
@@ -11049,16 +11072,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11049
11072
  )
11050
11073
 
11051
11074
 
11052
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11053
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11054
- run_count: int = Field(
11055
- ...,
11056
- description='The number of times to run the unit test.',
11057
- gt=0,
11058
- title='Run Count',
11059
- )
11060
-
11061
-
11062
11075
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11063
11076
  simulation_unit_test_set_id: str = Field(
11064
11077
  ...,
@@ -11183,37 +11196,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11183
11196
  )
11184
11197
 
11185
11198
 
11186
- class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11187
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11188
- name: str = Field(
11189
- ..., description='The name of the simulation scenario.', title='Name'
11190
- )
11191
- tags: Dict[str, Optional[str]] = Field(
11192
- ..., description='The tags of the simulation scenario.', title='Tags'
11193
- )
11194
- is_deleted: bool = Field(
11195
- ...,
11196
- description='Whether the simulation scenario is deleted.',
11197
- title='Is Deleted',
11198
- )
11199
- created_at: AwareDatetime = Field(
11200
- ...,
11201
- description='The timestamp when the simulation scenario was created.',
11202
- title='Created At',
11203
- )
11204
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11205
- Field(..., description='The user who created the simulation scenario.')
11206
- )
11207
- updated_at: AwareDatetime = Field(
11208
- ...,
11209
- description='The timestamp when the simulation scenario was last updated.',
11210
- title='Updated At',
11211
- )
11212
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11213
- Field(..., description='The user who last updated the simulation scenario.')
11214
- )
11215
-
11216
-
11217
11199
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11218
11200
  presigned_url: str = Field(
11219
11201
  ...,
@@ -11310,13 +11292,34 @@ class SimulationSearchSimulationPersonasResponse(BaseModel):
11310
11292
  )
11311
11293
 
11312
11294
 
11313
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11314
- simulation_scenarios: List[
11315
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11316
- ] = Field(
11295
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11296
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11297
+ name: str = Field(
11298
+ ..., description='The name of the simulation scenario.', title='Name'
11299
+ )
11300
+ tags: Dict[str, Optional[str]] = Field(
11301
+ ..., description='The tags of the simulation scenario.', title='Tags'
11302
+ )
11303
+ is_deleted: bool = Field(
11317
11304
  ...,
11318
- description='The list of simulation scenarios.',
11319
- title='Simulation Scenarios',
11305
+ description='Whether the simulation scenario is deleted.',
11306
+ title='Is Deleted',
11307
+ )
11308
+ created_at: AwareDatetime = Field(
11309
+ ...,
11310
+ description='The timestamp when the simulation scenario was created.',
11311
+ title='Created At',
11312
+ )
11313
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11314
+ Field(..., description='The user who created the simulation scenario.')
11315
+ )
11316
+ updated_at: AwareDatetime = Field(
11317
+ ...,
11318
+ description='The timestamp when the simulation scenario was last updated.',
11319
+ title='Updated At',
11320
+ )
11321
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11322
+ Field(..., description='The user who last updated the simulation scenario.')
11320
11323
  )
11321
11324
 
11322
11325
 
@@ -11377,39 +11380,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11377
11380
  )
11378
11381
 
11379
11382
 
11380
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11381
- RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11382
- ):
11383
- root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11384
- Field(
11385
- ...,
11386
- description='The unit test runs that are part of this set.',
11387
- min_length=1,
11388
- title='Unit Test Runs',
11389
- )
11390
- )
11391
-
11392
-
11393
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11394
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11395
- None, description='The name of the simulation unit test set.'
11396
- )
11397
- description: Optional[
11398
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11399
- ] = Field(
11400
- {},
11401
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11402
- title='Description',
11403
- )
11404
- unit_test_runs: Optional[
11405
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11406
- ] = Field(
11407
- None,
11408
- description='The unit test runs that are part of this set.',
11409
- title='Unit Test Runs',
11410
- )
11411
- tags: Optional[Dict[str, Optional[str]]] = Field(
11412
- None, description='The tags of the simulation unit test set.', title='Tags'
11383
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11384
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11385
+ run_count: int = Field(
11386
+ ...,
11387
+ description='The number of times to run the unit test.',
11388
+ gt=0,
11389
+ title='Run Count',
11413
11390
  )
11414
11391
 
11415
11392
 
@@ -11626,6 +11603,31 @@ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11626
11603
  )
11627
11604
 
11628
11605
 
11606
+ class UserSearchUsersResponseUserInstance(BaseModel):
11607
+ org_id: str = Field(
11608
+ ...,
11609
+ description='The ID of the organization that this user belongs to.',
11610
+ title='Org Id',
11611
+ )
11612
+ user_id: str = Field(
11613
+ ..., description='The identifier of the user.', title='User Id'
11614
+ )
11615
+ first_name: str = Field(
11616
+ ..., description='The first name of the user.', title='First Name'
11617
+ )
11618
+ last_name: str = Field(
11619
+ ..., description='The last name of the user.', title='Last Name'
11620
+ )
11621
+ email: str = Field(..., description='Email of the user.', title='Email')
11622
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
11623
+ ..., description="Statistics about the user's usage of the Amigo platform."
11624
+ )
11625
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
11626
+ preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
11627
+ ..., description='The preferences of the user.'
11628
+ )
11629
+
11630
+
11629
11631
  class UserSignInWithApiKeyResponse(BaseModel):
11630
11632
  id_token: str = Field(
11631
11633
  ...,
@@ -12068,7 +12070,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12068
12070
  [], description='The IDs of the messages to retrieve.', title='Id'
12069
12071
  )
12070
12072
  message_type: Optional[List[MessageType]] = Field(
12071
- ['agent-message', 'user-message', 'external-event'],
12073
+ ['external-event', 'user-message', 'agent-message'],
12072
12074
  description='The type of messages to retrieve.',
12073
12075
  title='Message Type',
12074
12076
  )
@@ -13874,7 +13876,7 @@ class ServiceInstance(BaseModel):
13874
13876
  agent_id: str = Field(
13875
13877
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13876
13878
  )
13877
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13879
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13878
13880
  ..., description='The tags of the service.', title='Tags'
13879
13881
  )
13880
13882
 
@@ -13927,7 +13929,7 @@ class SimulationUnitTestSet(BaseModel):
13927
13929
  description='Whether the unit test set has been deleted.',
13928
13930
  title='Is Deleted',
13929
13931
  )
13930
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13932
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13931
13933
  ..., description='The tags of the simulation unit test set.', title='Tags'
13932
13934
  )
13933
13935
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13966,7 +13968,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13966
13968
  description='Whether the unit test set has been deleted.',
13967
13969
  title='Is Deleted',
13968
13970
  )
13969
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13971
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13970
13972
  ..., description='The tags of the simulation unit test set.', title='Tags'
13971
13973
  )
13972
13974
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14082,7 +14084,7 @@ class ToolInstance(BaseModel):
14082
14084
  description='A list of encrypted environment variables that some versions of this tool uses.',
14083
14085
  title='Secret Envvars',
14084
14086
  )
14085
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14087
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14086
14088
  ..., description='The tags of the simulation persona.', title='Tags'
14087
14089
  )
14088
14090
 
@@ -14097,7 +14099,7 @@ class ToolVersionInstance(BaseModel):
14097
14099
  description='The ID of the tool that this version belongs to.',
14098
14100
  title='Tool Id',
14099
14101
  )
14100
- version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14102
+ version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14101
14103
  ..., description='The version of the tool.'
14102
14104
  )
14103
14105
  required_envvars: List[str] = Field(
@@ -14413,7 +14415,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14413
14415
 
14414
14416
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14415
14417
  dynamic_behavior_sets: List[
14416
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14418
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14417
14419
  ] = Field(
14418
14420
  ...,
14419
14421
  description='The retrieved dynamic behavior sets.',
@@ -14437,6 +14439,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14437
14439
  )
14438
14440
 
14439
14441
 
14442
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14443
+ dynamic_behavior_sets: List[
14444
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14445
+ ] = Field(
14446
+ ...,
14447
+ description='The retrieved dynamic behavior sets.',
14448
+ title='Dynamic Behavior Sets',
14449
+ )
14450
+
14451
+
14440
14452
  class MetricCreateMetricRequest(BaseModel):
14441
14453
  name: str = Field(
14442
14454
  ...,
@@ -14493,7 +14505,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14493
14505
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14494
14506
  min_length=1,
14495
14507
  )
14496
- user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14508
+ user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14497
14509
  ...,
14498
14510
  description='User dimensions for the organization.',
14499
14511
  title='User Dimensions',
@@ -14605,17 +14617,6 @@ class OrganizationGetApiKeysResponse(BaseModel):
14605
14617
  )
14606
14618
 
14607
14619
 
14608
- class OrganizationModifyOrganizationRequestUserDimensions(
14609
- RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14610
- ):
14611
- root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14612
- ...,
14613
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14614
- min_length=1,
14615
- title='User Dimensions',
14616
- )
14617
-
14618
-
14619
14620
  class OrganizationModifyOrganizationRequest(BaseModel):
14620
14621
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14621
14622
  None,
@@ -14690,6 +14691,45 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14690
14691
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14691
14692
 
14692
14693
 
14694
+ class ServiceCreateServiceRequest(BaseModel):
14695
+ service_hierarchical_state_machine_id: str = Field(
14696
+ ...,
14697
+ description='The ID of the state machine that this service uses.',
14698
+ pattern='^[a-f0-9]{24}$',
14699
+ title='Service Hierarchical State Machine Id',
14700
+ )
14701
+ agent_id: str = Field(
14702
+ ...,
14703
+ description='The ID of the agent that this service uses.',
14704
+ pattern='^[a-f0-9]{24}$',
14705
+ title='Agent Id',
14706
+ )
14707
+ name: str = Field(..., description='The name of this service.', min_length=1)
14708
+ description: str = Field(
14709
+ ..., description='A description of this service.', min_length=1
14710
+ )
14711
+ is_active: bool = Field(
14712
+ ...,
14713
+ 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.',
14714
+ title='Is Active',
14715
+ )
14716
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14717
+ Field(
14718
+ None,
14719
+ 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.',
14720
+ )
14721
+ )
14722
+ keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
14723
+ [],
14724
+ description='A list of keyterms that are easy to get wrong during audio transcriptions that tend to occur commonly in audio sessions using this service.',
14725
+ max_length=20,
14726
+ title='Keyterms',
14727
+ )
14728
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14729
+ ..., description='The tags of this service.', title='Tags'
14730
+ )
14731
+
14732
+
14693
14733
  class ServiceGetServicesResponse(BaseModel):
14694
14734
  services: List[ServiceInstance] = Field(
14695
14735
  ..., description='The services that are found.', title='Services'
@@ -14710,20 +14750,10 @@ class ServiceGetServicesResponse(BaseModel):
14710
14750
  )
14711
14751
 
14712
14752
 
14713
- class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14714
- agent_version_number: Optional[int] = Field(
14715
- ...,
14716
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14717
- title='Agent Version Number',
14718
- )
14719
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14720
- ...,
14721
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14722
- title='Service Hierarchical State Machine Version Number',
14753
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
14754
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14755
+ ..., description='The version set to upsert.'
14723
14756
  )
14724
- llm_model_preferences: Dict[
14725
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14726
- ] = Field(..., title='Llm Model Preferences')
14727
14757
 
14728
14758
 
14729
14759
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14775,7 +14805,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14775
14805
  ..., description='The description of the simulation unit test set.'
14776
14806
  )
14777
14807
  unit_test_runs: List[
14778
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14808
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14779
14809
  ] = Field(
14780
14810
  ...,
14781
14811
  description='The unit test runs that are part of this set.',
@@ -14813,7 +14843,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14813
14843
 
14814
14844
  class SimulationGetSimulationScenariosResponse(BaseModel):
14815
14845
  simulation_scenarios: List[
14816
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14846
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14817
14847
  ] = Field(
14818
14848
  ...,
14819
14849
  description='The list of simulation scenarios.',
@@ -14861,6 +14891,16 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14861
14891
  )
14862
14892
 
14863
14893
 
14894
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
14895
+ simulation_scenarios: List[
14896
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14897
+ ] = Field(
14898
+ ...,
14899
+ description='The list of simulation scenarios.',
14900
+ title='Simulation Scenarios',
14901
+ )
14902
+
14903
+
14864
14904
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14865
14905
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
14866
14906
  ...,
@@ -14874,6 +14914,42 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
14874
14914
  )
14875
14915
 
14876
14916
 
14917
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14918
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14919
+ ):
14920
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14921
+ Field(
14922
+ ...,
14923
+ description='The unit test runs that are part of this set.',
14924
+ min_length=1,
14925
+ title='Unit Test Runs',
14926
+ )
14927
+ )
14928
+
14929
+
14930
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14931
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14932
+ None, description='The name of the simulation unit test set.'
14933
+ )
14934
+ description: Optional[
14935
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
14936
+ ] = Field(
14937
+ {},
14938
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14939
+ title='Description',
14940
+ )
14941
+ unit_test_runs: Optional[
14942
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
14943
+ ] = Field(
14944
+ None,
14945
+ description='The unit test runs that are part of this set.',
14946
+ title='Unit Test Runs',
14947
+ )
14948
+ tags: Optional[Dict[str, Optional[str]]] = Field(
14949
+ None, description='The tags of the simulation unit test set.', title='Tags'
14950
+ )
14951
+
14952
+
14877
14953
  class ToolGetToolVersionsResponse(BaseModel):
14878
14954
  tool_versions: List[ToolVersionInstance] = Field(
14879
14955
  ...,
@@ -14976,33 +15052,22 @@ class UserGetUserModelResponse(BaseModel):
14976
15052
  )
14977
15053
 
14978
15054
 
14979
- class UserGetUsersResponseUserInstance(BaseModel):
14980
- org_id: str = Field(
14981
- ...,
14982
- description='The ID of the organization that this user belongs to.',
14983
- title='Org Id',
14984
- )
14985
- user_id: str = Field(
14986
- ..., description='The identifier of the user.', title='User Id'
14987
- )
14988
- first_name: str = Field(
14989
- ..., description='The first name of the user.', title='First Name'
14990
- )
14991
- last_name: str = Field(
14992
- ..., description='The last name of the user.', title='Last Name'
15055
+ class UserGetUsersResponse(BaseModel):
15056
+ users: List[UserSearchUsersResponseUserInstance] = Field(
15057
+ ..., description='Users in this organization.', title='Users'
14993
15058
  )
14994
- email: str = Field(..., description='Email of the user.', title='Email')
14995
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
14996
- ..., description="Statistics about the user's usage of the Amigo platform."
15059
+ has_more: bool = Field(
15060
+ ..., description='Whether there are more users to retrieve.', title='Has More'
14997
15061
  )
14998
- role: str = Field(..., description='The ID of the role of the user.', title='Role')
14999
- preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
15000
- ..., description='The preferences of the user.'
15062
+ continuation_token: Optional[int] = Field(
15063
+ ...,
15064
+ description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
15065
+ title='Continuation Token',
15001
15066
  )
15002
15067
 
15003
15068
 
15004
15069
  class UserSearchUsersResponse(BaseModel):
15005
- users: List[UserGetUsersResponseUserInstance] = Field(
15070
+ users: List[UserSearchUsersResponseUserInstance] = Field(
15006
15071
  ..., description='Users in this organization.', title='Users'
15007
15072
  )
15008
15073
 
@@ -15098,7 +15163,7 @@ class ActionStateInput(BaseModel):
15098
15163
  Field(..., title='Boundary Constraints')
15099
15164
  )
15100
15165
  exit_conditions: List[
15101
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15166
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15102
15167
  ] = Field(..., title='Exit Conditions')
15103
15168
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15104
15169
  ..., title='Action Tool Call Specs'
@@ -15207,7 +15272,7 @@ class DecisionStateInput(BaseModel):
15207
15272
  type: Literal['decision'] = Field(..., title='Type')
15208
15273
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15209
15274
  exit_conditions: List[
15210
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15275
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15211
15276
  ] = Field(..., title='Exit Conditions')
15212
15277
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15213
15278
  ..., title='Decision Guidelines'
@@ -15248,7 +15313,7 @@ class Metric(BaseModel):
15248
15313
  additional_notes: Optional[str] = Field(
15249
15314
  ..., description='Additional notes about the metric.', title='Additional Notes'
15250
15315
  )
15251
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15316
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15252
15317
  ..., description='The tags of the metric.', title='Tags'
15253
15318
  )
15254
15319
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15318,7 +15383,7 @@ class MetricInstance(BaseModel):
15318
15383
  additional_notes: Optional[str] = Field(
15319
15384
  ..., description='Additional notes about the metric.', title='Additional Notes'
15320
15385
  )
15321
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15386
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15322
15387
  ..., description='The tags of the metric.', title='Tags'
15323
15388
  )
15324
15389
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15520,7 +15585,7 @@ class SimulationUnitTest(BaseModel):
15520
15585
  is_deleted: bool = Field(
15521
15586
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15522
15587
  )
15523
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15588
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15524
15589
  ..., description='The tags of the simulation persona.', title='Tags'
15525
15590
  )
15526
15591
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15565,7 +15630,7 @@ class SimulationUnitTestInstance(BaseModel):
15565
15630
  is_deleted: bool = Field(
15566
15631
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15567
15632
  )
15568
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15633
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15569
15634
  ..., description='The tags of the simulation persona.', title='Tags'
15570
15635
  )
15571
15636
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15914,51 +15979,6 @@ class RoleModifyRoleRequest(BaseModel):
15914
15979
  )
15915
15980
 
15916
15981
 
15917
- class ServiceCreateServiceRequest(BaseModel):
15918
- service_hierarchical_state_machine_id: str = Field(
15919
- ...,
15920
- description='The ID of the state machine that this service uses.',
15921
- pattern='^[a-f0-9]{24}$',
15922
- title='Service Hierarchical State Machine Id',
15923
- )
15924
- agent_id: str = Field(
15925
- ...,
15926
- description='The ID of the agent that this service uses.',
15927
- pattern='^[a-f0-9]{24}$',
15928
- title='Agent Id',
15929
- )
15930
- name: str = Field(..., description='The name of this service.', min_length=1)
15931
- description: str = Field(
15932
- ..., description='A description of this service.', min_length=1
15933
- )
15934
- is_active: bool = Field(
15935
- ...,
15936
- 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.',
15937
- title='Is Active',
15938
- )
15939
- release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
15940
- Field(
15941
- None,
15942
- 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.',
15943
- )
15944
- )
15945
- keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
15946
- [],
15947
- description='A list of keyterms that are easy to get wrong during audio transcriptions that tend to occur commonly in audio sessions using this service.',
15948
- max_length=20,
15949
- title='Keyterms',
15950
- )
15951
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
15952
- ..., description='The tags of this service.', title='Tags'
15953
- )
15954
-
15955
-
15956
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
15957
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
15958
- ..., description='The version set to upsert.'
15959
- )
15960
-
15961
-
15962
15982
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
15963
15983
  name: str = Field(..., description='The name of the unit test.', min_length=1)
15964
15984
  description: str = Field(
@@ -16114,7 +16134,7 @@ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16114
16134
  tool_id: str = Field(
16115
16135
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16116
16136
  )
16117
- tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16137
+ tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16118
16138
  ..., description='The version of the tool that was invoked.'
16119
16139
  )
16120
16140
 
@@ -16127,20 +16147,6 @@ class ToolSearchToolInvocationsResponse(BaseModel):
16127
16147
  )
16128
16148
 
16129
16149
 
16130
- class UserGetUsersResponse(BaseModel):
16131
- users: List[UserGetUsersResponseUserInstance] = Field(
16132
- ..., description='Users in this organization.', title='Users'
16133
- )
16134
- has_more: bool = Field(
16135
- ..., description='Whether there are more users to retrieve.', title='Has More'
16136
- )
16137
- continuation_token: Optional[int] = Field(
16138
- ...,
16139
- description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
16140
- title='Continuation Token',
16141
- )
16142
-
16143
-
16144
16150
  class SimulationUnitTestSetRunInstance(BaseModel):
16145
16151
  org_id: str = Field(..., title='Org Id')
16146
16152
  id: str = Field(..., title='Id')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.92.0
3
+ Version: 0.93.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=_-KncYKnvsdmQgLvtUfo0Nts6Ti77hmOpAVddK1uavE,139
1
+ amigo_sdk/__init__.py,sha256=PRrsBRg_6zZu2oa_Ua8BC45IcW_UUd46_R_k0T6h6wg,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=JKajQhqIWAtaNWGEFpTWgKiso8_jNtuHINQEGRHwl1Q,454821
9
+ amigo_sdk/generated/model.py,sha256=o9354wxv-IEjfQFgYRBwjqJ-KS8ySudsXiLK574UHO0,455030
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.92.0.dist-info/METADATA,sha256=UdzzI6jfIOFjlFuwKYlq169EwAu8RVDnxzWpKu49Now,8499
15
- amigo_sdk-0.92.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.92.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.92.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.92.0.dist-info/RECORD,,
14
+ amigo_sdk-0.93.0.dist-info/METADATA,sha256=ikEv1EtBkWBNEGsDp2JtyAh9JBDk1UjbYh3Y2Ngu8cc,8499
15
+ amigo_sdk-0.93.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.93.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.93.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.93.0.dist-info/RECORD,,