amigo_sdk 0.54.0__py3-none-any.whl → 0.56.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.54.0"
1
+ __version__ = "0.56.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-11-11T04:07:59+00:00
3
+ # timestamp: 2025-11-11T19:37:59+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1601,6 +1601,11 @@ class AmigoLibMongoCollectionsDynamicBehaviorSetVersionAction(BaseModel):
1601
1601
  )
1602
1602
 
1603
1603
 
1604
+ class AmigoLibMongoCollectionsMetricMetricTag(BaseModel):
1605
+ key: str = Field(..., title='Key')
1606
+ value: Optional[str] = Field(..., title='Value')
1607
+
1608
+
1604
1609
  AmigoLibMongoCollectionsMetricMetricUserInfo = (
1605
1610
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1606
1611
  )
@@ -1616,11 +1621,6 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1616
1621
  deny = 'Deny'
1617
1622
 
1618
1623
 
1619
- class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1620
- key: str = Field(..., title='Key')
1621
- value: Optional[str] = Field(..., title='Value')
1622
-
1623
-
1624
1624
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1625
1625
  agent_version_number: Optional[int] = Field(
1626
1626
  ...,
@@ -1937,6 +1937,20 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1937
1937
  )
1938
1938
 
1939
1939
 
1940
+ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1941
+ BaseModel
1942
+ ):
1943
+ id: str = Field(..., title='Id')
1944
+ name: str = Field(..., title='Name')
1945
+ is_active: bool = Field(..., title='Is Active')
1946
+ applied_to_services: List[str] = Field(..., title='Applied To Services')
1947
+ tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1948
+ created_at: AwareDatetime = Field(..., title='Created At')
1949
+ creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1950
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1951
+ updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1952
+
1953
+
1940
1954
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1941
1955
  applied_to_services_ids: List[str] = Field(
1942
1956
  ...,
@@ -1957,18 +1971,14 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1957
1971
  )
1958
1972
 
1959
1973
 
1960
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1961
- BaseModel
1962
- ):
1963
- id: str = Field(..., title='Id')
1964
- name: str = Field(..., title='Name')
1965
- is_active: bool = Field(..., title='Is Active')
1966
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1967
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1968
- created_at: AwareDatetime = Field(..., title='Created At')
1969
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1970
- updated_at: AwareDatetime = Field(..., title='Updated At')
1971
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1974
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1975
+ dynamic_behavior_sets: List[
1976
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1977
+ ] = Field(
1978
+ ...,
1979
+ description='The retrieved dynamic behavior sets.',
1980
+ title='Dynamic Behavior Sets',
1981
+ )
1972
1982
 
1973
1983
 
1974
1984
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10747,19 +10757,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10747
10757
  )
10748
10758
 
10749
10759
 
10750
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10760
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10751
10761
  AnnotationStateInputNextState
10752
10762
  ):
10753
10763
  pass
10754
10764
 
10755
10765
 
10756
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10766
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10757
10767
  BaseModel
10758
10768
  ):
10759
10769
  description: str = Field(..., min_length=1)
10760
10770
  next_state: Union[
10761
10771
  StateOrRefName,
10762
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10772
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10763
10773
  ] = Field(..., title='Next State')
10764
10774
 
10765
10775
 
@@ -11189,40 +11199,6 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11189
11199
  )
11190
11200
 
11191
11201
 
11192
- class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11193
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11194
- name: str = Field(
11195
- ..., description='The name of the simulation persona.', title='Name'
11196
- )
11197
- role: str = Field(
11198
- ..., description='The role of the simulation persona.', title='Role'
11199
- )
11200
- tags: Dict[str, Optional[str]] = Field(
11201
- ..., description='The tags of the simulation persona.', title='Tags'
11202
- )
11203
- is_deleted: bool = Field(
11204
- ...,
11205
- description='Whether the simulation persona is deleted.',
11206
- title='Is Deleted',
11207
- )
11208
- created_at: AwareDatetime = Field(
11209
- ...,
11210
- description='The timestamp when the simulation persona was created.',
11211
- title='Created At',
11212
- )
11213
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11214
- ..., description='The user who created the simulation persona.'
11215
- )
11216
- updated_at: AwareDatetime = Field(
11217
- ...,
11218
- description='The timestamp when the simulation persona was last updated.',
11219
- title='Updated At',
11220
- )
11221
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11222
- Field(..., description='The user who last updated the simulation persona.')
11223
- )
11224
-
11225
-
11226
11202
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11227
11203
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11228
11204
  ...,
@@ -11254,6 +11230,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11254
11230
  )
11255
11231
 
11256
11232
 
11233
+ class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11234
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11235
+ name: str = Field(
11236
+ ..., description='The name of the simulation scenario.', title='Name'
11237
+ )
11238
+ tags: Dict[str, Optional[str]] = Field(
11239
+ ..., description='The tags of the simulation scenario.', title='Tags'
11240
+ )
11241
+ is_deleted: bool = Field(
11242
+ ...,
11243
+ description='Whether the simulation scenario is deleted.',
11244
+ title='Is Deleted',
11245
+ )
11246
+ created_at: AwareDatetime = Field(
11247
+ ...,
11248
+ description='The timestamp when the simulation scenario was created.',
11249
+ title='Created At',
11250
+ )
11251
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11252
+ Field(..., description='The user who created the simulation scenario.')
11253
+ )
11254
+ updated_at: AwareDatetime = Field(
11255
+ ...,
11256
+ description='The timestamp when the simulation scenario was last updated.',
11257
+ title='Updated At',
11258
+ )
11259
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11260
+ Field(..., description='The user who last updated the simulation scenario.')
11261
+ )
11262
+
11263
+
11257
11264
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11258
11265
  presigned_url: str = Field(
11259
11266
  ...,
@@ -11342,42 +11349,47 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11342
11349
  )
11343
11350
 
11344
11351
 
11345
- class SimulationSearchSimulationPersonasResponse(BaseModel):
11346
- simulation_personas: List[
11347
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11348
- ] = Field(
11349
- ..., description='The list of simulation personas.', title='Simulation Personas'
11350
- )
11351
-
11352
-
11353
- class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11354
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11352
+ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11353
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11355
11354
  name: str = Field(
11356
- ..., description='The name of the simulation scenario.', title='Name'
11355
+ ..., description='The name of the simulation persona.', title='Name'
11356
+ )
11357
+ role: str = Field(
11358
+ ..., description='The role of the simulation persona.', title='Role'
11357
11359
  )
11358
11360
  tags: Dict[str, Optional[str]] = Field(
11359
- ..., description='The tags of the simulation scenario.', title='Tags'
11361
+ ..., description='The tags of the simulation persona.', title='Tags'
11360
11362
  )
11361
11363
  is_deleted: bool = Field(
11362
11364
  ...,
11363
- description='Whether the simulation scenario is deleted.',
11365
+ description='Whether the simulation persona is deleted.',
11364
11366
  title='Is Deleted',
11365
11367
  )
11366
11368
  created_at: AwareDatetime = Field(
11367
11369
  ...,
11368
- description='The timestamp when the simulation scenario was created.',
11370
+ description='The timestamp when the simulation persona was created.',
11369
11371
  title='Created At',
11370
11372
  )
11371
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11372
- Field(..., description='The user who created the simulation scenario.')
11373
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11374
+ ..., description='The user who created the simulation persona.'
11373
11375
  )
11374
11376
  updated_at: AwareDatetime = Field(
11375
11377
  ...,
11376
- description='The timestamp when the simulation scenario was last updated.',
11378
+ description='The timestamp when the simulation persona was last updated.',
11377
11379
  title='Updated At',
11378
11380
  )
11379
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11380
- Field(..., description='The user who last updated the simulation scenario.')
11381
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11382
+ Field(..., description='The user who last updated the simulation persona.')
11383
+ )
11384
+
11385
+
11386
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11387
+ simulation_scenarios: List[
11388
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11389
+ ] = Field(
11390
+ ...,
11391
+ description='The list of simulation scenarios.',
11392
+ title='Simulation Scenarios',
11381
11393
  )
11382
11394
 
11383
11395
 
@@ -11507,6 +11519,22 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11507
11519
  )
11508
11520
 
11509
11521
 
11522
+ class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11523
+ regular = 'regular'
11524
+ conversation_simulation = 'conversation-simulation'
11525
+
11526
+
11527
+ class ToolInvokeToolVersionRequestInput(BaseModel):
11528
+ input_parameters: Dict[str, Any] = Field(
11529
+ ...,
11530
+ description='The input parameters for the tool invocation.',
11531
+ title='Input Parameters',
11532
+ )
11533
+ invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11534
+ ..., description='The mode of invocation.', title='Invocation Mode'
11535
+ )
11536
+
11537
+
11510
11538
  class ToolModifyToolRequest(BaseModel):
11511
11539
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11512
11540
  None, description='A description of this tool. Only updates if not-null.'
@@ -11549,19 +11577,34 @@ class ToolPublishToolVersionResponse(BaseModel):
11549
11577
  )
11550
11578
 
11551
11579
 
11552
- class ToolTestToolRequestInputInvocationMode(Enum):
11553
- regular = 'regular'
11554
- conversation_simulation = 'conversation-simulation'
11555
-
11556
-
11557
- class ToolTestToolRequestInput(BaseModel):
11558
- input_parameters: Dict[str, Any] = Field(
11580
+ class ToolTestToolRequest(BaseModel):
11581
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11559
11582
  ...,
11560
- description='The input parameters for the tool invocation.',
11561
- title='Input Parameters',
11583
+ description='The list of inputs for the tool invocation.',
11584
+ max_length=10,
11585
+ min_length=1,
11586
+ title='Inputs',
11562
11587
  )
11563
- invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11564
- ..., description='The mode of invocation.', title='Invocation Mode'
11588
+ commit_branch: str = Field(
11589
+ ...,
11590
+ description='The branch in the tools repo whose tip will be tested.',
11591
+ title='Commit Branch',
11592
+ )
11593
+ project_path: str = Field(
11594
+ ...,
11595
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11596
+ pattern='^[-\\w\\d_/]+$',
11597
+ title='Project Path',
11598
+ )
11599
+ required_envvars: Dict[str, str] = Field(
11600
+ ...,
11601
+ description='The environment variables required for the tool to run.',
11602
+ title='Required Envvars',
11603
+ )
11604
+ required_secret_envvars: Dict[str, str] = Field(
11605
+ ...,
11606
+ description='The secret environment variables required for the tool to run.',
11607
+ title='Required Secret Envvars',
11565
11608
  )
11566
11609
 
11567
11610
 
@@ -12098,7 +12141,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12098
12141
  [], description='The IDs of the messages to retrieve.', title='Id'
12099
12142
  )
12100
12143
  message_type: Optional[List[MessageType]] = Field(
12101
- ['external-event', 'agent-message', 'user-message'],
12144
+ ['user-message', 'agent-message', 'external-event'],
12102
12145
  description='The type of messages to retrieve.',
12103
12146
  title='Message Type',
12104
12147
  )
@@ -13829,7 +13872,7 @@ class ServiceInstance(BaseModel):
13829
13872
  agent_id: str = Field(
13830
13873
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13831
13874
  )
13832
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13875
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13833
13876
  ..., description='The tags of the service.', title='Tags'
13834
13877
  )
13835
13878
 
@@ -13882,7 +13925,7 @@ class SimulationUnitTestSet(BaseModel):
13882
13925
  description='Whether the unit test set has been deleted.',
13883
13926
  title='Is Deleted',
13884
13927
  )
13885
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13928
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13886
13929
  ..., description='The tags of the simulation unit test set.', title='Tags'
13887
13930
  )
13888
13931
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13921,7 +13964,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13921
13964
  description='Whether the unit test set has been deleted.',
13922
13965
  title='Is Deleted',
13923
13966
  )
13924
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13967
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13925
13968
  ..., description='The tags of the simulation unit test set.', title='Tags'
13926
13969
  )
13927
13970
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14033,7 +14076,7 @@ class ToolInstance(BaseModel):
14033
14076
  description='A list of encrypted environment variables that some versions of this tool uses.',
14034
14077
  title='Secret Envvars',
14035
14078
  )
14036
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14079
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14037
14080
  ..., description='The tags of the simulation persona.', title='Tags'
14038
14081
  )
14039
14082
 
@@ -14367,7 +14410,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14367
14410
 
14368
14411
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14369
14412
  dynamic_behavior_sets: List[
14370
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14413
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14371
14414
  ] = Field(
14372
14415
  ...,
14373
14416
  description='The retrieved dynamic behavior sets.',
@@ -14391,16 +14434,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14391
14434
  )
14392
14435
 
14393
14436
 
14394
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14395
- dynamic_behavior_sets: List[
14396
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14397
- ] = Field(
14398
- ...,
14399
- description='The retrieved dynamic behavior sets.',
14400
- title='Dynamic Behavior Sets',
14401
- )
14402
-
14403
-
14404
14437
  class MetricCreateMetricRequest(BaseModel):
14405
14438
  name: str = Field(
14406
14439
  ...,
@@ -14669,7 +14702,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14669
14702
  )
14670
14703
 
14671
14704
 
14672
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14705
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14673
14706
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14674
14707
  ...,
14675
14708
  description='Whether this grant allows or denies the specified access.',
@@ -14686,29 +14719,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14686
14719
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14687
14720
 
14688
14721
 
14689
- class RoleModifyRoleRequest(BaseModel):
14690
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14691
- None,
14692
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14693
- )
14694
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14695
- None,
14696
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14697
- title='Permission Grants',
14698
- )
14699
- frontend_view: Optional[FrontendView] = Field(
14700
- None,
14701
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14702
- )
14703
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14704
- Field(
14705
- {},
14706
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14707
- title='Inherited From',
14708
- )
14709
- )
14710
-
14711
-
14712
14722
  class ServiceCreateServiceRequestVersionSet(BaseModel):
14713
14723
  agent_version_number: Optional[int] = Field(
14714
14724
  ...,
@@ -14818,7 +14828,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14818
14828
 
14819
14829
  class SimulationGetSimulationPersonasResponse(BaseModel):
14820
14830
  simulation_personas: List[
14821
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14831
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14822
14832
  ] = Field(
14823
14833
  ..., description='The list of simulation personas.', title='Simulation Personas'
14824
14834
  )
@@ -14842,7 +14852,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14842
14852
 
14843
14853
  class SimulationGetSimulationScenariosResponse(BaseModel):
14844
14854
  simulation_scenarios: List[
14845
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14855
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14846
14856
  ] = Field(
14847
14857
  ...,
14848
14858
  description='The list of simulation scenarios.',
@@ -14890,13 +14900,11 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14890
14900
  )
14891
14901
 
14892
14902
 
14893
- class SimulationSearchSimulationScenariosResponse(BaseModel):
14894
- simulation_scenarios: List[
14895
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14903
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
14904
+ simulation_personas: List[
14905
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14896
14906
  ] = Field(
14897
- ...,
14898
- description='The list of simulation scenarios.',
14899
- title='Simulation Scenarios',
14907
+ ..., description='The list of simulation personas.', title='Simulation Personas'
14900
14908
  )
14901
14909
 
14902
14910
 
@@ -14954,7 +14962,7 @@ class ToolGetToolsResponse(BaseModel):
14954
14962
 
14955
14963
 
14956
14964
  class ToolInvokeToolVersionRequest(BaseModel):
14957
- inputs: List[ToolTestToolRequestInput] = Field(
14965
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
14958
14966
  ...,
14959
14967
  description='The list of inputs for the tool invocation.',
14960
14968
  max_length=10,
@@ -14975,37 +14983,6 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
14975
14983
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
14976
14984
 
14977
14985
 
14978
- class ToolTestToolRequest(BaseModel):
14979
- inputs: List[ToolTestToolRequestInput] = Field(
14980
- ...,
14981
- description='The list of inputs for the tool invocation.',
14982
- max_length=10,
14983
- min_length=1,
14984
- title='Inputs',
14985
- )
14986
- commit_branch: str = Field(
14987
- ...,
14988
- description='The branch in the tools repo whose tip will be tested.',
14989
- title='Commit Branch',
14990
- )
14991
- project_path: str = Field(
14992
- ...,
14993
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
14994
- pattern='^[-\\w\\d_/]+$',
14995
- title='Project Path',
14996
- )
14997
- required_envvars: Dict[str, str] = Field(
14998
- ...,
14999
- description='The environment variables required for the tool to run.',
15000
- title='Required Envvars',
15001
- )
15002
- required_secret_envvars: Dict[str, str] = Field(
15003
- ...,
15004
- description='The secret environment variables required for the tool to run.',
15005
- title='Required Secret Envvars',
15006
- )
15007
-
15008
-
15009
14986
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15010
14987
 
15011
14988
 
@@ -15110,7 +15087,7 @@ class ActionStateInput(BaseModel):
15110
15087
  Field(..., title='Boundary Constraints')
15111
15088
  )
15112
15089
  exit_conditions: List[
15113
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15090
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15114
15091
  ] = Field(..., title='Exit Conditions')
15115
15092
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15116
15093
  ..., title='Action Tool Call Specs'
@@ -15219,7 +15196,7 @@ class DecisionStateInput(BaseModel):
15219
15196
  type: Literal['decision'] = Field(..., title='Type')
15220
15197
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15221
15198
  exit_conditions: List[
15222
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15199
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15223
15200
  ] = Field(..., title='Exit Conditions')
15224
15201
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15225
15202
  ..., title='Decision Guidelines'
@@ -15260,7 +15237,7 @@ class Metric(BaseModel):
15260
15237
  additional_notes: Optional[str] = Field(
15261
15238
  ..., description='Additional notes about the metric.', title='Additional Notes'
15262
15239
  )
15263
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15240
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15264
15241
  ..., description='The tags of the metric.', title='Tags'
15265
15242
  )
15266
15243
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15330,7 +15307,7 @@ class MetricInstance(BaseModel):
15330
15307
  additional_notes: Optional[str] = Field(
15331
15308
  ..., description='Additional notes about the metric.', title='Additional Notes'
15332
15309
  )
15333
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15310
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15334
15311
  ..., description='The tags of the metric.', title='Tags'
15335
15312
  )
15336
15313
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15532,7 +15509,7 @@ class SimulationUnitTest(BaseModel):
15532
15509
  is_deleted: bool = Field(
15533
15510
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15534
15511
  )
15535
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15512
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15536
15513
  ..., description='The tags of the simulation persona.', title='Tags'
15537
15514
  )
15538
15515
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15577,7 +15554,7 @@ class SimulationUnitTestInstance(BaseModel):
15577
15554
  is_deleted: bool = Field(
15578
15555
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15579
15556
  )
15580
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15557
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15581
15558
  ..., description='The tags of the simulation persona.', title='Tags'
15582
15559
  )
15583
15560
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15880,7 +15857,7 @@ class RoleCreateRoleRequest(BaseModel):
15880
15857
  description: str = Field(
15881
15858
  ..., description='A description about the role.', min_length=1
15882
15859
  )
15883
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15860
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
15884
15861
  ...,
15885
15862
  description='A list of permission grants associated with this role.',
15886
15863
  title='Permission Grants',
@@ -15906,6 +15883,29 @@ class RoleGetRolesResponse(BaseModel):
15906
15883
  )
15907
15884
 
15908
15885
 
15886
+ class RoleModifyRoleRequest(BaseModel):
15887
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15888
+ None,
15889
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
15890
+ )
15891
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
15892
+ None,
15893
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15894
+ title='Permission Grants',
15895
+ )
15896
+ frontend_view: Optional[FrontendView] = Field(
15897
+ None,
15898
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15899
+ )
15900
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
15901
+ Field(
15902
+ {},
15903
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
15904
+ title='Inherited From',
15905
+ )
15906
+ )
15907
+
15908
+
15909
15909
  class ServiceCreateServiceRequest(BaseModel):
15910
15910
  service_hierarchical_state_machine_id: str = Field(
15911
15911
  ...,
@@ -16070,7 +16070,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16070
16070
  )
16071
16071
 
16072
16072
 
16073
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16073
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16074
16074
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16075
16075
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16076
16076
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16097,6 +16097,14 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16097
16097
  )
16098
16098
 
16099
16099
 
16100
+ class ToolSearchToolInvocationsResponse(BaseModel):
16101
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16102
+ Field(
16103
+ ..., description='The list of tool invocations.', title='Tool Invocations'
16104
+ )
16105
+ )
16106
+
16107
+
16100
16108
  class UserGetUsersResponse(BaseModel):
16101
16109
  users: List[UserGetUsersResponseUserInstance] = Field(
16102
16110
  ..., description='Users in this organization.', title='Users'
@@ -16210,7 +16218,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16210
16218
 
16211
16219
 
16212
16220
  class ToolGetToolInvocationsResponse(BaseModel):
16213
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16221
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16214
16222
  Field(
16215
16223
  ..., description='The list of tool invocations.', title='Tool Invocations'
16216
16224
  )
@@ -16225,11 +16233,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
16225
16233
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16226
16234
  title='Continuation Token',
16227
16235
  )
16228
-
16229
-
16230
- class ToolSearchToolInvocationsResponse(BaseModel):
16231
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16232
- Field(
16233
- ..., description='The list of tool invocations.', title='Tool Invocations'
16234
- )
16235
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.54.0
3
+ Version: 0.56.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=7YgGExmirJuEfMVlYEDH2o3vEuwjaXdsiTJIxUGYGFM,139
1
+ amigo_sdk/__init__.py,sha256=xtAbVpLB9uTlaHYewA7p0IL8N4ezV9Zp5U2aZhJyM3A,139
2
2
  amigo_sdk/_retry_utils.py,sha256=kFjw9Wqye6MB5-B4rjLxsbSNcfYBIztcollIoncd1hY,2142
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=RkRyF5eAASd8fIOS6YvL9rLDvLAYWqHfpHSCR7jqvl4,4840
6
6
  amigo_sdk/http_client.py,sha256=v25UoUbXcMeHTnfJMcrl8RSSwCVkKUL1Jv-0HoXP1B4,13507
7
7
  amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
8
8
  amigo_sdk/sdk_client.py,sha256=Kr9M9o66pOLu0T2VDvqdYMmPZzgKJyTELu7BSPgGrYQ,6152
9
- amigo_sdk/generated/model.py,sha256=hNVrcNTvPPnTwc8JSZmU_JiYBr2C2ugI9Vpy0ZliuC4,452082
9
+ amigo_sdk/generated/model.py,sha256=wTpk82DBNBsA80bFikmOZMSqDNchZn7jBP7G4yca6hM,452101
10
10
  amigo_sdk/resources/conversation.py,sha256=5PkJOvLKqnriSS9K9hKw2VRPxRLTuABEbCyPy1fz1r0,14817
11
11
  amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
12
12
  amigo_sdk/resources/service.py,sha256=SiwEHXCQk4r1b_tGv47M08VuB7RALDHJQzWlpuD937g,1571
13
13
  amigo_sdk/resources/user.py,sha256=vZPCw8i-xvcDQik8ouJbm8qVHucRbfxCWI3yYMDj8hg,3517
14
- amigo_sdk-0.54.0.dist-info/METADATA,sha256=JYQX5vEe5wCQrs0jeqgBbMpu5nd6VI_WcgkZBmIWga8,8350
15
- amigo_sdk-0.54.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- amigo_sdk-0.54.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.54.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.54.0.dist-info/RECORD,,
14
+ amigo_sdk-0.56.0.dist-info/METADATA,sha256=CW4oHaZjxktm4CfXSh361h-ByaiybHL46CEEuOzt_D4,8350
15
+ amigo_sdk-0.56.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ amigo_sdk-0.56.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.56.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.56.0.dist-info/RECORD,,