amigo_sdk 0.106.0__py3-none-any.whl → 0.108.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.
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: <stdin>
3
- # timestamp: 2026-01-25T17:11:35+00:00
3
+ # timestamp: 2026-02-03T19:01:46+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -463,11 +463,12 @@ class JumpbackStateTransitionLog(BaseModel):
463
463
 
464
464
  class LLMType(Enum):
465
465
  azure_gpt_4_1_2025_04_14 = 'azure_gpt-4.1-2025-04-14'
466
+ openai_gpt_4_1_2025_04_14 = 'openai_gpt-4.1-2025-04-14'
466
467
  azure_gpt_4_1_mini_2025_04_14 = 'azure_gpt-4.1-mini-2025-04-14'
467
- azure_gpt_5_2025_08_07 = 'azure_gpt-5-2025-08-07'
468
- azure_gpt_5_mini_2025_08_07 = 'azure_gpt-5-mini-2025-08-07'
469
468
  azure_gpt_5_nano_2025_08_07 = 'azure_gpt-5-nano-2025-08-07'
470
469
  azure_gpt_5_1_2025_11_13 = 'azure_gpt-5.1-2025-11-13'
470
+ azure_gpt_5_2_2025_12_11 = 'azure_gpt-5.2-2025-12-11'
471
+ openai_gpt_5_2_2025_12_11 = 'openai_gpt-5.2-2025-12-11'
471
472
  google_claude_sonnet_4_5_20250929 = 'google_claude-sonnet-4-5@20250929'
472
473
  aws_claude_sonnet_4_5_20250929 = 'aws_claude-sonnet-4-5-20250929'
473
474
  google_gemini_2_5_pro = 'google_gemini-2.5-pro'
@@ -769,6 +770,10 @@ class Prompt(BaseModel):
769
770
  )
770
771
 
771
772
 
773
+ class Queries(RootModel[list[str]]):
774
+ root: list[str] = Field(..., min_length=1, title='Queries')
775
+
776
+
772
777
  class NextState4(RootModel[tuple[str, str]]):
773
778
  root: tuple[str, str] = Field(
774
779
  ...,
@@ -1009,10 +1014,6 @@ class StateTransitionInvocationMetadata(BaseModel):
1009
1014
  )
1010
1015
 
1011
1016
 
1012
- class StrippedNonemptyString(RootModel[str]):
1013
- root: str = Field(..., max_length=512, min_length=1, pattern='^[^/]+$')
1014
-
1015
-
1016
1017
  class StrippedNonemptyStringWS(RootModel[str]):
1017
1018
  root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
1018
1019
 
@@ -1212,6 +1213,12 @@ class UserMessageAvailableEvent(BaseModel):
1212
1213
  )
1213
1214
 
1214
1215
 
1216
+ class ValidationError(BaseModel):
1217
+ loc: list[str | int] = Field(..., title='Location')
1218
+ msg: str = Field(..., title='Message')
1219
+ type: str = Field(..., title='Error Type')
1220
+
1221
+
1215
1222
  class Verb(Enum):
1216
1223
  field__ = '=='
1217
1224
  field___1 = '!='
@@ -1225,6 +1232,15 @@ class VersionComponent(RootModel[int | Literal['latest']]):
1225
1232
  root: int | Literal['latest']
1226
1233
 
1227
1234
 
1235
+ class VoiceConfigInstance(BaseModel):
1236
+ voice_id: str = Field(
1237
+ ..., description='The Cartesia voice ID for this agent.', title='Voice Id'
1238
+ )
1239
+ stability: float | None = Field(0, title='Stability')
1240
+ similarity_boost: float | None = Field(0, title='Similarity Boost')
1241
+ style: float | None = Field(0, title='Style')
1242
+
1243
+
1228
1244
  class WebhookDeliveryStatus(Enum):
1229
1245
  success = 'success'
1230
1246
  failed = 'failed'
@@ -1309,27 +1325,6 @@ class MongoCollectionsAgentAgentIdentityRelationshipToDeveloper(BaseModel):
1309
1325
  )
1310
1326
 
1311
1327
 
1312
- class MongoCollectionsAgentAgentVoiceConfig(BaseModel):
1313
- voice_id: str = Field(
1314
- ..., description='The Elevenlabs voice ID for this agent.', title='Voice Id'
1315
- )
1316
- stability: float = Field(
1317
- ...,
1318
- description='How stable the voice is and the randomness between each generation. The higher the more stable the voice is.',
1319
- title='Stability',
1320
- )
1321
- similarity_boost: float = Field(
1322
- ...,
1323
- description='How closely the AI should adhere to the original voice when attempting to replicate it. The higher the more similar the generated audio is to the\noriginal voice.',
1324
- title='Similarity Boost',
1325
- )
1326
- style: float = Field(
1327
- ...,
1328
- description='How much to exaggerate the original voice styles of the speaker. The higher the more exaggeration there is.',
1329
- title='Style',
1330
- )
1331
-
1332
-
1333
1328
  class MongoCollectionsApiKeyAPIKeyUserInfo(BaseModel):
1334
1329
  user_id: str = Field(
1335
1330
  ..., description='The user ID of the creator of this key.', title='User Id'
@@ -1393,9 +1388,9 @@ class MongoCollectionsMetricEvaluationResultMetricEvaluationResultManualEvaluati
1393
1388
  pass
1394
1389
 
1395
1390
 
1396
- class Action(Enum):
1397
- allow = 'Allow'
1398
- deny = 'Deny'
1391
+ class MongoCollectionsServiceServiceTag(BaseModel):
1392
+ key: str = Field(..., title='Key')
1393
+ value: str | None = Field(..., title='Value')
1399
1394
 
1400
1395
 
1401
1396
  class MongoCollectionsServiceServiceVersionSet(BaseModel):
@@ -1464,11 +1459,6 @@ class MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo(
1464
1459
  pass
1465
1460
 
1466
1461
 
1467
- class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1468
- key: str = Field(..., title='Key')
1469
- value: str | None = Field(..., title='Value')
1470
-
1471
-
1472
1462
  class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1473
1463
  BaseModel
1474
1464
  ):
@@ -1503,6 +1493,12 @@ class MongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo(
1503
1493
  pass
1504
1494
 
1505
1495
 
1496
+ class MongoCollectionsTemporaryPermissionGrantTemporaryPermissionGrantUserInfo(
1497
+ MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1498
+ ):
1499
+ pass
1500
+
1501
+
1506
1502
  class MongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1507
1503
  major: int = Field(..., title='Major')
1508
1504
  minor: int = Field(..., title='Minor')
@@ -1743,7 +1739,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolC
1743
1739
  description="Additional instruction to be supplied to the LLM in addition to the tool's description.",
1744
1740
  min_length=1,
1745
1741
  )
1746
- audio_fillers: list[StrippedNonemptyString] = Field(
1742
+ audio_fillers: list[PydanticBaseModelStrippedNonemptyString1] = Field(
1747
1743
  ...,
1748
1744
  description='A list of audio fillers to play in audio mode if the tool is taking a long time.',
1749
1745
  max_length=5,
@@ -1819,6 +1815,20 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1819
1815
  )
1820
1816
 
1821
1817
 
1818
+ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1819
+ BaseModel
1820
+ ):
1821
+ id: str = Field(..., title='Id')
1822
+ name: str = Field(..., title='Name')
1823
+ is_active: bool = Field(..., title='Is Active')
1824
+ applied_to_services: list[str] = Field(..., title='Applied To Services')
1825
+ tags: dict[str, str | None] = Field(..., title='Tags')
1826
+ created_at: AwareDatetime = Field(..., title='Created At')
1827
+ creator: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1828
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1829
+ updated_by: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1830
+
1831
+
1822
1832
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1823
1833
  applied_to_services_ids: list[str] = Field(
1824
1834
  ...,
@@ -1839,18 +1849,14 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1839
1849
  )
1840
1850
 
1841
1851
 
1842
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1843
- BaseModel
1844
- ):
1845
- id: str = Field(..., title='Id')
1846
- name: str = Field(..., title='Name')
1847
- is_active: bool = Field(..., title='Is Active')
1848
- applied_to_services: list[str] = Field(..., title='Applied To Services')
1849
- tags: dict[str, str | None] = Field(..., title='Tags')
1850
- created_at: AwareDatetime = Field(..., title='Created At')
1851
- creator: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1852
- updated_at: AwareDatetime = Field(..., title='Updated At')
1853
- updated_by: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1852
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1853
+ dynamic_behavior_sets: list[
1854
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1855
+ ] = Field(
1856
+ ...,
1857
+ description='The retrieved dynamic behavior sets.',
1858
+ title='Dynamic Behavior Sets',
1859
+ )
1854
1860
 
1855
1861
 
1856
1862
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequest(BaseModel):
@@ -9908,15 +9914,6 @@ class OrganizationCreateAgentVersionRequestIdentityRelationshipToDeveloper(BaseM
9908
9914
  thought_visibility: str = Field(..., min_length=1)
9909
9915
 
9910
9916
 
9911
- class OrganizationCreateAgentVersionRequestVoiceConfig(BaseModel):
9912
- voice_id: str = Field(
9913
- ..., description='The Elevenlabs voice ID for this agent.', title='Voice Id'
9914
- )
9915
- stability: float = Field(..., ge=0.0, le=1.0, title='Stability')
9916
- similarity_boost: float = Field(..., ge=0.0, le=1.0, title='Similarity Boost')
9917
- style: float = Field(..., ge=0.0, le=1.0, title='Style')
9918
-
9919
-
9920
9917
  class OrganizationCreateAgentVersionResponse(BaseModel):
9921
9918
  id: str = Field(..., description='The ID of the new agent version.', title='Id')
9922
9919
  version: int = Field(
@@ -9932,6 +9929,10 @@ class OrganizationCreateAgentVersionResponse(BaseModel):
9932
9929
 
9933
9930
 
9934
9931
  class OrganizationCreateApiKeyRequest(BaseModel):
9932
+ name: PydanticBaseModelStrippedNonemptyString1 | None = Field(
9933
+ ...,
9934
+ description='An optional name for the API key for easier identification by users.',
9935
+ )
9935
9936
  duration: timedelta = Field(
9936
9937
  ...,
9937
9938
  description='The valid duration of the API key. Should be supplied in the [ISO8601 format](https://en.wikipedia.org/wiki/ISO_8601#Durations). Must be between 1 to 90 days.',
@@ -10620,7 +10621,7 @@ class NextState9(NextState7):
10620
10621
  pass
10621
10622
 
10622
10623
 
10623
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10624
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10624
10625
  BaseModel
10625
10626
  ):
10626
10627
  description: str = Field(..., min_length=1)
@@ -10646,7 +10647,7 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestToolCallSpe
10646
10647
  description="Additional instruction to be supplied to the LLM in addition to the tool's description.",
10647
10648
  min_length=1,
10648
10649
  )
10649
- audio_fillers: list[StrippedNonemptyString] = Field(
10650
+ audio_fillers: list[PydanticBaseModelStrippedNonemptyString1] = Field(
10650
10651
  ...,
10651
10652
  description='A list of audio fillers to play in audio mode if the tool is taking a long time.',
10652
10653
  max_length=5,
@@ -10796,6 +10797,19 @@ class RoleCreateRoleResponse(BaseModel):
10796
10797
  )
10797
10798
 
10798
10799
 
10800
+ class RoleCreateTemporaryPermissionGrantResponse(BaseModel):
10801
+ temporary_permission_grant_id: str = Field(
10802
+ ...,
10803
+ description='The ID of the created temporary permission grant.',
10804
+ title='Temporary Permission Grant Id',
10805
+ )
10806
+ expires_at: AwareDatetime = Field(
10807
+ ...,
10808
+ description='The time in UTC at which the permission grant expires.',
10809
+ title='Expires At',
10810
+ )
10811
+
10812
+
10799
10813
  class RoleModifyRoleResponse(BaseModel):
10800
10814
  role_id: str = Field(
10801
10815
  ..., description='The identifier of the updated role.', title='Role Id'
@@ -10989,6 +11003,16 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
10989
11003
  )
10990
11004
 
10991
11005
 
11006
+ class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11007
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11008
+ run_count: int = Field(
11009
+ ...,
11010
+ description='The number of times to run the unit test.',
11011
+ gt=0,
11012
+ title='Run Count',
11013
+ )
11014
+
11015
+
10992
11016
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
10993
11017
  simulation_unit_test_set_id: str = Field(
10994
11018
  ...,
@@ -11046,6 +11070,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11046
11070
  )
11047
11071
 
11048
11072
 
11073
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11074
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11075
+ name: str = Field(
11076
+ ..., description='The name of the simulation persona.', title='Name'
11077
+ )
11078
+ role: str = Field(
11079
+ ..., description='The role of the simulation persona.', title='Role'
11080
+ )
11081
+ tags: dict[str, str | None] = Field(
11082
+ ..., description='The tags of the simulation persona.', title='Tags'
11083
+ )
11084
+ is_deleted: bool = Field(
11085
+ ...,
11086
+ description='Whether the simulation persona is deleted.',
11087
+ title='Is Deleted',
11088
+ )
11089
+ created_at: AwareDatetime = Field(
11090
+ ...,
11091
+ description='The timestamp when the simulation persona was created.',
11092
+ title='Created At',
11093
+ )
11094
+ creator: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11095
+ ..., description='The user who created the simulation persona.'
11096
+ )
11097
+ updated_at: AwareDatetime = Field(
11098
+ ...,
11099
+ description='The timestamp when the simulation persona was last updated.',
11100
+ title='Updated At',
11101
+ )
11102
+ updated_by: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11103
+ ..., description='The user who last updated the simulation persona.'
11104
+ )
11105
+
11106
+
11049
11107
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11050
11108
  simulation_scenario_versions: list[SimulationScenarioVersion] = Field(
11051
11109
  ...,
@@ -11077,37 +11135,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11077
11135
  )
11078
11136
 
11079
11137
 
11080
- class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11081
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11082
- name: str = Field(
11083
- ..., description='The name of the simulation scenario.', title='Name'
11084
- )
11085
- tags: dict[str, str | None] = Field(
11086
- ..., description='The tags of the simulation scenario.', title='Tags'
11087
- )
11088
- is_deleted: bool = Field(
11089
- ...,
11090
- description='Whether the simulation scenario is deleted.',
11091
- title='Is Deleted',
11092
- )
11093
- created_at: AwareDatetime = Field(
11094
- ...,
11095
- description='The timestamp when the simulation scenario was created.',
11096
- title='Created At',
11097
- )
11098
- creator: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11099
- ..., description='The user who created the simulation scenario.'
11100
- )
11101
- updated_at: AwareDatetime = Field(
11102
- ...,
11103
- description='The timestamp when the simulation scenario was last updated.',
11104
- title='Updated At',
11105
- )
11106
- updated_by: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11107
- ..., description='The user who last updated the simulation scenario.'
11108
- )
11109
-
11110
-
11111
11138
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11112
11139
  presigned_url: str = Field(
11113
11140
  ...,
@@ -11196,47 +11223,42 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11196
11223
  )
11197
11224
 
11198
11225
 
11199
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11200
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11201
- name: str = Field(
11202
- ..., description='The name of the simulation persona.', title='Name'
11226
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11227
+ simulation_personas: list[
11228
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11229
+ ] = Field(
11230
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11203
11231
  )
11204
- role: str = Field(
11205
- ..., description='The role of the simulation persona.', title='Role'
11232
+
11233
+
11234
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11235
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11236
+ name: str = Field(
11237
+ ..., description='The name of the simulation scenario.', title='Name'
11206
11238
  )
11207
11239
  tags: dict[str, str | None] = Field(
11208
- ..., description='The tags of the simulation persona.', title='Tags'
11240
+ ..., description='The tags of the simulation scenario.', title='Tags'
11209
11241
  )
11210
11242
  is_deleted: bool = Field(
11211
11243
  ...,
11212
- description='Whether the simulation persona is deleted.',
11244
+ description='Whether the simulation scenario is deleted.',
11213
11245
  title='Is Deleted',
11214
11246
  )
11215
11247
  created_at: AwareDatetime = Field(
11216
11248
  ...,
11217
- description='The timestamp when the simulation persona was created.',
11249
+ description='The timestamp when the simulation scenario was created.',
11218
11250
  title='Created At',
11219
11251
  )
11220
- creator: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11221
- ..., description='The user who created the simulation persona.'
11252
+ creator: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11253
+ ..., description='The user who created the simulation scenario.'
11222
11254
  )
11223
11255
  updated_at: AwareDatetime = Field(
11224
11256
  ...,
11225
- description='The timestamp when the simulation persona was last updated.',
11257
+ description='The timestamp when the simulation scenario was last updated.',
11226
11258
  title='Updated At',
11227
11259
  )
11228
- updated_by: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11229
- ..., description='The user who last updated the simulation persona.'
11230
- )
11231
-
11232
-
11233
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11234
- simulation_scenarios: list[
11235
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11236
- ] = Field(
11237
- ...,
11238
- description='The list of simulation scenarios.',
11239
- title='Simulation Scenarios',
11260
+ updated_by: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11261
+ ..., description='The user who last updated the simulation scenario.'
11240
11262
  )
11241
11263
 
11242
11264
 
@@ -11302,13 +11324,35 @@ class RunCount(RootModel[int]):
11302
11324
  )
11303
11325
 
11304
11326
 
11305
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11306
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11307
- run_count: int = Field(
11308
- ...,
11309
- description='The number of times to run the unit test.',
11310
- gt=0,
11311
- title='Run Count',
11327
+ class UnitTestRuns(
11328
+ RootModel[list[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11329
+ ):
11330
+ root: list[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11331
+ Field(
11332
+ ...,
11333
+ description='The unit test runs that are part of this set.',
11334
+ min_length=1,
11335
+ title='Unit Test Runs',
11336
+ )
11337
+ )
11338
+
11339
+
11340
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11341
+ name: PydanticBaseModelStrippedNonemptyString1 | None = Field(
11342
+ None, description='The name of the simulation unit test set.'
11343
+ )
11344
+ description: PydanticBaseModelStrippedNonemptyString1 | FieldNotSet | None = Field(
11345
+ default_factory=lambda: PydanticBaseModelStrippedNonemptyString1({}),
11346
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11347
+ title='Description',
11348
+ )
11349
+ unit_test_runs: UnitTestRuns | None = Field(
11350
+ None,
11351
+ description='The unit test runs that are part of this set.',
11352
+ title='Unit Test Runs',
11353
+ )
11354
+ tags: dict[str, str | None] | None = Field(
11355
+ None, description='The tags of the simulation unit test set.', title='Tags'
11312
11356
  )
11313
11357
 
11314
11358
 
@@ -11345,22 +11389,6 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11345
11389
  )
11346
11390
 
11347
11391
 
11348
- class InvocationMode(Enum):
11349
- regular = 'regular'
11350
- conversation_simulation = 'conversation-simulation'
11351
-
11352
-
11353
- class ToolInvokeToolVersionRequestInput(BaseModel):
11354
- input_parameters: dict[str, Any] = Field(
11355
- ...,
11356
- description='The input parameters for the tool invocation.',
11357
- title='Input Parameters',
11358
- )
11359
- invocation_mode: InvocationMode = Field(
11360
- ..., description='The mode of invocation.', title='Invocation Mode'
11361
- )
11362
-
11363
-
11364
11392
  class ToolModifyToolRequest(BaseModel):
11365
11393
  description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
11366
11394
  None, description='A description of this tool. Only updates if not-null.'
@@ -11400,34 +11428,19 @@ class ToolPublishToolVersionResponse(BaseModel):
11400
11428
  )
11401
11429
 
11402
11430
 
11403
- class ToolTestToolRequest(BaseModel):
11404
- inputs: list[ToolInvokeToolVersionRequestInput] = Field(
11431
+ class InvocationMode(Enum):
11432
+ regular = 'regular'
11433
+ conversation_simulation = 'conversation-simulation'
11434
+
11435
+
11436
+ class ToolTestToolRequestInput(BaseModel):
11437
+ input_parameters: dict[str, Any] = Field(
11405
11438
  ...,
11406
- description='The list of inputs for the tool invocation.',
11407
- max_length=10,
11408
- min_length=1,
11409
- title='Inputs',
11439
+ description='The input parameters for the tool invocation.',
11440
+ title='Input Parameters',
11410
11441
  )
11411
- commit_branch: str = Field(
11412
- ...,
11413
- description='The branch in the tools repo whose tip will be tested.',
11414
- title='Commit Branch',
11415
- )
11416
- project_path: str = Field(
11417
- ...,
11418
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11419
- pattern='^[-\\w\\d_/]+$',
11420
- title='Project Path',
11421
- )
11422
- required_envvars: dict[str, str] = Field(
11423
- ...,
11424
- description='The environment variables required for the tool to run.',
11425
- title='Required Envvars',
11426
- )
11427
- required_secret_envvars: dict[str, str] = Field(
11428
- ...,
11429
- description='The secret environment variables required for the tool to run.',
11430
- title='Required Secret Envvars',
11442
+ invocation_mode: InvocationMode = Field(
11443
+ ..., description='The mode of invocation.', title='Invocation Mode'
11431
11444
  )
11432
11445
 
11433
11446
 
@@ -11497,7 +11510,7 @@ class UserGetMemoriesResponse(BaseModel):
11497
11510
  )
11498
11511
 
11499
11512
 
11500
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11513
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11501
11514
  num_conversations: int = Field(
11502
11515
  ...,
11503
11516
  description='The number of conversations the user has created.',
@@ -11592,11 +11605,6 @@ class UserUpdateUserInfoRequest(BaseModel):
11592
11605
  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.',
11593
11606
  title='Audio Keyterms',
11594
11607
  )
11595
- actions_development_enabled: bool | None = Field(
11596
- None,
11597
- description='Whether to enable Actions development access for the user. If `null`, the preference is not modified.',
11598
- title='Actions Development Enabled',
11599
- )
11600
11608
 
11601
11609
 
11602
11610
  class WebhookDestinationCreateWebhookDestinationRequest(BaseModel):
@@ -11929,7 +11937,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11929
11937
  title='Id',
11930
11938
  )
11931
11939
  message_type: list[MessageType] | None = Field(
11932
- ['user-message', 'agent-message', 'external-event'],
11940
+ ['external-event', 'agent-message', 'user-message'],
11933
11941
  description='The type of messages to retrieve.',
11934
11942
  title='Message Type',
11935
11943
  )
@@ -11982,7 +11990,7 @@ class InteractWithConversationParametersQuery(BaseModel):
11982
11990
  )
11983
11991
 
11984
11992
 
11985
- class ExternalEventMessageContent(PydanticBaseModelStrippedNonemptyString1):
11993
+ class ExternalEventMessageContentItem(PydanticBaseModelStrippedNonemptyString1):
11986
11994
  pass
11987
11995
 
11988
11996
 
@@ -11991,15 +11999,17 @@ class InteractWithConversationRequest1(BaseModel):
11991
11999
  ..., title='Initial Message Type'
11992
12000
  )
11993
12001
  recorded_message: str = Field(..., min_length=1)
11994
- external_event_message_contents: list[ExternalEventMessageContent] | None = Field(
11995
- default_factory=list,
11996
- description='The contents of external event messages to be inserted before the initial message, in chronological order.',
11997
- title='External Event Message Contents',
12002
+ external_event_message_content: list[ExternalEventMessageContentItem] | None = (
12003
+ Field(
12004
+ default_factory=list,
12005
+ description='The contents of external event messages to be inserted before the initial message, in chronological order.',
12006
+ title='External Event Message Content',
12007
+ )
11998
12008
  )
11999
- external_event_message_timestamps: list[AwareDatetime] | None = Field(
12009
+ external_event_message_timestamp: list[AwareDatetime] | None = Field(
12000
12010
  [],
12001
12011
  description='The timestamps of external event messages to be inserted before the initial message, in chronological order.',
12002
- title='External Event Message Timestamps',
12012
+ title='External Event Message Timestamp',
12003
12013
  )
12004
12014
 
12005
12015
 
@@ -12008,15 +12018,17 @@ class InteractWithConversationRequest2(BaseModel):
12008
12018
  ..., title='Initial Message Type'
12009
12019
  )
12010
12020
  recorded_message: str = Field(..., min_length=1)
12011
- external_event_message_contents: list[ExternalEventMessageContent] | None = Field(
12012
- default_factory=list,
12013
- description='The contents of external event messages to be inserted before the initial message, in chronological order.',
12014
- title='External Event Message Contents',
12021
+ external_event_message_content: list[ExternalEventMessageContentItem] | None = (
12022
+ Field(
12023
+ default_factory=list,
12024
+ description='The contents of external event messages to be inserted before the initial message, in chronological order.',
12025
+ title='External Event Message Content',
12026
+ )
12015
12027
  )
12016
- external_event_message_timestamps: list[AwareDatetime] | None = Field(
12028
+ external_event_message_timestamp: list[AwareDatetime] | None = Field(
12017
12029
  [],
12018
12030
  description='The timestamps of external event messages to be inserted before the initial message, in chronological order.',
12019
- title='External Event Message Timestamps',
12031
+ title='External Event Message Timestamp',
12020
12032
  )
12021
12033
 
12022
12034
 
@@ -12028,17 +12040,19 @@ class InteractWithConversationRequest3(BaseModel):
12028
12040
  max_length=0,
12029
12041
  title='Recorded Message',
12030
12042
  )
12031
- external_event_message_contents: list[ExternalEventMessageContent] | None = Field(
12032
- default_factory=list,
12033
- description='Must be empty, as external event messages cannot be sent with skips.',
12034
- max_length=0,
12035
- title='External Event Message Contents',
12043
+ external_event_message_content: list[ExternalEventMessageContentItem] | None = (
12044
+ Field(
12045
+ default_factory=list,
12046
+ description='Must be empty, as external event messages cannot be sent with skips.',
12047
+ max_length=0,
12048
+ title='External Event Message Content',
12049
+ )
12036
12050
  )
12037
- external_event_message_timestamps: list[AwareDatetime] | None = Field(
12051
+ external_event_message_timestamp: list[AwareDatetime] | None = Field(
12038
12052
  [],
12039
12053
  description='Must be empty, as external event messages cannot be sent with skips.',
12040
12054
  max_length=0,
12041
- title='External Event Message Timestamps',
12055
+ title='External Event Message Timestamp',
12042
12056
  )
12043
12057
 
12044
12058
 
@@ -12135,6 +12149,56 @@ class SearchUsersParametersQuery(BaseModel):
12135
12149
  )
12136
12150
 
12137
12151
 
12152
+ class GetTemporaryPermissionGrantsParametersQuery(BaseModel):
12153
+ id: list[IdItem] | None = Field(
12154
+ default_factory=list,
12155
+ description='The IDs of the temporary permission grants to retrieve.',
12156
+ title='Id',
12157
+ )
12158
+ user_id: list[str] | None = Field(
12159
+ [],
12160
+ description='The user IDs of the temporary permission grants to retrieve.',
12161
+ title='User Id',
12162
+ )
12163
+ permission_grant_name: str | None = Field(
12164
+ None,
12165
+ description='The permission name of the grants.',
12166
+ title='Permission Grant Name',
12167
+ )
12168
+ is_expired: bool | None = Field(
12169
+ None,
12170
+ description='Whether to only return expired or unexpired temporary permission grants.',
12171
+ title='Is Expired',
12172
+ )
12173
+ limit: int | None = Field(
12174
+ 10,
12175
+ description='The maximum number of temporary permission grants to return.',
12176
+ ge=0,
12177
+ le=10,
12178
+ title='Limit',
12179
+ )
12180
+ continuation_token: int | None = Field(
12181
+ 0,
12182
+ description='The continuation token to use to retrieve the next set of temporary permission grants.',
12183
+ title='Continuation Token',
12184
+ )
12185
+ creator: list[str] | None = Field(
12186
+ [],
12187
+ description='The creators of the temporary permission grants.',
12188
+ title='Creator',
12189
+ )
12190
+ tag: list[str] | None = Field(
12191
+ [],
12192
+ description='The tags of the temporary permission grants. Must be specified using the syntax `key:value`, which means to match all sets with the given `key` and `value` pair among its tags. If `value` is `*`, it means the `value` does not matter. If `value` is empty, it matches against when the value is `None`.',
12193
+ title='Tag',
12194
+ )
12195
+ sort_by: list[str] | None = Field(
12196
+ [],
12197
+ description='The fields to sort the sets by. Supported fields are `user_id`, `expires_at`, and `permission_grant.permission_name`. Specify a `+` before the field name to indicate ascending sorting and `-` for descending sorting. Multiple fields can be specified to break ties.',
12198
+ title='Sort By',
12199
+ )
12200
+
12201
+
12138
12202
  class GetRolesV1OrganizationRoleGetParametersQuery(BaseModel):
12139
12203
  return_permission_grants: bool | None = Field(
12140
12204
  False,
@@ -13095,6 +13159,11 @@ class APIKey(BaseModel):
13095
13159
  description='The index of this API key, which is an integer between 0 to 19. An org cannot have more than 1 API key with the same index.',
13096
13160
  title='Index',
13097
13161
  )
13162
+ name: str | None = Field(
13163
+ ...,
13164
+ description='An optional name for the API key for easier identification by users.',
13165
+ title='Name',
13166
+ )
13098
13167
 
13099
13168
 
13100
13169
  class ActionStateInput(BaseModel):
@@ -13114,7 +13183,7 @@ class ActionStateInput(BaseModel):
13114
13183
  ..., title='Boundary Constraints'
13115
13184
  )
13116
13185
  exit_conditions: list[
13117
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
13186
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
13118
13187
  ] = Field(..., title='Exit Conditions')
13119
13188
  action_tool_call_specs: list[
13120
13189
  OrganizationCreateServiceHierarchicalStateMachineVersionRequestToolCallSpec
@@ -13256,24 +13325,26 @@ class ChangeToolCandidatesActionOutput(BaseModel):
13256
13325
  )
13257
13326
 
13258
13327
 
13328
+ class Condition(RootModel[EqualCondition | InCondition | NotEqualCondition]):
13329
+ root: EqualCondition | InCondition | NotEqualCondition = Field(
13330
+ ..., discriminator='type'
13331
+ )
13332
+
13333
+
13259
13334
  class DecisionStateInput(BaseModel):
13260
13335
  type: Literal['decision'] = Field(..., title='Type')
13261
13336
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
13262
13337
  exit_conditions: list[
13263
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
13338
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
13264
13339
  ] = Field(..., title='Exit Conditions')
13265
13340
  decision_guidelines: list[PydanticBaseModelStrippedNonemptyString1] = Field(
13266
13341
  ..., title='Decision Guidelines'
13267
13342
  )
13268
- objective: str = Field(
13269
- ...,
13270
- description='The objective the agent is trying to achieve in this decision state.',
13271
- min_length=1,
13272
- )
13343
+ objective: str = Field(..., min_length=1)
13273
13344
  tool_call_specs: list[
13274
13345
  OrganizationCreateServiceHierarchicalStateMachineVersionRequestToolCallSpec
13275
13346
  ] = Field(..., title='Tool Call Specs')
13276
- audio_fillers: list[StrippedNonemptyString] = Field(
13347
+ audio_fillers: list[PydanticBaseModelStrippedNonemptyString1] = Field(
13277
13348
  ...,
13278
13349
  description='A list of audio fillers to play in audio mode if the `select-next-state-for-decision-state` prompt is taking too long to process.',
13279
13350
  max_length=5,
@@ -13370,6 +13441,10 @@ class DeleteRequest(BaseModel):
13370
13441
  )
13371
13442
 
13372
13443
 
13444
+ class HTTPValidationError(BaseModel):
13445
+ detail: list[ValidationError] | None = Field(None, title='Detail')
13446
+
13447
+
13373
13448
  class InsertRequest(BaseModel):
13374
13449
  name: str = Field(
13375
13450
  ...,
@@ -13447,9 +13522,14 @@ class NumericalMetricSuccessCriterion(BaseModel):
13447
13522
  threshold: float = Field(..., title='Threshold')
13448
13523
 
13449
13524
 
13450
- class Queries(RootModel[list[PydanticBaseModelStrippedNonemptyString1]]):
13451
- root: list[PydanticBaseModelStrippedNonemptyString1] = Field(
13452
- ..., min_length=1, title='Queries'
13525
+ class PermissionGrantInstance(BaseModel):
13526
+ permission_name: str = Field(
13527
+ ..., description='The name of the permission.', title='Permission Name'
13528
+ )
13529
+ conditions: dict[str, EqualCondition | InCondition | NotEqualCondition] = Field(
13530
+ ...,
13531
+ description='A dictionary of attribute name to condition that must be met for this grant to be applicable.',
13532
+ title='Conditions',
13453
13533
  )
13454
13534
 
13455
13535
 
@@ -13470,7 +13550,7 @@ class ReflectionStateInput(BaseModel):
13470
13550
  tool_call_specs: list[
13471
13551
  OrganizationCreateServiceHierarchicalStateMachineVersionRequestToolCallSpec
13472
13552
  ] = Field(..., title='Tool Call Specs')
13473
- audio_fillers: list[StrippedNonemptyString] = Field(
13553
+ audio_fillers: list[PydanticBaseModelStrippedNonemptyString1] = Field(
13474
13554
  ...,
13475
13555
  description='A list of audio fillers to play in audio mode if the reflection is taking too long to be generated.',
13476
13556
  max_length=5,
@@ -13602,7 +13682,7 @@ class ServiceInstance(BaseModel):
13602
13682
  agent_id: str = Field(
13603
13683
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13604
13684
  )
13605
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13685
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
13606
13686
  ..., description='The tags of the service.', title='Tags'
13607
13687
  )
13608
13688
  keyterms: list[str] = Field(
@@ -13660,7 +13740,7 @@ class SimulationUnitTestSet(BaseModel):
13660
13740
  description='Whether the unit test set has been deleted.',
13661
13741
  title='Is Deleted',
13662
13742
  )
13663
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13743
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
13664
13744
  ..., description='The tags of the simulation unit test set.', title='Tags'
13665
13745
  )
13666
13746
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13697,7 +13777,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13697
13777
  description='Whether the unit test set has been deleted.',
13698
13778
  title='Is Deleted',
13699
13779
  )
13700
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13780
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
13701
13781
  ..., description='The tags of the simulation unit test set.', title='Tags'
13702
13782
  )
13703
13783
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13726,7 +13806,7 @@ class ToolCallStateInput(BaseModel):
13726
13806
  OrganizationCreateServiceHierarchicalStateMachineVersionRequestToolCallSpec
13727
13807
  )
13728
13808
  designated_tool_call_params_generation_audio_fillers: list[
13729
- StrippedNonemptyString
13809
+ PydanticBaseModelStrippedNonemptyString1
13730
13810
  ] = Field(
13731
13811
  ..., max_length=5, title='Designated Tool Call Params Generation Audio Fillers'
13732
13812
  )
@@ -13825,7 +13905,7 @@ class ToolInstance(BaseModel):
13825
13905
  description='A list of encrypted environment variables that some versions of this tool uses.',
13826
13906
  title='Secret Envvars',
13827
13907
  )
13828
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13908
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
13829
13909
  ..., description='The tags of the simulation persona.', title='Tags'
13830
13910
  )
13831
13911
 
@@ -13882,7 +13962,6 @@ class ToolVersionInstance(BaseModel):
13882
13962
  description='Whether the tool version is deprecated. Deprecated tool versions are not usable and do not participate in version resolution.',
13883
13963
  title='Deprecated',
13884
13964
  )
13885
- tool_repo: Literal['team'] = Field('team', title='Tool Repo')
13886
13965
 
13887
13966
 
13888
13967
  class UnitTestRunResult(BaseModel):
@@ -13934,6 +14013,10 @@ class VersionSetInfo(BaseModel):
13934
14013
  )
13935
14014
 
13936
14015
 
14016
+ class VoiceConfig(BaseModel):
14017
+ voice_id: str = Field(..., min_length=1)
14018
+
14019
+
13937
14020
  class WebhookDeliveryInstance(BaseModel):
13938
14021
  id: str = Field(..., description='The ID of the webhook delivery.', title='Id')
13939
14022
  type: str = Field(..., description='The type of the webhook.', title='Type')
@@ -13982,23 +14065,8 @@ class MongoCollectionsAgentAgentIdentity(BaseModel):
13982
14065
  ) = Field(..., description='Relationship of the agent to its developer.')
13983
14066
 
13984
14067
 
13985
- class MongoCollectionsRoleRolePermissionGrant(BaseModel):
13986
- action: Action = Field(
13987
- ...,
13988
- description='Whether this grant allows or denies the specified access.',
13989
- title='Action',
13990
- )
13991
- permission_name: str = Field(
13992
- ..., description='The name of the permission.', title='Permission Name'
13993
- )
13994
- conditions: dict[str, EqualCondition | InCondition | NotEqualCondition] = Field(
13995
- ...,
13996
- description='A dictionary of attribute name to condition that must be met for this grant to be applicable.',
13997
- title='Conditions',
13998
- )
13999
- description: str | None = Field(
14000
- None, description='An optional explanation of this grant.', title='Description'
14001
- )
14068
+ class MongoCollectionsRoleRolePermissionGrant(PermissionGrantInstance):
14069
+ pass
14002
14070
 
14003
14071
 
14004
14072
  class MongoCollectionsSimulationUnitTestSimulationUnitTestSuccessCriterion(BaseModel):
@@ -14116,7 +14184,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidat
14116
14184
 
14117
14185
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14118
14186
  dynamic_behavior_sets: list[
14119
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14187
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14120
14188
  ] = Field(
14121
14189
  ...,
14122
14190
  description='The retrieved dynamic behavior sets.',
@@ -14140,16 +14208,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14140
14208
  )
14141
14209
 
14142
14210
 
14143
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14144
- dynamic_behavior_sets: list[
14145
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14146
- ] = Field(
14147
- ...,
14148
- description='The retrieved dynamic behavior sets.',
14149
- title='Dynamic Behavior Sets',
14150
- )
14151
-
14152
-
14153
14211
  class MetricCreateMetricRequest(BaseModel):
14154
14212
  name: str = Field(
14155
14213
  ...,
@@ -14325,7 +14383,7 @@ class OrganizationGetAgentVersionsResponseAgentInstance(BaseModel):
14325
14383
  )
14326
14384
  agent_id: str = Field(..., description='The ID of this agent.', title='Agent Id')
14327
14385
  version: int = Field(..., description='The version of the agent.', title='Version')
14328
- voice_config: MongoCollectionsAgentAgentVoiceConfig = Field(
14386
+ voice_config: VoiceConfigInstance | None = Field(
14329
14387
  ..., description='The voice configuration of the agent.'
14330
14388
  )
14331
14389
  initials: str = Field(
@@ -14440,19 +14498,32 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14440
14498
  )
14441
14499
 
14442
14500
 
14443
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14444
- action: Action = Field(
14501
+ class RoleCreateRoleRequestPermissionGrant(PermissionGrantInstance):
14502
+ pass
14503
+
14504
+
14505
+ class RoleCreateTemporaryPermissionGrantRequest(BaseModel):
14506
+ user_id: str = Field(
14445
14507
  ...,
14446
- description='Whether this grant allows or denies the specified access.',
14447
- title='Action',
14508
+ description='The ID of the user to grant the temporary permission to.',
14509
+ title='User Id',
14448
14510
  )
14449
- permission_name: str = Field(..., title='Permission Name')
14450
- conditions: dict[str, EqualCondition | InCondition | NotEqualCondition] = Field(
14511
+ duration: timedelta = Field(
14451
14512
  ...,
14452
- description='A dictionary of attribute name to condition that must be met for this grant to be applicable.',
14453
- title='Conditions',
14513
+ description='In ISO8601 format, the duration that this permission grant will last.',
14514
+ title='Duration',
14515
+ )
14516
+ permission_grant: PermissionGrantInstance = Field(
14517
+ ..., description='The permission grant to give to the user.'
14518
+ )
14519
+ tags: dict[StrippedNonemptyStringWS, StrippedNonemptyStringWS | None] = Field(
14520
+ ...,
14521
+ description='The tags of the permission grant. Both the key and the value can only contain alphanumeric characters, underscores, or spaces.',
14522
+ title='Tags',
14523
+ )
14524
+ justification: str = Field(
14525
+ ..., description='A justification for why this grant is made.', min_length=10
14454
14526
  )
14455
- description: PydanticBaseModelStrippedNonemptyString1 | None = None
14456
14527
 
14457
14528
 
14458
14529
  class RoleModifyRoleRequest(BaseModel):
@@ -14471,22 +14542,6 @@ class RoleModifyRoleRequest(BaseModel):
14471
14542
  )
14472
14543
 
14473
14544
 
14474
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14475
- agent_version_number: int | None = Field(
14476
- ...,
14477
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14478
- title='Agent Version Number',
14479
- )
14480
- service_hierarchical_state_machine_version_number: int | None = Field(
14481
- ...,
14482
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14483
- title='Service Hierarchical State Machine Version Number',
14484
- )
14485
- llm_model_preferences: dict[
14486
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14487
- ] = Field(..., title='Llm Model Preferences')
14488
-
14489
-
14490
14545
  class ServiceGetServicesResponse(BaseModel):
14491
14546
  services: list[ServiceInstance] = Field(
14492
14547
  ..., description='The services that are found.', title='Services'
@@ -14507,10 +14562,20 @@ class ServiceGetServicesResponse(BaseModel):
14507
14562
  )
14508
14563
 
14509
14564
 
14510
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
14511
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14512
- ..., description='The version set to upsert.'
14565
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14566
+ agent_version_number: int | None = Field(
14567
+ ...,
14568
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14569
+ title='Agent Version Number',
14513
14570
  )
14571
+ service_hierarchical_state_machine_version_number: int | None = Field(
14572
+ ...,
14573
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14574
+ title='Service Hierarchical State Machine Version Number',
14575
+ )
14576
+ llm_model_preferences: dict[
14577
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14578
+ ] = Field(..., title='Llm Model Preferences')
14514
14579
 
14515
14580
 
14516
14581
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14562,7 +14627,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14562
14627
  ..., description='The description of the simulation unit test set.'
14563
14628
  )
14564
14629
  unit_test_runs: list[
14565
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14630
+ SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14566
14631
  ] = Field(
14567
14632
  ...,
14568
14633
  description='The unit test runs that are part of this set.',
@@ -14576,7 +14641,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14576
14641
 
14577
14642
  class SimulationGetSimulationPersonasResponse(BaseModel):
14578
14643
  simulation_personas: list[
14579
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14644
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14580
14645
  ] = Field(
14581
14646
  ..., description='The list of simulation personas.', title='Simulation Personas'
14582
14647
  )
@@ -14598,7 +14663,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14598
14663
 
14599
14664
  class SimulationGetSimulationScenariosResponse(BaseModel):
14600
14665
  simulation_scenarios: list[
14601
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14666
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14602
14667
  ] = Field(
14603
14668
  ...,
14604
14669
  description='The list of simulation scenarios.',
@@ -14644,11 +14709,13 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14644
14709
  )
14645
14710
 
14646
14711
 
14647
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14648
- simulation_personas: list[
14649
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14712
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
14713
+ simulation_scenarios: list[
14714
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14650
14715
  ] = Field(
14651
- ..., description='The list of simulation personas.', title='Simulation Personas'
14716
+ ...,
14717
+ description='The list of simulation scenarios.',
14718
+ title='Simulation Scenarios',
14652
14719
  )
14653
14720
 
14654
14721
 
@@ -14666,38 +14733,6 @@ class SimulationUpdateSimulationUnitTestRequestSuccessCriterion(
14666
14733
  pass
14667
14734
 
14668
14735
 
14669
- class UnitTestRuns(
14670
- RootModel[list[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14671
- ):
14672
- root: list[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14673
- Field(
14674
- ...,
14675
- description='The unit test runs that are part of this set.',
14676
- min_length=1,
14677
- title='Unit Test Runs',
14678
- )
14679
- )
14680
-
14681
-
14682
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14683
- name: PydanticBaseModelStrippedNonemptyString1 | None = Field(
14684
- None, description='The name of the simulation unit test set.'
14685
- )
14686
- description: PydanticBaseModelStrippedNonemptyString1 | FieldNotSet | None = Field(
14687
- default_factory=lambda: PydanticBaseModelStrippedNonemptyString1({}),
14688
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14689
- title='Description',
14690
- )
14691
- unit_test_runs: UnitTestRuns | None = Field(
14692
- None,
14693
- description='The unit test runs that are part of this set.',
14694
- title='Unit Test Runs',
14695
- )
14696
- tags: dict[str, str | None] | None = Field(
14697
- None, description='The tags of the simulation unit test set.', title='Tags'
14698
- )
14699
-
14700
-
14701
14736
  class ToolGetToolVersionsResponse(BaseModel):
14702
14737
  tool_versions: list[ToolVersionInstance] = Field(
14703
14738
  ...,
@@ -14739,7 +14774,7 @@ class ToolGetToolsResponse(BaseModel):
14739
14774
 
14740
14775
 
14741
14776
  class ToolInvokeToolVersionRequest(BaseModel):
14742
- inputs: list[ToolInvokeToolVersionRequestInput] = Field(
14777
+ inputs: list[ToolTestToolRequestInput] = Field(
14743
14778
  ...,
14744
14779
  description='The list of inputs for the tool invocation.',
14745
14780
  max_length=10,
@@ -14763,6 +14798,37 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
14763
14798
  deletes: list[DeleteRequest] | None = Field(default_factory=list, title='Deletes')
14764
14799
 
14765
14800
 
14801
+ class ToolTestToolRequest(BaseModel):
14802
+ inputs: list[ToolTestToolRequestInput] = Field(
14803
+ ...,
14804
+ description='The list of inputs for the tool invocation.',
14805
+ max_length=10,
14806
+ min_length=1,
14807
+ title='Inputs',
14808
+ )
14809
+ commit_branch: str = Field(
14810
+ ...,
14811
+ description='The branch in the tools repo whose tip will be tested.',
14812
+ title='Commit Branch',
14813
+ )
14814
+ project_path: str = Field(
14815
+ ...,
14816
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
14817
+ pattern='^[-\\w\\d_/]+$',
14818
+ title='Project Path',
14819
+ )
14820
+ required_envvars: dict[str, str] = Field(
14821
+ ...,
14822
+ description='The environment variables required for the tool to run.',
14823
+ title='Required Envvars',
14824
+ )
14825
+ required_secret_envvars: dict[str, str] = Field(
14826
+ ...,
14827
+ description='The secret environment variables required for the tool to run.',
14828
+ title='Required Secret Envvars',
14829
+ )
14830
+
14831
+
14766
14832
  class ToolTestToolResponse(ToolInvokeToolVersionResponse):
14767
14833
  pass
14768
14834
 
@@ -14804,7 +14870,7 @@ class UserGetUserModelResponse(BaseModel):
14804
14870
  )
14805
14871
 
14806
14872
 
14807
- class UserSearchUsersResponseUserInstance(BaseModel):
14873
+ class UserGetUsersResponseUserInstance(BaseModel):
14808
14874
  org_id: str = Field(
14809
14875
  ...,
14810
14876
  description='The ID of the organization that this user belongs to.',
@@ -14820,7 +14886,7 @@ class UserSearchUsersResponseUserInstance(BaseModel):
14820
14886
  ..., description='The last name of the user.', title='Last Name'
14821
14887
  )
14822
14888
  email: str = Field(..., description='Email of the user.', title='Email')
14823
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
14889
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
14824
14890
  ..., description="Statistics about the user's usage of the Amigo platform."
14825
14891
  )
14826
14892
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -14829,6 +14895,12 @@ class UserSearchUsersResponseUserInstance(BaseModel):
14829
14895
  )
14830
14896
 
14831
14897
 
14898
+ class UserSearchUsersResponse(BaseModel):
14899
+ users: list[UserGetUsersResponseUserInstance] = Field(
14900
+ ..., description='Users in this organization.', title='Users'
14901
+ )
14902
+
14903
+
14832
14904
  class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
14833
14905
  webhook_deliveries: list[WebhookDeliveryInstance] = Field(
14834
14906
  ..., description='The retrieved webhook deliveries.', title='Webhook Deliveries'
@@ -14967,7 +15039,7 @@ class Metric(BaseModel):
14967
15039
  additional_notes: str | None = Field(
14968
15040
  ..., description='Additional notes about the metric.', title='Additional Notes'
14969
15041
  )
14970
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15042
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
14971
15043
  ..., description='The tags of the metric.', title='Tags'
14972
15044
  )
14973
15045
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15040,7 +15112,7 @@ class MetricInstance(BaseModel):
15040
15112
  additional_notes: str | None = Field(
15041
15113
  ..., description='Additional notes about the metric.', title='Additional Notes'
15042
15114
  )
15043
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15115
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
15044
15116
  ..., description='The tags of the metric.', title='Tags'
15045
15117
  )
15046
15118
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15136,7 +15208,7 @@ class SimulationUnitTest(BaseModel):
15136
15208
  is_deleted: bool = Field(
15137
15209
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15138
15210
  )
15139
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15211
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
15140
15212
  ..., description='The tags of the simulation persona.', title='Tags'
15141
15213
  )
15142
15214
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15181,13 +15253,46 @@ class SimulationUnitTestInstance(BaseModel):
15181
15253
  is_deleted: bool = Field(
15182
15254
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15183
15255
  )
15184
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15256
+ tags: list[MongoCollectionsServiceServiceTag] = Field(
15185
15257
  ..., description='The tags of the simulation persona.', title='Tags'
15186
15258
  )
15187
15259
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15188
15260
  updated_by: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15189
15261
 
15190
15262
 
15263
+ class TemporaryPermissionGrant(BaseModel):
15264
+ field_id: str = Field(
15265
+ ..., alias='_id', description='The ID of the document.', title='Id'
15266
+ )
15267
+ org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
15268
+ created_at: AwareDatetime | None = Field(None, title='Created At')
15269
+ updated_at: AwareDatetime | None = Field(None, title='Updated At')
15270
+ user_id: str = Field(
15271
+ ...,
15272
+ description='The ID of the user that this grant applies to.',
15273
+ title='User Id',
15274
+ )
15275
+ expires_at: AwareDatetime = Field(
15276
+ ...,
15277
+ description='The time at which this temporary permission grant expires.',
15278
+ title='Expires At',
15279
+ )
15280
+ permission_grant: MongoCollectionsRoleRolePermissionGrant = Field(
15281
+ ..., description='The permission grant to give to the user.'
15282
+ )
15283
+ justification: str = Field(
15284
+ ...,
15285
+ description='The reason for offering this permission grant.',
15286
+ title='Justification',
15287
+ )
15288
+ creator: (
15289
+ MongoCollectionsTemporaryPermissionGrantTemporaryPermissionGrantUserInfo
15290
+ ) = Field(..., description='The creator of this permission grant.')
15291
+ tags: dict[str, str | None] = Field(
15292
+ ..., description='The tags of the permission grant.', title='Tags'
15293
+ )
15294
+
15295
+
15191
15296
  class UnitTestRunSpec(BaseModel):
15192
15297
  unit_test_id: str = Field(
15193
15298
  ..., description='ID of the unit test to run.', title='Unit Test Id'
@@ -15401,9 +15506,9 @@ class OrganizationCreateAgentVersionRequest(BaseModel):
15401
15506
  title='Communication Patterns',
15402
15507
  )
15403
15508
  )
15404
- voice_config: OrganizationCreateAgentVersionRequestVoiceConfig | None = Field(
15509
+ voice_config: VoiceConfig | None = Field(
15405
15510
  None,
15406
- description='The Elevenlabs voice config for the agent. If set to null, it is not updated.',
15511
+ description='The Cartesia voice config for the agent. If set to null, it is not updated.',
15407
15512
  )
15408
15513
 
15409
15514
 
@@ -15449,6 +15554,24 @@ class RoleGetRolesResponse(BaseModel):
15449
15554
  )
15450
15555
 
15451
15556
 
15557
+ class RoleGetTemporaryPermissionGrantsResponse(BaseModel):
15558
+ temporary_permission_grants: list[TemporaryPermissionGrant] = Field(
15559
+ ...,
15560
+ description='The retrieved temporary permission grants.',
15561
+ title='Temporary Permission Grants',
15562
+ )
15563
+ has_more: bool = Field(
15564
+ ...,
15565
+ description='Whether there are more temporary permission grants to retrieve.',
15566
+ title='Has More',
15567
+ )
15568
+ continuation_token: int | None = Field(
15569
+ ...,
15570
+ description='The continuation token to use to retrieve the next set of temporary permission grants.',
15571
+ title='Continuation Token',
15572
+ )
15573
+
15574
+
15452
15575
  class ServiceCreateServiceRequest(BaseModel):
15453
15576
  service_hierarchical_state_machine_id: str = Field(
15454
15577
  ...,
@@ -15471,7 +15594,7 @@ class ServiceCreateServiceRequest(BaseModel):
15471
15594
  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.',
15472
15595
  title='Is Active',
15473
15596
  )
15474
- release_version_set: ServiceCreateServiceRequestVersionSet | None = Field(
15597
+ release_version_set: ServiceUpsertServiceVersionSetRequestVersionSet | None = Field(
15475
15598
  None,
15476
15599
  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.',
15477
15600
  )
@@ -15486,6 +15609,12 @@ class ServiceCreateServiceRequest(BaseModel):
15486
15609
  )
15487
15610
 
15488
15611
 
15612
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
15613
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
15614
+ ..., description='The version set to upsert.'
15615
+ )
15616
+
15617
+
15489
15618
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
15490
15619
  name: str = Field(..., description='The name of the unit test.', min_length=1)
15491
15620
  description: str = Field(
@@ -15649,7 +15778,7 @@ class ToolSearchToolInvocationsResponse(BaseModel):
15649
15778
 
15650
15779
 
15651
15780
  class UserGetUsersResponse(BaseModel):
15652
- users: list[UserSearchUsersResponseUserInstance] = Field(
15781
+ users: list[UserGetUsersResponseUserInstance] = Field(
15653
15782
  ..., description='Users in this organization.', title='Users'
15654
15783
  )
15655
15784
  has_more: bool = Field(
@@ -15662,12 +15791,6 @@ class UserGetUsersResponse(BaseModel):
15662
15791
  )
15663
15792
 
15664
15793
 
15665
- class UserSearchUsersResponse(BaseModel):
15666
- users: list[UserSearchUsersResponseUserInstance] = Field(
15667
- ..., description='Users in this organization.', title='Users'
15668
- )
15669
-
15670
-
15671
15794
  class ServiceHierarchicalStateMachineInstance(BaseModel):
15672
15795
  id: str = Field(..., description='The ID of the state machine version.', title='Id')
15673
15796
  org_id: str = Field(