amigo_sdk 0.86.0__py3-none-any.whl → 0.87.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.86.0"
1
+ __version__ = "0.87.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-12T12:46:17+00:00
3
+ # timestamp: 2025-12-12T13:58:54+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1620,6 +1620,11 @@ class AmigoLibMongoCollectionsDynamicBehaviorSetVersionAction(BaseModel):
1620
1620
  )
1621
1621
 
1622
1622
 
1623
+ class AmigoLibMongoCollectionsMetricMetricTag(BaseModel):
1624
+ key: str = Field(..., title='Key')
1625
+ value: Optional[str] = Field(..., title='Value')
1626
+
1627
+
1623
1628
  AmigoLibMongoCollectionsMetricMetricUserInfo = (
1624
1629
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1625
1630
  )
@@ -1668,11 +1673,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1668
1673
  )
1669
1674
 
1670
1675
 
1671
- class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1672
- key: str = Field(..., title='Key')
1673
- value: Optional[str] = Field(..., title='Value')
1674
-
1675
-
1676
1676
  class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1677
1677
  BaseModel
1678
1678
  ):
@@ -1709,12 +1709,6 @@ 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
-
1718
1712
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1719
1713
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1720
1714
  user_org_id: str = Field(
@@ -1722,6 +1716,12 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1722
1716
  )
1723
1717
 
1724
1718
 
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
  ...,
@@ -10797,19 +10780,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10797
10780
  )
10798
10781
 
10799
10782
 
10800
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10783
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10801
10784
  AnnotationStateInputNextState
10802
10785
  ):
10803
10786
  pass
10804
10787
 
10805
10788
 
10806
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10789
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10807
10790
  BaseModel
10808
10791
  ):
10809
10792
  description: str = Field(..., min_length=1)
10810
10793
  next_state: Union[
10811
10794
  StateOrRefName,
10812
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10795
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10813
10796
  ] = Field(..., title='Next State')
10814
10797
 
10815
10798
 
@@ -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
  ...,
@@ -11262,40 +11241,6 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11262
11241
  )
11263
11242
 
11264
11243
 
11265
- class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11266
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11267
- name: str = Field(
11268
- ..., description='The name of the simulation persona.', title='Name'
11269
- )
11270
- role: str = Field(
11271
- ..., description='The role of the simulation persona.', title='Role'
11272
- )
11273
- tags: Dict[str, Optional[str]] = Field(
11274
- ..., description='The tags of the simulation persona.', title='Tags'
11275
- )
11276
- is_deleted: bool = Field(
11277
- ...,
11278
- description='Whether the simulation persona is deleted.',
11279
- title='Is Deleted',
11280
- )
11281
- created_at: AwareDatetime = Field(
11282
- ...,
11283
- description='The timestamp when the simulation persona was created.',
11284
- title='Created At',
11285
- )
11286
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11287
- ..., description='The user who created the simulation persona.'
11288
- )
11289
- updated_at: AwareDatetime = Field(
11290
- ...,
11291
- description='The timestamp when the simulation persona was last updated.',
11292
- title='Updated At',
11293
- )
11294
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11295
- Field(..., description='The user who last updated the simulation persona.')
11296
- )
11297
-
11298
-
11299
11244
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11300
11245
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11301
11246
  ...,
@@ -11327,6 +11272,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11327
11272
  )
11328
11273
 
11329
11274
 
11275
+ class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11276
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11277
+ name: str = Field(
11278
+ ..., description='The name of the simulation scenario.', title='Name'
11279
+ )
11280
+ tags: Dict[str, Optional[str]] = Field(
11281
+ ..., description='The tags of the simulation scenario.', title='Tags'
11282
+ )
11283
+ is_deleted: bool = Field(
11284
+ ...,
11285
+ description='Whether the simulation scenario is deleted.',
11286
+ title='Is Deleted',
11287
+ )
11288
+ created_at: AwareDatetime = Field(
11289
+ ...,
11290
+ description='The timestamp when the simulation scenario was created.',
11291
+ title='Created At',
11292
+ )
11293
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11294
+ Field(..., description='The user who created the simulation scenario.')
11295
+ )
11296
+ updated_at: AwareDatetime = Field(
11297
+ ...,
11298
+ description='The timestamp when the simulation scenario was last updated.',
11299
+ title='Updated At',
11300
+ )
11301
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11302
+ Field(..., description='The user who last updated the simulation scenario.')
11303
+ )
11304
+
11305
+
11330
11306
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11331
11307
  presigned_url: str = Field(
11332
11308
  ...,
@@ -11415,42 +11391,47 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11415
11391
  )
11416
11392
 
11417
11393
 
11418
- class SimulationSearchSimulationPersonasResponse(BaseModel):
11419
- simulation_personas: List[
11420
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11421
- ] = Field(
11422
- ..., description='The list of simulation personas.', title='Simulation Personas'
11423
- )
11424
-
11425
-
11426
- class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11427
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11394
+ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11395
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11428
11396
  name: str = Field(
11429
- ..., description='The name of the simulation scenario.', title='Name'
11397
+ ..., description='The name of the simulation persona.', title='Name'
11398
+ )
11399
+ role: str = Field(
11400
+ ..., description='The role of the simulation persona.', title='Role'
11430
11401
  )
11431
11402
  tags: Dict[str, Optional[str]] = Field(
11432
- ..., description='The tags of the simulation scenario.', title='Tags'
11403
+ ..., description='The tags of the simulation persona.', title='Tags'
11433
11404
  )
11434
11405
  is_deleted: bool = Field(
11435
11406
  ...,
11436
- description='Whether the simulation scenario is deleted.',
11407
+ description='Whether the simulation persona is deleted.',
11437
11408
  title='Is Deleted',
11438
11409
  )
11439
11410
  created_at: AwareDatetime = Field(
11440
11411
  ...,
11441
- description='The timestamp when the simulation scenario was created.',
11412
+ description='The timestamp when the simulation persona was created.',
11442
11413
  title='Created At',
11443
11414
  )
11444
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11445
- Field(..., description='The user who created the simulation scenario.')
11415
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11416
+ ..., description='The user who created the simulation persona.'
11446
11417
  )
11447
11418
  updated_at: AwareDatetime = Field(
11448
11419
  ...,
11449
- description='The timestamp when the simulation scenario was last updated.',
11420
+ description='The timestamp when the simulation persona was last updated.',
11450
11421
  title='Updated At',
11451
11422
  )
11452
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11453
- Field(..., description='The user who last updated the simulation scenario.')
11423
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11424
+ Field(..., description='The user who last updated the simulation persona.')
11425
+ )
11426
+
11427
+
11428
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11429
+ simulation_scenarios: List[
11430
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11431
+ ] = Field(
11432
+ ...,
11433
+ description='The list of simulation scenarios.',
11434
+ title='Simulation Scenarios',
11454
11435
  )
11455
11436
 
11456
11437
 
@@ -11742,7 +11723,7 @@ class UserGetMemoriesResponse(BaseModel):
11742
11723
  )
11743
11724
 
11744
11725
 
11745
- class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11726
+ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11746
11727
  num_conversations: int = Field(
11747
11728
  ...,
11748
11729
  description='The number of conversations the user has created.',
@@ -12197,7 +12178,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12197
12178
  [], description='The IDs of the messages to retrieve.', title='Id'
12198
12179
  )
12199
12180
  message_type: Optional[List[MessageType]] = Field(
12200
- ['agent-message', 'user-message', 'external-event'],
12181
+ ['user-message', 'external-event', 'agent-message'],
12201
12182
  description='The type of messages to retrieve.',
12202
12183
  title='Message Type',
12203
12184
  )
@@ -14003,9 +13984,9 @@ class ServiceInstance(BaseModel):
14003
13984
  agent_id: str = Field(
14004
13985
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
14005
13986
  )
14006
- tags: List[
14007
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14008
- ] = Field(..., description='The tags of the service.', title='Tags')
13987
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13988
+ ..., description='The tags of the service.', title='Tags'
13989
+ )
14009
13990
 
14010
13991
 
14011
13992
  class SimulationConversationInvocationSource(BaseModel):
@@ -14056,9 +14037,7 @@ class SimulationUnitTestSet(BaseModel):
14056
14037
  description='Whether the unit test set has been deleted.',
14057
14038
  title='Is Deleted',
14058
14039
  )
14059
- tags: List[
14060
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14061
- ] = Field(
14040
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14062
14041
  ..., description='The tags of the simulation unit test set.', title='Tags'
14063
14042
  )
14064
14043
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14097,9 +14076,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14097
14076
  description='Whether the unit test set has been deleted.',
14098
14077
  title='Is Deleted',
14099
14078
  )
14100
- tags: List[
14101
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14102
- ] = Field(
14079
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14103
14080
  ..., description='The tags of the simulation unit test set.', title='Tags'
14104
14081
  )
14105
14082
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14215,9 +14192,9 @@ class ToolInstance(BaseModel):
14215
14192
  description='A list of encrypted environment variables that some versions of this tool uses.',
14216
14193
  title='Secret Envvars',
14217
14194
  )
14218
- tags: List[
14219
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14220
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14195
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14196
+ ..., description='The tags of the simulation persona.', title='Tags'
14197
+ )
14221
14198
 
14222
14199
 
14223
14200
  class ToolVersionInstance(BaseModel):
@@ -14230,7 +14207,7 @@ class ToolVersionInstance(BaseModel):
14230
14207
  description='The ID of the tool that this version belongs to.',
14231
14208
  title='Tool Id',
14232
14209
  )
14233
- version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14210
+ version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14234
14211
  ..., description='The version of the tool.'
14235
14212
  )
14236
14213
  required_envvars: List[str] = Field(
@@ -14546,7 +14523,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14546
14523
 
14547
14524
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14548
14525
  dynamic_behavior_sets: List[
14549
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14526
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14550
14527
  ] = Field(
14551
14528
  ...,
14552
14529
  description='The retrieved dynamic behavior sets.',
@@ -14570,6 +14547,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14570
14547
  )
14571
14548
 
14572
14549
 
14550
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14551
+ dynamic_behavior_sets: List[
14552
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14553
+ ] = Field(
14554
+ ...,
14555
+ description='The retrieved dynamic behavior sets.',
14556
+ title='Dynamic Behavior Sets',
14557
+ )
14558
+
14559
+
14573
14560
  class MetricCreateMetricRequest(BaseModel):
14574
14561
  name: str = Field(
14575
14562
  ...,
@@ -14626,7 +14613,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14626
14613
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14627
14614
  min_length=1,
14628
14615
  )
14629
- user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14616
+ user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14630
14617
  ...,
14631
14618
  description='User dimensions for the organization.',
14632
14619
  title='User Dimensions',
@@ -14771,6 +14758,17 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14771
14758
  )
14772
14759
 
14773
14760
 
14761
+ class OrganizationModifyOrganizationRequestUserDimensions(
14762
+ RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14763
+ ):
14764
+ root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14765
+ ...,
14766
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14767
+ min_length=1,
14768
+ title='User Dimensions',
14769
+ )
14770
+
14771
+
14774
14772
  class OrganizationModifyOrganizationRequest(BaseModel):
14775
14773
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14776
14774
  None,
@@ -14828,7 +14826,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14828
14826
  )
14829
14827
 
14830
14828
 
14831
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14829
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14832
14830
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14833
14831
  ...,
14834
14832
  description='Whether this grant allows or denies the specified access.',
@@ -14845,29 +14843,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14845
14843
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14846
14844
 
14847
14845
 
14848
- class RoleModifyRoleRequest(BaseModel):
14849
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14850
- None,
14851
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14852
- )
14853
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14854
- None,
14855
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14856
- title='Permission Grants',
14857
- )
14858
- frontend_view: Optional[FrontendView] = Field(
14859
- None,
14860
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14861
- )
14862
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14863
- Field(
14864
- {},
14865
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14866
- title='Inherited From',
14867
- )
14868
- )
14869
-
14870
-
14871
14846
  class ServiceCreateServiceRequest(BaseModel):
14872
14847
  service_hierarchical_state_machine_id: str = Field(
14873
14848
  ...,
@@ -14996,7 +14971,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14996
14971
 
14997
14972
  class SimulationGetSimulationPersonasResponse(BaseModel):
14998
14973
  simulation_personas: List[
14999
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14974
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
15000
14975
  ] = Field(
15001
14976
  ..., description='The list of simulation personas.', title='Simulation Personas'
15002
14977
  )
@@ -15020,7 +14995,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
15020
14995
 
15021
14996
  class SimulationGetSimulationScenariosResponse(BaseModel):
15022
14997
  simulation_scenarios: List[
15023
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14998
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
15024
14999
  ] = Field(
15025
15000
  ...,
15026
15001
  description='The list of simulation scenarios.',
@@ -15068,13 +15043,11 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
15068
15043
  )
15069
15044
 
15070
15045
 
15071
- class SimulationSearchSimulationScenariosResponse(BaseModel):
15072
- simulation_scenarios: List[
15073
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
15046
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
15047
+ simulation_personas: List[
15048
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
15074
15049
  ] = Field(
15075
- ...,
15076
- description='The list of simulation scenarios.',
15077
- title='Simulation Scenarios',
15050
+ ..., description='The list of simulation personas.', title='Simulation Personas'
15078
15051
  )
15079
15052
 
15080
15053
 
@@ -15193,7 +15166,7 @@ class UserGetUserModelResponse(BaseModel):
15193
15166
  )
15194
15167
 
15195
15168
 
15196
- class UserGetUsersResponseUserInstance(BaseModel):
15169
+ class UserSearchUsersResponseUserInstance(BaseModel):
15197
15170
  org_id: str = Field(
15198
15171
  ...,
15199
15172
  description='The ID of the organization that this user belongs to.',
@@ -15209,7 +15182,7 @@ class UserGetUsersResponseUserInstance(BaseModel):
15209
15182
  ..., description='The last name of the user.', title='Last Name'
15210
15183
  )
15211
15184
  email: str = Field(..., description='Email of the user.', title='Email')
15212
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15185
+ user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15213
15186
  ..., description="Statistics about the user's usage of the Amigo platform."
15214
15187
  )
15215
15188
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15218,12 +15191,6 @@ class UserGetUsersResponseUserInstance(BaseModel):
15218
15191
  )
15219
15192
 
15220
15193
 
15221
- class UserSearchUsersResponse(BaseModel):
15222
- users: List[UserGetUsersResponseUserInstance] = Field(
15223
- ..., description='Users in this organization.', title='Users'
15224
- )
15225
-
15226
-
15227
15194
  class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
15228
15195
  webhook_deliveries: List[WebhookDeliveryInstance] = Field(
15229
15196
  ..., description='The retrieved webhook deliveries.', title='Webhook Deliveries'
@@ -15315,7 +15282,7 @@ class ActionStateInput(BaseModel):
15315
15282
  Field(..., title='Boundary Constraints')
15316
15283
  )
15317
15284
  exit_conditions: List[
15318
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15285
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15319
15286
  ] = Field(..., title='Exit Conditions')
15320
15287
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15321
15288
  ..., title='Action Tool Call Specs'
@@ -15424,7 +15391,7 @@ class DecisionStateInput(BaseModel):
15424
15391
  type: Literal['decision'] = Field(..., title='Type')
15425
15392
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15426
15393
  exit_conditions: List[
15427
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15394
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15428
15395
  ] = Field(..., title='Exit Conditions')
15429
15396
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15430
15397
  ..., title='Decision Guidelines'
@@ -15465,9 +15432,9 @@ class Metric(BaseModel):
15465
15432
  additional_notes: Optional[str] = Field(
15466
15433
  ..., description='Additional notes about the metric.', title='Additional Notes'
15467
15434
  )
15468
- tags: List[
15469
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15470
- ] = Field(..., description='The tags of the metric.', title='Tags')
15435
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15436
+ ..., description='The tags of the metric.', title='Tags'
15437
+ )
15471
15438
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15472
15439
  ..., description='The user who created the metric.'
15473
15440
  )
@@ -15535,9 +15502,9 @@ class MetricInstance(BaseModel):
15535
15502
  additional_notes: Optional[str] = Field(
15536
15503
  ..., description='Additional notes about the metric.', title='Additional Notes'
15537
15504
  )
15538
- tags: List[
15539
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15540
- ] = Field(..., description='The tags of the metric.', title='Tags')
15505
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15506
+ ..., description='The tags of the metric.', title='Tags'
15507
+ )
15541
15508
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15542
15509
  ..., description='The user who created the metric.'
15543
15510
  )
@@ -15737,9 +15704,9 @@ class SimulationUnitTest(BaseModel):
15737
15704
  is_deleted: bool = Field(
15738
15705
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15739
15706
  )
15740
- tags: List[
15741
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15742
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15707
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15708
+ ..., description='The tags of the simulation persona.', title='Tags'
15709
+ )
15743
15710
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15744
15711
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15745
15712
 
@@ -15782,9 +15749,9 @@ class SimulationUnitTestInstance(BaseModel):
15782
15749
  is_deleted: bool = Field(
15783
15750
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15784
15751
  )
15785
- tags: List[
15786
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15787
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15752
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15753
+ ..., description='The tags of the simulation persona.', title='Tags'
15754
+ )
15788
15755
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15789
15756
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15790
15757
 
@@ -16082,7 +16049,7 @@ class RoleCreateRoleRequest(BaseModel):
16082
16049
  description: str = Field(
16083
16050
  ..., description='A description about the role.', min_length=1
16084
16051
  )
16085
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
16052
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
16086
16053
  ...,
16087
16054
  description='A list of permission grants associated with this role.',
16088
16055
  title='Permission Grants',
@@ -16108,6 +16075,29 @@ class RoleGetRolesResponse(BaseModel):
16108
16075
  )
16109
16076
 
16110
16077
 
16078
+ class RoleModifyRoleRequest(BaseModel):
16079
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
16080
+ None,
16081
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
16082
+ )
16083
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
16084
+ None,
16085
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
16086
+ title='Permission Grants',
16087
+ )
16088
+ frontend_view: Optional[FrontendView] = Field(
16089
+ None,
16090
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
16091
+ )
16092
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
16093
+ Field(
16094
+ {},
16095
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16096
+ title='Inherited From',
16097
+ )
16098
+ )
16099
+
16100
+
16111
16101
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16112
16102
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16113
16103
  description: str = Field(
@@ -16241,7 +16231,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16241
16231
  )
16242
16232
 
16243
16233
 
16244
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16234
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16245
16235
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16246
16236
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16247
16237
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16263,13 +16253,21 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16263
16253
  tool_id: str = Field(
16264
16254
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16265
16255
  )
16266
- tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16256
+ tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16267
16257
  ..., description='The version of the tool that was invoked.'
16268
16258
  )
16269
16259
 
16270
16260
 
16261
+ class ToolSearchToolInvocationsResponse(BaseModel):
16262
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16263
+ Field(
16264
+ ..., description='The list of tool invocations.', title='Tool Invocations'
16265
+ )
16266
+ )
16267
+
16268
+
16271
16269
  class UserGetUsersResponse(BaseModel):
16272
- users: List[UserGetUsersResponseUserInstance] = Field(
16270
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16273
16271
  ..., description='Users in this organization.', title='Users'
16274
16272
  )
16275
16273
  has_more: bool = Field(
@@ -16282,6 +16280,12 @@ class UserGetUsersResponse(BaseModel):
16282
16280
  )
16283
16281
 
16284
16282
 
16283
+ class UserSearchUsersResponse(BaseModel):
16284
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16285
+ ..., description='Users in this organization.', title='Users'
16286
+ )
16287
+
16288
+
16285
16289
  class SimulationUnitTestSetRunInstance(BaseModel):
16286
16290
  org_id: str = Field(..., title='Org Id')
16287
16291
  id: str = Field(..., title='Id')
@@ -16381,7 +16385,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16381
16385
 
16382
16386
 
16383
16387
  class ToolGetToolInvocationsResponse(BaseModel):
16384
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16388
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16385
16389
  Field(
16386
16390
  ..., description='The list of tool invocations.', title='Tool Invocations'
16387
16391
  )
@@ -16396,11 +16400,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
16396
16400
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16397
16401
  title='Continuation Token',
16398
16402
  )
16399
-
16400
-
16401
- class ToolSearchToolInvocationsResponse(BaseModel):
16402
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16403
- Field(
16404
- ..., description='The list of tool invocations.', title='Tool Invocations'
16405
- )
16406
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.86.0
3
+ Version: 0.87.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=EtwaSkeq7ac6SDNU23Dx_3e4xwcIu0p1ciYQ0jMyqic,139
1
+ amigo_sdk/__init__.py,sha256=g4mfhzf7pTwgCvsofefkQDnDyKHIu8Y6nt01TDE0ZSo,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=tDYoivg2i4NfFO_svoQ2zKGEwyy9VQ2PkYp6EM152R8,459800
9
+ amigo_sdk/generated/model.py,sha256=5Zq15PYC3F9e4-Uob_TKBxxcP-sZMcAufouEECNdpOQ,459509
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.86.0.dist-info/METADATA,sha256=g8GDD_S5-LmlTnabVjWL_l_L2sqfo7Z6uBjyao793zk,8499
15
- amigo_sdk-0.86.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.86.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.86.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.86.0.dist-info/RECORD,,
14
+ amigo_sdk-0.87.0.dist-info/METADATA,sha256=Eagf8X1FPkxqy1PnzejTrObeUB1bl_TTBJY-e2YQEwc,8499
15
+ amigo_sdk-0.87.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.87.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.87.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.87.0.dist-info/RECORD,,