amigo_sdk 0.54.0__py3-none-any.whl → 0.55.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.

Potentially problematic release.


This version of amigo_sdk might be problematic. Click here for more details.

amigo_sdk/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.54.0"
1
+ __version__ = "0.55.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-11T05:32:23+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
  ...,
@@ -1693,12 +1693,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1693
1693
  )
1694
1694
 
1695
1695
 
1696
- class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1697
- major: int = Field(..., title='Major')
1698
- minor: int = Field(..., title='Minor')
1699
- patch: int = Field(..., title='Patch')
1700
-
1701
-
1702
1696
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1703
1697
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1704
1698
  user_org_id: str = Field(
@@ -1706,6 +1700,12 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1706
1700
  )
1707
1701
 
1708
1702
 
1703
+ class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1704
+ major: int = Field(..., title='Major')
1705
+ minor: int = Field(..., title='Minor')
1706
+ patch: int = Field(..., title='Patch')
1707
+
1708
+
1709
1709
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1710
1710
  enable_response_recommendation: Optional[bool] = Field(
1711
1711
  False,
@@ -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
 
@@ -10936,6 +10946,11 @@ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10936
10946
  )
10937
10947
 
10938
10948
 
10949
+ class ServiceCreateServiceRequestVersionSetLLMLoadBalancingSetConfig(BaseModel):
10950
+ llm_load_balancing_set_name: LLMLoadBalancingSetType
10951
+ configs: Dict[str, PerLLMConfig] = Field(..., title='Configs')
10952
+
10953
+
10939
10954
  class ServiceCreateServiceResponse(BaseModel):
10940
10955
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10941
10956
 
@@ -10995,11 +11010,24 @@ class ServiceUpdateServiceRequest(BaseModel):
10995
11010
  )
10996
11011
 
10997
11012
 
10998
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMLoadBalancingSetConfig(
10999
- BaseModel
11000
- ):
11001
- llm_load_balancing_set_name: LLMLoadBalancingSetType
11002
- configs: Dict[str, PerLLMConfig] = Field(..., title='Configs')
11013
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
11014
+ agent_version_number: Optional[int] = Field(
11015
+ ...,
11016
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
11017
+ title='Agent Version Number',
11018
+ )
11019
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
11020
+ ...,
11021
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
11022
+ title='Service Hierarchical State Machine Version Number',
11023
+ )
11024
+ llm_model_preferences: Dict[
11025
+ str,
11026
+ Union[
11027
+ ServiceCreateServiceRequestVersionSetLLMConfig,
11028
+ ServiceCreateServiceRequestVersionSetLLMLoadBalancingSetConfig,
11029
+ ],
11030
+ ] = Field(..., title='Llm Model Preferences')
11003
11031
 
11004
11032
 
11005
11033
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
@@ -11507,6 +11535,22 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11507
11535
  )
11508
11536
 
11509
11537
 
11538
+ class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11539
+ regular = 'regular'
11540
+ conversation_simulation = 'conversation-simulation'
11541
+
11542
+
11543
+ class ToolInvokeToolVersionRequestInput(BaseModel):
11544
+ input_parameters: Dict[str, Any] = Field(
11545
+ ...,
11546
+ description='The input parameters for the tool invocation.',
11547
+ title='Input Parameters',
11548
+ )
11549
+ invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11550
+ ..., description='The mode of invocation.', title='Invocation Mode'
11551
+ )
11552
+
11553
+
11510
11554
  class ToolModifyToolRequest(BaseModel):
11511
11555
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11512
11556
  None, description='A description of this tool. Only updates if not-null.'
@@ -11549,19 +11593,34 @@ class ToolPublishToolVersionResponse(BaseModel):
11549
11593
  )
11550
11594
 
11551
11595
 
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(
11596
+ class ToolTestToolRequest(BaseModel):
11597
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11559
11598
  ...,
11560
- description='The input parameters for the tool invocation.',
11561
- title='Input Parameters',
11599
+ description='The list of inputs for the tool invocation.',
11600
+ max_length=10,
11601
+ min_length=1,
11602
+ title='Inputs',
11562
11603
  )
11563
- invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11564
- ..., description='The mode of invocation.', title='Invocation Mode'
11604
+ commit_branch: str = Field(
11605
+ ...,
11606
+ description='The branch in the tools repo whose tip will be tested.',
11607
+ title='Commit Branch',
11608
+ )
11609
+ project_path: str = Field(
11610
+ ...,
11611
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11612
+ pattern='^[-\\w\\d_/]+$',
11613
+ title='Project Path',
11614
+ )
11615
+ required_envvars: Dict[str, str] = Field(
11616
+ ...,
11617
+ description='The environment variables required for the tool to run.',
11618
+ title='Required Envvars',
11619
+ )
11620
+ required_secret_envvars: Dict[str, str] = Field(
11621
+ ...,
11622
+ description='The secret environment variables required for the tool to run.',
11623
+ title='Required Secret Envvars',
11565
11624
  )
11566
11625
 
11567
11626
 
@@ -11633,7 +11692,7 @@ class UserGetMemoriesResponse(BaseModel):
11633
11692
  )
11634
11693
 
11635
11694
 
11636
- class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11695
+ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11637
11696
  num_conversations: int = Field(
11638
11697
  ...,
11639
11698
  description='The number of conversations the user has created.',
@@ -12098,7 +12157,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12098
12157
  [], description='The IDs of the messages to retrieve.', title='Id'
12099
12158
  )
12100
12159
  message_type: Optional[List[MessageType]] = Field(
12101
- ['external-event', 'agent-message', 'user-message'],
12160
+ ['external-event', 'user-message', 'agent-message'],
12102
12161
  description='The type of messages to retrieve.',
12103
12162
  title='Message Type',
12104
12163
  )
@@ -13829,7 +13888,7 @@ class ServiceInstance(BaseModel):
13829
13888
  agent_id: str = Field(
13830
13889
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13831
13890
  )
13832
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13891
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13833
13892
  ..., description='The tags of the service.', title='Tags'
13834
13893
  )
13835
13894
 
@@ -13882,7 +13941,7 @@ class SimulationUnitTestSet(BaseModel):
13882
13941
  description='Whether the unit test set has been deleted.',
13883
13942
  title='Is Deleted',
13884
13943
  )
13885
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13944
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13886
13945
  ..., description='The tags of the simulation unit test set.', title='Tags'
13887
13946
  )
13888
13947
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13921,7 +13980,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13921
13980
  description='Whether the unit test set has been deleted.',
13922
13981
  title='Is Deleted',
13923
13982
  )
13924
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13983
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13925
13984
  ..., description='The tags of the simulation unit test set.', title='Tags'
13926
13985
  )
13927
13986
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14033,7 +14092,7 @@ class ToolInstance(BaseModel):
14033
14092
  description='A list of encrypted environment variables that some versions of this tool uses.',
14034
14093
  title='Secret Envvars',
14035
14094
  )
14036
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14095
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14037
14096
  ..., description='The tags of the simulation persona.', title='Tags'
14038
14097
  )
14039
14098
 
@@ -14048,7 +14107,7 @@ class ToolVersionInstance(BaseModel):
14048
14107
  description='The ID of the tool that this version belongs to.',
14049
14108
  title='Tool Id',
14050
14109
  )
14051
- version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14110
+ version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14052
14111
  ..., description='The version of the tool.'
14053
14112
  )
14054
14113
  required_envvars: List[str] = Field(
@@ -14367,7 +14426,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14367
14426
 
14368
14427
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14369
14428
  dynamic_behavior_sets: List[
14370
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14429
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14371
14430
  ] = Field(
14372
14431
  ...,
14373
14432
  description='The retrieved dynamic behavior sets.',
@@ -14391,16 +14450,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14391
14450
  )
14392
14451
 
14393
14452
 
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
14453
  class MetricCreateMetricRequest(BaseModel):
14405
14454
  name: str = Field(
14406
14455
  ...,
@@ -14669,7 +14718,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14669
14718
  )
14670
14719
 
14671
14720
 
14672
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14721
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14673
14722
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14674
14723
  ...,
14675
14724
  description='Whether this grant allows or denies the specified access.',
@@ -14686,47 +14735,37 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14686
14735
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14687
14736
 
14688
14737
 
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.',
14738
+ class ServiceCreateServiceRequest(BaseModel):
14739
+ service_hierarchical_state_machine_id: str = Field(
14740
+ ...,
14741
+ description='The ID of the state machine that this service uses.',
14742
+ pattern='^[a-f0-9]{24}$',
14743
+ title='Service Hierarchical State Machine Id',
14693
14744
  )
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',
14745
+ agent_id: str = Field(
14746
+ ...,
14747
+ description='The ID of the agent that this service uses.',
14748
+ pattern='^[a-f0-9]{24}$',
14749
+ title='Agent Id',
14698
14750
  )
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.',
14751
+ name: str = Field(..., description='The name of this service.', min_length=1)
14752
+ description: str = Field(
14753
+ ..., description='A description of this service.', min_length=1
14702
14754
  )
14703
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14755
+ is_active: bool = Field(
14756
+ ...,
14757
+ 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.',
14758
+ title='Is Active',
14759
+ )
14760
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14704
14761
  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',
14762
+ None,
14763
+ 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.',
14708
14764
  )
14709
14765
  )
14710
-
14711
-
14712
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14713
- agent_version_number: Optional[int] = Field(
14714
- ...,
14715
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14716
- title='Agent Version Number',
14717
- )
14718
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14719
- ...,
14720
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14721
- title='Service Hierarchical State Machine Version Number',
14766
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14767
+ ..., description='The tags of this service.', title='Tags'
14722
14768
  )
14723
- llm_model_preferences: Dict[
14724
- str,
14725
- Union[
14726
- ServiceCreateServiceRequestVersionSetLLMConfig,
14727
- ServiceUpsertServiceVersionSetRequestVersionSetLLMLoadBalancingSetConfig,
14728
- ],
14729
- ] = Field(..., title='Llm Model Preferences')
14730
14769
 
14731
14770
 
14732
14771
  class ServiceGetServicesResponse(BaseModel):
@@ -14750,7 +14789,7 @@ class ServiceGetServicesResponse(BaseModel):
14750
14789
 
14751
14790
 
14752
14791
  class ServiceUpsertServiceVersionSetRequest(BaseModel):
14753
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14792
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14754
14793
  ..., description='The version set to upsert.'
14755
14794
  )
14756
14795
 
@@ -14954,7 +14993,7 @@ class ToolGetToolsResponse(BaseModel):
14954
14993
 
14955
14994
 
14956
14995
  class ToolInvokeToolVersionRequest(BaseModel):
14957
- inputs: List[ToolTestToolRequestInput] = Field(
14996
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
14958
14997
  ...,
14959
14998
  description='The list of inputs for the tool invocation.',
14960
14999
  max_length=10,
@@ -14975,37 +15014,6 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
14975
15014
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
14976
15015
 
14977
15016
 
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
15017
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15010
15018
 
15011
15019
 
@@ -15062,7 +15070,7 @@ class UserGetUsersResponseUserInstance(BaseModel):
15062
15070
  ..., description='The last name of the user.', title='Last Name'
15063
15071
  )
15064
15072
  email: str = Field(..., description='Email of the user.', title='Email')
15065
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15073
+ user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15066
15074
  ..., description="Statistics about the user's usage of the Amigo platform."
15067
15075
  )
15068
15076
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15110,7 +15118,7 @@ class ActionStateInput(BaseModel):
15110
15118
  Field(..., title='Boundary Constraints')
15111
15119
  )
15112
15120
  exit_conditions: List[
15113
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15121
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15114
15122
  ] = Field(..., title='Exit Conditions')
15115
15123
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15116
15124
  ..., title='Action Tool Call Specs'
@@ -15219,7 +15227,7 @@ class DecisionStateInput(BaseModel):
15219
15227
  type: Literal['decision'] = Field(..., title='Type')
15220
15228
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15221
15229
  exit_conditions: List[
15222
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15230
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15223
15231
  ] = Field(..., title='Exit Conditions')
15224
15232
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15225
15233
  ..., title='Decision Guidelines'
@@ -15260,7 +15268,7 @@ class Metric(BaseModel):
15260
15268
  additional_notes: Optional[str] = Field(
15261
15269
  ..., description='Additional notes about the metric.', title='Additional Notes'
15262
15270
  )
15263
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15271
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15264
15272
  ..., description='The tags of the metric.', title='Tags'
15265
15273
  )
15266
15274
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15330,7 +15338,7 @@ class MetricInstance(BaseModel):
15330
15338
  additional_notes: Optional[str] = Field(
15331
15339
  ..., description='Additional notes about the metric.', title='Additional Notes'
15332
15340
  )
15333
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15341
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15334
15342
  ..., description='The tags of the metric.', title='Tags'
15335
15343
  )
15336
15344
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15532,7 +15540,7 @@ class SimulationUnitTest(BaseModel):
15532
15540
  is_deleted: bool = Field(
15533
15541
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15534
15542
  )
15535
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15543
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15536
15544
  ..., description='The tags of the simulation persona.', title='Tags'
15537
15545
  )
15538
15546
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15577,7 +15585,7 @@ class SimulationUnitTestInstance(BaseModel):
15577
15585
  is_deleted: bool = Field(
15578
15586
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15579
15587
  )
15580
- tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15588
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15581
15589
  ..., description='The tags of the simulation persona.', title='Tags'
15582
15590
  )
15583
15591
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15880,7 +15888,7 @@ class RoleCreateRoleRequest(BaseModel):
15880
15888
  description: str = Field(
15881
15889
  ..., description='A description about the role.', min_length=1
15882
15890
  )
15883
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15891
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
15884
15892
  ...,
15885
15893
  description='A list of permission grants associated with this role.',
15886
15894
  title='Permission Grants',
@@ -15906,34 +15914,26 @@ class RoleGetRolesResponse(BaseModel):
15906
15914
  )
15907
15915
 
15908
15916
 
15909
- class ServiceCreateServiceRequest(BaseModel):
15910
- service_hierarchical_state_machine_id: str = Field(
15911
- ...,
15912
- description='The ID of the state machine that this service uses.',
15913
- pattern='^[a-f0-9]{24}$',
15914
- title='Service Hierarchical State Machine Id',
15915
- )
15916
- agent_id: str = Field(
15917
- ...,
15918
- description='The ID of the agent that this service uses.',
15919
- pattern='^[a-f0-9]{24}$',
15920
- title='Agent Id',
15921
- )
15922
- name: str = Field(..., description='The name of this service.', min_length=1)
15923
- description: str = Field(
15924
- ..., description='A description of this service.', min_length=1
15917
+ class RoleModifyRoleRequest(BaseModel):
15918
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15919
+ None,
15920
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
15925
15921
  )
15926
- is_active: bool = Field(
15927
- ...,
15928
- 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.',
15929
- title='Is Active',
15922
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
15923
+ None,
15924
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15925
+ title='Permission Grants',
15930
15926
  )
15931
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
15927
+ frontend_view: Optional[FrontendView] = Field(
15932
15928
  None,
15933
- 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.',
15929
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15934
15930
  )
15935
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
15936
- ..., description='The tags of this service.', title='Tags'
15931
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
15932
+ Field(
15933
+ {},
15934
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
15935
+ title='Inherited From',
15936
+ )
15937
15937
  )
15938
15938
 
15939
15939
 
@@ -16092,7 +16092,7 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16092
16092
  tool_id: str = Field(
16093
16093
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16094
16094
  )
16095
- tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16095
+ tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16096
16096
  ..., description='The version of the tool that was invoked.'
16097
16097
  )
16098
16098
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.54.0
3
+ Version: 0.55.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=IG6Qmj2nLIQCnUCfNKaXlmxih-ugSz3u9upFXTLYm7U,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=B8_Bt7oMXBSLnAR4UbxqTYa1E2BGnAJCrey8DgAZiCg,452130
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.55.0.dist-info/METADATA,sha256=rtSXB_XNU3mLq74j62wNrqiRAceMlzl7peSF5d-Bf3k,8350
15
+ amigo_sdk-0.55.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ amigo_sdk-0.55.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.55.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.55.0.dist-info/RECORD,,