amigo_sdk 0.76.0__py3-none-any.whl → 0.78.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.76.0"
1
+ __version__ = "0.78.0"
2
2
  from .sdk_client import AmigoClient, AsyncAmigoClient
3
3
 
4
4
  __all__ = ["__version__", "AmigoClient", "AsyncAmigoClient"]
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: <stdin>
3
- # timestamp: 2025-12-05T19:36:26+00:00
3
+ # timestamp: 2025-12-05T22:50:39+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1616,6 +1616,11 @@ class AmigoLibMongoCollectionsDynamicBehaviorSetVersionAction(BaseModel):
1616
1616
  )
1617
1617
 
1618
1618
 
1619
+ class AmigoLibMongoCollectionsMetricMetricTag(BaseModel):
1620
+ key: str = Field(..., title='Key')
1621
+ value: Optional[str] = Field(..., title='Value')
1622
+
1623
+
1619
1624
  AmigoLibMongoCollectionsMetricMetricUserInfo = (
1620
1625
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1621
1626
  )
@@ -1631,11 +1636,6 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1631
1636
  deny = 'Deny'
1632
1637
 
1633
1638
 
1634
- class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1635
- key: str = Field(..., title='Key')
1636
- value: Optional[str] = Field(..., title='Value')
1637
-
1638
-
1639
1639
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1640
1640
  agent_version_number: Optional[int] = Field(
1641
1641
  ...,
@@ -1705,12 +1705,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1705
1705
  )
1706
1706
 
1707
1707
 
1708
- class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1709
- major: int = Field(..., title='Major')
1710
- minor: int = Field(..., title='Minor')
1711
- patch: int = Field(..., title='Patch')
1712
-
1713
-
1714
1708
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1715
1709
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1716
1710
  user_org_id: str = Field(
@@ -1718,6 +1712,12 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1718
1712
  )
1719
1713
 
1720
1714
 
1715
+ class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1716
+ major: int = Field(..., title='Major')
1717
+ minor: int = Field(..., title='Minor')
1718
+ patch: int = Field(..., title='Patch')
1719
+
1720
+
1721
1721
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1722
1722
  enable_response_recommendation: Optional[bool] = Field(
1723
1723
  False,
@@ -1956,20 +1956,6 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1956
1956
  )
1957
1957
 
1958
1958
 
1959
- class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1960
- BaseModel
1961
- ):
1962
- id: str = Field(..., title='Id')
1963
- name: str = Field(..., title='Name')
1964
- is_active: bool = Field(..., title='Is Active')
1965
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1966
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1967
- created_at: AwareDatetime = Field(..., title='Created At')
1968
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1969
- updated_at: AwareDatetime = Field(..., title='Updated At')
1970
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1971
-
1972
-
1973
1959
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1974
1960
  applied_to_services_ids: List[str] = Field(
1975
1961
  ...,
@@ -1990,14 +1976,18 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1990
1976
  )
1991
1977
 
1992
1978
 
1993
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1994
- dynamic_behavior_sets: List[
1995
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1996
- ] = Field(
1997
- ...,
1998
- description='The retrieved dynamic behavior sets.',
1999
- title='Dynamic Behavior Sets',
2000
- )
1979
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1980
+ BaseModel
1981
+ ):
1982
+ id: str = Field(..., title='Id')
1983
+ name: str = Field(..., title='Name')
1984
+ is_active: bool = Field(..., title='Is Active')
1985
+ applied_to_services: List[str] = Field(..., title='Applied To Services')
1986
+ tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1987
+ created_at: AwareDatetime = Field(..., title='Created At')
1988
+ creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1989
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1990
+ updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
2001
1991
 
2002
1992
 
2003
1993
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10753,6 +10743,13 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10753
10743
  )
10754
10744
 
10755
10745
 
10746
+ class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10747
+ description: str = Field(..., min_length=1)
10748
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10749
+ ..., title='Tags'
10750
+ )
10751
+
10752
+
10756
10753
  class OrganizationCreateOrganizationResponse(BaseModel):
10757
10754
  org_id: str = Field(
10758
10755
  ...,
@@ -10776,19 +10773,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10776
10773
  )
10777
10774
 
10778
10775
 
10779
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10776
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10780
10777
  AnnotationStateInputNextState
10781
10778
  ):
10782
10779
  pass
10783
10780
 
10784
10781
 
10785
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10782
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10786
10783
  BaseModel
10787
10784
  ):
10788
10785
  description: str = Field(..., min_length=1)
10789
10786
  next_state: Union[
10790
10787
  StateOrRefName,
10791
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10788
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10792
10789
  ] = Field(..., title='Next State')
10793
10790
 
10794
10791
 
@@ -10894,18 +10891,22 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10894
10891
  )
10895
10892
 
10896
10893
 
10894
+ class OrganizationModifyOrganizationRequestUserDimensions(
10895
+ RootModel[List[OrganizationCreateOrganizationRequestUserDimension]]
10896
+ ):
10897
+ root: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
10898
+ ...,
10899
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10900
+ min_length=1,
10901
+ title='User Dimensions',
10902
+ )
10903
+
10904
+
10897
10905
  OrganizationModifyOrganizationRequestPreferences = (
10898
10906
  OrganizationCreateOrganizationRequestPreferences
10899
10907
  )
10900
10908
 
10901
10909
 
10902
- class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10903
- description: str = Field(..., min_length=1)
10904
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10905
- ..., title='Tags'
10906
- )
10907
-
10908
-
10909
10910
  class RoleAssignRoleRequest(BaseModel):
10910
10911
  user_id: str = Field(
10911
10912
  ...,
@@ -11549,6 +11550,22 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11549
11550
  )
11550
11551
 
11551
11552
 
11553
+ class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11554
+ regular = 'regular'
11555
+ conversation_simulation = 'conversation-simulation'
11556
+
11557
+
11558
+ class ToolInvokeToolVersionRequestInput(BaseModel):
11559
+ input_parameters: Dict[str, Any] = Field(
11560
+ ...,
11561
+ description='The input parameters for the tool invocation.',
11562
+ title='Input Parameters',
11563
+ )
11564
+ invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11565
+ ..., description='The mode of invocation.', title='Invocation Mode'
11566
+ )
11567
+
11568
+
11552
11569
  class ToolModifyToolRequest(BaseModel):
11553
11570
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11554
11571
  None, description='A description of this tool. Only updates if not-null.'
@@ -11591,19 +11608,34 @@ class ToolPublishToolVersionResponse(BaseModel):
11591
11608
  )
11592
11609
 
11593
11610
 
11594
- class ToolTestToolRequestInputInvocationMode(Enum):
11595
- regular = 'regular'
11596
- conversation_simulation = 'conversation-simulation'
11597
-
11598
-
11599
- class ToolTestToolRequestInput(BaseModel):
11600
- input_parameters: Dict[str, Any] = Field(
11611
+ class ToolTestToolRequest(BaseModel):
11612
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11601
11613
  ...,
11602
- description='The input parameters for the tool invocation.',
11603
- title='Input Parameters',
11614
+ description='The list of inputs for the tool invocation.',
11615
+ max_length=10,
11616
+ min_length=1,
11617
+ title='Inputs',
11604
11618
  )
11605
- invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11606
- ..., description='The mode of invocation.', title='Invocation Mode'
11619
+ commit_branch: str = Field(
11620
+ ...,
11621
+ description='The branch in the tools repo whose tip will be tested.',
11622
+ title='Commit Branch',
11623
+ )
11624
+ project_path: str = Field(
11625
+ ...,
11626
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11627
+ pattern='^[-\\w\\d_/]+$',
11628
+ title='Project Path',
11629
+ )
11630
+ required_envvars: Dict[str, str] = Field(
11631
+ ...,
11632
+ description='The environment variables required for the tool to run.',
11633
+ title='Required Envvars',
11634
+ )
11635
+ required_secret_envvars: Dict[str, str] = Field(
11636
+ ...,
11637
+ description='The secret environment variables required for the tool to run.',
11638
+ title='Required Secret Envvars',
11607
11639
  )
11608
11640
 
11609
11641
 
@@ -12139,7 +12171,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12139
12171
  [], description='The IDs of the messages to retrieve.', title='Id'
12140
12172
  )
12141
12173
  message_type: Optional[List[MessageType]] = Field(
12142
- ['external-event', 'user-message', 'agent-message'],
12174
+ ['user-message', 'external-event', 'agent-message'],
12143
12175
  description='The type of messages to retrieve.',
12144
12176
  title='Message Type',
12145
12177
  )
@@ -13945,7 +13977,7 @@ class ServiceInstance(BaseModel):
13945
13977
  agent_id: str = Field(
13946
13978
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13947
13979
  )
13948
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13980
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13949
13981
  ..., description='The tags of the service.', title='Tags'
13950
13982
  )
13951
13983
 
@@ -13998,7 +14030,7 @@ class SimulationUnitTestSet(BaseModel):
13998
14030
  description='Whether the unit test set has been deleted.',
13999
14031
  title='Is Deleted',
14000
14032
  )
14001
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14033
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14002
14034
  ..., description='The tags of the simulation unit test set.', title='Tags'
14003
14035
  )
14004
14036
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14037,7 +14069,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14037
14069
  description='Whether the unit test set has been deleted.',
14038
14070
  title='Is Deleted',
14039
14071
  )
14040
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14072
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14041
14073
  ..., description='The tags of the simulation unit test set.', title='Tags'
14042
14074
  )
14043
14075
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14153,7 +14185,7 @@ class ToolInstance(BaseModel):
14153
14185
  description='A list of encrypted environment variables that some versions of this tool uses.',
14154
14186
  title='Secret Envvars',
14155
14187
  )
14156
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14188
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14157
14189
  ..., description='The tags of the simulation persona.', title='Tags'
14158
14190
  )
14159
14191
 
@@ -14168,7 +14200,7 @@ class ToolVersionInstance(BaseModel):
14168
14200
  description='The ID of the tool that this version belongs to.',
14169
14201
  title='Tool Id',
14170
14202
  )
14171
- version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14203
+ version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14172
14204
  ..., description='The version of the tool.'
14173
14205
  )
14174
14206
  required_envvars: List[str] = Field(
@@ -14484,7 +14516,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14484
14516
 
14485
14517
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14486
14518
  dynamic_behavior_sets: List[
14487
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14519
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14488
14520
  ] = Field(
14489
14521
  ...,
14490
14522
  description='The retrieved dynamic behavior sets.',
@@ -14508,6 +14540,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14508
14540
  )
14509
14541
 
14510
14542
 
14543
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14544
+ dynamic_behavior_sets: List[
14545
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14546
+ ] = Field(
14547
+ ...,
14548
+ description='The retrieved dynamic behavior sets.',
14549
+ title='Dynamic Behavior Sets',
14550
+ )
14551
+
14552
+
14511
14553
  class MetricCreateMetricRequest(BaseModel):
14512
14554
  name: str = Field(
14513
14555
  ...,
@@ -14564,7 +14606,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14564
14606
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14565
14607
  min_length=1,
14566
14608
  )
14567
- user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14609
+ user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14568
14610
  ...,
14569
14611
  description='User dimensions for the organization.',
14570
14612
  title='User Dimensions',
@@ -14708,17 +14750,6 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14708
14750
  )
14709
14751
 
14710
14752
 
14711
- class OrganizationModifyOrganizationRequestUserDimensions(
14712
- RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14713
- ):
14714
- root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14715
- ...,
14716
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14717
- min_length=1,
14718
- title='User Dimensions',
14719
- )
14720
-
14721
-
14722
14753
  class OrganizationModifyOrganizationRequest(BaseModel):
14723
14754
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14724
14755
  None,
@@ -14776,7 +14807,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14776
14807
  )
14777
14808
 
14778
14809
 
14779
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14810
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14780
14811
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14781
14812
  ...,
14782
14813
  description='Whether this grant allows or denies the specified access.',
@@ -14793,29 +14824,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14793
14824
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14794
14825
 
14795
14826
 
14796
- class RoleModifyRoleRequest(BaseModel):
14797
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14798
- None,
14799
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14800
- )
14801
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14802
- None,
14803
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14804
- title='Permission Grants',
14805
- )
14806
- frontend_view: Optional[FrontendView] = Field(
14807
- None,
14808
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14809
- )
14810
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14811
- Field(
14812
- {},
14813
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14814
- title='Inherited From',
14815
- )
14816
- )
14817
-
14818
-
14819
14827
  class ServiceCreateServiceRequest(BaseModel):
14820
14828
  service_hierarchical_state_machine_id: str = Field(
14821
14829
  ...,
@@ -15064,7 +15072,7 @@ class ToolGetToolsResponse(BaseModel):
15064
15072
 
15065
15073
 
15066
15074
  class ToolInvokeToolVersionRequest(BaseModel):
15067
- inputs: List[ToolTestToolRequestInput] = Field(
15075
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
15068
15076
  ...,
15069
15077
  description='The list of inputs for the tool invocation.',
15070
15078
  max_length=10,
@@ -15085,37 +15093,6 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15085
15093
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15086
15094
 
15087
15095
 
15088
- class ToolTestToolRequest(BaseModel):
15089
- inputs: List[ToolTestToolRequestInput] = Field(
15090
- ...,
15091
- description='The list of inputs for the tool invocation.',
15092
- max_length=10,
15093
- min_length=1,
15094
- title='Inputs',
15095
- )
15096
- commit_branch: str = Field(
15097
- ...,
15098
- description='The branch in the tools repo whose tip will be tested.',
15099
- title='Commit Branch',
15100
- )
15101
- project_path: str = Field(
15102
- ...,
15103
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
15104
- pattern='^[-\\w\\d_/]+$',
15105
- title='Project Path',
15106
- )
15107
- required_envvars: Dict[str, str] = Field(
15108
- ...,
15109
- description='The environment variables required for the tool to run.',
15110
- title='Required Envvars',
15111
- )
15112
- required_secret_envvars: Dict[str, str] = Field(
15113
- ...,
15114
- description='The secret environment variables required for the tool to run.',
15115
- title='Required Secret Envvars',
15116
- )
15117
-
15118
-
15119
15096
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15120
15097
 
15121
15098
 
@@ -15204,9 +15181,7 @@ class CreateConversationParametersQuery(BaseModel):
15204
15181
  title='Current Agent Action Type',
15205
15182
  )
15206
15183
  audio_format: Optional[CreateConversationParametersQueryAudioFormat] = Field(
15207
- None,
15208
- description='The format of the audio response, if `response_format` is set to `voice`.',
15209
- title='Audio Format',
15184
+ None, title='Audio Format'
15210
15185
  )
15211
15186
  response_audio_format: Optional[
15212
15187
  Union[VoiceResponsePCMAudioFormat, VoiceResponseMP3AudioFormat]
@@ -15241,9 +15216,7 @@ class InteractWithConversationParametersQuery(BaseModel):
15241
15216
  title='Request Audio Config',
15242
15217
  )
15243
15218
  audio_format: Optional[CreateConversationParametersQueryAudioFormat] = Field(
15244
- None,
15245
- description='The format of the audio response, if `response_format` is set to `voice`.',
15246
- title='Audio Format',
15219
+ None, title='Audio Format'
15247
15220
  )
15248
15221
  response_audio_format: Optional[
15249
15222
  Union[VoiceResponsePCMAudioFormat, VoiceResponseMP3AudioFormat]
@@ -15271,7 +15244,7 @@ class ActionStateInput(BaseModel):
15271
15244
  Field(..., title='Boundary Constraints')
15272
15245
  )
15273
15246
  exit_conditions: List[
15274
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15247
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15275
15248
  ] = Field(..., title='Exit Conditions')
15276
15249
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15277
15250
  ..., title='Action Tool Call Specs'
@@ -15380,7 +15353,7 @@ class DecisionStateInput(BaseModel):
15380
15353
  type: Literal['decision'] = Field(..., title='Type')
15381
15354
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15382
15355
  exit_conditions: List[
15383
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15356
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15384
15357
  ] = Field(..., title='Exit Conditions')
15385
15358
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15386
15359
  ..., title='Decision Guidelines'
@@ -15421,7 +15394,7 @@ class Metric(BaseModel):
15421
15394
  additional_notes: Optional[str] = Field(
15422
15395
  ..., description='Additional notes about the metric.', title='Additional Notes'
15423
15396
  )
15424
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15397
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15425
15398
  ..., description='The tags of the metric.', title='Tags'
15426
15399
  )
15427
15400
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15491,7 +15464,7 @@ class MetricInstance(BaseModel):
15491
15464
  additional_notes: Optional[str] = Field(
15492
15465
  ..., description='Additional notes about the metric.', title='Additional Notes'
15493
15466
  )
15494
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15467
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15495
15468
  ..., description='The tags of the metric.', title='Tags'
15496
15469
  )
15497
15470
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15693,7 +15666,7 @@ class SimulationUnitTest(BaseModel):
15693
15666
  is_deleted: bool = Field(
15694
15667
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15695
15668
  )
15696
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15669
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15697
15670
  ..., description='The tags of the simulation persona.', title='Tags'
15698
15671
  )
15699
15672
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15738,7 +15711,7 @@ class SimulationUnitTestInstance(BaseModel):
15738
15711
  is_deleted: bool = Field(
15739
15712
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15740
15713
  )
15741
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15714
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15742
15715
  ..., description='The tags of the simulation persona.', title='Tags'
15743
15716
  )
15744
15717
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -16038,7 +16011,7 @@ class RoleCreateRoleRequest(BaseModel):
16038
16011
  description: str = Field(
16039
16012
  ..., description='A description about the role.', min_length=1
16040
16013
  )
16041
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
16014
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
16042
16015
  ...,
16043
16016
  description='A list of permission grants associated with this role.',
16044
16017
  title='Permission Grants',
@@ -16064,6 +16037,29 @@ class RoleGetRolesResponse(BaseModel):
16064
16037
  )
16065
16038
 
16066
16039
 
16040
+ class RoleModifyRoleRequest(BaseModel):
16041
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
16042
+ None,
16043
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
16044
+ )
16045
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
16046
+ None,
16047
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
16048
+ title='Permission Grants',
16049
+ )
16050
+ frontend_view: Optional[FrontendView] = Field(
16051
+ None,
16052
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
16053
+ )
16054
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
16055
+ Field(
16056
+ {},
16057
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16058
+ title='Inherited From',
16059
+ )
16060
+ )
16061
+
16062
+
16067
16063
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16068
16064
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16069
16065
  description: str = Field(
@@ -16219,7 +16215,7 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16219
16215
  tool_id: str = Field(
16220
16216
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16221
16217
  )
16222
- tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16218
+ tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16223
16219
  ..., description='The version of the tool that was invoked.'
16224
16220
  )
16225
16221
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.76.0
3
+ Version: 0.78.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=VOPKypSmANz1PChpShpVLdpqiJjx_snLevs2luFpj8s,139
1
+ amigo_sdk/__init__.py,sha256=QU5xGHb6mxsAiFwRzJslvPOzJbIaLrzyERz9OjZcbA0,139
2
2
  amigo_sdk/_retry_utils.py,sha256=VbA_Uwv268J80d11R9XfnCjZiV-NwE1aXRsSlRjjRio,2108
3
3
  amigo_sdk/auth.py,sha256=WaM9PcEcnaC6CzNsgRKueHkdSAxNbRylzpR_3Q6guQ0,1765
4
4
  amigo_sdk/config.py,sha256=0eZIo-hcJ8ODftKAr-mwB-FGJxGO5PT5T4dRpyWPqAg,1491
@@ -6,13 +6,13 @@ amigo_sdk/errors.py,sha256=Yn12AxIQ6zE9jnGLWO0MUVbBsmw77Kzh82AijyreOkA,4818
6
6
  amigo_sdk/http_client.py,sha256=tfMXHqMTmlz2ja7aJhOVgbwAiJNlKCzPcK4UGNqXHO8,13488
7
7
  amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
8
8
  amigo_sdk/sdk_client.py,sha256=5nj8hzjHSFRs9JMNabdYIhQAcFE2G1jI_r7SHVGr9No,6106
9
- amigo_sdk/generated/model.py,sha256=In4u6EJgoGQHnMVAZAG_l7cBK-McqMmq38Dfu_8e7i0,456967
9
+ amigo_sdk/generated/model.py,sha256=OTtKLRDZ90LyqlHqlisfzi0efr6PPp10ocXEV58Uzu4,456783
10
10
  amigo_sdk/resources/conversation.py,sha256=u4kOx5LPbhX92L41UnmPmaF9TkQA5bGev8N00dMoP9I,14805
11
11
  amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
12
12
  amigo_sdk/resources/service.py,sha256=t1iA3nS9co-wuR-x5jBhAXXTWfMeGsLwfQcLycwVrCA,1536
13
13
  amigo_sdk/resources/user.py,sha256=zikijiuGXgmkBVtrldor6XQGQK6jWXonDvNFuQs6XK4,3472
14
- amigo_sdk-0.76.0.dist-info/METADATA,sha256=i0SN5oPVhShcU_slaqsbJ-WdwcSRHCYdrpZY8RtLw4g,8499
15
- amigo_sdk-0.76.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.76.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.76.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.76.0.dist-info/RECORD,,
14
+ amigo_sdk-0.78.0.dist-info/METADATA,sha256=wn8bMk8wa6tVQ7v3KIwv3nkZytZpGipaak5zr6Jj0ZI,8499
15
+ amigo_sdk-0.78.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.78.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.78.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.78.0.dist-info/RECORD,,