amigo_sdk 0.92.0__py3-none-any.whl → 0.94.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.92.0"
1
+ __version__ = "0.94.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-15T02:15:40+00:00
3
+ # timestamp: 2025-12-19T00:21:23+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1056,6 +1056,12 @@ class StrippedNonemptyStringWS(RootModel[str]):
1056
1056
  root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
1057
1057
 
1058
1058
 
1059
+ class StrippedNonemptyStringToUpperNoneToLowerNoneStrictNoneMinLengthNoneMaxLengthNonePatternAZaZ09MaxLenMaxLength40(
1060
+ RootModel[str]
1061
+ ):
1062
+ root: str = Field(..., max_length=40, min_length=1, pattern='^[A-Za-z0-9_-]+$')
1063
+
1064
+
1059
1065
  class StrippedNonemptyStringAZAZ02(RootModel[str]):
1060
1066
  root: str = Field(..., min_length=1, pattern='^[a-z-]+( [a-z-]+){0,2}$')
1061
1067
 
@@ -1503,6 +1509,11 @@ class AmigoLibMongoCollectionsDynamicBehaviorSetVersionAction(BaseModel):
1503
1509
  )
1504
1510
 
1505
1511
 
1512
+ class AmigoLibMongoCollectionsMetricMetricTag(BaseModel):
1513
+ key: str = Field(..., title='Key')
1514
+ value: Optional[str] = Field(..., title='Value')
1515
+
1516
+
1506
1517
  AmigoLibMongoCollectionsMetricMetricUserInfo = (
1507
1518
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1508
1519
  )
@@ -1518,11 +1529,6 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1518
1529
  deny = 'Deny'
1519
1530
 
1520
1531
 
1521
- class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1522
- key: str = Field(..., title='Key')
1523
- value: Optional[str] = Field(..., title='Value')
1524
-
1525
-
1526
1532
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1527
1533
  agent_version_number: Optional[int] = Field(
1528
1534
  ...,
@@ -1592,6 +1598,12 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1592
1598
  )
1593
1599
 
1594
1600
 
1601
+ class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1602
+ major: int = Field(..., title='Major')
1603
+ minor: int = Field(..., title='Minor')
1604
+ patch: int = Field(..., title='Patch')
1605
+
1606
+
1595
1607
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1596
1608
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1597
1609
  user_org_id: str = Field(
@@ -1599,12 +1611,6 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1599
1611
  )
1600
1612
 
1601
1613
 
1602
- class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1603
- major: int = Field(..., title='Major')
1604
- minor: int = Field(..., title='Minor')
1605
- patch: int = Field(..., title='Patch')
1606
-
1607
-
1608
1614
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1609
1615
  enable_response_recommendation: Optional[bool] = Field(
1610
1616
  False,
@@ -1848,20 +1854,6 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1848
1854
  )
1849
1855
 
1850
1856
 
1851
- class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1852
- BaseModel
1853
- ):
1854
- id: str = Field(..., title='Id')
1855
- name: str = Field(..., title='Name')
1856
- is_active: bool = Field(..., title='Is Active')
1857
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1858
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1859
- created_at: AwareDatetime = Field(..., title='Created At')
1860
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1861
- updated_at: AwareDatetime = Field(..., title='Updated At')
1862
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1863
-
1864
-
1865
1857
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1866
1858
  applied_to_services_ids: List[str] = Field(
1867
1859
  ...,
@@ -1882,14 +1874,18 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1882
1874
  )
1883
1875
 
1884
1876
 
1885
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1886
- dynamic_behavior_sets: List[
1887
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1888
- ] = Field(
1889
- ...,
1890
- description='The retrieved dynamic behavior sets.',
1891
- title='Dynamic Behavior Sets',
1892
- )
1877
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1878
+ BaseModel
1879
+ ):
1880
+ id: str = Field(..., title='Id')
1881
+ name: str = Field(..., title='Name')
1882
+ is_active: bool = Field(..., title='Is Active')
1883
+ applied_to_services: List[str] = Field(..., title='Applied To Services')
1884
+ tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1885
+ created_at: AwareDatetime = Field(..., title='Created At')
1886
+ creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1887
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1888
+ updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1893
1889
 
1894
1890
 
1895
1891
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -2028,7 +2024,9 @@ class MetricUpdateMetricRequest(BaseModel):
2028
2024
  additional_notes: Optional[
2029
2025
  Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
2030
2026
  ] = Field(
2031
- {},
2027
+ default_factory=lambda: AmigoLibPydanticBaseModelStrippedNonemptyString1.model_validate(
2028
+ {}
2029
+ ),
2032
2030
  description='Additional notes about the metric. Only updated if set.',
2033
2031
  title='Additional Notes',
2034
2032
  )
@@ -10673,19 +10671,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10673
10671
  )
10674
10672
 
10675
10673
 
10676
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10674
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10677
10675
  AnnotationStateInputNextState
10678
10676
  ):
10679
10677
  pass
10680
10678
 
10681
10679
 
10682
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10680
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10683
10681
  BaseModel
10684
10682
  ):
10685
10683
  description: str = Field(..., min_length=1)
10686
10684
  next_state: Union[
10687
10685
  StateOrRefName,
10688
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10686
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10689
10687
  ] = Field(..., title='Next State')
10690
10688
 
10691
10689
 
@@ -10941,14 +10939,14 @@ class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
10941
10939
  FieldNotSet,
10942
10940
  ]
10943
10941
  ] = Field(
10944
- {},
10942
+ default_factory=lambda: FieldNotSet.model_validate({}),
10945
10943
  description='The preferred language of the simulation persona in the ISO 639-3 format. If unspecified, the preferred language of the organization is used. If that is unspecified, the language of the agent is used.',
10946
10944
  title='Preferred Language',
10947
10945
  )
10948
10946
  timezone: Optional[
10949
10947
  Union[OrganizationCreateOrganizationRequestPreferencesTimezone, FieldNotSet]
10950
10948
  ] = Field(
10951
- {},
10949
+ default_factory=lambda: FieldNotSet.model_validate({}),
10952
10950
  description="The timezone of the simulation persona in the IANA tz database format. If unspecified, the organization's default timezone is used. If the organization's default timezone is not specified, UTC is used.",
10953
10951
  title='Timezone',
10954
10952
  )
@@ -10977,14 +10975,14 @@ class SimulationCreateSimulationPersonaVersionRequest(BaseModel):
10977
10975
  FieldNotSet,
10978
10976
  ]
10979
10977
  ] = Field(
10980
- {},
10978
+ default_factory=lambda: FieldNotSet.model_validate({}),
10981
10979
  description='The preferred language of the simulation persona in the ISO 639-3 format. If unspecified, the preferred language of the organization is used. If that is unspecified too, the language of the agent is used.',
10982
10980
  title='Preferred Language',
10983
10981
  )
10984
10982
  timezone: Optional[
10985
10983
  Union[OrganizationCreateOrganizationRequestPreferencesTimezone, FieldNotSet]
10986
10984
  ] = Field(
10987
- {},
10985
+ default_factory=lambda: FieldNotSet.model_validate({}),
10988
10986
  description="The timezone of the simulation persona in the IANA tz database format. If unspecified, the organization's default timezone is used. If the organization's default timezone is not specified, UTC is used.",
10989
10987
  title='Timezone',
10990
10988
  )
@@ -11049,16 +11047,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11049
11047
  )
11050
11048
 
11051
11049
 
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
-
11062
11050
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11063
11051
  simulation_unit_test_set_id: str = Field(
11064
11052
  ...,
@@ -11183,37 +11171,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11183
11171
  )
11184
11172
 
11185
11173
 
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
-
11217
11174
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11218
11175
  presigned_url: str = Field(
11219
11176
  ...,
@@ -11310,13 +11267,34 @@ class SimulationSearchSimulationPersonasResponse(BaseModel):
11310
11267
  )
11311
11268
 
11312
11269
 
11313
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11314
- simulation_scenarios: List[
11315
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11316
- ] = Field(
11270
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11271
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11272
+ name: str = Field(
11273
+ ..., description='The name of the simulation scenario.', title='Name'
11274
+ )
11275
+ tags: Dict[str, Optional[str]] = Field(
11276
+ ..., description='The tags of the simulation scenario.', title='Tags'
11277
+ )
11278
+ is_deleted: bool = Field(
11317
11279
  ...,
11318
- description='The list of simulation scenarios.',
11319
- title='Simulation Scenarios',
11280
+ description='Whether the simulation scenario is deleted.',
11281
+ title='Is Deleted',
11282
+ )
11283
+ created_at: AwareDatetime = Field(
11284
+ ...,
11285
+ description='The timestamp when the simulation scenario was created.',
11286
+ title='Created At',
11287
+ )
11288
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11289
+ Field(..., description='The user who created the simulation scenario.')
11290
+ )
11291
+ updated_at: AwareDatetime = Field(
11292
+ ...,
11293
+ description='The timestamp when the simulation scenario was last updated.',
11294
+ title='Updated At',
11295
+ )
11296
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11297
+ Field(..., description='The user who last updated the simulation scenario.')
11320
11298
  )
11321
11299
 
11322
11300
 
@@ -11377,39 +11355,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11377
11355
  )
11378
11356
 
11379
11357
 
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'
11358
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11359
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11360
+ run_count: int = Field(
11361
+ ...,
11362
+ description='The number of times to run the unit test.',
11363
+ gt=0,
11364
+ title='Run Count',
11413
11365
  )
11414
11366
 
11415
11367
 
@@ -11446,22 +11398,6 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11446
11398
  )
11447
11399
 
11448
11400
 
11449
- class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11450
- regular = 'regular'
11451
- conversation_simulation = 'conversation-simulation'
11452
-
11453
-
11454
- class ToolInvokeToolVersionRequestInput(BaseModel):
11455
- input_parameters: Dict[str, Any] = Field(
11456
- ...,
11457
- description='The input parameters for the tool invocation.',
11458
- title='Input Parameters',
11459
- )
11460
- invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11461
- ..., description='The mode of invocation.', title='Invocation Mode'
11462
- )
11463
-
11464
-
11465
11401
  class ToolModifyToolRequest(BaseModel):
11466
11402
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11467
11403
  None, description='A description of this tool. Only updates if not-null.'
@@ -11504,34 +11440,19 @@ class ToolPublishToolVersionResponse(BaseModel):
11504
11440
  )
11505
11441
 
11506
11442
 
11507
- class ToolTestToolRequest(BaseModel):
11508
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11509
- ...,
11510
- description='The list of inputs for the tool invocation.',
11511
- max_length=10,
11512
- min_length=1,
11513
- title='Inputs',
11514
- )
11515
- commit_branch: str = Field(
11516
- ...,
11517
- description='The branch in the tools repo whose tip will be tested.',
11518
- title='Commit Branch',
11519
- )
11520
- project_path: str = Field(
11521
- ...,
11522
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11523
- pattern='^[-\\w\\d_/]+$',
11524
- title='Project Path',
11525
- )
11526
- required_envvars: Dict[str, str] = Field(
11443
+ class ToolTestToolRequestInputInvocationMode(Enum):
11444
+ regular = 'regular'
11445
+ conversation_simulation = 'conversation-simulation'
11446
+
11447
+
11448
+ class ToolTestToolRequestInput(BaseModel):
11449
+ input_parameters: Dict[str, Any] = Field(
11527
11450
  ...,
11528
- description='The environment variables required for the tool to run.',
11529
- title='Required Envvars',
11451
+ description='The input parameters for the tool invocation.',
11452
+ title='Input Parameters',
11530
11453
  )
11531
- required_secret_envvars: Dict[str, str] = Field(
11532
- ...,
11533
- description='The secret environment variables required for the tool to run.',
11534
- title='Required Secret Envvars',
11454
+ invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11455
+ ..., description='The mode of invocation.', title='Invocation Mode'
11535
11456
  )
11536
11457
 
11537
11458
 
@@ -11608,7 +11529,7 @@ class UserGetMemoriesResponse(BaseModel):
11608
11529
  )
11609
11530
 
11610
11531
 
11611
- class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11532
+ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11612
11533
  num_conversations: int = Field(
11613
11534
  ...,
11614
11535
  description='The number of conversations the user has created.',
@@ -11681,14 +11602,14 @@ class UserUpdateUserInfoRequest(BaseModel):
11681
11602
  FieldNotSet,
11682
11603
  ]
11683
11604
  ] = Field(
11684
- {},
11605
+ default_factory=lambda: FieldNotSet.model_validate({}),
11685
11606
  description="The preferred language for the user. The agent will attempt to converse to the user in this language if set. This field must be in the [ISO 639-3](https://en.wikipedia.org/wiki/ISO_639-3) format.\nIf `null`, erase the user's preferred setting, and the specific language used will be the agent's default spoken language. In order to not update this field, leave it out of the request or\nset it to an empty object (`_NotSet`).",
11686
11607
  title='Preferred Language',
11687
11608
  )
11688
11609
  timezone: Optional[
11689
11610
  Union[OrganizationCreateOrganizationRequestPreferencesTimezone, FieldNotSet]
11690
11611
  ] = Field(
11691
- {},
11612
+ default_factory=lambda: FieldNotSet.model_validate({}),
11692
11613
  description="The user's timezone in the IANA tz database format. If not specified, the organization's timezone is used.",
11693
11614
  title='Timezone',
11694
11615
  )
@@ -11811,7 +11732,9 @@ class GetAgentsParametersQuery(BaseModel):
11811
11732
  None, description='Whether the agent is deprecated.', title='Deprecated'
11812
11733
  )
11813
11734
  id: Optional[List[GetAgentsParametersQueryIdItem]] = Field(
11814
- [], description='The IDs of the agents to filter for.', title='Id'
11735
+ default_factory=list,
11736
+ description='The IDs of the agents to filter for.',
11737
+ title='Id',
11815
11738
  )
11816
11739
  limit: Optional[int] = Field(
11817
11740
  10,
@@ -11856,7 +11779,9 @@ class GetServiceHierarchicalStateMachinesParametersQuery(BaseModel):
11856
11779
  )
11857
11780
  id: Optional[List[GetServiceHierarchicalStateMachinesParametersQueryIdItem]] = (
11858
11781
  Field(
11859
- [], description='The IDs of the state machines to filter for.', title='Id'
11782
+ default_factory=list,
11783
+ description='The IDs of the state machines to filter for.',
11784
+ title='Id',
11860
11785
  )
11861
11786
  )
11862
11787
  limit: Optional[int] = Field(
@@ -11969,7 +11894,9 @@ class GetServicesParametersQueryIdItem(
11969
11894
 
11970
11895
  class GetServicesParametersQuery(BaseModel):
11971
11896
  id: Optional[List[GetServicesParametersQueryIdItem]] = Field(
11972
- [], description='The IDs of the services to retrieve.', title='Id'
11897
+ default_factory=list,
11898
+ description='The IDs of the services to retrieve.',
11899
+ title='Id',
11973
11900
  )
11974
11901
  is_active: Optional[bool] = Field(
11975
11902
  None, description='Whether the service is active.', title='Is Active'
@@ -12022,7 +11949,7 @@ class GetConversationsParametersQuery(BaseModel):
12022
11949
  title='User Id',
12023
11950
  )
12024
11951
  service_id: Optional[List[GetConversationsParametersQueryServiceIdItem]] = Field(
12025
- [],
11952
+ default_factory=list,
12026
11953
  description='The identifier of the service whose conversation to retrieve.',
12027
11954
  title='Service Id',
12028
11955
  )
@@ -12030,7 +11957,9 @@ class GetConversationsParametersQuery(BaseModel):
12030
11957
  None, description='Whether the conversation is finished.', title='Is Finished'
12031
11958
  )
12032
11959
  id: Optional[List[GetConversationsParametersQueryIdItem]] = Field(
12033
- [], description='The ID of the conversation to retrieve.', title='Id'
11960
+ default_factory=list,
11961
+ description='The ID of the conversation to retrieve.',
11962
+ title='Id',
12034
11963
  )
12035
11964
  limit: Optional[int] = Field(
12036
11965
  150,
@@ -12065,17 +11994,19 @@ class GetConversationMessagesParametersQueryInteractionIdItem(
12065
11994
 
12066
11995
  class GetConversationMessagesParametersQuery(BaseModel):
12067
11996
  id: Optional[List[GetConversationMessagesParametersQueryIdItem]] = Field(
12068
- [], description='The IDs of the messages to retrieve.', title='Id'
11997
+ default_factory=list,
11998
+ description='The IDs of the messages to retrieve.',
11999
+ title='Id',
12069
12000
  )
12070
12001
  message_type: Optional[List[MessageType]] = Field(
12071
- ['agent-message', 'user-message', 'external-event'],
12002
+ ['agent-message', 'external-event', 'user-message'],
12072
12003
  description='The type of messages to retrieve.',
12073
12004
  title='Message Type',
12074
12005
  )
12075
12006
  interaction_id: Optional[
12076
12007
  List[GetConversationMessagesParametersQueryInteractionIdItem]
12077
12008
  ] = Field(
12078
- [],
12009
+ default_factory=list,
12079
12010
  description='The IDs of the interactions to retrieve messages for.',
12080
12011
  title='Interaction Id',
12081
12012
  )
@@ -12114,7 +12045,7 @@ class InteractWithConversationRequestInteractWithConversationRequest(BaseModel):
12114
12045
  InteractWithConversationRequestInteractWithConversationRequestExternalEventMessageContent
12115
12046
  ]
12116
12047
  ] = Field(
12117
- [],
12048
+ default_factory=list,
12118
12049
  description='The contents of external event messages to be inserted before the initial message, in chronological order.',
12119
12050
  title='External Event Message Contents',
12120
12051
  )
@@ -12141,7 +12072,7 @@ class InteractWithConversationRequest_InteractWithConversationRequest(BaseModel)
12141
12072
  InteractWithConversationRequestInteractWithConversationRequest1ExternalEventMessageContent
12142
12073
  ]
12143
12074
  ] = Field(
12144
- [],
12075
+ default_factory=list,
12145
12076
  description='The contents of external event messages to be inserted before the initial message, in chronological order.',
12146
12077
  title='External Event Message Contents',
12147
12078
  )
@@ -12171,7 +12102,7 @@ class InteractWithConversationRequestInteractWithConversationRequest2(BaseModel)
12171
12102
  InteractWithConversationRequestInteractWithConversationRequest2ExternalEventMessageContent
12172
12103
  ]
12173
12104
  ] = Field(
12174
- [],
12105
+ default_factory=list,
12175
12106
  description='Must be empty, as external event messages cannot be sent with skips.',
12176
12107
  max_length=0,
12177
12108
  title='External Event Message Contents',
@@ -12248,11 +12179,13 @@ class GetMemoriesParametersQueryConversationIdItem(
12248
12179
 
12249
12180
  class GetMemoriesParametersQuery(BaseModel):
12250
12181
  id: Optional[List[GetMemoriesParametersQueryIdItem]] = Field(
12251
- [], description='The IDs of the memories to retrieve.', title='Id'
12182
+ default_factory=list,
12183
+ description='The IDs of the memories to retrieve.',
12184
+ title='Id',
12252
12185
  )
12253
12186
  conversation_id: Optional[List[GetMemoriesParametersQueryConversationIdItem]] = (
12254
12187
  Field(
12255
- [],
12188
+ default_factory=list,
12256
12189
  description='The IDs of the conversations to retrieve memories from.',
12257
12190
  title='Conversation Id',
12258
12191
  )
@@ -12300,7 +12233,9 @@ class GetRolesV1OrganizationRoleGetParametersQuery(BaseModel):
12300
12233
  title='Return Permission Grants',
12301
12234
  )
12302
12235
  id: Optional[List[GetRolesV1OrganizationRoleGetParametersQueryIdItem]] = Field(
12303
- [], description='The IDs of the roles to retrieve.', title='Id'
12236
+ default_factory=list,
12237
+ description='The IDs of the roles to retrieve.',
12238
+ title='Id',
12304
12239
  )
12305
12240
  name: Optional[List[str]] = Field(
12306
12241
  [], description='The names of the roles to retrieve.', title='Name'
@@ -12323,7 +12258,9 @@ class GetWebhookDestinationsParametersQueryIdItem(
12323
12258
 
12324
12259
  class GetWebhookDestinationsParametersQuery(BaseModel):
12325
12260
  id: Optional[List[GetWebhookDestinationsParametersQueryIdItem]] = Field(
12326
- [], description='The IDs of the webhook destinations to retrieve.', title='Id'
12261
+ default_factory=list,
12262
+ description='The IDs of the webhook destinations to retrieve.',
12263
+ title='Id',
12327
12264
  )
12328
12265
 
12329
12266
 
@@ -12377,7 +12314,9 @@ class GetDynamicBehaviorSetsParametersQueryAppliedToServiceItem(
12377
12314
 
12378
12315
  class GetDynamicBehaviorSetsParametersQuery(BaseModel):
12379
12316
  id: Optional[List[GetDynamicBehaviorSetsParametersQueryIdItem]] = Field(
12380
- [], description='The IDs of the dynamic behavior sets to retrieve.', title='Id'
12317
+ default_factory=list,
12318
+ description='The IDs of the dynamic behavior sets to retrieve.',
12319
+ title='Id',
12381
12320
  )
12382
12321
  limit: Optional[int] = Field(
12383
12322
  50,
@@ -12399,7 +12338,7 @@ class GetDynamicBehaviorSetsParametersQuery(BaseModel):
12399
12338
  applied_to_service: Optional[
12400
12339
  List[GetDynamicBehaviorSetsParametersQueryAppliedToServiceItem]
12401
12340
  ] = Field(
12402
- [],
12341
+ default_factory=list,
12403
12342
  description='The IDs of the services that the dynamic behavior set is applied to.',
12404
12343
  title='Applied To Service',
12405
12344
  )
@@ -12481,7 +12420,7 @@ class SearchDynamicBehaviorSetsParametersQuery(BaseModel):
12481
12420
  applied_to_service: Optional[
12482
12421
  List[SearchDynamicBehaviorSetsParametersQueryAppliedToServiceItem]
12483
12422
  ] = Field(
12484
- [],
12423
+ default_factory=list,
12485
12424
  description='The IDs of the services that the dynamic behavior set is applied to.',
12486
12425
  title='Applied To Service',
12487
12426
  )
@@ -12531,7 +12470,9 @@ class GetMetricsParametersQueryAppliedToServiceItem(
12531
12470
 
12532
12471
  class GetMetricsParametersQuery(BaseModel):
12533
12472
  id: Optional[List[GetMetricsParametersQueryIdItem]] = Field(
12534
- [], description='The IDs of the metrics to retrieve.', title='Id'
12473
+ default_factory=list,
12474
+ description='The IDs of the metrics to retrieve.',
12475
+ title='Id',
12535
12476
  )
12536
12477
  limit: Optional[int] = Field(
12537
12478
  50,
@@ -12548,7 +12489,7 @@ class GetMetricsParametersQuery(BaseModel):
12548
12489
  applied_to_service: Optional[
12549
12490
  List[GetMetricsParametersQueryAppliedToServiceItem]
12550
12491
  ] = Field(
12551
- [],
12492
+ default_factory=list,
12552
12493
  description='The IDs of the services that the metric is applied to.',
12553
12494
  title='Applied To Service',
12554
12495
  )
@@ -12588,7 +12529,7 @@ class SearchMetricsParametersQuery(BaseModel):
12588
12529
  applied_to_service: Optional[
12589
12530
  List[SearchMetricsParametersQueryAppliedToServiceItem]
12590
12531
  ] = Field(
12591
- [],
12532
+ default_factory=list,
12592
12533
  description='The IDs of the services that the metric is applied to.',
12593
12534
  title='Applied To Service',
12594
12535
  )
@@ -12649,7 +12590,11 @@ class GetMetricEvaluationResultsParametersQuery(BaseModel):
12649
12590
  title='Timestamp Before',
12650
12591
  )
12651
12592
  metric_id: Optional[List[GetMetricEvaluationResultsParametersQueryMetricIdItem]] = (
12652
- Field([], description='The ID of the metric to retrieve.', title='Metric Id')
12593
+ Field(
12594
+ default_factory=list,
12595
+ description='The ID of the metric to retrieve.',
12596
+ title='Metric Id',
12597
+ )
12653
12598
  )
12654
12599
  source_type: Optional[List[EvaluationSourceType]] = Field(
12655
12600
  [],
@@ -12659,14 +12604,14 @@ class GetMetricEvaluationResultsParametersQuery(BaseModel):
12659
12604
  conversation_id: Optional[
12660
12605
  List[GetMetricEvaluationResultsParametersQueryConversationIdItem]
12661
12606
  ] = Field(
12662
- [],
12607
+ default_factory=list,
12663
12608
  description='For metric evaluation sources with type `post-session` or `manual`, this field filters the metric evaluation results to only include those that were computed from the given conversation IDs.',
12664
12609
  title='Conversation Id',
12665
12610
  )
12666
12611
  simulation_unit_test_set_run_id: Optional[
12667
12612
  List[GetMetricEvaluationResultsParametersQuerySimulationUnitTestSetRunIdItem]
12668
12613
  ] = Field(
12669
- [],
12614
+ default_factory=list,
12670
12615
  description='For metric evaluation sources with type `simulation`, this field filters the metric evaluation results to only include those that were computed from the given simulation unit test set run IDs.',
12671
12616
  title='Simulation Unit Test Set Run Id',
12672
12617
  )
@@ -12685,7 +12630,9 @@ class GetSimulationPersonasParametersQueryIdItem(
12685
12630
 
12686
12631
  class GetSimulationPersonasParametersQuery(BaseModel):
12687
12632
  id: Optional[List[GetSimulationPersonasParametersQueryIdItem]] = Field(
12688
- [], description='The IDs of the simulation personas to retrieve.', title='Id'
12633
+ default_factory=list,
12634
+ description='The IDs of the simulation personas to retrieve.',
12635
+ title='Id',
12689
12636
  )
12690
12637
  limit: Optional[int] = Field(
12691
12638
  50,
@@ -12812,7 +12759,9 @@ class GetSimulationScenariosParametersQueryIdItem(
12812
12759
 
12813
12760
  class GetSimulationScenariosParametersQuery(BaseModel):
12814
12761
  id: Optional[List[GetSimulationScenariosParametersQueryIdItem]] = Field(
12815
- [], description='The IDs of the simulation scenarios to retrieve.', title='Id'
12762
+ default_factory=list,
12763
+ description='The IDs of the simulation scenarios to retrieve.',
12764
+ title='Id',
12816
12765
  )
12817
12766
  limit: Optional[int] = Field(
12818
12767
  50,
@@ -12919,7 +12868,9 @@ class GetSimulationUnitTestsParametersQueryMetricIdItem(
12919
12868
 
12920
12869
  class GetSimulationUnitTestsParametersQuery(BaseModel):
12921
12870
  id: Optional[List[GetSimulationUnitTestsParametersQueryIdItem]] = Field(
12922
- [], description='The IDs of the simulation unit tests to retrieve.', title='Id'
12871
+ default_factory=list,
12872
+ description='The IDs of the simulation unit tests to retrieve.',
12873
+ title='Id',
12923
12874
  )
12924
12875
  limit: Optional[int] = Field(
12925
12876
  50,
@@ -12940,28 +12891,28 @@ class GetSimulationUnitTestsParametersQuery(BaseModel):
12940
12891
  )
12941
12892
  service_id: Optional[List[GetSimulationUnitTestsParametersQueryServiceIdItem]] = (
12942
12893
  Field(
12943
- [],
12894
+ default_factory=list,
12944
12895
  description='The IDs of the services that the simulation unit tests run on.',
12945
12896
  title='Service Id',
12946
12897
  )
12947
12898
  )
12948
12899
  persona_id: Optional[List[GetSimulationUnitTestsParametersQueryPersonaIdItem]] = (
12949
12900
  Field(
12950
- [],
12901
+ default_factory=list,
12951
12902
  description='The IDs of the personas that the simulation unit tests use.',
12952
12903
  title='Persona Id',
12953
12904
  )
12954
12905
  )
12955
12906
  scenario_id: Optional[List[GetSimulationUnitTestsParametersQueryScenarioIdItem]] = (
12956
12907
  Field(
12957
- [],
12908
+ default_factory=list,
12958
12909
  description='The IDs of the scenarios that the simulation unit tests use.',
12959
12910
  title='Scenario Id',
12960
12911
  )
12961
12912
  )
12962
12913
  metric_id: Optional[List[GetSimulationUnitTestsParametersQueryMetricIdItem]] = (
12963
12914
  Field(
12964
- [],
12915
+ default_factory=list,
12965
12916
  description='The IDs of the metrics that the simulation unit tests use.',
12966
12917
  title='Metric Id',
12967
12918
  )
@@ -13026,27 +12977,27 @@ class SearchSimulationUnitTestsParametersQuery(BaseModel):
13026
12977
  service_id: Optional[
13027
12978
  List[SearchSimulationUnitTestsParametersQueryServiceIdItem]
13028
12979
  ] = Field(
13029
- [],
12980
+ default_factory=list,
13030
12981
  description='The IDs of the services that the simulation unit tests run on.',
13031
12982
  title='Service Id',
13032
12983
  )
13033
12984
  persona_id: Optional[
13034
12985
  List[SearchSimulationUnitTestsParametersQueryPersonaIdItem]
13035
12986
  ] = Field(
13036
- [],
12987
+ default_factory=list,
13037
12988
  description='The IDs of the personas that the simulation unit tests use.',
13038
12989
  title='Persona Id',
13039
12990
  )
13040
12991
  scenario_id: Optional[
13041
12992
  List[SearchSimulationUnitTestsParametersQueryScenarioIdItem]
13042
12993
  ] = Field(
13043
- [],
12994
+ default_factory=list,
13044
12995
  description='The IDs of the scenarios that the simulation unit tests use.',
13045
12996
  title='Scenario Id',
13046
12997
  )
13047
12998
  metric_id: Optional[List[SearchSimulationUnitTestsParametersQueryMetricIdItem]] = (
13048
12999
  Field(
13049
- [],
13000
+ default_factory=list,
13050
13001
  description='The IDs of the metrics that the simulation unit tests use.',
13051
13002
  title='Metric Id',
13052
13003
  )
@@ -13067,7 +13018,7 @@ class GetSimulationUnitTestSetsParametersQueryUnitTestIdItem(
13067
13018
 
13068
13019
  class GetSimulationUnitTestSetsParametersQuery(BaseModel):
13069
13020
  id: Optional[List[GetSimulationUnitTestSetsParametersQueryIdItem]] = Field(
13070
- [],
13021
+ default_factory=list,
13071
13022
  description='The IDs of the simulation unit test sets to retrieve.',
13072
13023
  title='Id',
13073
13024
  )
@@ -13091,7 +13042,7 @@ class GetSimulationUnitTestSetsParametersQuery(BaseModel):
13091
13042
  unit_test_id: Optional[
13092
13043
  List[GetSimulationUnitTestSetsParametersQueryUnitTestIdItem]
13093
13044
  ] = Field(
13094
- [],
13045
+ default_factory=list,
13095
13046
  description='The IDs of the unit tests that are part of the simulation unit test sets.',
13096
13047
  title='Unit Test Id',
13097
13048
  )
@@ -13137,7 +13088,7 @@ class SearchSimulationUnitTestSetsParametersQuery(BaseModel):
13137
13088
  unit_test_id: Optional[
13138
13089
  List[SearchSimulationUnitTestSetsParametersQueryUnitTestIdItem]
13139
13090
  ] = Field(
13140
- [],
13091
+ default_factory=list,
13141
13092
  description='The IDs of the unit tests that are part of the simulation unit test sets.',
13142
13093
  title='Unit Test Id',
13143
13094
  )
@@ -13157,7 +13108,7 @@ class GetSimulationUnitTestSetRunsParametersQuerySimulationUnitTestSetIdItem(
13157
13108
 
13158
13109
  class GetSimulationUnitTestSetRunsParametersQuery(BaseModel):
13159
13110
  id: Optional[List[GetSimulationUnitTestSetRunsParametersQueryIdItem]] = Field(
13160
- [],
13111
+ default_factory=list,
13161
13112
  description='The ID of the simulation unit test set run to retrieve.',
13162
13113
  title='Id',
13163
13114
  )
@@ -13186,7 +13137,7 @@ class GetSimulationUnitTestSetRunsParametersQuery(BaseModel):
13186
13137
  simulation_unit_test_set_id: Optional[
13187
13138
  List[GetSimulationUnitTestSetRunsParametersQuerySimulationUnitTestSetIdItem]
13188
13139
  ] = Field(
13189
- [],
13140
+ default_factory=list,
13190
13141
  description='The IDs of the simulation unit test sets that the simulation unit test set runs belong to.',
13191
13142
  title='Simulation Unit Test Set Id',
13192
13143
  )
@@ -13225,7 +13176,9 @@ class GetToolsParametersQueryIdItem(
13225
13176
 
13226
13177
  class GetToolsParametersQuery(BaseModel):
13227
13178
  id: Optional[List[GetToolsParametersQueryIdItem]] = Field(
13228
- [], description='The IDs of the tools to retrieve.', title='Id'
13179
+ default_factory=list,
13180
+ description='The IDs of the tools to retrieve.',
13181
+ title='Id',
13229
13182
  )
13230
13183
  deprecated: Optional[bool] = Field(
13231
13184
  None, description='Whether the tools are deprecated.', title='Deprecated'
@@ -13314,7 +13267,9 @@ class GetToolInvocationsParametersQuerySimulationUnitTestSetRunIdItem(
13314
13267
 
13315
13268
  class GetToolInvocationsParametersQuery(BaseModel):
13316
13269
  tool_id: Optional[List[GetToolInvocationsParametersQueryToolIdItem]] = Field(
13317
- [], description='The IDs of the tools to get invocations for.', title='Tool Id'
13270
+ default_factory=list,
13271
+ description='The IDs of the tools to get invocations for.',
13272
+ title='Tool Id',
13318
13273
  )
13319
13274
  version: Optional[List[str]] = Field(
13320
13275
  [],
@@ -13331,14 +13286,14 @@ class GetToolInvocationsParametersQuery(BaseModel):
13331
13286
  conversation_id: Optional[
13332
13287
  List[GetToolInvocationsParametersQueryConversationIdItem]
13333
13288
  ] = Field(
13334
- [],
13289
+ default_factory=list,
13335
13290
  description='The conversation IDs associated with the invocations if they are of invocation source `regular-conversation`.',
13336
13291
  title='Conversation Id',
13337
13292
  )
13338
13293
  simulation_unit_test_set_run_id: Optional[
13339
13294
  List[GetToolInvocationsParametersQuerySimulationUnitTestSetRunIdItem]
13340
13295
  ] = Field(
13341
- [],
13296
+ default_factory=list,
13342
13297
  description='The simulation unit test set run IDs associated with the invocations if they are of invocation source `simulation-conversation`.',
13343
13298
  title='Simulation Unit Test Set Run Id',
13344
13299
  )
@@ -13398,7 +13353,9 @@ class SearchToolInvocationsParametersQuery(BaseModel):
13398
13353
  title='Query Against',
13399
13354
  )
13400
13355
  tool_id: Optional[List[SearchToolInvocationsParametersQueryToolIdItem]] = Field(
13401
- [], description='The IDs of the tools to get invocations for.', title='Tool Id'
13356
+ default_factory=list,
13357
+ description='The IDs of the tools to get invocations for.',
13358
+ title='Tool Id',
13402
13359
  )
13403
13360
  invocation_source_type: Optional[
13404
13361
  List[GetToolInvocationsParametersQueryInvocationSourceTypeEnum]
@@ -13408,14 +13365,14 @@ class SearchToolInvocationsParametersQuery(BaseModel):
13408
13365
  conversation_id: Optional[
13409
13366
  List[SearchToolInvocationsParametersQueryConversationIdItem]
13410
13367
  ] = Field(
13411
- [],
13368
+ default_factory=list,
13412
13369
  description="The conversation ID associated with the invocation if it's of invocation source `regular-conversation`.",
13413
13370
  title='Conversation Id',
13414
13371
  )
13415
13372
  simulation_unit_test_set_run_id: Optional[
13416
13373
  List[SearchToolInvocationsParametersQuerySimulationUnitTestSetRunIdItem]
13417
13374
  ] = Field(
13418
- [],
13375
+ default_factory=list,
13419
13376
  description="The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation`.",
13420
13377
  title='Simulation Unit Test Set Run Id',
13421
13378
  )
@@ -13874,7 +13831,7 @@ class ServiceInstance(BaseModel):
13874
13831
  agent_id: str = Field(
13875
13832
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13876
13833
  )
13877
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13834
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13878
13835
  ..., description='The tags of the service.', title='Tags'
13879
13836
  )
13880
13837
 
@@ -13927,7 +13884,7 @@ class SimulationUnitTestSet(BaseModel):
13927
13884
  description='Whether the unit test set has been deleted.',
13928
13885
  title='Is Deleted',
13929
13886
  )
13930
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13887
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13931
13888
  ..., description='The tags of the simulation unit test set.', title='Tags'
13932
13889
  )
13933
13890
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13966,7 +13923,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13966
13923
  description='Whether the unit test set has been deleted.',
13967
13924
  title='Is Deleted',
13968
13925
  )
13969
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13926
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13970
13927
  ..., description='The tags of the simulation unit test set.', title='Tags'
13971
13928
  )
13972
13929
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14082,7 +14039,7 @@ class ToolInstance(BaseModel):
14082
14039
  description='A list of encrypted environment variables that some versions of this tool uses.',
14083
14040
  title='Secret Envvars',
14084
14041
  )
14085
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14042
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14086
14043
  ..., description='The tags of the simulation persona.', title='Tags'
14087
14044
  )
14088
14045
 
@@ -14097,7 +14054,7 @@ class ToolVersionInstance(BaseModel):
14097
14054
  description='The ID of the tool that this version belongs to.',
14098
14055
  title='Tool Id',
14099
14056
  )
14100
- version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14057
+ version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14101
14058
  ..., description='The version of the tool.'
14102
14059
  )
14103
14060
  required_envvars: List[str] = Field(
@@ -14413,7 +14370,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14413
14370
 
14414
14371
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14415
14372
  dynamic_behavior_sets: List[
14416
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14373
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14417
14374
  ] = Field(
14418
14375
  ...,
14419
14376
  description='The retrieved dynamic behavior sets.',
@@ -14437,6 +14394,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14437
14394
  )
14438
14395
 
14439
14396
 
14397
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14398
+ dynamic_behavior_sets: List[
14399
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14400
+ ] = Field(
14401
+ ...,
14402
+ description='The retrieved dynamic behavior sets.',
14403
+ title='Dynamic Behavior Sets',
14404
+ )
14405
+
14406
+
14440
14407
  class MetricCreateMetricRequest(BaseModel):
14441
14408
  name: str = Field(
14442
14409
  ...,
@@ -14690,6 +14657,22 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14690
14657
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14691
14658
 
14692
14659
 
14660
+ class ServiceCreateServiceRequestVersionSet(BaseModel):
14661
+ agent_version_number: Optional[int] = Field(
14662
+ ...,
14663
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14664
+ title='Agent Version Number',
14665
+ )
14666
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14667
+ ...,
14668
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14669
+ title='Service Hierarchical State Machine Version Number',
14670
+ )
14671
+ llm_model_preferences: Dict[
14672
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14673
+ ] = Field(..., title='Llm Model Preferences')
14674
+
14675
+
14693
14676
  class ServiceGetServicesResponse(BaseModel):
14694
14677
  services: List[ServiceInstance] = Field(
14695
14678
  ..., description='The services that are found.', title='Services'
@@ -14710,20 +14693,10 @@ class ServiceGetServicesResponse(BaseModel):
14710
14693
  )
14711
14694
 
14712
14695
 
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',
14696
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
14697
+ version_set: ServiceCreateServiceRequestVersionSet = Field(
14698
+ ..., description='The version set to upsert.'
14723
14699
  )
14724
- llm_model_preferences: Dict[
14725
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14726
- ] = Field(..., title='Llm Model Preferences')
14727
14700
 
14728
14701
 
14729
14702
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14775,7 +14748,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14775
14748
  ..., description='The description of the simulation unit test set.'
14776
14749
  )
14777
14750
  unit_test_runs: List[
14778
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14751
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14779
14752
  ] = Field(
14780
14753
  ...,
14781
14754
  description='The unit test runs that are part of this set.',
@@ -14813,7 +14786,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14813
14786
 
14814
14787
  class SimulationGetSimulationScenariosResponse(BaseModel):
14815
14788
  simulation_scenarios: List[
14816
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14789
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14817
14790
  ] = Field(
14818
14791
  ...,
14819
14792
  description='The list of simulation scenarios.',
@@ -14861,6 +14834,16 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14861
14834
  )
14862
14835
 
14863
14836
 
14837
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
14838
+ simulation_scenarios: List[
14839
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14840
+ ] = Field(
14841
+ ...,
14842
+ description='The list of simulation scenarios.',
14843
+ title='Simulation Scenarios',
14844
+ )
14845
+
14846
+
14864
14847
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14865
14848
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
14866
14849
  ...,
@@ -14874,6 +14857,44 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
14874
14857
  )
14875
14858
 
14876
14859
 
14860
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14861
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14862
+ ):
14863
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14864
+ Field(
14865
+ ...,
14866
+ description='The unit test runs that are part of this set.',
14867
+ min_length=1,
14868
+ title='Unit Test Runs',
14869
+ )
14870
+ )
14871
+
14872
+
14873
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14874
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14875
+ None, description='The name of the simulation unit test set.'
14876
+ )
14877
+ description: Optional[
14878
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
14879
+ ] = Field(
14880
+ default_factory=lambda: AmigoLibPydanticBaseModelStrippedNonemptyString1.model_validate(
14881
+ {}
14882
+ ),
14883
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14884
+ title='Description',
14885
+ )
14886
+ unit_test_runs: Optional[
14887
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
14888
+ ] = Field(
14889
+ None,
14890
+ description='The unit test runs that are part of this set.',
14891
+ title='Unit Test Runs',
14892
+ )
14893
+ tags: Optional[Dict[str, Optional[str]]] = Field(
14894
+ None, description='The tags of the simulation unit test set.', title='Tags'
14895
+ )
14896
+
14897
+
14877
14898
  class ToolGetToolVersionsResponse(BaseModel):
14878
14899
  tool_versions: List[ToolVersionInstance] = Field(
14879
14900
  ...,
@@ -14915,7 +14936,7 @@ class ToolGetToolsResponse(BaseModel):
14915
14936
 
14916
14937
 
14917
14938
  class ToolInvokeToolVersionRequest(BaseModel):
14918
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
14939
+ inputs: List[ToolTestToolRequestInput] = Field(
14919
14940
  ...,
14920
14941
  description='The list of inputs for the tool invocation.',
14921
14942
  max_length=10,
@@ -14931,9 +14952,46 @@ class ToolInvokeToolVersionResponse(BaseModel):
14931
14952
 
14932
14953
 
14933
14954
  class ToolModifyToolEnvvarsRequest(BaseModel):
14934
- inserts: Optional[List[InsertRequest]] = Field([], title='Inserts')
14935
- updates: Optional[List[UpdateRequest]] = Field([], title='Updates')
14936
- deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
14955
+ inserts: Optional[List[InsertRequest]] = Field(
14956
+ default_factory=list, title='Inserts'
14957
+ )
14958
+ updates: Optional[List[UpdateRequest]] = Field(
14959
+ default_factory=list, title='Updates'
14960
+ )
14961
+ deletes: Optional[List[DeleteRequest]] = Field(
14962
+ default_factory=list, title='Deletes'
14963
+ )
14964
+
14965
+
14966
+ class ToolTestToolRequest(BaseModel):
14967
+ inputs: List[ToolTestToolRequestInput] = Field(
14968
+ ...,
14969
+ description='The list of inputs for the tool invocation.',
14970
+ max_length=10,
14971
+ min_length=1,
14972
+ title='Inputs',
14973
+ )
14974
+ commit_branch: str = Field(
14975
+ ...,
14976
+ description='The branch in the tools repo whose tip will be tested.',
14977
+ title='Commit Branch',
14978
+ )
14979
+ project_path: str = Field(
14980
+ ...,
14981
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
14982
+ pattern='^[-\\w\\d_/]+$',
14983
+ title='Project Path',
14984
+ )
14985
+ required_envvars: Dict[str, str] = Field(
14986
+ ...,
14987
+ description='The environment variables required for the tool to run.',
14988
+ title='Required Envvars',
14989
+ )
14990
+ required_secret_envvars: Dict[str, str] = Field(
14991
+ ...,
14992
+ description='The secret environment variables required for the tool to run.',
14993
+ title='Required Secret Envvars',
14994
+ )
14937
14995
 
14938
14996
 
14939
14997
  ToolTestToolResponse = ToolInvokeToolVersionResponse
@@ -14992,7 +15050,7 @@ class UserGetUsersResponseUserInstance(BaseModel):
14992
15050
  ..., description='The last name of the user.', title='Last Name'
14993
15051
  )
14994
15052
  email: str = Field(..., description='Email of the user.', title='Email')
14995
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15053
+ user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
14996
15054
  ..., description="Statistics about the user's usage of the Amigo platform."
14997
15055
  )
14998
15056
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15098,7 +15156,7 @@ class ActionStateInput(BaseModel):
15098
15156
  Field(..., title='Boundary Constraints')
15099
15157
  )
15100
15158
  exit_conditions: List[
15101
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15159
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15102
15160
  ] = Field(..., title='Exit Conditions')
15103
15161
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15104
15162
  ..., title='Action Tool Call Specs'
@@ -15207,7 +15265,7 @@ class DecisionStateInput(BaseModel):
15207
15265
  type: Literal['decision'] = Field(..., title='Type')
15208
15266
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15209
15267
  exit_conditions: List[
15210
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15268
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15211
15269
  ] = Field(..., title='Exit Conditions')
15212
15270
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15213
15271
  ..., title='Decision Guidelines'
@@ -15248,7 +15306,7 @@ class Metric(BaseModel):
15248
15306
  additional_notes: Optional[str] = Field(
15249
15307
  ..., description='Additional notes about the metric.', title='Additional Notes'
15250
15308
  )
15251
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15309
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15252
15310
  ..., description='The tags of the metric.', title='Tags'
15253
15311
  )
15254
15312
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15318,7 +15376,7 @@ class MetricInstance(BaseModel):
15318
15376
  additional_notes: Optional[str] = Field(
15319
15377
  ..., description='Additional notes about the metric.', title='Additional Notes'
15320
15378
  )
15321
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15379
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15322
15380
  ..., description='The tags of the metric.', title='Tags'
15323
15381
  )
15324
15382
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15520,7 +15578,7 @@ class SimulationUnitTest(BaseModel):
15520
15578
  is_deleted: bool = Field(
15521
15579
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15522
15580
  )
15523
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15581
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15524
15582
  ..., description='The tags of the simulation persona.', title='Tags'
15525
15583
  )
15526
15584
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15565,7 +15623,7 @@ class SimulationUnitTestInstance(BaseModel):
15565
15623
  is_deleted: bool = Field(
15566
15624
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15567
15625
  )
15568
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15626
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15569
15627
  ..., description='The tags of the simulation persona.', title='Tags'
15570
15628
  )
15571
15629
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15907,7 +15965,9 @@ class RoleModifyRoleRequest(BaseModel):
15907
15965
  )
15908
15966
  inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
15909
15967
  Field(
15910
- {},
15968
+ default_factory=lambda: RoleModifyRoleRequestInheritedFrom.model_validate(
15969
+ {}
15970
+ ),
15911
15971
  description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
15912
15972
  title='Inherited From',
15913
15973
  )
@@ -15936,14 +15996,12 @@ class ServiceCreateServiceRequest(BaseModel):
15936
15996
  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.',
15937
15997
  title='Is Active',
15938
15998
  )
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
- )
15999
+ release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16000
+ None,
16001
+ 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.',
15944
16002
  )
15945
16003
  keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
15946
- [],
16004
+ default_factory=list,
15947
16005
  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.',
15948
16006
  max_length=20,
15949
16007
  title='Keyterms',
@@ -15953,12 +16011,6 @@ class ServiceCreateServiceRequest(BaseModel):
15953
16011
  )
15954
16012
 
15955
16013
 
15956
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
15957
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
15958
- ..., description='The version set to upsert.'
15959
- )
15960
-
15961
-
15962
16014
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
15963
16015
  name: str = Field(..., description='The name of the unit test.', min_length=1)
15964
16016
  description: str = Field(
@@ -16114,7 +16166,7 @@ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16114
16166
  tool_id: str = Field(
16115
16167
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16116
16168
  )
16117
- tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16169
+ tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16118
16170
  ..., description='The version of the tool that was invoked.'
16119
16171
  )
16120
16172
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.92.0
3
+ Version: 0.94.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=_-KncYKnvsdmQgLvtUfo0Nts6Ti77hmOpAVddK1uavE,139
1
+ amigo_sdk/__init__.py,sha256=V9LrsPXWSjmJjrzhBX2Jg7fwyt0bJwh_4Y1wHPk41Bc,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=JKajQhqIWAtaNWGEFpTWgKiso8_jNtuHINQEGRHwl1Q,454821
9
+ amigo_sdk/generated/model.py,sha256=rFQ0yRQ2P4AanO0unJKQENIEhdJhmAE1jDEuYPZnKQM,456886
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.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,,
14
+ amigo_sdk-0.94.0.dist-info/METADATA,sha256=o6UgzqxKnPOF1KVjeBZxQqFnzJhtkk4s8oDIVOwaa-k,8499
15
+ amigo_sdk-0.94.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.94.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.94.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.94.0.dist-info/RECORD,,