amigo_sdk 0.90.0__py3-none-any.whl → 0.92.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.90.0"
1
+ __version__ = "0.92.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-13T11:10:09+00:00
3
+ # timestamp: 2025-12-15T02:15:40+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -128,45 +128,6 @@ class Column(BaseModel):
128
128
  type: str = Field(..., description='The data type of the column.', title='Type')
129
129
 
130
130
 
131
- class ConversationByTimeMetricInputGranularity(Enum):
132
- hour = 'hour'
133
- day = 'day'
134
- week = 'week'
135
- month = 'month'
136
-
137
-
138
- class ConversationByTimeMetricInput(BaseModel):
139
- type: Literal['conversation-by-time'] = Field(..., title='Type')
140
- starts: AwareDatetime = Field(
141
- ...,
142
- description='The start of the interval to compute the count of conversations in.',
143
- title='Starts',
144
- )
145
- ends: AwareDatetime = Field(
146
- ...,
147
- description='The end of the interval to compute the count of conversations in.',
148
- title='Ends',
149
- )
150
- granularity: ConversationByTimeMetricInputGranularity = Field(
151
- ...,
152
- description='The granularity of time to bucket the conversations in. For instance, if set to `hour`, the count of conversations for each hour will be computed.',
153
- title='Granularity',
154
- )
155
-
156
-
157
- class ConversationByTimeMetricOutputConversationCount(RootModel[List[Any]]):
158
- root: List[Any] = Field(..., max_length=2, min_length=2)
159
-
160
-
161
- class ConversationByTimeMetricOutput(BaseModel):
162
- type: Literal['conversation-by-time'] = Field('conversation-by-time', title='Type')
163
- conversation_counts: List[ConversationByTimeMetricOutputConversationCount] = Field(
164
- ...,
165
- description='An array of 2-tuples, where the first element is the start of the time range represented by this tuple, and the second element is the number of conversations in the range `[start, start + granularity)`.',
166
- title='Conversation Counts',
167
- )
168
-
169
-
170
131
  class ConversationCreatedEvent(BaseModel):
171
132
  type: Literal['conversation-created'] = Field('conversation-created', title='Type')
172
133
  conversation_id: str = Field(
@@ -345,10 +306,8 @@ class ExternalStateName(RootModel[str]):
345
306
  root: str = Field(..., pattern='^[A-Za-z0-9_]+\\.[A-Za-z0-9_]+$')
346
307
 
347
308
 
348
- class ExtractActiveMemoriesAgentActionEventQueriesAndResponse(
349
- ConversationByTimeMetricOutputConversationCount
350
- ):
351
- pass
309
+ class ExtractActiveMemoriesAgentActionEventQueriesAndResponse(RootModel[List[Any]]):
310
+ root: List[Any] = Field(..., max_length=2, min_length=2)
352
311
 
353
312
 
354
313
  class ExtractActiveMemoriesAgentActionEvent(BaseModel):
@@ -624,7 +583,7 @@ class NavigateStateMachineExitConditionSelectedEvent(BaseModel):
624
583
 
625
584
 
626
585
  class NavigateStateMachineRecallStateActiveMemoryRetrievedEventQueriesAndResponse(
627
- ConversationByTimeMetricOutputConversationCount
586
+ ExtractActiveMemoriesAgentActionEventQueriesAndResponse
628
587
  ):
629
588
  pass
630
589
 
@@ -739,7 +698,7 @@ class NavigateStateMachineToolCallStateToolOutputAvailableEvent(BaseModel):
739
698
 
740
699
 
741
700
  class NewMessageEventTranscriptAlignmentItem(
742
- ConversationByTimeMetricOutputConversationCount
701
+ ExtractActiveMemoriesAgentActionEventQueriesAndResponse
743
702
  ):
744
703
  pass
745
704
 
@@ -1325,82 +1284,6 @@ class ToolVersionInstanceToolRepo(Enum):
1325
1284
  team = 'team'
1326
1285
 
1327
1286
 
1328
- class TotalARRMetricInput(BaseModel):
1329
- type: Literal['total-arr'] = Field(..., title='Type')
1330
-
1331
-
1332
- class TotalARRMetricOutput(BaseModel):
1333
- type: Literal['total-arr'] = Field('total-arr', title='Type')
1334
- arr_cents: int = Field(
1335
- ..., description='The computed ARR in cents.', title='Arr Cents'
1336
- )
1337
-
1338
-
1339
- class TotalActiveUserMetricInput(BaseModel):
1340
- type: Literal['total-active-user'] = Field(..., title='Type')
1341
- conversation_count_threshold: int = Field(
1342
- ...,
1343
- description='The number of conversations an user must have had in the time horizon to be considered active.',
1344
- ge=0,
1345
- title='Conversation Count Threshold',
1346
- )
1347
- starts: AwareDatetime = Field(
1348
- ...,
1349
- description='The start of the interval to compute active users in.',
1350
- title='Starts',
1351
- )
1352
- ends: AwareDatetime = Field(
1353
- ...,
1354
- description='The end of the interval to compute active users in.',
1355
- title='Ends',
1356
- )
1357
-
1358
-
1359
- class TotalActiveUserMetricOutput(BaseModel):
1360
- type: Literal['total-active-user'] = Field('total-active-user', title='Type')
1361
- active_user_count: int = Field(..., title='Active User Count')
1362
-
1363
-
1364
- class TotalConversationCountMetricInput(BaseModel):
1365
- type: Literal['total-conversation-count'] = Field(..., title='Type')
1366
- starts: AwareDatetime = Field(
1367
- ...,
1368
- description='The start of the interval to compute the count of conversations in.',
1369
- title='Starts',
1370
- )
1371
- ends: AwareDatetime = Field(
1372
- ...,
1373
- description='The end of the interval to compute the count of conversations in.',
1374
- title='Ends',
1375
- )
1376
-
1377
-
1378
- class TotalConversationCountMetricOutput(BaseModel):
1379
- type: Literal['total-conversation-count'] = Field(
1380
- 'total-conversation-count', title='Type'
1381
- )
1382
- conversation_count: int = Field(..., title='Conversation Count')
1383
-
1384
-
1385
- class TotalMessageCountMetricInput(BaseModel):
1386
- type: Literal['total-message-count'] = Field(..., title='Type')
1387
- starts: AwareDatetime = Field(
1388
- ...,
1389
- description='The start of the interval to compute the count of messages in.',
1390
- title='Starts',
1391
- )
1392
- ends: AwareDatetime = Field(
1393
- ...,
1394
- description='The end of the interval to compute the count of messages in.',
1395
- title='Ends',
1396
- )
1397
-
1398
-
1399
- class TotalMessageCountMetricOutput(BaseModel):
1400
- type: Literal['total-message-count'] = Field('total-message-count', title='Type')
1401
- message_count: int = Field(..., title='Message Count')
1402
-
1403
-
1404
1287
  class UnitTestRunSpecScenarioVersionInfo(RootModel[List[Any]]):
1405
1288
  root: List[Any] = Field(
1406
1289
  ...,
@@ -1686,7 +1569,7 @@ AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo = (
1686
1569
 
1687
1570
 
1688
1571
  class AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUnitTestRunResultMetricEvaluationResultResult(
1689
- ConversationByTimeMetricOutputConversationCount
1572
+ ExtractActiveMemoriesAgentActionEventQueriesAndResponse
1690
1573
  ):
1691
1574
  pass
1692
1575
 
@@ -10767,13 +10650,6 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10767
10650
  )
10768
10651
 
10769
10652
 
10770
- class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10771
- description: str = Field(..., min_length=1)
10772
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10773
- ..., title='Tags'
10774
- )
10775
-
10776
-
10777
10653
  class OrganizationCreateOrganizationResponse(BaseModel):
10778
10654
  org_id: str = Field(
10779
10655
  ...,
@@ -10915,22 +10791,18 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10915
10791
  )
10916
10792
 
10917
10793
 
10918
- class OrganizationModifyOrganizationRequestUserDimensions(
10919
- RootModel[List[OrganizationCreateOrganizationRequestUserDimension]]
10920
- ):
10921
- root: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
10922
- ...,
10923
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10924
- min_length=1,
10925
- title='User Dimensions',
10926
- )
10927
-
10928
-
10929
10794
  OrganizationModifyOrganizationRequestPreferences = (
10930
10795
  OrganizationCreateOrganizationRequestPreferences
10931
10796
  )
10932
10797
 
10933
10798
 
10799
+ class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10800
+ description: str = Field(..., min_length=1)
10801
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10802
+ ..., title='Tags'
10803
+ )
10804
+
10805
+
10934
10806
  class RoleAssignRoleRequest(BaseModel):
10935
10807
  user_id: str = Field(
10936
10808
  ...,
@@ -10977,13 +10849,6 @@ class RoleModifyRoleResponse(BaseModel):
10977
10849
  )
10978
10850
 
10979
10851
 
10980
- class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10981
- llm_name: LLMType
10982
- params: Optional[Dict[str, Any]] = Field(
10983
- {}, description='LLM-specific parameters to use.', title='Params'
10984
- )
10985
-
10986
-
10987
10852
  class ServiceCreateServiceResponse(BaseModel):
10988
10853
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10989
10854
 
@@ -11059,6 +10924,13 @@ class ServiceUpdateServiceRequest(BaseModel):
11059
10924
  )
11060
10925
 
11061
10926
 
10927
+ class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
10928
+ llm_name: LLMType
10929
+ params: Optional[Dict[str, Any]] = Field(
10930
+ {}, description='LLM-specific parameters to use.', title='Params'
10931
+ )
10932
+
10933
+
11062
10934
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11063
10935
  background: str = Field(
11064
10936
  ..., description='The background of the simulation persona.', min_length=1
@@ -11177,6 +11049,16 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11177
11049
  )
11178
11050
 
11179
11051
 
11052
+ class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11053
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11054
+ run_count: int = Field(
11055
+ ...,
11056
+ description='The number of times to run the unit test.',
11057
+ gt=0,
11058
+ title='Run Count',
11059
+ )
11060
+
11061
+
11180
11062
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11181
11063
  simulation_unit_test_set_id: str = Field(
11182
11064
  ...,
@@ -11236,6 +11118,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11236
11118
  )
11237
11119
 
11238
11120
 
11121
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11122
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11123
+ name: str = Field(
11124
+ ..., description='The name of the simulation persona.', title='Name'
11125
+ )
11126
+ role: str = Field(
11127
+ ..., description='The role of the simulation persona.', title='Role'
11128
+ )
11129
+ tags: Dict[str, Optional[str]] = Field(
11130
+ ..., description='The tags of the simulation persona.', title='Tags'
11131
+ )
11132
+ is_deleted: bool = Field(
11133
+ ...,
11134
+ description='Whether the simulation persona is deleted.',
11135
+ title='Is Deleted',
11136
+ )
11137
+ created_at: AwareDatetime = Field(
11138
+ ...,
11139
+ description='The timestamp when the simulation persona was created.',
11140
+ title='Created At',
11141
+ )
11142
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11143
+ ..., description='The user who created the simulation persona.'
11144
+ )
11145
+ updated_at: AwareDatetime = Field(
11146
+ ...,
11147
+ description='The timestamp when the simulation persona was last updated.',
11148
+ title='Updated At',
11149
+ )
11150
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11151
+ Field(..., description='The user who last updated the simulation persona.')
11152
+ )
11153
+
11154
+
11239
11155
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11240
11156
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11241
11157
  ...,
@@ -11267,6 +11183,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11267
11183
  )
11268
11184
 
11269
11185
 
11186
+ class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11187
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11188
+ name: str = Field(
11189
+ ..., description='The name of the simulation scenario.', title='Name'
11190
+ )
11191
+ tags: Dict[str, Optional[str]] = Field(
11192
+ ..., description='The tags of the simulation scenario.', title='Tags'
11193
+ )
11194
+ is_deleted: bool = Field(
11195
+ ...,
11196
+ description='Whether the simulation scenario is deleted.',
11197
+ title='Is Deleted',
11198
+ )
11199
+ created_at: AwareDatetime = Field(
11200
+ ...,
11201
+ description='The timestamp when the simulation scenario was created.',
11202
+ title='Created At',
11203
+ )
11204
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11205
+ Field(..., description='The user who created the simulation scenario.')
11206
+ )
11207
+ updated_at: AwareDatetime = Field(
11208
+ ...,
11209
+ description='The timestamp when the simulation scenario was last updated.',
11210
+ title='Updated At',
11211
+ )
11212
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11213
+ Field(..., description='The user who last updated the simulation scenario.')
11214
+ )
11215
+
11216
+
11270
11217
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11271
11218
  presigned_url: str = Field(
11272
11219
  ...,
@@ -11355,68 +11302,21 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11355
11302
  )
11356
11303
 
11357
11304
 
11358
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11359
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11360
- name: str = Field(
11361
- ..., description='The name of the simulation persona.', title='Name'
11362
- )
11363
- role: str = Field(
11364
- ..., description='The role of the simulation persona.', title='Role'
11365
- )
11366
- tags: Dict[str, Optional[str]] = Field(
11367
- ..., description='The tags of the simulation persona.', title='Tags'
11368
- )
11369
- is_deleted: bool = Field(
11370
- ...,
11371
- description='Whether the simulation persona is deleted.',
11372
- title='Is Deleted',
11373
- )
11374
- created_at: AwareDatetime = Field(
11375
- ...,
11376
- description='The timestamp when the simulation persona was created.',
11377
- title='Created At',
11378
- )
11379
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11380
- ..., description='The user who created the simulation persona.'
11381
- )
11382
- updated_at: AwareDatetime = Field(
11383
- ...,
11384
- description='The timestamp when the simulation persona was last updated.',
11385
- title='Updated At',
11386
- )
11387
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11388
- Field(..., description='The user who last updated the simulation persona.')
11305
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11306
+ simulation_personas: List[
11307
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11308
+ ] = Field(
11309
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11389
11310
  )
11390
11311
 
11391
11312
 
11392
- class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11393
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11394
- name: str = Field(
11395
- ..., description='The name of the simulation scenario.', title='Name'
11396
- )
11397
- tags: Dict[str, Optional[str]] = Field(
11398
- ..., description='The tags of the simulation scenario.', title='Tags'
11399
- )
11400
- is_deleted: bool = Field(
11401
- ...,
11402
- description='Whether the simulation scenario is deleted.',
11403
- title='Is Deleted',
11404
- )
11405
- created_at: AwareDatetime = Field(
11406
- ...,
11407
- description='The timestamp when the simulation scenario was created.',
11408
- title='Created At',
11409
- )
11410
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11411
- Field(..., description='The user who created the simulation scenario.')
11412
- )
11413
- updated_at: AwareDatetime = Field(
11313
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11314
+ simulation_scenarios: List[
11315
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11316
+ ] = Field(
11414
11317
  ...,
11415
- description='The timestamp when the simulation scenario was last updated.',
11416
- title='Updated At',
11417
- )
11418
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11419
- Field(..., description='The user who last updated the simulation scenario.')
11318
+ description='The list of simulation scenarios.',
11319
+ title='Simulation Scenarios',
11420
11320
  )
11421
11321
 
11422
11322
 
@@ -11477,13 +11377,39 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11477
11377
  )
11478
11378
 
11479
11379
 
11480
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11481
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11482
- run_count: int = Field(
11483
- ...,
11484
- description='The number of times to run the unit test.',
11485
- gt=0,
11486
- title='Run Count',
11380
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11381
+ RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11382
+ ):
11383
+ root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11384
+ Field(
11385
+ ...,
11386
+ description='The unit test runs that are part of this set.',
11387
+ min_length=1,
11388
+ title='Unit Test Runs',
11389
+ )
11390
+ )
11391
+
11392
+
11393
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11394
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11395
+ None, description='The name of the simulation unit test set.'
11396
+ )
11397
+ description: Optional[
11398
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11399
+ ] = Field(
11400
+ {},
11401
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11402
+ title='Description',
11403
+ )
11404
+ unit_test_runs: Optional[
11405
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11406
+ ] = Field(
11407
+ None,
11408
+ description='The unit test runs that are part of this set.',
11409
+ title='Unit Test Runs',
11410
+ )
11411
+ tags: Optional[Dict[str, Optional[str]]] = Field(
11412
+ None, description='The tags of the simulation unit test set.', title='Tags'
11487
11413
  )
11488
11414
 
11489
11415
 
@@ -11788,6 +11714,11 @@ class UserUpdateUserInfoRequest(BaseModel):
11788
11714
  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.',
11789
11715
  title='Audio Keyterms',
11790
11716
  )
11717
+ actions_development_enabled: Optional[bool] = Field(
11718
+ None,
11719
+ description='Whether to enable Actions development access for the user. If `null`, the preference is not modified.',
11720
+ title='Actions Development Enabled',
11721
+ )
11791
11722
 
11792
11723
 
11793
11724
  class WebhookDestinationCreateWebhookDestinationRequest(BaseModel):
@@ -12137,7 +12068,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12137
12068
  [], description='The IDs of the messages to retrieve.', title='Id'
12138
12069
  )
12139
12070
  message_type: Optional[List[MessageType]] = Field(
12140
- ['external-event', 'user-message', 'agent-message'],
12071
+ ['agent-message', 'user-message', 'external-event'],
12141
12072
  description='The type of messages to retrieve.',
12142
12073
  title='Message Type',
12143
12074
  )
@@ -14562,7 +14493,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14562
14493
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14563
14494
  min_length=1,
14564
14495
  )
14565
- user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14496
+ user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14566
14497
  ...,
14567
14498
  description='User dimensions for the organization.',
14568
14499
  title='User Dimensions',
@@ -14674,36 +14605,14 @@ class OrganizationGetApiKeysResponse(BaseModel):
14674
14605
  )
14675
14606
 
14676
14607
 
14677
- class OrganizationGetOrganizationMetricsRequest(BaseModel):
14678
- metrics: List[
14679
- Union[
14680
- TotalActiveUserMetricInput,
14681
- TotalConversationCountMetricInput,
14682
- TotalMessageCountMetricInput,
14683
- ConversationByTimeMetricInput,
14684
- TotalARRMetricInput,
14685
- ]
14686
- ] = Field(
14608
+ class OrganizationModifyOrganizationRequestUserDimensions(
14609
+ RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14610
+ ):
14611
+ root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14687
14612
  ...,
14688
- description='A list of metrics to compute. Each type of metric can only appear once.',
14613
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14689
14614
  min_length=1,
14690
- title='Metrics',
14691
- )
14692
-
14693
-
14694
- class OrganizationGetOrganizationMetricsResponse(BaseModel):
14695
- metrics: List[
14696
- Union[
14697
- TotalActiveUserMetricOutput,
14698
- TotalConversationCountMetricOutput,
14699
- TotalMessageCountMetricOutput,
14700
- ConversationByTimeMetricOutput,
14701
- TotalARRMetricOutput,
14702
- ]
14703
- ] = Field(
14704
- ...,
14705
- description='The metrics that were requested, in the same order as they were requested.',
14706
- title='Metrics',
14615
+ title='User Dimensions',
14707
14616
  )
14708
14617
 
14709
14618
 
@@ -14764,7 +14673,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14764
14673
  )
14765
14674
 
14766
14675
 
14767
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14676
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14768
14677
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14769
14678
  ...,
14770
14679
  description='Whether this grant allows or denies the specified access.',
@@ -14781,45 +14690,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14781
14690
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14782
14691
 
14783
14692
 
14784
- class RoleModifyRoleRequest(BaseModel):
14785
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14786
- None,
14787
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14788
- )
14789
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14790
- None,
14791
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14792
- title='Permission Grants',
14793
- )
14794
- frontend_view: Optional[FrontendView] = Field(
14795
- None,
14796
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14797
- )
14798
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14799
- Field(
14800
- {},
14801
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14802
- title='Inherited From',
14803
- )
14804
- )
14805
-
14806
-
14807
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14808
- agent_version_number: Optional[int] = Field(
14809
- ...,
14810
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14811
- title='Agent Version Number',
14812
- )
14813
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14814
- ...,
14815
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14816
- title='Service Hierarchical State Machine Version Number',
14817
- )
14818
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14819
- Field(..., title='Llm Model Preferences')
14820
- )
14821
-
14822
-
14823
14693
  class ServiceGetServicesResponse(BaseModel):
14824
14694
  services: List[ServiceInstance] = Field(
14825
14695
  ..., description='The services that are found.', title='Services'
@@ -14840,10 +14710,20 @@ class ServiceGetServicesResponse(BaseModel):
14840
14710
  )
14841
14711
 
14842
14712
 
14843
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
14844
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14845
- ..., description='The version set to upsert.'
14713
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14714
+ agent_version_number: Optional[int] = Field(
14715
+ ...,
14716
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14717
+ title='Agent Version Number',
14718
+ )
14719
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14720
+ ...,
14721
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14722
+ title='Service Hierarchical State Machine Version Number',
14846
14723
  )
14724
+ llm_model_preferences: Dict[
14725
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14726
+ ] = Field(..., title='Llm Model Preferences')
14847
14727
 
14848
14728
 
14849
14729
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14895,7 +14775,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14895
14775
  ..., description='The description of the simulation unit test set.'
14896
14776
  )
14897
14777
  unit_test_runs: List[
14898
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14778
+ SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14899
14779
  ] = Field(
14900
14780
  ...,
14901
14781
  description='The unit test runs that are part of this set.',
@@ -14909,7 +14789,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14909
14789
 
14910
14790
  class SimulationGetSimulationPersonasResponse(BaseModel):
14911
14791
  simulation_personas: List[
14912
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14792
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14913
14793
  ] = Field(
14914
14794
  ..., description='The list of simulation personas.', title='Simulation Personas'
14915
14795
  )
@@ -14933,7 +14813,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14933
14813
 
14934
14814
  class SimulationGetSimulationScenariosResponse(BaseModel):
14935
14815
  simulation_scenarios: List[
14936
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14816
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14937
14817
  ] = Field(
14938
14818
  ...,
14939
14819
  description='The list of simulation scenarios.',
@@ -14981,24 +14861,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14981
14861
  )
14982
14862
 
14983
14863
 
14984
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14985
- simulation_personas: List[
14986
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14987
- ] = Field(
14988
- ..., description='The list of simulation personas.', title='Simulation Personas'
14989
- )
14990
-
14991
-
14992
- class SimulationSearchSimulationScenariosResponse(BaseModel):
14993
- simulation_scenarios: List[
14994
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14995
- ] = Field(
14996
- ...,
14997
- description='The list of simulation scenarios.',
14998
- title='Simulation Scenarios',
14999
- )
15000
-
15001
-
15002
14864
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
15003
14865
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
15004
14866
  ...,
@@ -15012,42 +14874,6 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15012
14874
  )
15013
14875
 
15014
14876
 
15015
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
15016
- RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
15017
- ):
15018
- root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
15019
- Field(
15020
- ...,
15021
- description='The unit test runs that are part of this set.',
15022
- min_length=1,
15023
- title='Unit Test Runs',
15024
- )
15025
- )
15026
-
15027
-
15028
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
15029
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15030
- None, description='The name of the simulation unit test set.'
15031
- )
15032
- description: Optional[
15033
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
15034
- ] = Field(
15035
- {},
15036
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
15037
- title='Description',
15038
- )
15039
- unit_test_runs: Optional[
15040
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
15041
- ] = Field(
15042
- None,
15043
- description='The unit test runs that are part of this set.',
15044
- title='Unit Test Runs',
15045
- )
15046
- tags: Optional[Dict[str, Optional[str]]] = Field(
15047
- None, description='The tags of the simulation unit test set.', title='Tags'
15048
- )
15049
-
15050
-
15051
14877
  class ToolGetToolVersionsResponse(BaseModel):
15052
14878
  tool_versions: List[ToolVersionInstance] = Field(
15053
14879
  ...,
@@ -16039,7 +15865,7 @@ class RoleCreateRoleRequest(BaseModel):
16039
15865
  description: str = Field(
16040
15866
  ..., description='A description about the role.', min_length=1
16041
15867
  )
16042
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15868
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
16043
15869
  ...,
16044
15870
  description='A list of permission grants associated with this role.',
16045
15871
  title='Permission Grants',
@@ -16065,6 +15891,29 @@ class RoleGetRolesResponse(BaseModel):
16065
15891
  )
16066
15892
 
16067
15893
 
15894
+ class RoleModifyRoleRequest(BaseModel):
15895
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15896
+ None,
15897
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
15898
+ )
15899
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
15900
+ None,
15901
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15902
+ title='Permission Grants',
15903
+ )
15904
+ frontend_view: Optional[FrontendView] = Field(
15905
+ None,
15906
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15907
+ )
15908
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
15909
+ Field(
15910
+ {},
15911
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
15912
+ title='Inherited From',
15913
+ )
15914
+ )
15915
+
15916
+
16068
15917
  class ServiceCreateServiceRequest(BaseModel):
16069
15918
  service_hierarchical_state_machine_id: str = Field(
16070
15919
  ...,
@@ -16087,9 +15936,11 @@ class ServiceCreateServiceRequest(BaseModel):
16087
15936
  description='Whether the newly-created service is active. Only active services are visible to users on the dashboard. You can later adjust the activeness of this service.',
16088
15937
  title='Is Active',
16089
15938
  )
16090
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16091
- None,
16092
- 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.',
15939
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
15940
+ Field(
15941
+ None,
15942
+ description='The `release` version set to use for this service. If not specified, the `release` version set will be the same as the `edge` version set, which uses the\nlatest agent and state machine versions with no model preference.',
15943
+ )
16093
15944
  )
16094
15945
  keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
16095
15946
  [],
@@ -16102,6 +15953,12 @@ class ServiceCreateServiceRequest(BaseModel):
16102
15953
  )
16103
15954
 
16104
15955
 
15956
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
15957
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
15958
+ ..., description='The version set to upsert.'
15959
+ )
15960
+
15961
+
16105
15962
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16106
15963
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16107
15964
  description: str = Field(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.90.0
3
+ Version: 0.92.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=Mxe_TpbSCMUnWJ10nBK8qAyp4UYKGdxV7vy9wfe0L-g,139
1
+ amigo_sdk/__init__.py,sha256=_-KncYKnvsdmQgLvtUfo0Nts6Ti77hmOpAVddK1uavE,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=dDPj9a9EKB686jU0GAkgIZ2S6ck7gF62__tSuetlqbE,459444
9
+ amigo_sdk/generated/model.py,sha256=JKajQhqIWAtaNWGEFpTWgKiso8_jNtuHINQEGRHwl1Q,454821
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.90.0.dist-info/METADATA,sha256=3uCo-lU99nVRntaSm9B4-oJmYD0c8m0phNMMpfLpBdI,8499
15
- amigo_sdk-0.90.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.90.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.90.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.90.0.dist-info/RECORD,,
14
+ amigo_sdk-0.92.0.dist-info/METADATA,sha256=UdzzI6jfIOFjlFuwKYlq169EwAu8RVDnxzWpKu49Now,8499
15
+ amigo_sdk-0.92.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.92.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.92.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.92.0.dist-info/RECORD,,