amigo_sdk 0.85.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.85.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-11T23:49:12+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
  ):
@@ -1705,6 +1709,12 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1705
1709
  )
1706
1710
 
1707
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
+
1708
1718
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1709
1719
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1710
1720
  user_org_id: str = Field(
@@ -1712,12 +1722,6 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1712
1722
  )
1713
1723
 
1714
1724
 
1715
- class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1716
- major: int = Field(..., title='Major')
1717
- minor: int = Field(..., title='Minor')
1718
- patch: int = Field(..., title='Patch')
1719
-
1720
-
1721
1725
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1722
1726
  enable_response_recommendation: Optional[bool] = Field(
1723
1727
  False,
@@ -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,11 @@ 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
+ )
10744
10768
 
10745
10769
 
10746
10770
  class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
@@ -10988,6 +11012,17 @@ class ServiceUpdateServiceRequestServiceHierarchicalStateMachineId(RootModel[str
10988
11012
  )
10989
11013
 
10990
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
+
10991
11026
  class ServiceUpdateServiceRequest(BaseModel):
10992
11027
  name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10993
11028
  None, description='The name of the service. Only updated if not-null.'
@@ -11017,6 +11052,27 @@ class ServiceUpdateServiceRequest(BaseModel):
11017
11052
  description='The tags of this service. Only updated if not-null.',
11018
11053
  title='Tags',
11019
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
+ )
11020
11076
 
11021
11077
 
11022
11078
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
@@ -11137,6 +11193,16 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11137
11193
  )
11138
11194
 
11139
11195
 
11196
+ class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11197
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11198
+ run_count: int = Field(
11199
+ ...,
11200
+ description='The number of times to run the unit test.',
11201
+ gt=0,
11202
+ title='Run Count',
11203
+ )
11204
+
11205
+
11140
11206
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11141
11207
  simulation_unit_test_set_id: str = Field(
11142
11208
  ...,
@@ -11196,6 +11262,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11196
11262
  )
11197
11263
 
11198
11264
 
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
+
11199
11299
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11200
11300
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11201
11301
  ...,
@@ -11315,37 +11415,11 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11315
11415
  )
11316
11416
 
11317
11417
 
11318
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11319
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11320
- name: str = Field(
11321
- ..., description='The name of the simulation persona.', title='Name'
11322
- )
11323
- role: str = Field(
11324
- ..., description='The role of the simulation persona.', title='Role'
11325
- )
11326
- tags: Dict[str, Optional[str]] = Field(
11327
- ..., description='The tags of the simulation persona.', title='Tags'
11328
- )
11329
- is_deleted: bool = Field(
11330
- ...,
11331
- description='Whether the simulation persona is deleted.',
11332
- title='Is Deleted',
11333
- )
11334
- created_at: AwareDatetime = Field(
11335
- ...,
11336
- description='The timestamp when the simulation persona was created.',
11337
- title='Created At',
11338
- )
11339
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11340
- ..., description='The user who created the simulation persona.'
11341
- )
11342
- updated_at: AwareDatetime = Field(
11343
- ...,
11344
- description='The timestamp when the simulation persona was last updated.',
11345
- title='Updated At',
11346
- )
11347
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11348
- Field(..., description='The user who last updated the simulation persona.')
11418
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11419
+ simulation_personas: List[
11420
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11421
+ ] = Field(
11422
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11349
11423
  )
11350
11424
 
11351
11425
 
@@ -11437,13 +11511,39 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11437
11511
  )
11438
11512
 
11439
11513
 
11440
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11441
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11442
- run_count: int = Field(
11443
- ...,
11444
- description='The number of times to run the unit test.',
11445
- gt=0,
11446
- title='Run Count',
11514
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11515
+ RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11516
+ ):
11517
+ root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11518
+ Field(
11519
+ ...,
11520
+ description='The unit test runs that are part of this set.',
11521
+ min_length=1,
11522
+ title='Unit Test Runs',
11523
+ )
11524
+ )
11525
+
11526
+
11527
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11528
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11529
+ None, description='The name of the simulation unit test set.'
11530
+ )
11531
+ description: Optional[
11532
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11533
+ ] = Field(
11534
+ {},
11535
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11536
+ title='Description',
11537
+ )
11538
+ unit_test_runs: Optional[
11539
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11540
+ ] = Field(
11541
+ None,
11542
+ description='The unit test runs that are part of this set.',
11543
+ title='Unit Test Runs',
11544
+ )
11545
+ tags: Optional[Dict[str, Optional[str]]] = Field(
11546
+ None, description='The tags of the simulation unit test set.', title='Tags'
11447
11547
  )
11448
11548
 
11449
11549
 
@@ -11480,6 +11580,22 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11480
11580
  )
11481
11581
 
11482
11582
 
11583
+ class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11584
+ regular = 'regular'
11585
+ conversation_simulation = 'conversation-simulation'
11586
+
11587
+
11588
+ class ToolInvokeToolVersionRequestInput(BaseModel):
11589
+ input_parameters: Dict[str, Any] = Field(
11590
+ ...,
11591
+ description='The input parameters for the tool invocation.',
11592
+ title='Input Parameters',
11593
+ )
11594
+ invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11595
+ ..., description='The mode of invocation.', title='Invocation Mode'
11596
+ )
11597
+
11598
+
11483
11599
  class ToolModifyToolRequest(BaseModel):
11484
11600
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11485
11601
  None, description='A description of this tool. Only updates if not-null.'
@@ -11522,19 +11638,34 @@ class ToolPublishToolVersionResponse(BaseModel):
11522
11638
  )
11523
11639
 
11524
11640
 
11525
- class ToolTestToolRequestInputInvocationMode(Enum):
11526
- regular = 'regular'
11527
- conversation_simulation = 'conversation-simulation'
11528
-
11529
-
11530
- class ToolTestToolRequestInput(BaseModel):
11531
- input_parameters: Dict[str, Any] = Field(
11641
+ class ToolTestToolRequest(BaseModel):
11642
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11532
11643
  ...,
11533
- description='The input parameters for the tool invocation.',
11534
- title='Input Parameters',
11644
+ description='The list of inputs for the tool invocation.',
11645
+ max_length=10,
11646
+ min_length=1,
11647
+ title='Inputs',
11535
11648
  )
11536
- invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11537
- ..., description='The mode of invocation.', title='Invocation Mode'
11649
+ commit_branch: str = Field(
11650
+ ...,
11651
+ description='The branch in the tools repo whose tip will be tested.',
11652
+ title='Commit Branch',
11653
+ )
11654
+ project_path: str = Field(
11655
+ ...,
11656
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11657
+ pattern='^[-\\w\\d_/]+$',
11658
+ title='Project Path',
11659
+ )
11660
+ required_envvars: Dict[str, str] = Field(
11661
+ ...,
11662
+ description='The environment variables required for the tool to run.',
11663
+ title='Required Envvars',
11664
+ )
11665
+ required_secret_envvars: Dict[str, str] = Field(
11666
+ ...,
11667
+ description='The secret environment variables required for the tool to run.',
11668
+ title='Required Secret Envvars',
11538
11669
  )
11539
11670
 
11540
11671
 
@@ -11577,6 +11708,11 @@ class UserCreateInvitedUserRequestPreferences(BaseModel):
11577
11708
  timezone: Optional[OrganizationCreateOrganizationRequestPreferencesTimezone] = (
11578
11709
  Field(None, title='Timezone')
11579
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
+ )
11580
11716
 
11581
11717
 
11582
11718
  class UserCreateInvitedUserResponse(BaseModel):
@@ -11606,7 +11742,7 @@ class UserGetMemoriesResponse(BaseModel):
11606
11742
  )
11607
11743
 
11608
11744
 
11609
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11745
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11610
11746
  num_conversations: int = Field(
11611
11747
  ...,
11612
11748
  description='The number of conversations the user has created.',
@@ -11648,6 +11784,17 @@ class UserSignInWithEmailRequest(BaseModel):
11648
11784
  )
11649
11785
 
11650
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
+
11651
11798
  class UserUpdateUserInfoRequest(BaseModel):
11652
11799
  first_name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11653
11800
  None,
@@ -11696,6 +11843,11 @@ class UserUpdateUserInfoRequest(BaseModel):
11696
11843
  description='A list of additional context to update. If `null`, the context is not modified.',
11697
11844
  title='Additional Context',
11698
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
+ )
11699
11851
 
11700
11852
 
11701
11853
  class WebhookDestinationCreateWebhookDestinationRequest(BaseModel):
@@ -12045,7 +12197,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12045
12197
  [], description='The IDs of the messages to retrieve.', title='Id'
12046
12198
  )
12047
12199
  message_type: Optional[List[MessageType]] = Field(
12048
- ['external-event', 'user-message', 'agent-message'],
12200
+ ['agent-message', 'user-message', 'external-event'],
12049
12201
  description='The type of messages to retrieve.',
12050
12202
  title='Message Type',
12051
12203
  )
@@ -13851,9 +14003,9 @@ class ServiceInstance(BaseModel):
13851
14003
  agent_id: str = Field(
13852
14004
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13853
14005
  )
13854
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13855
- ..., description='The tags of the service.', title='Tags'
13856
- )
14006
+ tags: List[
14007
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14008
+ ] = Field(..., description='The tags of the service.', title='Tags')
13857
14009
 
13858
14010
 
13859
14011
  class SimulationConversationInvocationSource(BaseModel):
@@ -13904,7 +14056,9 @@ class SimulationUnitTestSet(BaseModel):
13904
14056
  description='Whether the unit test set has been deleted.',
13905
14057
  title='Is Deleted',
13906
14058
  )
13907
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14059
+ tags: List[
14060
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14061
+ ] = Field(
13908
14062
  ..., description='The tags of the simulation unit test set.', title='Tags'
13909
14063
  )
13910
14064
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13943,7 +14097,9 @@ class SimulationUnitTestSetInstance(BaseModel):
13943
14097
  description='Whether the unit test set has been deleted.',
13944
14098
  title='Is Deleted',
13945
14099
  )
13946
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14100
+ tags: List[
14101
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14102
+ ] = Field(
13947
14103
  ..., description='The tags of the simulation unit test set.', title='Tags'
13948
14104
  )
13949
14105
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14059,9 +14215,9 @@ class ToolInstance(BaseModel):
14059
14215
  description='A list of encrypted environment variables that some versions of this tool uses.',
14060
14216
  title='Secret Envvars',
14061
14217
  )
14062
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14063
- ..., description='The tags of the simulation persona.', title='Tags'
14064
- )
14218
+ tags: List[
14219
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14220
+ ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14065
14221
 
14066
14222
 
14067
14223
  class ToolVersionInstance(BaseModel):
@@ -14074,7 +14230,7 @@ class ToolVersionInstance(BaseModel):
14074
14230
  description='The ID of the tool that this version belongs to.',
14075
14231
  title='Tool Id',
14076
14232
  )
14077
- version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14233
+ version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14078
14234
  ..., description='The version of the tool.'
14079
14235
  )
14080
14236
  required_envvars: List[str] = Field(
@@ -14390,7 +14546,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14390
14546
 
14391
14547
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14392
14548
  dynamic_behavior_sets: List[
14393
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14549
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14394
14550
  ] = Field(
14395
14551
  ...,
14396
14552
  description='The retrieved dynamic behavior sets.',
@@ -14414,16 +14570,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14414
14570
  )
14415
14571
 
14416
14572
 
14417
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14418
- dynamic_behavior_sets: List[
14419
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14420
- ] = Field(
14421
- ...,
14422
- description='The retrieved dynamic behavior sets.',
14423
- title='Dynamic Behavior Sets',
14424
- )
14425
-
14426
-
14427
14573
  class MetricCreateMetricRequest(BaseModel):
14428
14574
  name: str = Field(
14429
14575
  ...,
@@ -14513,6 +14659,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14513
14659
  'enable_response_recommendation': False,
14514
14660
  'conversations_visible_to_admins': True,
14515
14661
  'user_model_visible_to_admins': True,
14662
+ 'audio_keyterms': [],
14516
14663
  }
14517
14664
  ),
14518
14665
  description='Default user preferences for users in this organization.',
@@ -14721,19 +14868,42 @@ class RoleModifyRoleRequest(BaseModel):
14721
14868
  )
14722
14869
 
14723
14870
 
14724
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14725
- agent_version_number: Optional[int] = Field(
14871
+ class ServiceCreateServiceRequest(BaseModel):
14872
+ service_hierarchical_state_machine_id: str = Field(
14726
14873
  ...,
14727
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14728
- 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',
14729
14877
  )
14730
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14878
+ agent_id: str = Field(
14731
14879
  ...,
14732
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14733
- 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',
14734
14883
  )
14735
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14736
- 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'
14737
14907
  )
14738
14908
 
14739
14909
 
@@ -14758,7 +14928,7 @@ class ServiceGetServicesResponse(BaseModel):
14758
14928
 
14759
14929
 
14760
14930
  class ServiceUpsertServiceVersionSetRequest(BaseModel):
14761
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14931
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14762
14932
  ..., description='The version set to upsert.'
14763
14933
  )
14764
14934
 
@@ -14812,7 +14982,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14812
14982
  ..., description='The description of the simulation unit test set.'
14813
14983
  )
14814
14984
  unit_test_runs: List[
14815
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14985
+ SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14816
14986
  ] = Field(
14817
14987
  ...,
14818
14988
  description='The unit test runs that are part of this set.',
@@ -14826,7 +14996,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14826
14996
 
14827
14997
  class SimulationGetSimulationPersonasResponse(BaseModel):
14828
14998
  simulation_personas: List[
14829
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14999
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14830
15000
  ] = Field(
14831
15001
  ..., description='The list of simulation personas.', title='Simulation Personas'
14832
15002
  )
@@ -14898,14 +15068,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14898
15068
  )
14899
15069
 
14900
15070
 
14901
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14902
- simulation_personas: List[
14903
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14904
- ] = Field(
14905
- ..., description='The list of simulation personas.', title='Simulation Personas'
14906
- )
14907
-
14908
-
14909
15071
  class SimulationSearchSimulationScenariosResponse(BaseModel):
14910
15072
  simulation_scenarios: List[
14911
15073
  SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
@@ -14929,42 +15091,6 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
14929
15091
  )
14930
15092
 
14931
15093
 
14932
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14933
- RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14934
- ):
14935
- root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14936
- Field(
14937
- ...,
14938
- description='The unit test runs that are part of this set.',
14939
- min_length=1,
14940
- title='Unit Test Runs',
14941
- )
14942
- )
14943
-
14944
-
14945
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14946
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14947
- None, description='The name of the simulation unit test set.'
14948
- )
14949
- description: Optional[
14950
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
14951
- ] = Field(
14952
- {},
14953
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14954
- title='Description',
14955
- )
14956
- unit_test_runs: Optional[
14957
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
14958
- ] = Field(
14959
- None,
14960
- description='The unit test runs that are part of this set.',
14961
- title='Unit Test Runs',
14962
- )
14963
- tags: Optional[Dict[str, Optional[str]]] = Field(
14964
- None, description='The tags of the simulation unit test set.', title='Tags'
14965
- )
14966
-
14967
-
14968
15094
  class ToolGetToolVersionsResponse(BaseModel):
14969
15095
  tool_versions: List[ToolVersionInstance] = Field(
14970
15096
  ...,
@@ -15006,7 +15132,7 @@ class ToolGetToolsResponse(BaseModel):
15006
15132
 
15007
15133
 
15008
15134
  class ToolInvokeToolVersionRequest(BaseModel):
15009
- inputs: List[ToolTestToolRequestInput] = Field(
15135
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
15010
15136
  ...,
15011
15137
  description='The list of inputs for the tool invocation.',
15012
15138
  max_length=10,
@@ -15027,37 +15153,6 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15027
15153
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15028
15154
 
15029
15155
 
15030
- class ToolTestToolRequest(BaseModel):
15031
- inputs: List[ToolTestToolRequestInput] = Field(
15032
- ...,
15033
- description='The list of inputs for the tool invocation.',
15034
- max_length=10,
15035
- min_length=1,
15036
- title='Inputs',
15037
- )
15038
- commit_branch: str = Field(
15039
- ...,
15040
- description='The branch in the tools repo whose tip will be tested.',
15041
- title='Commit Branch',
15042
- )
15043
- project_path: str = Field(
15044
- ...,
15045
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
15046
- pattern='^[-\\w\\d_/]+$',
15047
- title='Project Path',
15048
- )
15049
- required_envvars: Dict[str, str] = Field(
15050
- ...,
15051
- description='The environment variables required for the tool to run.',
15052
- title='Required Envvars',
15053
- )
15054
- required_secret_envvars: Dict[str, str] = Field(
15055
- ...,
15056
- description='The secret environment variables required for the tool to run.',
15057
- title='Required Secret Envvars',
15058
- )
15059
-
15060
-
15061
15156
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15062
15157
 
15063
15158
 
@@ -15114,7 +15209,7 @@ class UserGetUsersResponseUserInstance(BaseModel):
15114
15209
  ..., description='The last name of the user.', title='Last Name'
15115
15210
  )
15116
15211
  email: str = Field(..., description='Email of the user.', title='Email')
15117
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15212
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15118
15213
  ..., description="Statistics about the user's usage of the Amigo platform."
15119
15214
  )
15120
15215
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15370,9 +15465,9 @@ class Metric(BaseModel):
15370
15465
  additional_notes: Optional[str] = Field(
15371
15466
  ..., description='Additional notes about the metric.', title='Additional Notes'
15372
15467
  )
15373
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15374
- ..., description='The tags of the metric.', title='Tags'
15375
- )
15468
+ tags: List[
15469
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15470
+ ] = Field(..., description='The tags of the metric.', title='Tags')
15376
15471
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15377
15472
  ..., description='The user who created the metric.'
15378
15473
  )
@@ -15440,9 +15535,9 @@ class MetricInstance(BaseModel):
15440
15535
  additional_notes: Optional[str] = Field(
15441
15536
  ..., description='Additional notes about the metric.', title='Additional Notes'
15442
15537
  )
15443
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15444
- ..., description='The tags of the metric.', title='Tags'
15445
- )
15538
+ tags: List[
15539
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15540
+ ] = Field(..., description='The tags of the metric.', title='Tags')
15446
15541
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15447
15542
  ..., description='The user who created the metric.'
15448
15543
  )
@@ -15642,9 +15737,9 @@ class SimulationUnitTest(BaseModel):
15642
15737
  is_deleted: bool = Field(
15643
15738
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15644
15739
  )
15645
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15646
- ..., description='The tags of the simulation persona.', title='Tags'
15647
- )
15740
+ tags: List[
15741
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15742
+ ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15648
15743
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15649
15744
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15650
15745
 
@@ -15687,9 +15782,9 @@ class SimulationUnitTestInstance(BaseModel):
15687
15782
  is_deleted: bool = Field(
15688
15783
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15689
15784
  )
15690
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15691
- ..., description='The tags of the simulation persona.', title='Tags'
15692
- )
15785
+ tags: List[
15786
+ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15787
+ ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15693
15788
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15694
15789
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15695
15790
 
@@ -16013,37 +16108,6 @@ class RoleGetRolesResponse(BaseModel):
16013
16108
  )
16014
16109
 
16015
16110
 
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(
@@ -16199,7 +16263,7 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16199
16263
  tool_id: str = Field(
16200
16264
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16201
16265
  )
16202
- tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16266
+ tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16203
16267
  ..., description='The version of the tool that was invoked.'
16204
16268
  )
16205
16269
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.85.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=j-eYEBygx4evbzc91aD7CZmAYRsNVWvUE4C5UzGdLt0,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=8dEMwjKm6jo7REXhfnYInIXYNSTQ-8NvonL1sFhyUqA,456685
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.85.0.dist-info/METADATA,sha256=FjNR1RMuSRa-TNKXtRxOL4m3yBGYiM8B_tt8a-MtqCs,8499
15
- amigo_sdk-0.85.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.85.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.85.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.85.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,,