amigo_sdk 0.58.0__py3-none-any.whl → 0.59.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.58.0"
1
+ __version__ = "0.59.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-12T01:18:51+00:00
3
+ # timestamp: 2025-11-12T02:24:09+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1652,11 +1652,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1652
1652
  )
1653
1653
 
1654
1654
 
1655
- class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1656
- key: str = Field(..., title='Key')
1657
- value: Optional[str] = Field(..., title='Value')
1658
-
1659
-
1660
1655
  class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1661
1656
  BaseModel
1662
1657
  ):
@@ -1693,6 +1688,11 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1693
1688
  )
1694
1689
 
1695
1690
 
1691
+ class AmigoLibMongoCollectionsToolToolTag(BaseModel):
1692
+ key: str = Field(..., title='Key')
1693
+ value: Optional[str] = Field(..., title='Value')
1694
+
1695
+
1696
1696
  class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1697
1697
  major: int = Field(..., title='Major')
1698
1698
  minor: int = Field(..., title='Minor')
@@ -10757,19 +10757,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10757
10757
  )
10758
10758
 
10759
10759
 
10760
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10760
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10761
10761
  AnnotationStateInputNextState
10762
10762
  ):
10763
10763
  pass
10764
10764
 
10765
10765
 
10766
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10766
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10767
10767
  BaseModel
10768
10768
  ):
10769
10769
  description: str = Field(..., min_length=1)
10770
10770
  next_state: Union[
10771
10771
  StateOrRefName,
10772
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10772
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10773
10773
  ] = Field(..., title='Next State')
10774
10774
 
10775
10775
 
@@ -10933,9 +10933,17 @@ class RoleModifyRoleResponse(BaseModel):
10933
10933
  )
10934
10934
 
10935
10935
 
10936
- class ServiceCreateServiceRequestVersionSetLLMLoadBalancingSetConfig(BaseModel):
10937
- llm_load_balancing_set_name: LLMLoadBalancingSetType
10938
- configs: Dict[str, PerLLMConfig] = Field(..., title='Configs')
10936
+ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10937
+ llm_name: LLMType
10938
+ top_p: float = Field(..., description='The preferred `top_p` value.', title='Top P')
10939
+ temperature: float = Field(
10940
+ ..., description='The preferred temperature value.', title='Temperature'
10941
+ )
10942
+ top_k: int = Field(
10943
+ ...,
10944
+ description='The preferred `top_k` value. Note that not all LLMs support this.',
10945
+ title='Top K',
10946
+ )
10939
10947
 
10940
10948
 
10941
10949
  class ServiceCreateServiceResponse(BaseModel):
@@ -10997,17 +11005,11 @@ class ServiceUpdateServiceRequest(BaseModel):
10997
11005
  )
10998
11006
 
10999
11007
 
11000
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11001
- llm_name: LLMType
11002
- top_p: float = Field(..., description='The preferred `top_p` value.', title='Top P')
11003
- temperature: float = Field(
11004
- ..., description='The preferred temperature value.', title='Temperature'
11005
- )
11006
- top_k: int = Field(
11007
- ...,
11008
- description='The preferred `top_k` value. Note that not all LLMs support this.',
11009
- title='Top K',
11010
- )
11008
+ class ServiceUpsertServiceVersionSetRequestVersionSetLLMLoadBalancingSetConfig(
11009
+ BaseModel
11010
+ ):
11011
+ llm_load_balancing_set_name: LLMLoadBalancingSetType
11012
+ configs: Dict[str, PerLLMConfig] = Field(..., title='Configs')
11011
11013
 
11012
11014
 
11013
11015
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
@@ -11128,16 +11130,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11128
11130
  )
11129
11131
 
11130
11132
 
11131
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11132
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11133
- run_count: int = Field(
11134
- ...,
11135
- description='The number of times to run the unit test.',
11136
- gt=0,
11137
- title='Run Count',
11138
- )
11139
-
11140
-
11141
11133
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11142
11134
  simulation_unit_test_set_id: str = Field(
11143
11135
  ...,
@@ -11438,39 +11430,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11438
11430
  )
11439
11431
 
11440
11432
 
11441
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11442
- RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11443
- ):
11444
- root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11445
- Field(
11446
- ...,
11447
- description='The unit test runs that are part of this set.',
11448
- min_length=1,
11449
- title='Unit Test Runs',
11450
- )
11451
- )
11452
-
11453
-
11454
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11455
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11456
- None, description='The name of the simulation unit test set.'
11457
- )
11458
- description: Optional[
11459
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11460
- ] = Field(
11461
- {},
11462
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11463
- title='Description',
11464
- )
11465
- unit_test_runs: Optional[
11466
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11467
- ] = Field(
11468
- None,
11469
- description='The unit test runs that are part of this set.',
11470
- title='Unit Test Runs',
11471
- )
11472
- tags: Optional[Dict[str, Optional[str]]] = Field(
11473
- None, description='The tags of the simulation unit test set.', title='Tags'
11433
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11434
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11435
+ run_count: int = Field(
11436
+ ...,
11437
+ description='The number of times to run the unit test.',
11438
+ gt=0,
11439
+ title='Run Count',
11474
11440
  )
11475
11441
 
11476
11442
 
@@ -11507,22 +11473,6 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11507
11473
  )
11508
11474
 
11509
11475
 
11510
- class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11511
- regular = 'regular'
11512
- conversation_simulation = 'conversation-simulation'
11513
-
11514
-
11515
- class ToolInvokeToolVersionRequestInput(BaseModel):
11516
- input_parameters: Dict[str, Any] = Field(
11517
- ...,
11518
- description='The input parameters for the tool invocation.',
11519
- title='Input Parameters',
11520
- )
11521
- invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11522
- ..., description='The mode of invocation.', title='Invocation Mode'
11523
- )
11524
-
11525
-
11526
11476
  class ToolModifyToolRequest(BaseModel):
11527
11477
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11528
11478
  None, description='A description of this tool. Only updates if not-null.'
@@ -11565,34 +11515,19 @@ class ToolPublishToolVersionResponse(BaseModel):
11565
11515
  )
11566
11516
 
11567
11517
 
11568
- class ToolTestToolRequest(BaseModel):
11569
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11570
- ...,
11571
- description='The list of inputs for the tool invocation.',
11572
- max_length=10,
11573
- min_length=1,
11574
- title='Inputs',
11575
- )
11576
- commit_branch: str = Field(
11577
- ...,
11578
- description='The branch in the tools repo whose tip will be tested.',
11579
- title='Commit Branch',
11580
- )
11581
- project_path: str = Field(
11582
- ...,
11583
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11584
- pattern='^[-\\w\\d_/]+$',
11585
- title='Project Path',
11586
- )
11587
- required_envvars: Dict[str, str] = Field(
11518
+ class ToolTestToolRequestInputInvocationMode(Enum):
11519
+ regular = 'regular'
11520
+ conversation_simulation = 'conversation-simulation'
11521
+
11522
+
11523
+ class ToolTestToolRequestInput(BaseModel):
11524
+ input_parameters: Dict[str, Any] = Field(
11588
11525
  ...,
11589
- description='The environment variables required for the tool to run.',
11590
- title='Required Envvars',
11526
+ description='The input parameters for the tool invocation.',
11527
+ title='Input Parameters',
11591
11528
  )
11592
- required_secret_envvars: Dict[str, str] = Field(
11593
- ...,
11594
- description='The secret environment variables required for the tool to run.',
11595
- title='Required Secret Envvars',
11529
+ invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11530
+ ..., description='The mode of invocation.', title='Invocation Mode'
11596
11531
  )
11597
11532
 
11598
11533
 
@@ -12129,7 +12064,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12129
12064
  [], description='The IDs of the messages to retrieve.', title='Id'
12130
12065
  )
12131
12066
  message_type: Optional[List[MessageType]] = Field(
12132
- ['agent-message', 'user-message', 'external-event'],
12067
+ ['agent-message', 'external-event', 'user-message'],
12133
12068
  description='The type of messages to retrieve.',
12134
12069
  title='Message Type',
12135
12070
  )
@@ -13860,9 +13795,9 @@ class ServiceInstance(BaseModel):
13860
13795
  agent_id: str = Field(
13861
13796
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13862
13797
  )
13863
- tags: List[
13864
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13865
- ] = Field(..., description='The tags of the service.', title='Tags')
13798
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13799
+ ..., description='The tags of the service.', title='Tags'
13800
+ )
13866
13801
 
13867
13802
 
13868
13803
  class SimulationConversationInvocationSource(BaseModel):
@@ -13913,9 +13848,7 @@ class SimulationUnitTestSet(BaseModel):
13913
13848
  description='Whether the unit test set has been deleted.',
13914
13849
  title='Is Deleted',
13915
13850
  )
13916
- tags: List[
13917
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13918
- ] = Field(
13851
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13919
13852
  ..., description='The tags of the simulation unit test set.', title='Tags'
13920
13853
  )
13921
13854
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13954,9 +13887,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13954
13887
  description='Whether the unit test set has been deleted.',
13955
13888
  title='Is Deleted',
13956
13889
  )
13957
- tags: List[
13958
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13959
- ] = Field(
13890
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13960
13891
  ..., description='The tags of the simulation unit test set.', title='Tags'
13961
13892
  )
13962
13893
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14068,9 +13999,9 @@ class ToolInstance(BaseModel):
14068
13999
  description='A list of encrypted environment variables that some versions of this tool uses.',
14069
14000
  title='Secret Envvars',
14070
14001
  )
14071
- tags: List[
14072
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14073
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14002
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14003
+ ..., description='The tags of the simulation persona.', title='Tags'
14004
+ )
14074
14005
 
14075
14006
 
14076
14007
  class ToolVersionInstance(BaseModel):
@@ -14694,7 +14625,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14694
14625
  )
14695
14626
 
14696
14627
 
14697
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14628
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14698
14629
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14699
14630
  ...,
14700
14631
  description='Whether this grant allows or denies the specified access.',
@@ -14711,49 +14642,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14711
14642
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14712
14643
 
14713
14644
 
14714
- class RoleModifyRoleRequest(BaseModel):
14715
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14716
- None,
14717
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14718
- )
14719
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14720
- None,
14721
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14722
- title='Permission Grants',
14723
- )
14724
- frontend_view: Optional[FrontendView] = Field(
14725
- None,
14726
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14727
- )
14728
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14729
- Field(
14730
- {},
14731
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14732
- title='Inherited From',
14733
- )
14734
- )
14735
-
14736
-
14737
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14738
- agent_version_number: Optional[int] = Field(
14739
- ...,
14740
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14741
- title='Agent Version Number',
14742
- )
14743
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14744
- ...,
14745
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14746
- title='Service Hierarchical State Machine Version Number',
14747
- )
14748
- llm_model_preferences: Dict[
14749
- str,
14750
- Union[
14751
- ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig,
14752
- ServiceCreateServiceRequestVersionSetLLMLoadBalancingSetConfig,
14753
- ],
14754
- ] = Field(..., title='Llm Model Preferences')
14755
-
14756
-
14757
14645
  class ServiceGetServicesResponse(BaseModel):
14758
14646
  services: List[ServiceInstance] = Field(
14759
14647
  ..., description='The services that are found.', title='Services'
@@ -14774,10 +14662,24 @@ class ServiceGetServicesResponse(BaseModel):
14774
14662
  )
14775
14663
 
14776
14664
 
14777
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
14778
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14779
- ..., description='The version set to upsert.'
14665
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14666
+ agent_version_number: Optional[int] = Field(
14667
+ ...,
14668
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14669
+ title='Agent Version Number',
14670
+ )
14671
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14672
+ ...,
14673
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14674
+ title='Service Hierarchical State Machine Version Number',
14780
14675
  )
14676
+ llm_model_preferences: Dict[
14677
+ str,
14678
+ Union[
14679
+ ServiceCreateServiceRequestVersionSetLLMConfig,
14680
+ ServiceUpsertServiceVersionSetRequestVersionSetLLMLoadBalancingSetConfig,
14681
+ ],
14682
+ ] = Field(..., title='Llm Model Preferences')
14781
14683
 
14782
14684
 
14783
14685
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14829,7 +14731,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14829
14731
  ..., description='The description of the simulation unit test set.'
14830
14732
  )
14831
14733
  unit_test_runs: List[
14832
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14734
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14833
14735
  ] = Field(
14834
14736
  ...,
14835
14737
  description='The unit test runs that are part of this set.',
@@ -14946,6 +14848,42 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
14946
14848
  )
14947
14849
 
14948
14850
 
14851
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14852
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14853
+ ):
14854
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14855
+ Field(
14856
+ ...,
14857
+ description='The unit test runs that are part of this set.',
14858
+ min_length=1,
14859
+ title='Unit Test Runs',
14860
+ )
14861
+ )
14862
+
14863
+
14864
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14865
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14866
+ None, description='The name of the simulation unit test set.'
14867
+ )
14868
+ description: Optional[
14869
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
14870
+ ] = Field(
14871
+ {},
14872
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14873
+ title='Description',
14874
+ )
14875
+ unit_test_runs: Optional[
14876
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
14877
+ ] = Field(
14878
+ None,
14879
+ description='The unit test runs that are part of this set.',
14880
+ title='Unit Test Runs',
14881
+ )
14882
+ tags: Optional[Dict[str, Optional[str]]] = Field(
14883
+ None, description='The tags of the simulation unit test set.', title='Tags'
14884
+ )
14885
+
14886
+
14949
14887
  class ToolGetToolVersionsResponse(BaseModel):
14950
14888
  tool_versions: List[ToolVersionInstance] = Field(
14951
14889
  ...,
@@ -14987,7 +14925,7 @@ class ToolGetToolsResponse(BaseModel):
14987
14925
 
14988
14926
 
14989
14927
  class ToolInvokeToolVersionRequest(BaseModel):
14990
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
14928
+ inputs: List[ToolTestToolRequestInput] = Field(
14991
14929
  ...,
14992
14930
  description='The list of inputs for the tool invocation.',
14993
14931
  max_length=10,
@@ -15008,6 +14946,37 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15008
14946
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15009
14947
 
15010
14948
 
14949
+ class ToolTestToolRequest(BaseModel):
14950
+ inputs: List[ToolTestToolRequestInput] = Field(
14951
+ ...,
14952
+ description='The list of inputs for the tool invocation.',
14953
+ max_length=10,
14954
+ min_length=1,
14955
+ title='Inputs',
14956
+ )
14957
+ commit_branch: str = Field(
14958
+ ...,
14959
+ description='The branch in the tools repo whose tip will be tested.',
14960
+ title='Commit Branch',
14961
+ )
14962
+ project_path: str = Field(
14963
+ ...,
14964
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
14965
+ pattern='^[-\\w\\d_/]+$',
14966
+ title='Project Path',
14967
+ )
14968
+ required_envvars: Dict[str, str] = Field(
14969
+ ...,
14970
+ description='The environment variables required for the tool to run.',
14971
+ title='Required Envvars',
14972
+ )
14973
+ required_secret_envvars: Dict[str, str] = Field(
14974
+ ...,
14975
+ description='The secret environment variables required for the tool to run.',
14976
+ title='Required Secret Envvars',
14977
+ )
14978
+
14979
+
15011
14980
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15012
14981
 
15013
14982
 
@@ -15106,7 +15075,7 @@ class ActionStateInput(BaseModel):
15106
15075
  Field(..., title='Boundary Constraints')
15107
15076
  )
15108
15077
  exit_conditions: List[
15109
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15078
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15110
15079
  ] = Field(..., title='Exit Conditions')
15111
15080
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15112
15081
  ..., title='Action Tool Call Specs'
@@ -15215,7 +15184,7 @@ class DecisionStateInput(BaseModel):
15215
15184
  type: Literal['decision'] = Field(..., title='Type')
15216
15185
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15217
15186
  exit_conditions: List[
15218
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15187
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15219
15188
  ] = Field(..., title='Exit Conditions')
15220
15189
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15221
15190
  ..., title='Decision Guidelines'
@@ -15256,9 +15225,9 @@ class Metric(BaseModel):
15256
15225
  additional_notes: Optional[str] = Field(
15257
15226
  ..., description='Additional notes about the metric.', title='Additional Notes'
15258
15227
  )
15259
- tags: List[
15260
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15261
- ] = Field(..., description='The tags of the metric.', title='Tags')
15228
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15229
+ ..., description='The tags of the metric.', title='Tags'
15230
+ )
15262
15231
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15263
15232
  ..., description='The user who created the metric.'
15264
15233
  )
@@ -15326,9 +15295,9 @@ class MetricInstance(BaseModel):
15326
15295
  additional_notes: Optional[str] = Field(
15327
15296
  ..., description='Additional notes about the metric.', title='Additional Notes'
15328
15297
  )
15329
- tags: List[
15330
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15331
- ] = Field(..., description='The tags of the metric.', title='Tags')
15298
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15299
+ ..., description='The tags of the metric.', title='Tags'
15300
+ )
15332
15301
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15333
15302
  ..., description='The user who created the metric.'
15334
15303
  )
@@ -15528,9 +15497,9 @@ class SimulationUnitTest(BaseModel):
15528
15497
  is_deleted: bool = Field(
15529
15498
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15530
15499
  )
15531
- tags: List[
15532
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15533
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15500
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15501
+ ..., description='The tags of the simulation persona.', title='Tags'
15502
+ )
15534
15503
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15535
15504
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15536
15505
 
@@ -15573,9 +15542,9 @@ class SimulationUnitTestInstance(BaseModel):
15573
15542
  is_deleted: bool = Field(
15574
15543
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15575
15544
  )
15576
- tags: List[
15577
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15578
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15545
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15546
+ ..., description='The tags of the simulation persona.', title='Tags'
15547
+ )
15579
15548
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15580
15549
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15581
15550
 
@@ -15876,7 +15845,7 @@ class RoleCreateRoleRequest(BaseModel):
15876
15845
  description: str = Field(
15877
15846
  ..., description='A description about the role.', min_length=1
15878
15847
  )
15879
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15848
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
15880
15849
  ...,
15881
15850
  description='A list of permission grants associated with this role.',
15882
15851
  title='Permission Grants',
@@ -15902,6 +15871,29 @@ class RoleGetRolesResponse(BaseModel):
15902
15871
  )
15903
15872
 
15904
15873
 
15874
+ class RoleModifyRoleRequest(BaseModel):
15875
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15876
+ None,
15877
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
15878
+ )
15879
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
15880
+ None,
15881
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15882
+ title='Permission Grants',
15883
+ )
15884
+ frontend_view: Optional[FrontendView] = Field(
15885
+ None,
15886
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15887
+ )
15888
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
15889
+ Field(
15890
+ {},
15891
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
15892
+ title='Inherited From',
15893
+ )
15894
+ )
15895
+
15896
+
15905
15897
  class ServiceCreateServiceRequest(BaseModel):
15906
15898
  service_hierarchical_state_machine_id: str = Field(
15907
15899
  ...,
@@ -15924,15 +15916,23 @@ class ServiceCreateServiceRequest(BaseModel):
15924
15916
  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.',
15925
15917
  title='Is Active',
15926
15918
  )
15927
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
15928
- None,
15929
- 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.',
15919
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
15920
+ Field(
15921
+ None,
15922
+ 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.',
15923
+ )
15930
15924
  )
15931
15925
  tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
15932
15926
  ..., description='The tags of this service.', title='Tags'
15933
15927
  )
15934
15928
 
15935
15929
 
15930
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
15931
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
15932
+ ..., description='The version set to upsert.'
15933
+ )
15934
+
15935
+
15936
15936
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
15937
15937
  name: str = Field(..., description='The name of the unit test.', min_length=1)
15938
15938
  description: str = Field(
@@ -16066,7 +16066,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16066
16066
  )
16067
16067
 
16068
16068
 
16069
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16069
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16070
16070
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16071
16071
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16072
16072
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16093,6 +16093,14 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16093
16093
  )
16094
16094
 
16095
16095
 
16096
+ class ToolSearchToolInvocationsResponse(BaseModel):
16097
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16098
+ Field(
16099
+ ..., description='The list of tool invocations.', title='Tool Invocations'
16100
+ )
16101
+ )
16102
+
16103
+
16096
16104
  class UserGetUsersResponse(BaseModel):
16097
16105
  users: List[UserSearchUsersResponseUserInstance] = Field(
16098
16106
  ..., description='Users in this organization.', title='Users'
@@ -16212,7 +16220,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16212
16220
 
16213
16221
 
16214
16222
  class ToolGetToolInvocationsResponse(BaseModel):
16215
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16223
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16216
16224
  Field(
16217
16225
  ..., description='The list of tool invocations.', title='Tool Invocations'
16218
16226
  )
@@ -16227,11 +16235,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
16227
16235
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16228
16236
  title='Continuation Token',
16229
16237
  )
16230
-
16231
-
16232
- class ToolSearchToolInvocationsResponse(BaseModel):
16233
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16234
- Field(
16235
- ..., description='The list of tool invocations.', title='Tool Invocations'
16236
- )
16237
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.58.0
3
+ Version: 0.59.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=eq0nI8emjzOuEhNVbyTq62mVm0ZxwgblB4dS5i2zHJo,139
1
+ amigo_sdk/__init__.py,sha256=YfC2yqJ-vgGRTmduEHhH5Oc35gDmkfaqfl8-O16Vdgo,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=IJY4qg5iX34qf66twvrTeQ8Pg61C0zwwRfftVbfaLoc,452416
9
+ amigo_sdk/generated/model.py,sha256=4t6KgjiEXxRXMAKf0tiUJwkTUmjpUeqH16oTl5UHzWE,452102
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.58.0.dist-info/METADATA,sha256=ze-715fj09NNtJRWplnwVN6aBrPb64apadF31J8Hi3U,8350
15
- amigo_sdk-0.58.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- amigo_sdk-0.58.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.58.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.58.0.dist-info/RECORD,,
14
+ amigo_sdk-0.59.0.dist-info/METADATA,sha256=RVHMmG4MS7xKbhgpcp2Upvqyofypm_dnyqCbHnND_gI,8350
15
+ amigo_sdk-0.59.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ amigo_sdk-0.59.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.59.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.59.0.dist-info/RECORD,,