amigo_sdk 0.85.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.85.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-11T23:49:12+00:00
3
+ # timestamp: 2025-12-12T13:58:54+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(
@@ -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):
@@ -10741,12 +10750,10 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10741
10750
  timezone: Optional[OrganizationCreateOrganizationRequestPreferencesTimezone] = (
10742
10751
  Field(None, title='Timezone')
10743
10752
  )
10744
-
10745
-
10746
- class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10747
- description: str = Field(..., min_length=1)
10748
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10749
- ..., title='Tags'
10753
+ audio_keyterms: Optional[List[str]] = Field(
10754
+ [],
10755
+ 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.',
10756
+ title='Audio Keyterms',
10750
10757
  )
10751
10758
 
10752
10759
 
@@ -10773,19 +10780,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10773
10780
  )
10774
10781
 
10775
10782
 
10776
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10783
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10777
10784
  AnnotationStateInputNextState
10778
10785
  ):
10779
10786
  pass
10780
10787
 
10781
10788
 
10782
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10789
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10783
10790
  BaseModel
10784
10791
  ):
10785
10792
  description: str = Field(..., min_length=1)
10786
10793
  next_state: Union[
10787
10794
  StateOrRefName,
10788
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10795
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10789
10796
  ] = Field(..., title='Next State')
10790
10797
 
10791
10798
 
@@ -10891,22 +10898,18 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10891
10898
  )
10892
10899
 
10893
10900
 
10894
- class OrganizationModifyOrganizationRequestUserDimensions(
10895
- RootModel[List[OrganizationCreateOrganizationRequestUserDimension]]
10896
- ):
10897
- root: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
10898
- ...,
10899
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10900
- min_length=1,
10901
- title='User Dimensions',
10902
- )
10903
-
10904
-
10905
10901
  OrganizationModifyOrganizationRequestPreferences = (
10906
10902
  OrganizationCreateOrganizationRequestPreferences
10907
10903
  )
10908
10904
 
10909
10905
 
10906
+ class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10907
+ description: str = Field(..., min_length=1)
10908
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10909
+ ..., title='Tags'
10910
+ )
10911
+
10912
+
10910
10913
  class RoleAssignRoleRequest(BaseModel):
10911
10914
  user_id: str = Field(
10912
10915
  ...,
@@ -10988,6 +10991,17 @@ class ServiceUpdateServiceRequestServiceHierarchicalStateMachineId(RootModel[str
10988
10991
  )
10989
10992
 
10990
10993
 
10994
+ class ServiceUpdateServiceRequestKeyterms(
10995
+ RootModel[List[StrippedNonemptyStringAZAZ02]]
10996
+ ):
10997
+ root: List[StrippedNonemptyStringAZAZ02] = Field(
10998
+ ...,
10999
+ 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.',
11000
+ max_length=20,
11001
+ title='Keyterms',
11002
+ )
11003
+
11004
+
10991
11005
  class ServiceUpdateServiceRequest(BaseModel):
10992
11006
  name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10993
11007
  None, description='The name of the service. Only updated if not-null.'
@@ -11017,6 +11031,27 @@ class ServiceUpdateServiceRequest(BaseModel):
11017
11031
  description='The tags of this service. Only updated if not-null.',
11018
11032
  title='Tags',
11019
11033
  )
11034
+ keyterms: Optional[ServiceUpdateServiceRequestKeyterms] = Field(
11035
+ None,
11036
+ 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.',
11037
+ title='Keyterms',
11038
+ )
11039
+
11040
+
11041
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
11042
+ agent_version_number: Optional[int] = Field(
11043
+ ...,
11044
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
11045
+ title='Agent Version Number',
11046
+ )
11047
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
11048
+ ...,
11049
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
11050
+ title='Service Hierarchical State Machine Version Number',
11051
+ )
11052
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
11053
+ Field(..., title='Llm Model Preferences')
11054
+ )
11020
11055
 
11021
11056
 
11022
11057
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
@@ -11137,6 +11172,16 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11137
11172
  )
11138
11173
 
11139
11174
 
11175
+ class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11176
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11177
+ run_count: int = Field(
11178
+ ...,
11179
+ description='The number of times to run the unit test.',
11180
+ gt=0,
11181
+ title='Run Count',
11182
+ )
11183
+
11184
+
11140
11185
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11141
11186
  simulation_unit_test_set_id: str = Field(
11142
11187
  ...,
@@ -11227,6 +11272,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11227
11272
  )
11228
11273
 
11229
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
+
11230
11306
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11231
11307
  presigned_url: str = Field(
11232
11308
  ...,
@@ -11349,34 +11425,13 @@ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseMo
11349
11425
  )
11350
11426
 
11351
11427
 
11352
- class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11353
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11354
- name: str = Field(
11355
- ..., description='The name of the simulation scenario.', title='Name'
11356
- )
11357
- tags: Dict[str, Optional[str]] = Field(
11358
- ..., description='The tags of the simulation scenario.', title='Tags'
11359
- )
11360
- is_deleted: bool = Field(
11361
- ...,
11362
- description='Whether the simulation scenario is deleted.',
11363
- title='Is Deleted',
11364
- )
11365
- created_at: AwareDatetime = Field(
11366
- ...,
11367
- description='The timestamp when the simulation scenario was created.',
11368
- title='Created At',
11369
- )
11370
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11371
- Field(..., description='The user who created the simulation scenario.')
11372
- )
11373
- updated_at: AwareDatetime = Field(
11428
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11429
+ simulation_scenarios: List[
11430
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11431
+ ] = Field(
11374
11432
  ...,
11375
- description='The timestamp when the simulation scenario was last updated.',
11376
- title='Updated At',
11377
- )
11378
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11379
- Field(..., description='The user who last updated the simulation scenario.')
11433
+ description='The list of simulation scenarios.',
11434
+ title='Simulation Scenarios',
11380
11435
  )
11381
11436
 
11382
11437
 
@@ -11437,13 +11492,39 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11437
11492
  )
11438
11493
 
11439
11494
 
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',
11495
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11496
+ RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11497
+ ):
11498
+ root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11499
+ Field(
11500
+ ...,
11501
+ description='The unit test runs that are part of this set.',
11502
+ min_length=1,
11503
+ title='Unit Test Runs',
11504
+ )
11505
+ )
11506
+
11507
+
11508
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11509
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11510
+ None, description='The name of the simulation unit test set.'
11511
+ )
11512
+ description: Optional[
11513
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11514
+ ] = Field(
11515
+ {},
11516
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11517
+ title='Description',
11518
+ )
11519
+ unit_test_runs: Optional[
11520
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11521
+ ] = Field(
11522
+ None,
11523
+ description='The unit test runs that are part of this set.',
11524
+ title='Unit Test Runs',
11525
+ )
11526
+ tags: Optional[Dict[str, Optional[str]]] = Field(
11527
+ None, description='The tags of the simulation unit test set.', title='Tags'
11447
11528
  )
11448
11529
 
11449
11530
 
@@ -11480,6 +11561,22 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11480
11561
  )
11481
11562
 
11482
11563
 
11564
+ class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11565
+ regular = 'regular'
11566
+ conversation_simulation = 'conversation-simulation'
11567
+
11568
+
11569
+ class ToolInvokeToolVersionRequestInput(BaseModel):
11570
+ input_parameters: Dict[str, Any] = Field(
11571
+ ...,
11572
+ description='The input parameters for the tool invocation.',
11573
+ title='Input Parameters',
11574
+ )
11575
+ invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11576
+ ..., description='The mode of invocation.', title='Invocation Mode'
11577
+ )
11578
+
11579
+
11483
11580
  class ToolModifyToolRequest(BaseModel):
11484
11581
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11485
11582
  None, description='A description of this tool. Only updates if not-null.'
@@ -11522,19 +11619,34 @@ class ToolPublishToolVersionResponse(BaseModel):
11522
11619
  )
11523
11620
 
11524
11621
 
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(
11622
+ class ToolTestToolRequest(BaseModel):
11623
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11532
11624
  ...,
11533
- description='The input parameters for the tool invocation.',
11534
- title='Input Parameters',
11625
+ description='The list of inputs for the tool invocation.',
11626
+ max_length=10,
11627
+ min_length=1,
11628
+ title='Inputs',
11535
11629
  )
11536
- invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11537
- ..., description='The mode of invocation.', title='Invocation Mode'
11630
+ commit_branch: str = Field(
11631
+ ...,
11632
+ description='The branch in the tools repo whose tip will be tested.',
11633
+ title='Commit Branch',
11634
+ )
11635
+ project_path: str = Field(
11636
+ ...,
11637
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11638
+ pattern='^[-\\w\\d_/]+$',
11639
+ title='Project Path',
11640
+ )
11641
+ required_envvars: Dict[str, str] = Field(
11642
+ ...,
11643
+ description='The environment variables required for the tool to run.',
11644
+ title='Required Envvars',
11645
+ )
11646
+ required_secret_envvars: Dict[str, str] = Field(
11647
+ ...,
11648
+ description='The secret environment variables required for the tool to run.',
11649
+ title='Required Secret Envvars',
11538
11650
  )
11539
11651
 
11540
11652
 
@@ -11577,6 +11689,11 @@ class UserCreateInvitedUserRequestPreferences(BaseModel):
11577
11689
  timezone: Optional[OrganizationCreateOrganizationRequestPreferencesTimezone] = (
11578
11690
  Field(None, title='Timezone')
11579
11691
  )
11692
+ audio_keyterms: Optional[List[str]] = Field(
11693
+ [],
11694
+ 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.',
11695
+ title='Audio Keyterms',
11696
+ )
11580
11697
 
11581
11698
 
11582
11699
  class UserCreateInvitedUserResponse(BaseModel):
@@ -11648,6 +11765,17 @@ class UserSignInWithEmailRequest(BaseModel):
11648
11765
  )
11649
11766
 
11650
11767
 
11768
+ class UserUpdateUserInfoRequestAudioKeyterms(
11769
+ RootModel[List[StrippedNonemptyStringAZAZ02]]
11770
+ ):
11771
+ root: List[StrippedNonemptyStringAZAZ02] = Field(
11772
+ ...,
11773
+ 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.',
11774
+ max_length=20,
11775
+ title='Audio Keyterms',
11776
+ )
11777
+
11778
+
11651
11779
  class UserUpdateUserInfoRequest(BaseModel):
11652
11780
  first_name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11653
11781
  None,
@@ -11696,6 +11824,11 @@ class UserUpdateUserInfoRequest(BaseModel):
11696
11824
  description='A list of additional context to update. If `null`, the context is not modified.',
11697
11825
  title='Additional Context',
11698
11826
  )
11827
+ audio_keyterms: Optional[UserUpdateUserInfoRequestAudioKeyterms] = Field(
11828
+ None,
11829
+ 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.',
11830
+ title='Audio Keyterms',
11831
+ )
11699
11832
 
11700
11833
 
11701
11834
  class WebhookDestinationCreateWebhookDestinationRequest(BaseModel):
@@ -12045,7 +12178,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12045
12178
  [], description='The IDs of the messages to retrieve.', title='Id'
12046
12179
  )
12047
12180
  message_type: Optional[List[MessageType]] = Field(
12048
- ['external-event', 'user-message', 'agent-message'],
12181
+ ['user-message', 'external-event', 'agent-message'],
12049
12182
  description='The type of messages to retrieve.',
12050
12183
  title='Message Type',
12051
12184
  )
@@ -14480,7 +14613,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14480
14613
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14481
14614
  min_length=1,
14482
14615
  )
14483
- user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14616
+ user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14484
14617
  ...,
14485
14618
  description='User dimensions for the organization.',
14486
14619
  title='User Dimensions',
@@ -14513,6 +14646,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14513
14646
  'enable_response_recommendation': False,
14514
14647
  'conversations_visible_to_admins': True,
14515
14648
  'user_model_visible_to_admins': True,
14649
+ 'audio_keyterms': [],
14516
14650
  }
14517
14651
  ),
14518
14652
  description='Default user preferences for users in this organization.',
@@ -14624,6 +14758,17 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14624
14758
  )
14625
14759
 
14626
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
+
14627
14772
  class OrganizationModifyOrganizationRequest(BaseModel):
14628
14773
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14629
14774
  None,
@@ -14681,7 +14826,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14681
14826
  )
14682
14827
 
14683
14828
 
14684
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14829
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14685
14830
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14686
14831
  ...,
14687
14832
  description='Whether this grant allows or denies the specified access.',
@@ -14698,42 +14843,42 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14698
14843
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14699
14844
 
14700
14845
 
14701
- class RoleModifyRoleRequest(BaseModel):
14702
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14703
- None,
14704
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14846
+ class ServiceCreateServiceRequest(BaseModel):
14847
+ service_hierarchical_state_machine_id: str = Field(
14848
+ ...,
14849
+ description='The ID of the state machine that this service uses.',
14850
+ pattern='^[a-f0-9]{24}$',
14851
+ title='Service Hierarchical State Machine Id',
14705
14852
  )
14706
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14707
- None,
14708
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14709
- title='Permission Grants',
14853
+ agent_id: str = Field(
14854
+ ...,
14855
+ description='The ID of the agent that this service uses.',
14856
+ pattern='^[a-f0-9]{24}$',
14857
+ title='Agent Id',
14710
14858
  )
14711
- frontend_view: Optional[FrontendView] = Field(
14712
- None,
14713
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14859
+ name: str = Field(..., description='The name of this service.', min_length=1)
14860
+ description: str = Field(
14861
+ ..., description='A description of this service.', min_length=1
14714
14862
  )
14715
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14863
+ is_active: bool = Field(
14864
+ ...,
14865
+ 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.',
14866
+ title='Is Active',
14867
+ )
14868
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14716
14869
  Field(
14717
- {},
14718
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14719
- title='Inherited From',
14870
+ None,
14871
+ description='The `release` version set to use for this service. If not specified, the `release` version set will be the same as the `edge` version set, which uses the\nlatest agent and state machine versions with no model preference.',
14720
14872
  )
14721
14873
  )
14722
-
14723
-
14724
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14725
- agent_version_number: Optional[int] = Field(
14726
- ...,
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',
14729
- )
14730
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14731
- ...,
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',
14874
+ keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
14875
+ [],
14876
+ 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.',
14877
+ max_length=20,
14878
+ title='Keyterms',
14734
14879
  )
14735
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14736
- Field(..., title='Llm Model Preferences')
14880
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14881
+ ..., description='The tags of this service.', title='Tags'
14737
14882
  )
14738
14883
 
14739
14884
 
@@ -14758,7 +14903,7 @@ class ServiceGetServicesResponse(BaseModel):
14758
14903
 
14759
14904
 
14760
14905
  class ServiceUpsertServiceVersionSetRequest(BaseModel):
14761
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14906
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14762
14907
  ..., description='The version set to upsert.'
14763
14908
  )
14764
14909
 
@@ -14812,7 +14957,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14812
14957
  ..., description='The description of the simulation unit test set.'
14813
14958
  )
14814
14959
  unit_test_runs: List[
14815
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14960
+ SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14816
14961
  ] = Field(
14817
14962
  ...,
14818
14963
  description='The unit test runs that are part of this set.',
@@ -14850,7 +14995,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14850
14995
 
14851
14996
  class SimulationGetSimulationScenariosResponse(BaseModel):
14852
14997
  simulation_scenarios: List[
14853
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14998
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14854
14999
  ] = Field(
14855
15000
  ...,
14856
15001
  description='The list of simulation scenarios.',
@@ -14906,16 +15051,6 @@ class SimulationSearchSimulationPersonasResponse(BaseModel):
14906
15051
  )
14907
15052
 
14908
15053
 
14909
- class SimulationSearchSimulationScenariosResponse(BaseModel):
14910
- simulation_scenarios: List[
14911
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14912
- ] = Field(
14913
- ...,
14914
- description='The list of simulation scenarios.',
14915
- title='Simulation Scenarios',
14916
- )
14917
-
14918
-
14919
15054
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14920
15055
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
14921
15056
  ...,
@@ -14929,42 +15064,6 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
14929
15064
  )
14930
15065
 
14931
15066
 
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
15067
  class ToolGetToolVersionsResponse(BaseModel):
14969
15068
  tool_versions: List[ToolVersionInstance] = Field(
14970
15069
  ...,
@@ -15006,7 +15105,7 @@ class ToolGetToolsResponse(BaseModel):
15006
15105
 
15007
15106
 
15008
15107
  class ToolInvokeToolVersionRequest(BaseModel):
15009
- inputs: List[ToolTestToolRequestInput] = Field(
15108
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
15010
15109
  ...,
15011
15110
  description='The list of inputs for the tool invocation.',
15012
15111
  max_length=10,
@@ -15027,37 +15126,6 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15027
15126
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15028
15127
 
15029
15128
 
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
15129
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15062
15130
 
15063
15131
 
@@ -15098,7 +15166,7 @@ class UserGetUserModelResponse(BaseModel):
15098
15166
  )
15099
15167
 
15100
15168
 
15101
- class UserGetUsersResponseUserInstance(BaseModel):
15169
+ class UserSearchUsersResponseUserInstance(BaseModel):
15102
15170
  org_id: str = Field(
15103
15171
  ...,
15104
15172
  description='The ID of the organization that this user belongs to.',
@@ -15123,12 +15191,6 @@ class UserGetUsersResponseUserInstance(BaseModel):
15123
15191
  )
15124
15192
 
15125
15193
 
15126
- class UserSearchUsersResponse(BaseModel):
15127
- users: List[UserGetUsersResponseUserInstance] = Field(
15128
- ..., description='Users in this organization.', title='Users'
15129
- )
15130
-
15131
-
15132
15194
  class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
15133
15195
  webhook_deliveries: List[WebhookDeliveryInstance] = Field(
15134
15196
  ..., description='The retrieved webhook deliveries.', title='Webhook Deliveries'
@@ -15220,7 +15282,7 @@ class ActionStateInput(BaseModel):
15220
15282
  Field(..., title='Boundary Constraints')
15221
15283
  )
15222
15284
  exit_conditions: List[
15223
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15285
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15224
15286
  ] = Field(..., title='Exit Conditions')
15225
15287
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15226
15288
  ..., title='Action Tool Call Specs'
@@ -15329,7 +15391,7 @@ class DecisionStateInput(BaseModel):
15329
15391
  type: Literal['decision'] = Field(..., title='Type')
15330
15392
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15331
15393
  exit_conditions: List[
15332
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15394
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15333
15395
  ] = Field(..., title='Exit Conditions')
15334
15396
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15335
15397
  ..., title='Decision Guidelines'
@@ -15987,7 +16049,7 @@ class RoleCreateRoleRequest(BaseModel):
15987
16049
  description: str = Field(
15988
16050
  ..., description='A description about the role.', min_length=1
15989
16051
  )
15990
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
16052
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
15991
16053
  ...,
15992
16054
  description='A list of permission grants associated with this role.',
15993
16055
  title='Permission Grants',
@@ -16013,34 +16075,26 @@ class RoleGetRolesResponse(BaseModel):
16013
16075
  )
16014
16076
 
16015
16077
 
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
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.',
16032
16082
  )
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',
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',
16037
16087
  )
16038
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16088
+ frontend_view: Optional[FrontendView] = Field(
16039
16089
  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.',
16090
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
16041
16091
  )
16042
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16043
- ..., description='The tags of this service.', title='Tags'
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
+ )
16044
16098
  )
16045
16099
 
16046
16100
 
@@ -16177,7 +16231,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16177
16231
  )
16178
16232
 
16179
16233
 
16180
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16234
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16181
16235
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16182
16236
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16183
16237
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16204,8 +16258,16 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16204
16258
  )
16205
16259
 
16206
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
+
16207
16269
  class UserGetUsersResponse(BaseModel):
16208
- users: List[UserGetUsersResponseUserInstance] = Field(
16270
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16209
16271
  ..., description='Users in this organization.', title='Users'
16210
16272
  )
16211
16273
  has_more: bool = Field(
@@ -16218,6 +16280,12 @@ class UserGetUsersResponse(BaseModel):
16218
16280
  )
16219
16281
 
16220
16282
 
16283
+ class UserSearchUsersResponse(BaseModel):
16284
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16285
+ ..., description='Users in this organization.', title='Users'
16286
+ )
16287
+
16288
+
16221
16289
  class SimulationUnitTestSetRunInstance(BaseModel):
16222
16290
  org_id: str = Field(..., title='Org Id')
16223
16291
  id: str = Field(..., title='Id')
@@ -16317,7 +16385,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16317
16385
 
16318
16386
 
16319
16387
  class ToolGetToolInvocationsResponse(BaseModel):
16320
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16388
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16321
16389
  Field(
16322
16390
  ..., description='The list of tool invocations.', title='Tool Invocations'
16323
16391
  )
@@ -16332,11 +16400,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
16332
16400
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16333
16401
  title='Continuation Token',
16334
16402
  )
16335
-
16336
-
16337
- class ToolSearchToolInvocationsResponse(BaseModel):
16338
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16339
- Field(
16340
- ..., description='The list of tool invocations.', title='Tool Invocations'
16341
- )
16342
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.85.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=j-eYEBygx4evbzc91aD7CZmAYRsNVWvUE4C5UzGdLt0,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=8dEMwjKm6jo7REXhfnYInIXYNSTQ-8NvonL1sFhyUqA,456685
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.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.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,,