amigo_sdk 0.109.0__py3-none-any.whl → 0.111.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.109.0"
1
+ __version__ = "0.111.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: 2026-02-03T19:54:09+00:00
3
+ # timestamp: 2026-02-03T22:52:28+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1377,11 +1377,6 @@ class MongoCollectionsDynamicBehaviorSetVersionDynamicBehaviorSetVersionChangeTo
1377
1377
  )
1378
1378
 
1379
1379
 
1380
- class MongoCollectionsMetricMetricTag(BaseModel):
1381
- key: str = Field(..., title='Key')
1382
- value: str | None = Field(..., title='Value')
1383
-
1384
-
1385
1380
  class MongoCollectionsMetricMetricUserInfo(
1386
1381
  MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1387
1382
  ):
@@ -1460,6 +1455,11 @@ class MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo(
1460
1455
  pass
1461
1456
 
1462
1457
 
1458
+ class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1459
+ key: str = Field(..., title='Key')
1460
+ value: str | None = Field(..., title='Value')
1461
+
1462
+
1463
1463
  class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1464
1464
  BaseModel
1465
1465
  ):
@@ -1500,12 +1500,6 @@ class MongoCollectionsTemporaryPermissionGrantTemporaryPermissionGrantUserInfo(
1500
1500
  pass
1501
1501
 
1502
1502
 
1503
- class MongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1504
- major: int = Field(..., title='Major')
1505
- minor: int = Field(..., title='Minor')
1506
- patch: int = Field(..., title='Patch')
1507
-
1508
-
1509
1503
  class MongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1510
1504
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1511
1505
  user_org_id: str = Field(
@@ -1513,6 +1507,12 @@ class MongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1513
1507
  )
1514
1508
 
1515
1509
 
1510
+ class MongoCollectionsToolVersionToolVersionVersion(BaseModel):
1511
+ major: int = Field(..., title='Major')
1512
+ minor: int = Field(..., title='Minor')
1513
+ patch: int = Field(..., title='Patch')
1514
+
1515
+
1516
1516
  class MongoCollectionsUserUserPreferences(BaseModel):
1517
1517
  enable_response_recommendation: bool | None = Field(
1518
1518
  False,
@@ -1816,20 +1816,6 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1816
1816
  )
1817
1817
 
1818
1818
 
1819
- class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1820
- BaseModel
1821
- ):
1822
- id: str = Field(..., title='Id')
1823
- name: str = Field(..., title='Name')
1824
- is_active: bool = Field(..., title='Is Active')
1825
- applied_to_services: list[str] = Field(..., title='Applied To Services')
1826
- tags: dict[str, str | None] = Field(..., title='Tags')
1827
- created_at: AwareDatetime = Field(..., title='Created At')
1828
- creator: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1829
- updated_at: AwareDatetime = Field(..., title='Updated At')
1830
- updated_by: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1831
-
1832
-
1833
1819
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1834
1820
  applied_to_services_ids: list[str] = Field(
1835
1821
  ...,
@@ -1850,14 +1836,18 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1850
1836
  )
1851
1837
 
1852
1838
 
1853
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1854
- dynamic_behavior_sets: list[
1855
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1856
- ] = Field(
1857
- ...,
1858
- description='The retrieved dynamic behavior sets.',
1859
- title='Dynamic Behavior Sets',
1860
- )
1839
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1840
+ BaseModel
1841
+ ):
1842
+ id: str = Field(..., title='Id')
1843
+ name: str = Field(..., title='Name')
1844
+ is_active: bool = Field(..., title='Is Active')
1845
+ applied_to_services: list[str] = Field(..., title='Applied To Services')
1846
+ tags: dict[str, str | None] = Field(..., title='Tags')
1847
+ created_at: AwareDatetime = Field(..., title='Created At')
1848
+ creator: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1849
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1850
+ updated_by: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1861
1851
 
1862
1852
 
1863
1853
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequest(BaseModel):
@@ -10828,6 +10818,13 @@ class RoleModifyRoleResponse(BaseModel):
10828
10818
  )
10829
10819
 
10830
10820
 
10821
+ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10822
+ llm_name: LLMType
10823
+ params: dict[str, Any] | None = Field(
10824
+ {}, description='LLM-specific parameters to use.', title='Params'
10825
+ )
10826
+
10827
+
10831
10828
  class ServiceCreateServiceResponse(BaseModel):
10832
10829
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10833
10830
 
@@ -10903,13 +10900,6 @@ class ServiceUpdateServiceRequest(BaseModel):
10903
10900
  )
10904
10901
 
10905
10902
 
10906
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
10907
- llm_name: LLMType
10908
- params: dict[str, Any] | None = Field(
10909
- {}, description='LLM-specific parameters to use.', title='Params'
10910
- )
10911
-
10912
-
10913
10903
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
10914
10904
  background: str = Field(
10915
10905
  ..., description='The background of the simulation persona.', min_length=1
@@ -11015,16 +11005,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11015
11005
  )
11016
11006
 
11017
11007
 
11018
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11019
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11020
- run_count: int = Field(
11021
- ...,
11022
- description='The number of times to run the unit test.',
11023
- gt=0,
11024
- title='Run Count',
11025
- )
11026
-
11027
-
11028
11008
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11029
11009
  simulation_unit_test_set_id: str = Field(
11030
11010
  ...,
@@ -11082,6 +11062,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11082
11062
  )
11083
11063
 
11084
11064
 
11065
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11066
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11067
+ name: str = Field(
11068
+ ..., description='The name of the simulation persona.', title='Name'
11069
+ )
11070
+ role: str = Field(
11071
+ ..., description='The role of the simulation persona.', title='Role'
11072
+ )
11073
+ tags: dict[str, str | None] = Field(
11074
+ ..., description='The tags of the simulation persona.', title='Tags'
11075
+ )
11076
+ is_deleted: bool = Field(
11077
+ ...,
11078
+ description='Whether the simulation persona is deleted.',
11079
+ title='Is Deleted',
11080
+ )
11081
+ created_at: AwareDatetime = Field(
11082
+ ...,
11083
+ description='The timestamp when the simulation persona was created.',
11084
+ title='Created At',
11085
+ )
11086
+ creator: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11087
+ ..., description='The user who created the simulation persona.'
11088
+ )
11089
+ updated_at: AwareDatetime = Field(
11090
+ ...,
11091
+ description='The timestamp when the simulation persona was last updated.',
11092
+ title='Updated At',
11093
+ )
11094
+ updated_by: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11095
+ ..., description='The user who last updated the simulation persona.'
11096
+ )
11097
+
11098
+
11085
11099
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11086
11100
  simulation_scenario_versions: list[SimulationScenarioVersion] = Field(
11087
11101
  ...,
@@ -11113,6 +11127,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11113
11127
  )
11114
11128
 
11115
11129
 
11130
+ class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11131
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11132
+ name: str = Field(
11133
+ ..., description='The name of the simulation scenario.', title='Name'
11134
+ )
11135
+ tags: dict[str, str | None] = Field(
11136
+ ..., description='The tags of the simulation scenario.', title='Tags'
11137
+ )
11138
+ is_deleted: bool = Field(
11139
+ ...,
11140
+ description='Whether the simulation scenario is deleted.',
11141
+ title='Is Deleted',
11142
+ )
11143
+ created_at: AwareDatetime = Field(
11144
+ ...,
11145
+ description='The timestamp when the simulation scenario was created.',
11146
+ title='Created At',
11147
+ )
11148
+ creator: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11149
+ ..., description='The user who created the simulation scenario.'
11150
+ )
11151
+ updated_at: AwareDatetime = Field(
11152
+ ...,
11153
+ description='The timestamp when the simulation scenario was last updated.',
11154
+ title='Updated At',
11155
+ )
11156
+ updated_by: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11157
+ ..., description='The user who last updated the simulation scenario.'
11158
+ )
11159
+
11160
+
11116
11161
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11117
11162
  presigned_url: str = Field(
11118
11163
  ...,
@@ -11201,68 +11246,21 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11201
11246
  )
11202
11247
 
11203
11248
 
11204
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11205
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11206
- name: str = Field(
11207
- ..., description='The name of the simulation persona.', title='Name'
11208
- )
11209
- role: str = Field(
11210
- ..., description='The role of the simulation persona.', title='Role'
11211
- )
11212
- tags: dict[str, str | None] = Field(
11213
- ..., description='The tags of the simulation persona.', title='Tags'
11214
- )
11215
- is_deleted: bool = Field(
11216
- ...,
11217
- description='Whether the simulation persona is deleted.',
11218
- title='Is Deleted',
11219
- )
11220
- created_at: AwareDatetime = Field(
11221
- ...,
11222
- description='The timestamp when the simulation persona was created.',
11223
- title='Created At',
11224
- )
11225
- creator: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11226
- ..., description='The user who created the simulation persona.'
11227
- )
11228
- updated_at: AwareDatetime = Field(
11229
- ...,
11230
- description='The timestamp when the simulation persona was last updated.',
11231
- title='Updated At',
11232
- )
11233
- updated_by: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11234
- ..., description='The user who last updated the simulation persona.'
11249
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11250
+ simulation_personas: list[
11251
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11252
+ ] = Field(
11253
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11235
11254
  )
11236
11255
 
11237
11256
 
11238
- class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11239
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11240
- name: str = Field(
11241
- ..., description='The name of the simulation scenario.', title='Name'
11242
- )
11243
- tags: dict[str, str | None] = Field(
11244
- ..., description='The tags of the simulation scenario.', title='Tags'
11245
- )
11246
- is_deleted: bool = Field(
11247
- ...,
11248
- description='Whether the simulation scenario is deleted.',
11249
- title='Is Deleted',
11250
- )
11251
- created_at: AwareDatetime = Field(
11252
- ...,
11253
- description='The timestamp when the simulation scenario was created.',
11254
- title='Created At',
11255
- )
11256
- creator: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11257
- ..., description='The user who created the simulation scenario.'
11258
- )
11259
- updated_at: AwareDatetime = Field(
11257
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11258
+ simulation_scenarios: list[
11259
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11260
+ ] = Field(
11260
11261
  ...,
11261
- description='The timestamp when the simulation scenario was last updated.',
11262
- title='Updated At',
11263
- )
11264
- updated_by: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11265
- ..., description='The user who last updated the simulation scenario.'
11262
+ description='The list of simulation scenarios.',
11263
+ title='Simulation Scenarios',
11266
11264
  )
11267
11265
 
11268
11266
 
@@ -11328,35 +11326,13 @@ class RunCount(RootModel[int]):
11328
11326
  )
11329
11327
 
11330
11328
 
11331
- class UnitTestRuns(
11332
- RootModel[list[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11333
- ):
11334
- root: list[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11335
- Field(
11336
- ...,
11337
- description='The unit test runs that are part of this set.',
11338
- min_length=1,
11339
- title='Unit Test Runs',
11340
- )
11341
- )
11342
-
11343
-
11344
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11345
- name: PydanticBaseModelStrippedNonemptyString1 | None = Field(
11346
- None, description='The name of the simulation unit test set.'
11347
- )
11348
- description: PydanticBaseModelStrippedNonemptyString1 | FieldNotSet | None = Field(
11349
- default_factory=lambda: PydanticBaseModelStrippedNonemptyString1({}),
11350
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11351
- title='Description',
11352
- )
11353
- unit_test_runs: UnitTestRuns | None = Field(
11354
- None,
11355
- description='The unit test runs that are part of this set.',
11356
- title='Unit Test Runs',
11357
- )
11358
- tags: dict[str, str | None] | None = Field(
11359
- None, description='The tags of the simulation unit test set.', title='Tags'
11329
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11330
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11331
+ run_count: int = Field(
11332
+ ...,
11333
+ description='The number of times to run the unit test.',
11334
+ gt=0,
11335
+ title='Run Count',
11360
11336
  )
11361
11337
 
11362
11338
 
@@ -11393,6 +11369,22 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11393
11369
  )
11394
11370
 
11395
11371
 
11372
+ class InvocationMode(Enum):
11373
+ regular = 'regular'
11374
+ conversation_simulation = 'conversation-simulation'
11375
+
11376
+
11377
+ class ToolInvokeToolVersionRequestInput(BaseModel):
11378
+ input_parameters: dict[str, Any] = Field(
11379
+ ...,
11380
+ description='The input parameters for the tool invocation.',
11381
+ title='Input Parameters',
11382
+ )
11383
+ invocation_mode: InvocationMode = Field(
11384
+ ..., description='The mode of invocation.', title='Invocation Mode'
11385
+ )
11386
+
11387
+
11396
11388
  class ToolModifyToolRequest(BaseModel):
11397
11389
  description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
11398
11390
  None, description='A description of this tool. Only updates if not-null.'
@@ -11432,19 +11424,34 @@ class ToolPublishToolVersionResponse(BaseModel):
11432
11424
  )
11433
11425
 
11434
11426
 
11435
- class InvocationMode(Enum):
11436
- regular = 'regular'
11437
- conversation_simulation = 'conversation-simulation'
11438
-
11439
-
11440
- class ToolTestToolRequestInput(BaseModel):
11441
- input_parameters: dict[str, Any] = Field(
11427
+ class ToolTestToolRequest(BaseModel):
11428
+ inputs: list[ToolInvokeToolVersionRequestInput] = Field(
11442
11429
  ...,
11443
- description='The input parameters for the tool invocation.',
11444
- title='Input Parameters',
11430
+ description='The list of inputs for the tool invocation.',
11431
+ max_length=10,
11432
+ min_length=1,
11433
+ title='Inputs',
11445
11434
  )
11446
- invocation_mode: InvocationMode = Field(
11447
- ..., description='The mode of invocation.', title='Invocation Mode'
11435
+ commit_branch: str = Field(
11436
+ ...,
11437
+ description='The branch in the tools repo whose tip will be tested.',
11438
+ title='Commit Branch',
11439
+ )
11440
+ project_path: str = Field(
11441
+ ...,
11442
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11443
+ pattern='^[-\\w\\d_/]+$',
11444
+ title='Project Path',
11445
+ )
11446
+ required_envvars: dict[str, str] = Field(
11447
+ ...,
11448
+ description='The environment variables required for the tool to run.',
11449
+ title='Required Envvars',
11450
+ )
11451
+ required_secret_envvars: dict[str, str] = Field(
11452
+ ...,
11453
+ description='The secret environment variables required for the tool to run.',
11454
+ title='Required Secret Envvars',
11448
11455
  )
11449
11456
 
11450
11457
 
@@ -11966,7 +11973,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11966
11973
  title='Id',
11967
11974
  )
11968
11975
  message_type: list[MessageType] | None = Field(
11969
- ['external-event', 'user-message', 'agent-message'],
11976
+ ['user-message', 'agent-message', 'external-event'],
11970
11977
  description='The type of messages to retrieve.',
11971
11978
  title='Message Type',
11972
11979
  )
@@ -13711,7 +13718,7 @@ class ServiceInstance(BaseModel):
13711
13718
  agent_id: str = Field(
13712
13719
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13713
13720
  )
13714
- tags: list[MongoCollectionsMetricMetricTag] = Field(
13721
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13715
13722
  ..., description='The tags of the service.', title='Tags'
13716
13723
  )
13717
13724
  keyterms: list[str] = Field(
@@ -13769,7 +13776,7 @@ class SimulationUnitTestSet(BaseModel):
13769
13776
  description='Whether the unit test set has been deleted.',
13770
13777
  title='Is Deleted',
13771
13778
  )
13772
- tags: list[MongoCollectionsMetricMetricTag] = Field(
13779
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13773
13780
  ..., description='The tags of the simulation unit test set.', title='Tags'
13774
13781
  )
13775
13782
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13806,7 +13813,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13806
13813
  description='Whether the unit test set has been deleted.',
13807
13814
  title='Is Deleted',
13808
13815
  )
13809
- tags: list[MongoCollectionsMetricMetricTag] = Field(
13816
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13810
13817
  ..., description='The tags of the simulation unit test set.', title='Tags'
13811
13818
  )
13812
13819
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13934,7 +13941,7 @@ class ToolInstance(BaseModel):
13934
13941
  description='A list of encrypted environment variables that some versions of this tool uses.',
13935
13942
  title='Secret Envvars',
13936
13943
  )
13937
- tags: list[MongoCollectionsMetricMetricTag] = Field(
13944
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13938
13945
  ..., description='The tags of the simulation persona.', title='Tags'
13939
13946
  )
13940
13947
 
@@ -13949,7 +13956,7 @@ class ToolVersionInstance(BaseModel):
13949
13956
  description='The ID of the tool that this version belongs to.',
13950
13957
  title='Tool Id',
13951
13958
  )
13952
- version: MongoCollectionsToolInvocationToolInvocationVersion = Field(
13959
+ version: MongoCollectionsToolVersionToolVersionVersion = Field(
13953
13960
  ..., description='The version of the tool.'
13954
13961
  )
13955
13962
  required_envvars: list[str] = Field(
@@ -14213,7 +14220,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidat
14213
14220
 
14214
14221
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14215
14222
  dynamic_behavior_sets: list[
14216
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14223
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14217
14224
  ] = Field(
14218
14225
  ...,
14219
14226
  description='The retrieved dynamic behavior sets.',
@@ -14237,6 +14244,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14237
14244
  )
14238
14245
 
14239
14246
 
14247
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14248
+ dynamic_behavior_sets: list[
14249
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14250
+ ] = Field(
14251
+ ...,
14252
+ description='The retrieved dynamic behavior sets.',
14253
+ title='Dynamic Behavior Sets',
14254
+ )
14255
+
14256
+
14240
14257
  class MetricCreateMetricRequest(BaseModel):
14241
14258
  name: str = Field(
14242
14259
  ...,
@@ -14516,6 +14533,10 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14516
14533
  )
14517
14534
 
14518
14535
 
14536
+ class RoleCreateRoleRequestPermissionGrant(PermissionGrantInstance):
14537
+ pass
14538
+
14539
+
14519
14540
  class RoleCreateTemporaryPermissionGrantRequest(BaseModel):
14520
14541
  user_id: str = Field(
14521
14542
  ...,
@@ -14540,8 +14561,36 @@ class RoleCreateTemporaryPermissionGrantRequest(BaseModel):
14540
14561
  )
14541
14562
 
14542
14563
 
14543
- class RoleModifyRoleRequestPermissionGrant(PermissionGrantInstance):
14544
- pass
14564
+ class RoleModifyRoleRequest(BaseModel):
14565
+ description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
14566
+ None,
14567
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
14568
+ )
14569
+ permission_grants: list[RoleCreateRoleRequestPermissionGrant] | None = Field(
14570
+ None,
14571
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14572
+ title='Permission Grants',
14573
+ )
14574
+ frontend_view: FrontendView | None = Field(
14575
+ None,
14576
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14577
+ )
14578
+
14579
+
14580
+ class ServiceCreateServiceRequestVersionSet(BaseModel):
14581
+ agent_version_number: int | None = Field(
14582
+ ...,
14583
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14584
+ title='Agent Version Number',
14585
+ )
14586
+ service_hierarchical_state_machine_version_number: int | None = Field(
14587
+ ...,
14588
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14589
+ title='Service Hierarchical State Machine Version Number',
14590
+ )
14591
+ llm_model_preferences: dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14592
+ Field(..., title='Llm Model Preferences')
14593
+ )
14545
14594
 
14546
14595
 
14547
14596
  class ServiceGetServicesResponse(BaseModel):
@@ -14564,20 +14613,10 @@ class ServiceGetServicesResponse(BaseModel):
14564
14613
  )
14565
14614
 
14566
14615
 
14567
- class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14568
- agent_version_number: int | None = Field(
14569
- ...,
14570
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14571
- title='Agent Version Number',
14572
- )
14573
- service_hierarchical_state_machine_version_number: int | None = Field(
14574
- ...,
14575
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14576
- title='Service Hierarchical State Machine Version Number',
14616
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
14617
+ version_set: ServiceCreateServiceRequestVersionSet = Field(
14618
+ ..., description='The version set to upsert.'
14577
14619
  )
14578
- llm_model_preferences: dict[
14579
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14580
- ] = Field(..., title='Llm Model Preferences')
14581
14620
 
14582
14621
 
14583
14622
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14629,7 +14668,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14629
14668
  ..., description='The description of the simulation unit test set.'
14630
14669
  )
14631
14670
  unit_test_runs: list[
14632
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14671
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14633
14672
  ] = Field(
14634
14673
  ...,
14635
14674
  description='The unit test runs that are part of this set.',
@@ -14643,7 +14682,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14643
14682
 
14644
14683
  class SimulationGetSimulationPersonasResponse(BaseModel):
14645
14684
  simulation_personas: list[
14646
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14685
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14647
14686
  ] = Field(
14648
14687
  ..., description='The list of simulation personas.', title='Simulation Personas'
14649
14688
  )
@@ -14665,7 +14704,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14665
14704
 
14666
14705
  class SimulationGetSimulationScenariosResponse(BaseModel):
14667
14706
  simulation_scenarios: list[
14668
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14707
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14669
14708
  ] = Field(
14670
14709
  ...,
14671
14710
  description='The list of simulation scenarios.',
@@ -14711,24 +14750,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14711
14750
  )
14712
14751
 
14713
14752
 
14714
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14715
- simulation_personas: list[
14716
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14717
- ] = Field(
14718
- ..., description='The list of simulation personas.', title='Simulation Personas'
14719
- )
14720
-
14721
-
14722
- class SimulationSearchSimulationScenariosResponse(BaseModel):
14723
- simulation_scenarios: list[
14724
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14725
- ] = Field(
14726
- ...,
14727
- description='The list of simulation scenarios.',
14728
- title='Simulation Scenarios',
14729
- )
14730
-
14731
-
14732
14753
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14733
14754
  simulation_unit_test_sets: list[SimulationUnitTestSet] = Field(
14734
14755
  ...,
@@ -14743,6 +14764,38 @@ class SimulationUpdateSimulationUnitTestRequestSuccessCriterion(
14743
14764
  pass
14744
14765
 
14745
14766
 
14767
+ class UnitTestRuns(
14768
+ RootModel[list[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14769
+ ):
14770
+ root: list[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14771
+ Field(
14772
+ ...,
14773
+ description='The unit test runs that are part of this set.',
14774
+ min_length=1,
14775
+ title='Unit Test Runs',
14776
+ )
14777
+ )
14778
+
14779
+
14780
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14781
+ name: PydanticBaseModelStrippedNonemptyString1 | None = Field(
14782
+ None, description='The name of the simulation unit test set.'
14783
+ )
14784
+ description: PydanticBaseModelStrippedNonemptyString1 | FieldNotSet | None = Field(
14785
+ default_factory=lambda: PydanticBaseModelStrippedNonemptyString1({}),
14786
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14787
+ title='Description',
14788
+ )
14789
+ unit_test_runs: UnitTestRuns | None = Field(
14790
+ None,
14791
+ description='The unit test runs that are part of this set.',
14792
+ title='Unit Test Runs',
14793
+ )
14794
+ tags: dict[str, str | None] | None = Field(
14795
+ None, description='The tags of the simulation unit test set.', title='Tags'
14796
+ )
14797
+
14798
+
14746
14799
  class ToolGetToolVersionsResponse(BaseModel):
14747
14800
  tool_versions: list[ToolVersionInstance] = Field(
14748
14801
  ...,
@@ -14784,7 +14837,7 @@ class ToolGetToolsResponse(BaseModel):
14784
14837
 
14785
14838
 
14786
14839
  class ToolInvokeToolVersionRequest(BaseModel):
14787
- inputs: list[ToolTestToolRequestInput] = Field(
14840
+ inputs: list[ToolInvokeToolVersionRequestInput] = Field(
14788
14841
  ...,
14789
14842
  description='The list of inputs for the tool invocation.',
14790
14843
  max_length=10,
@@ -14808,37 +14861,6 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
14808
14861
  deletes: list[DeleteRequest] | None = Field(default_factory=list, title='Deletes')
14809
14862
 
14810
14863
 
14811
- class ToolTestToolRequest(BaseModel):
14812
- inputs: list[ToolTestToolRequestInput] = Field(
14813
- ...,
14814
- description='The list of inputs for the tool invocation.',
14815
- max_length=10,
14816
- min_length=1,
14817
- title='Inputs',
14818
- )
14819
- commit_branch: str = Field(
14820
- ...,
14821
- description='The branch in the tools repo whose tip will be tested.',
14822
- title='Commit Branch',
14823
- )
14824
- project_path: str = Field(
14825
- ...,
14826
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
14827
- pattern='^[-\\w\\d_/]+$',
14828
- title='Project Path',
14829
- )
14830
- required_envvars: dict[str, str] = Field(
14831
- ...,
14832
- description='The environment variables required for the tool to run.',
14833
- title='Required Envvars',
14834
- )
14835
- required_secret_envvars: dict[str, str] = Field(
14836
- ...,
14837
- description='The secret environment variables required for the tool to run.',
14838
- title='Required Secret Envvars',
14839
- )
14840
-
14841
-
14842
14864
  class ToolTestToolResponse(ToolInvokeToolVersionResponse):
14843
14865
  pass
14844
14866
 
@@ -15038,7 +15060,7 @@ class Metric(BaseModel):
15038
15060
  additional_notes: str | None = Field(
15039
15061
  ..., description='Additional notes about the metric.', title='Additional Notes'
15040
15062
  )
15041
- tags: list[MongoCollectionsMetricMetricTag] = Field(
15063
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15042
15064
  ..., description='The tags of the metric.', title='Tags'
15043
15065
  )
15044
15066
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15111,7 +15133,7 @@ class MetricInstance(BaseModel):
15111
15133
  additional_notes: str | None = Field(
15112
15134
  ..., description='Additional notes about the metric.', title='Additional Notes'
15113
15135
  )
15114
- tags: list[MongoCollectionsMetricMetricTag] = Field(
15136
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15115
15137
  ..., description='The tags of the metric.', title='Tags'
15116
15138
  )
15117
15139
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15207,7 +15229,7 @@ class SimulationUnitTest(BaseModel):
15207
15229
  is_deleted: bool = Field(
15208
15230
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15209
15231
  )
15210
- tags: list[MongoCollectionsMetricMetricTag] = Field(
15232
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15211
15233
  ..., description='The tags of the simulation persona.', title='Tags'
15212
15234
  )
15213
15235
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15252,7 +15274,7 @@ class SimulationUnitTestInstance(BaseModel):
15252
15274
  is_deleted: bool = Field(
15253
15275
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15254
15276
  )
15255
- tags: list[MongoCollectionsMetricMetricTag] = Field(
15277
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15256
15278
  ..., description='The tags of the simulation persona.', title='Tags'
15257
15279
  )
15258
15280
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15537,7 +15559,7 @@ class RoleCreateRoleRequest(BaseModel):
15537
15559
  description: str = Field(
15538
15560
  ..., description='A description about the role.', min_length=1
15539
15561
  )
15540
- permission_grants: list[RoleModifyRoleRequestPermissionGrant] = Field(
15562
+ permission_grants: list[RoleCreateRoleRequestPermissionGrant] = Field(
15541
15563
  ...,
15542
15564
  description='A list of permission grants associated with this role.',
15543
15565
  title='Permission Grants',
@@ -15571,22 +15593,6 @@ class RoleGetTemporaryPermissionGrantsResponse(BaseModel):
15571
15593
  )
15572
15594
 
15573
15595
 
15574
- class RoleModifyRoleRequest(BaseModel):
15575
- description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
15576
- None,
15577
- description='A description about the role. Only updated if specified. This field is a mutable field.',
15578
- )
15579
- permission_grants: list[RoleModifyRoleRequestPermissionGrant] | None = Field(
15580
- None,
15581
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15582
- title='Permission Grants',
15583
- )
15584
- frontend_view: FrontendView | None = Field(
15585
- None,
15586
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15587
- )
15588
-
15589
-
15590
15596
  class ServiceCreateServiceRequest(BaseModel):
15591
15597
  service_hierarchical_state_machine_id: str = Field(
15592
15598
  ...,
@@ -15609,7 +15615,7 @@ class ServiceCreateServiceRequest(BaseModel):
15609
15615
  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.',
15610
15616
  title='Is Active',
15611
15617
  )
15612
- release_version_set: ServiceUpsertServiceVersionSetRequestVersionSet | None = Field(
15618
+ release_version_set: ServiceCreateServiceRequestVersionSet | None = Field(
15613
15619
  None,
15614
15620
  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.',
15615
15621
  )
@@ -15624,12 +15630,6 @@ class ServiceCreateServiceRequest(BaseModel):
15624
15630
  )
15625
15631
 
15626
15632
 
15627
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
15628
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
15629
- ..., description='The version set to upsert.'
15630
- )
15631
-
15632
-
15633
15633
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
15634
15634
  name: str = Field(..., description='The name of the unit test.', min_length=1)
15635
15635
  description: str = Field(
@@ -15779,7 +15779,7 @@ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
15779
15779
  tool_id: str = Field(
15780
15780
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
15781
15781
  )
15782
- tool_version: MongoCollectionsToolInvocationToolInvocationVersion = Field(
15782
+ tool_version: MongoCollectionsToolVersionToolVersionVersion = Field(
15783
15783
  ..., description='The version of the tool that was invoked.'
15784
15784
  )
15785
15785
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.109.0
3
+ Version: 0.111.0
4
4
  Summary: Amigo AI Python SDK
5
5
  Author: Amigo AI
6
6
  License-File: LICENSE
@@ -2,7 +2,7 @@ scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  scripts/aliases.json,sha256=c1_bkZyvNDQ8iMrKtUuZQqdP87GdLnRPrb3wjX533eQ,322
3
3
  scripts/check.py,sha256=ikFavw1IjX51FNjO-kIzXjYdep3on0dKZHYvPElPFtc,2872
4
4
  scripts/gen_models.py,sha256=c4J_gHYQIBL3CcKg5z8oUusLvPePytfvLdZ7STHBcNk,3553
5
- amigo_sdk/__init__.py,sha256=rO5MZzslnWheO_CqeWF3yb7vFzKiKID8adpSMDTbN48,140
5
+ amigo_sdk/__init__.py,sha256=CobfN_6KhuLR-MSdF_BIB0pDDqgzmVXfxSVgqtOlaoQ,140
6
6
  amigo_sdk/_retry_utils.py,sha256=VbA_Uwv268J80d11R9XfnCjZiV-NwE1aXRsSlRjjRio,2108
7
7
  amigo_sdk/auth.py,sha256=WaM9PcEcnaC6CzNsgRKueHkdSAxNbRylzpR_3Q6guQ0,1765
8
8
  amigo_sdk/config.py,sha256=0eZIo-hcJ8ODftKAr-mwB-FGJxGO5PT5T4dRpyWPqAg,1491
@@ -10,13 +10,13 @@ amigo_sdk/errors.py,sha256=Yn12AxIQ6zE9jnGLWO0MUVbBsmw77Kzh82AijyreOkA,4818
10
10
  amigo_sdk/http_client.py,sha256=tfMXHqMTmlz2ja7aJhOVgbwAiJNlKCzPcK4UGNqXHO8,13488
11
11
  amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
12
12
  amigo_sdk/sdk_client.py,sha256=5nj8hzjHSFRs9JMNabdYIhQAcFE2G1jI_r7SHVGr9No,6106
13
- amigo_sdk/generated/model.py,sha256=odS_Apfmq8utIL9uYJW2rtxX67SYlW99jboacdgK44I,448739
13
+ amigo_sdk/generated/model.py,sha256=tlZz3E2AJFk6_8_mpxyBWEw_IfAsPM-2CvsjGXcVfy0,448961
14
14
  amigo_sdk/resources/conversation.py,sha256=X47PbPA6NqdkqXgxAPOjlO1E0W7t695tn1tPWSikMOk,14807
15
15
  amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
16
16
  amigo_sdk/resources/service.py,sha256=t1iA3nS9co-wuR-x5jBhAXXTWfMeGsLwfQcLycwVrCA,1536
17
17
  amigo_sdk/resources/user.py,sha256=P14lN-3fmIvELUjn_vpSaYpNsK-xd8zNmUV_KfcZPAU,4138
18
- amigo_sdk-0.109.0.dist-info/METADATA,sha256=kRZ3AaZ66vlAdgD90iW44Ja7tq2w06diTzgXPhaTRMw,8500
19
- amigo_sdk-0.109.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
20
- amigo_sdk-0.109.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
21
- amigo_sdk-0.109.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
22
- amigo_sdk-0.109.0.dist-info/RECORD,,
18
+ amigo_sdk-0.111.0.dist-info/METADATA,sha256=Y-2v5WWsZlplYDhGZKxI4L70QXylUQZ7ts1PSx1Y_es,8500
19
+ amigo_sdk-0.111.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
20
+ amigo_sdk-0.111.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
21
+ amigo_sdk-0.111.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
22
+ amigo_sdk-0.111.0.dist-info/RECORD,,