amigo_sdk 0.84.0__py3-none-any.whl → 0.86.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.84.0"
1
+ __version__ = "0.86.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-11T18:20:17+00:00
3
+ # timestamp: 2025-12-12T12:46:17+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1097,6 +1097,10 @@ class StrippedNonemptyStringWS(RootModel[str]):
1097
1097
  root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
1098
1098
 
1099
1099
 
1100
+ class StrippedNonemptyStringAZAZ02(RootModel[str]):
1101
+ root: str = Field(..., min_length=1, pattern='^[a-z-]+( [a-z-]+){0,2}$')
1102
+
1103
+
1100
1104
  class SucceededInvocationResult(BaseModel):
1101
1105
  succeeded: Literal[True] = Field(True, title='Succeeded')
1102
1106
  output: str = Field(
@@ -1616,11 +1620,6 @@ class AmigoLibMongoCollectionsDynamicBehaviorSetVersionAction(BaseModel):
1616
1620
  )
1617
1621
 
1618
1622
 
1619
- class AmigoLibMongoCollectionsMetricMetricTag(BaseModel):
1620
- key: str = Field(..., title='Key')
1621
- value: Optional[str] = Field(..., title='Value')
1622
-
1623
-
1624
1623
  AmigoLibMongoCollectionsMetricMetricUserInfo = (
1625
1624
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1626
1625
  )
@@ -1669,6 +1668,11 @@ AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1669
1668
  )
1670
1669
 
1671
1670
 
1671
+ class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1672
+ key: str = Field(..., title='Key')
1673
+ value: Optional[str] = Field(..., title='Value')
1674
+
1675
+
1672
1676
  class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1673
1677
  BaseModel
1674
1678
  ):
@@ -1744,6 +1748,11 @@ class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1744
1748
  description="The user's timezone in the IANA tz database format for all users in this organization. If not specified, UTC is used.",
1745
1749
  title='Timezone',
1746
1750
  )
1751
+ audio_keyterms: Optional[List[str]] = Field(
1752
+ [],
1753
+ description='A list of keyterms that are easy to get wrong during audio transcriptions that tend to occur commonly in audio sessions for this user.',
1754
+ title='Audio Keyterms',
1755
+ )
1747
1756
 
1748
1757
 
1749
1758
  class AmigoLibMongoCollectionsUserUserUserModelUserDimension(BaseModel):
@@ -1956,6 +1965,20 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1956
1965
  )
1957
1966
 
1958
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
+
1959
1982
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1960
1983
  applied_to_services_ids: List[str] = Field(
1961
1984
  ...,
@@ -1976,18 +1999,14 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1976
1999
  )
1977
2000
 
1978
2001
 
1979
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1980
- BaseModel
1981
- ):
1982
- id: str = Field(..., title='Id')
1983
- name: str = Field(..., title='Name')
1984
- is_active: bool = Field(..., title='Is Active')
1985
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1986
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1987
- created_at: AwareDatetime = Field(..., title='Created At')
1988
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1989
- updated_at: AwareDatetime = Field(..., title='Updated At')
1990
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
2002
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
2003
+ dynamic_behavior_sets: List[
2004
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
2005
+ ] = Field(
2006
+ ...,
2007
+ description='The retrieved dynamic behavior sets.',
2008
+ title='Dynamic Behavior Sets',
2009
+ )
1991
2010
 
1992
2011
 
1993
2012
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10741,6 +10760,18 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10741
10760
  timezone: Optional[OrganizationCreateOrganizationRequestPreferencesTimezone] = (
10742
10761
  Field(None, title='Timezone')
10743
10762
  )
10763
+ audio_keyterms: Optional[List[str]] = Field(
10764
+ [],
10765
+ description='A list of keyterms that are easy to get wrong during audio transcriptions that tend to occur commonly in audio sessions for this user.',
10766
+ title='Audio Keyterms',
10767
+ )
10768
+
10769
+
10770
+ class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10771
+ description: str = Field(..., min_length=1)
10772
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10773
+ ..., title='Tags'
10774
+ )
10744
10775
 
10745
10776
 
10746
10777
  class OrganizationCreateOrganizationResponse(BaseModel):
@@ -10884,18 +10915,22 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10884
10915
  )
10885
10916
 
10886
10917
 
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
+
10887
10929
  OrganizationModifyOrganizationRequestPreferences = (
10888
10930
  OrganizationCreateOrganizationRequestPreferences
10889
10931
  )
10890
10932
 
10891
10933
 
10892
- class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10893
- description: str = Field(..., min_length=1)
10894
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10895
- ..., title='Tags'
10896
- )
10897
-
10898
-
10899
10934
  class RoleAssignRoleRequest(BaseModel):
10900
10935
  user_id: str = Field(
10901
10936
  ...,
@@ -10977,6 +11012,17 @@ class ServiceUpdateServiceRequestServiceHierarchicalStateMachineId(RootModel[str
10977
11012
  )
10978
11013
 
10979
11014
 
11015
+ class ServiceUpdateServiceRequestKeyterms(
11016
+ RootModel[List[StrippedNonemptyStringAZAZ02]]
11017
+ ):
11018
+ root: List[StrippedNonemptyStringAZAZ02] = Field(
11019
+ ...,
11020
+ 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. Only updated if not-null.',
11021
+ max_length=20,
11022
+ title='Keyterms',
11023
+ )
11024
+
11025
+
10980
11026
  class ServiceUpdateServiceRequest(BaseModel):
10981
11027
  name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10982
11028
  None, description='The name of the service. Only updated if not-null.'
@@ -11006,6 +11052,27 @@ class ServiceUpdateServiceRequest(BaseModel):
11006
11052
  description='The tags of this service. Only updated if not-null.',
11007
11053
  title='Tags',
11008
11054
  )
11055
+ keyterms: Optional[ServiceUpdateServiceRequestKeyterms] = Field(
11056
+ None,
11057
+ 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. Only updated if not-null.',
11058
+ title='Keyterms',
11059
+ )
11060
+
11061
+
11062
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
11063
+ agent_version_number: Optional[int] = Field(
11064
+ ...,
11065
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
11066
+ title='Agent Version Number',
11067
+ )
11068
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
11069
+ ...,
11070
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
11071
+ title='Service Hierarchical State Machine Version Number',
11072
+ )
11073
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
11074
+ Field(..., title='Llm Model Preferences')
11075
+ )
11009
11076
 
11010
11077
 
11011
11078
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
@@ -11260,37 +11327,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11260
11327
  )
11261
11328
 
11262
11329
 
11263
- class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11264
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11265
- name: str = Field(
11266
- ..., description='The name of the simulation scenario.', title='Name'
11267
- )
11268
- tags: Dict[str, Optional[str]] = Field(
11269
- ..., description='The tags of the simulation scenario.', title='Tags'
11270
- )
11271
- is_deleted: bool = Field(
11272
- ...,
11273
- description='Whether the simulation scenario is deleted.',
11274
- title='Is Deleted',
11275
- )
11276
- created_at: AwareDatetime = Field(
11277
- ...,
11278
- description='The timestamp when the simulation scenario was created.',
11279
- title='Created At',
11280
- )
11281
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11282
- Field(..., description='The user who created the simulation scenario.')
11283
- )
11284
- updated_at: AwareDatetime = Field(
11285
- ...,
11286
- description='The timestamp when the simulation scenario was last updated.',
11287
- title='Updated At',
11288
- )
11289
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11290
- Field(..., description='The user who last updated the simulation scenario.')
11291
- )
11292
-
11293
-
11294
11330
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11295
11331
  presigned_url: str = Field(
11296
11332
  ...,
@@ -11387,13 +11423,34 @@ class SimulationSearchSimulationPersonasResponse(BaseModel):
11387
11423
  )
11388
11424
 
11389
11425
 
11390
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11391
- simulation_scenarios: List[
11392
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11393
- ] = Field(
11426
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11427
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11428
+ name: str = Field(
11429
+ ..., description='The name of the simulation scenario.', title='Name'
11430
+ )
11431
+ tags: Dict[str, Optional[str]] = Field(
11432
+ ..., description='The tags of the simulation scenario.', title='Tags'
11433
+ )
11434
+ is_deleted: bool = Field(
11394
11435
  ...,
11395
- description='The list of simulation scenarios.',
11396
- title='Simulation Scenarios',
11436
+ description='Whether the simulation scenario is deleted.',
11437
+ title='Is Deleted',
11438
+ )
11439
+ created_at: AwareDatetime = Field(
11440
+ ...,
11441
+ description='The timestamp when the simulation scenario was created.',
11442
+ title='Created At',
11443
+ )
11444
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11445
+ Field(..., description='The user who created the simulation scenario.')
11446
+ )
11447
+ updated_at: AwareDatetime = Field(
11448
+ ...,
11449
+ description='The timestamp when the simulation scenario was last updated.',
11450
+ title='Updated At',
11451
+ )
11452
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11453
+ Field(..., description='The user who last updated the simulation scenario.')
11397
11454
  )
11398
11455
 
11399
11456
 
@@ -11651,6 +11708,11 @@ class UserCreateInvitedUserRequestPreferences(BaseModel):
11651
11708
  timezone: Optional[OrganizationCreateOrganizationRequestPreferencesTimezone] = (
11652
11709
  Field(None, title='Timezone')
11653
11710
  )
11711
+ audio_keyterms: Optional[List[str]] = Field(
11712
+ [],
11713
+ description='A list of keyterms that are easy to get wrong during audio transcriptions that tend to occur commonly in audio sessions for this user.',
11714
+ title='Audio Keyterms',
11715
+ )
11654
11716
 
11655
11717
 
11656
11718
  class UserCreateInvitedUserResponse(BaseModel):
@@ -11680,7 +11742,7 @@ class UserGetMemoriesResponse(BaseModel):
11680
11742
  )
11681
11743
 
11682
11744
 
11683
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11745
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11684
11746
  num_conversations: int = Field(
11685
11747
  ...,
11686
11748
  description='The number of conversations the user has created.',
@@ -11722,6 +11784,17 @@ class UserSignInWithEmailRequest(BaseModel):
11722
11784
  )
11723
11785
 
11724
11786
 
11787
+ class UserUpdateUserInfoRequestAudioKeyterms(
11788
+ RootModel[List[StrippedNonemptyStringAZAZ02]]
11789
+ ):
11790
+ root: List[StrippedNonemptyStringAZAZ02] = Field(
11791
+ ...,
11792
+ 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. If `null`, the keyterms are not modified.',
11793
+ max_length=20,
11794
+ title='Audio Keyterms',
11795
+ )
11796
+
11797
+
11725
11798
  class UserUpdateUserInfoRequest(BaseModel):
11726
11799
  first_name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11727
11800
  None,
@@ -11770,6 +11843,11 @@ class UserUpdateUserInfoRequest(BaseModel):
11770
11843
  description='A list of additional context to update. If `null`, the context is not modified.',
11771
11844
  title='Additional Context',
11772
11845
  )
11846
+ audio_keyterms: Optional[UserUpdateUserInfoRequestAudioKeyterms] = Field(
11847
+ None,
11848
+ 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. If `null`, the keyterms are not modified.',
11849
+ title='Audio Keyterms',
11850
+ )
11773
11851
 
11774
11852
 
11775
11853
  class WebhookDestinationCreateWebhookDestinationRequest(BaseModel):
@@ -12119,7 +12197,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12119
12197
  [], description='The IDs of the messages to retrieve.', title='Id'
12120
12198
  )
12121
12199
  message_type: Optional[List[MessageType]] = Field(
12122
- ['user-message', 'agent-message', 'external-event'],
12200
+ ['agent-message', 'user-message', 'external-event'],
12123
12201
  description='The type of messages to retrieve.',
12124
12202
  title='Message Type',
12125
12203
  )
@@ -13925,9 +14003,9 @@ class ServiceInstance(BaseModel):
13925
14003
  agent_id: str = Field(
13926
14004
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13927
14005
  )
13928
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13929
- ..., description='The tags of the service.', title='Tags'
13930
- )
14006
+ tags: List[
14007
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14008
+ ] = Field(..., description='The tags of the service.', title='Tags')
13931
14009
 
13932
14010
 
13933
14011
  class SimulationConversationInvocationSource(BaseModel):
@@ -13978,7 +14056,9 @@ class SimulationUnitTestSet(BaseModel):
13978
14056
  description='Whether the unit test set has been deleted.',
13979
14057
  title='Is Deleted',
13980
14058
  )
13981
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14059
+ tags: List[
14060
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14061
+ ] = Field(
13982
14062
  ..., description='The tags of the simulation unit test set.', title='Tags'
13983
14063
  )
13984
14064
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14017,7 +14097,9 @@ class SimulationUnitTestSetInstance(BaseModel):
14017
14097
  description='Whether the unit test set has been deleted.',
14018
14098
  title='Is Deleted',
14019
14099
  )
14020
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14100
+ tags: List[
14101
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14102
+ ] = Field(
14021
14103
  ..., description='The tags of the simulation unit test set.', title='Tags'
14022
14104
  )
14023
14105
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14133,9 +14215,9 @@ class ToolInstance(BaseModel):
14133
14215
  description='A list of encrypted environment variables that some versions of this tool uses.',
14134
14216
  title='Secret Envvars',
14135
14217
  )
14136
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14137
- ..., description='The tags of the simulation persona.', title='Tags'
14138
- )
14218
+ tags: List[
14219
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14220
+ ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14139
14221
 
14140
14222
 
14141
14223
  class ToolVersionInstance(BaseModel):
@@ -14464,7 +14546,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14464
14546
 
14465
14547
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14466
14548
  dynamic_behavior_sets: List[
14467
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14549
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14468
14550
  ] = Field(
14469
14551
  ...,
14470
14552
  description='The retrieved dynamic behavior sets.',
@@ -14488,16 +14570,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14488
14570
  )
14489
14571
 
14490
14572
 
14491
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14492
- dynamic_behavior_sets: List[
14493
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14494
- ] = Field(
14495
- ...,
14496
- description='The retrieved dynamic behavior sets.',
14497
- title='Dynamic Behavior Sets',
14498
- )
14499
-
14500
-
14501
14573
  class MetricCreateMetricRequest(BaseModel):
14502
14574
  name: str = Field(
14503
14575
  ...,
@@ -14554,7 +14626,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14554
14626
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14555
14627
  min_length=1,
14556
14628
  )
14557
- user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14629
+ user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14558
14630
  ...,
14559
14631
  description='User dimensions for the organization.',
14560
14632
  title='User Dimensions',
@@ -14587,6 +14659,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14587
14659
  'enable_response_recommendation': False,
14588
14660
  'conversations_visible_to_admins': True,
14589
14661
  'user_model_visible_to_admins': True,
14662
+ 'audio_keyterms': [],
14590
14663
  }
14591
14664
  ),
14592
14665
  description='Default user preferences for users in this organization.',
@@ -14698,17 +14771,6 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14698
14771
  )
14699
14772
 
14700
14773
 
14701
- class OrganizationModifyOrganizationRequestUserDimensions(
14702
- RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14703
- ):
14704
- root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14705
- ...,
14706
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14707
- min_length=1,
14708
- title='User Dimensions',
14709
- )
14710
-
14711
-
14712
14774
  class OrganizationModifyOrganizationRequest(BaseModel):
14713
14775
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14714
14776
  None,
@@ -14766,7 +14828,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14766
14828
  )
14767
14829
 
14768
14830
 
14769
- class RoleModifyRoleRequestPermissionGrant(BaseModel):
14831
+ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14770
14832
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14771
14833
  ...,
14772
14834
  description='Whether this grant allows or denies the specified access.',
@@ -14783,19 +14845,65 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14783
14845
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14784
14846
 
14785
14847
 
14786
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14787
- agent_version_number: Optional[int] = Field(
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
+ class ServiceCreateServiceRequest(BaseModel):
14872
+ service_hierarchical_state_machine_id: str = Field(
14788
14873
  ...,
14789
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14790
- title='Agent Version Number',
14874
+ description='The ID of the state machine that this service uses.',
14875
+ pattern='^[a-f0-9]{24}$',
14876
+ title='Service Hierarchical State Machine Id',
14791
14877
  )
14792
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14878
+ agent_id: str = Field(
14793
14879
  ...,
14794
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14795
- title='Service Hierarchical State Machine Version Number',
14880
+ description='The ID of the agent that this service uses.',
14881
+ pattern='^[a-f0-9]{24}$',
14882
+ title='Agent Id',
14796
14883
  )
14797
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14798
- Field(..., title='Llm Model Preferences')
14884
+ name: str = Field(..., description='The name of this service.', min_length=1)
14885
+ description: str = Field(
14886
+ ..., description='A description of this service.', min_length=1
14887
+ )
14888
+ is_active: bool = Field(
14889
+ ...,
14890
+ 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.',
14891
+ title='Is Active',
14892
+ )
14893
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14894
+ Field(
14895
+ None,
14896
+ 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.',
14897
+ )
14898
+ )
14899
+ keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
14900
+ [],
14901
+ 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.',
14902
+ max_length=20,
14903
+ title='Keyterms',
14904
+ )
14905
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14906
+ ..., description='The tags of this service.', title='Tags'
14799
14907
  )
14800
14908
 
14801
14909
 
@@ -14820,7 +14928,7 @@ class ServiceGetServicesResponse(BaseModel):
14820
14928
 
14821
14929
 
14822
14930
  class ServiceUpsertServiceVersionSetRequest(BaseModel):
14823
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14931
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14824
14932
  ..., description='The version set to upsert.'
14825
14933
  )
14826
14934
 
@@ -14912,7 +15020,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14912
15020
 
14913
15021
  class SimulationGetSimulationScenariosResponse(BaseModel):
14914
15022
  simulation_scenarios: List[
14915
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
15023
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14916
15024
  ] = Field(
14917
15025
  ...,
14918
15026
  description='The list of simulation scenarios.',
@@ -14960,6 +15068,16 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14960
15068
  )
14961
15069
 
14962
15070
 
15071
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
15072
+ simulation_scenarios: List[
15073
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
15074
+ ] = Field(
15075
+ ...,
15076
+ description='The list of simulation scenarios.',
15077
+ title='Simulation Scenarios',
15078
+ )
15079
+
15080
+
14963
15081
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14964
15082
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
14965
15083
  ...,
@@ -15091,7 +15209,7 @@ class UserGetUsersResponseUserInstance(BaseModel):
15091
15209
  ..., description='The last name of the user.', title='Last Name'
15092
15210
  )
15093
15211
  email: str = Field(..., description='Email of the user.', title='Email')
15094
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15212
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15095
15213
  ..., description="Statistics about the user's usage of the Amigo platform."
15096
15214
  )
15097
15215
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15347,9 +15465,9 @@ class Metric(BaseModel):
15347
15465
  additional_notes: Optional[str] = Field(
15348
15466
  ..., description='Additional notes about the metric.', title='Additional Notes'
15349
15467
  )
15350
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15351
- ..., description='The tags of the metric.', title='Tags'
15352
- )
15468
+ tags: List[
15469
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15470
+ ] = Field(..., description='The tags of the metric.', title='Tags')
15353
15471
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15354
15472
  ..., description='The user who created the metric.'
15355
15473
  )
@@ -15417,9 +15535,9 @@ class MetricInstance(BaseModel):
15417
15535
  additional_notes: Optional[str] = Field(
15418
15536
  ..., description='Additional notes about the metric.', title='Additional Notes'
15419
15537
  )
15420
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15421
- ..., description='The tags of the metric.', title='Tags'
15422
- )
15538
+ tags: List[
15539
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15540
+ ] = Field(..., description='The tags of the metric.', title='Tags')
15423
15541
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15424
15542
  ..., description='The user who created the metric.'
15425
15543
  )
@@ -15619,9 +15737,9 @@ class SimulationUnitTest(BaseModel):
15619
15737
  is_deleted: bool = Field(
15620
15738
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15621
15739
  )
15622
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15623
- ..., description='The tags of the simulation persona.', title='Tags'
15624
- )
15740
+ tags: List[
15741
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15742
+ ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15625
15743
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15626
15744
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15627
15745
 
@@ -15664,9 +15782,9 @@ class SimulationUnitTestInstance(BaseModel):
15664
15782
  is_deleted: bool = Field(
15665
15783
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15666
15784
  )
15667
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15668
- ..., description='The tags of the simulation persona.', title='Tags'
15669
- )
15785
+ tags: List[
15786
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15787
+ ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15670
15788
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15671
15789
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15672
15790
 
@@ -15964,7 +16082,7 @@ class RoleCreateRoleRequest(BaseModel):
15964
16082
  description: str = Field(
15965
16083
  ..., description='A description about the role.', min_length=1
15966
16084
  )
15967
- permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
16085
+ permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15968
16086
  ...,
15969
16087
  description='A list of permission grants associated with this role.',
15970
16088
  title='Permission Grants',
@@ -15990,60 +16108,6 @@ class RoleGetRolesResponse(BaseModel):
15990
16108
  )
15991
16109
 
15992
16110
 
15993
- class RoleModifyRoleRequest(BaseModel):
15994
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15995
- None,
15996
- description='A description about the role. Only updated if specified. This field is a mutable field.',
15997
- )
15998
- permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
15999
- None,
16000
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
16001
- title='Permission Grants',
16002
- )
16003
- frontend_view: Optional[FrontendView] = Field(
16004
- None,
16005
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
16006
- )
16007
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
16008
- Field(
16009
- {},
16010
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16011
- title='Inherited From',
16012
- )
16013
- )
16014
-
16015
-
16016
- class ServiceCreateServiceRequest(BaseModel):
16017
- service_hierarchical_state_machine_id: str = Field(
16018
- ...,
16019
- description='The ID of the state machine that this service uses.',
16020
- pattern='^[a-f0-9]{24}$',
16021
- title='Service Hierarchical State Machine Id',
16022
- )
16023
- agent_id: str = Field(
16024
- ...,
16025
- description='The ID of the agent that this service uses.',
16026
- pattern='^[a-f0-9]{24}$',
16027
- title='Agent Id',
16028
- )
16029
- name: str = Field(..., description='The name of this service.', min_length=1)
16030
- description: str = Field(
16031
- ..., description='A description of this service.', min_length=1
16032
- )
16033
- is_active: bool = Field(
16034
- ...,
16035
- 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.',
16036
- title='Is Active',
16037
- )
16038
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16039
- None,
16040
- 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.',
16041
- )
16042
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16043
- ..., description='The tags of this service.', title='Tags'
16044
- )
16045
-
16046
-
16047
16111
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16048
16112
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16049
16113
  description: str = Field(
@@ -16177,7 +16241,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16177
16241
  )
16178
16242
 
16179
16243
 
16180
- class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16244
+ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16181
16245
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16182
16246
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16183
16247
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16204,14 +16268,6 @@ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16204
16268
  )
16205
16269
 
16206
16270
 
16207
- class ToolSearchToolInvocationsResponse(BaseModel):
16208
- tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16209
- Field(
16210
- ..., description='The list of tool invocations.', title='Tool Invocations'
16211
- )
16212
- )
16213
-
16214
-
16215
16271
  class UserGetUsersResponse(BaseModel):
16216
16272
  users: List[UserGetUsersResponseUserInstance] = Field(
16217
16273
  ..., description='Users in this organization.', title='Users'
@@ -16325,7 +16381,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16325
16381
 
16326
16382
 
16327
16383
  class ToolGetToolInvocationsResponse(BaseModel):
16328
- tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16384
+ tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16329
16385
  Field(
16330
16386
  ..., description='The list of tool invocations.', title='Tool Invocations'
16331
16387
  )
@@ -16340,3 +16396,11 @@ class ToolGetToolInvocationsResponse(BaseModel):
16340
16396
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16341
16397
  title='Continuation Token',
16342
16398
  )
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.84.0
3
+ Version: 0.86.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=1JZmx3jZN3KEN3eYeDs5_rNiBFtoUR5FI-bMjkgNQhU,139
1
+ amigo_sdk/__init__.py,sha256=EtwaSkeq7ac6SDNU23Dx_3e4xwcIu0p1ciYQ0jMyqic,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=MHp5yhm34GOcAW2XLDzXyj03Rp39QsVT1lehM-N2BJ8,456721
9
+ amigo_sdk/generated/model.py,sha256=tDYoivg2i4NfFO_svoQ2zKGEwyy9VQ2PkYp6EM152R8,459800
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.84.0.dist-info/METADATA,sha256=McxnHIS7JDoZhjYsciMUjGlChUibCEIRUY3ISNB-JSw,8499
15
- amigo_sdk-0.84.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.84.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.84.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.84.0.dist-info/RECORD,,
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,,