amigo_sdk 0.71.0__py3-none-any.whl → 0.72.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.71.0"
1
+ __version__ = "0.72.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-03T17:33:48+00:00
3
+ # timestamp: 2025-12-03T17:57:08+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1630,6 +1630,11 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1630
1630
  deny = 'Deny'
1631
1631
 
1632
1632
 
1633
+ class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1634
+ key: str = Field(..., title='Key')
1635
+ value: Optional[str] = Field(..., title='Value')
1636
+
1637
+
1633
1638
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1634
1639
  agent_version_number: Optional[int] = Field(
1635
1640
  ...,
@@ -1699,11 +1704,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1699
1704
  )
1700
1705
 
1701
1706
 
1702
- class AmigoLibMongoCollectionsToolToolTag(BaseModel):
1703
- key: str = Field(..., title='Key')
1704
- value: Optional[str] = Field(..., title='Value')
1705
-
1706
-
1707
1707
  class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1708
1708
  major: int = Field(..., title='Major')
1709
1709
  minor: int = Field(..., title='Minor')
@@ -10775,19 +10775,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10775
10775
  )
10776
10776
 
10777
10777
 
10778
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10778
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10779
10779
  AnnotationStateInputNextState
10780
10780
  ):
10781
10781
  pass
10782
10782
 
10783
10783
 
10784
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10784
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10785
10785
  BaseModel
10786
10786
  ):
10787
10787
  description: str = Field(..., min_length=1)
10788
10788
  next_state: Union[
10789
10789
  StateOrRefName,
10790
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10790
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10791
10791
  ] = Field(..., title='Next State')
10792
10792
 
10793
10793
 
@@ -10951,6 +10951,13 @@ class RoleModifyRoleResponse(BaseModel):
10951
10951
  )
10952
10952
 
10953
10953
 
10954
+ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10955
+ llm_name: LLMType
10956
+ params: Optional[Dict[str, Any]] = Field(
10957
+ {}, description='LLM-specific parameters to use.', title='Params'
10958
+ )
10959
+
10960
+
10954
10961
  class ServiceCreateServiceResponse(BaseModel):
10955
10962
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10956
10963
 
@@ -11010,13 +11017,6 @@ class ServiceUpdateServiceRequest(BaseModel):
11010
11017
  )
11011
11018
 
11012
11019
 
11013
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11014
- llm_name: LLMType
11015
- params: Optional[Dict[str, Any]] = Field(
11016
- {}, description='LLM-specific parameters to use.', title='Params'
11017
- )
11018
-
11019
-
11020
11020
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11021
11021
  background: str = Field(
11022
11022
  ..., description='The background of the simulation persona.', min_length=1
@@ -11194,40 +11194,6 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11194
11194
  )
11195
11195
 
11196
11196
 
11197
- class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11198
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11199
- name: str = Field(
11200
- ..., description='The name of the simulation persona.', title='Name'
11201
- )
11202
- role: str = Field(
11203
- ..., description='The role of the simulation persona.', title='Role'
11204
- )
11205
- tags: Dict[str, Optional[str]] = Field(
11206
- ..., description='The tags of the simulation persona.', title='Tags'
11207
- )
11208
- is_deleted: bool = Field(
11209
- ...,
11210
- description='Whether the simulation persona is deleted.',
11211
- title='Is Deleted',
11212
- )
11213
- created_at: AwareDatetime = Field(
11214
- ...,
11215
- description='The timestamp when the simulation persona was created.',
11216
- title='Created At',
11217
- )
11218
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11219
- ..., description='The user who created the simulation persona.'
11220
- )
11221
- updated_at: AwareDatetime = Field(
11222
- ...,
11223
- description='The timestamp when the simulation persona was last updated.',
11224
- title='Updated At',
11225
- )
11226
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11227
- Field(..., description='The user who last updated the simulation persona.')
11228
- )
11229
-
11230
-
11231
11197
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11232
11198
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11233
11199
  ...,
@@ -11347,11 +11313,37 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11347
11313
  )
11348
11314
 
11349
11315
 
11350
- class SimulationSearchSimulationPersonasResponse(BaseModel):
11351
- simulation_personas: List[
11352
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11353
- ] = Field(
11354
- ..., description='The list of simulation personas.', title='Simulation Personas'
11316
+ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11317
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11318
+ name: str = Field(
11319
+ ..., description='The name of the simulation persona.', title='Name'
11320
+ )
11321
+ role: str = Field(
11322
+ ..., description='The role of the simulation persona.', title='Role'
11323
+ )
11324
+ tags: Dict[str, Optional[str]] = Field(
11325
+ ..., description='The tags of the simulation persona.', title='Tags'
11326
+ )
11327
+ is_deleted: bool = Field(
11328
+ ...,
11329
+ description='Whether the simulation persona is deleted.',
11330
+ title='Is Deleted',
11331
+ )
11332
+ created_at: AwareDatetime = Field(
11333
+ ...,
11334
+ description='The timestamp when the simulation persona was created.',
11335
+ title='Created At',
11336
+ )
11337
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11338
+ ..., description='The user who created the simulation persona.'
11339
+ )
11340
+ updated_at: AwareDatetime = Field(
11341
+ ...,
11342
+ description='The timestamp when the simulation persona was last updated.',
11343
+ title='Updated At',
11344
+ )
11345
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11346
+ Field(..., description='The user who last updated the simulation persona.')
11355
11347
  )
11356
11348
 
11357
11349
 
@@ -11486,22 +11478,6 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11486
11478
  )
11487
11479
 
11488
11480
 
11489
- class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11490
- regular = 'regular'
11491
- conversation_simulation = 'conversation-simulation'
11492
-
11493
-
11494
- class ToolInvokeToolVersionRequestInput(BaseModel):
11495
- input_parameters: Dict[str, Any] = Field(
11496
- ...,
11497
- description='The input parameters for the tool invocation.',
11498
- title='Input Parameters',
11499
- )
11500
- invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11501
- ..., description='The mode of invocation.', title='Invocation Mode'
11502
- )
11503
-
11504
-
11505
11481
  class ToolModifyToolRequest(BaseModel):
11506
11482
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11507
11483
  None, description='A description of this tool. Only updates if not-null.'
@@ -11544,34 +11520,19 @@ class ToolPublishToolVersionResponse(BaseModel):
11544
11520
  )
11545
11521
 
11546
11522
 
11547
- class ToolTestToolRequest(BaseModel):
11548
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11549
- ...,
11550
- description='The list of inputs for the tool invocation.',
11551
- max_length=10,
11552
- min_length=1,
11553
- title='Inputs',
11554
- )
11555
- commit_branch: str = Field(
11556
- ...,
11557
- description='The branch in the tools repo whose tip will be tested.',
11558
- title='Commit Branch',
11559
- )
11560
- project_path: str = Field(
11561
- ...,
11562
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11563
- pattern='^[-\\w\\d_/]+$',
11564
- title='Project Path',
11565
- )
11566
- required_envvars: Dict[str, str] = Field(
11523
+ class ToolTestToolRequestInputInvocationMode(Enum):
11524
+ regular = 'regular'
11525
+ conversation_simulation = 'conversation-simulation'
11526
+
11527
+
11528
+ class ToolTestToolRequestInput(BaseModel):
11529
+ input_parameters: Dict[str, Any] = Field(
11567
11530
  ...,
11568
- description='The environment variables required for the tool to run.',
11569
- title='Required Envvars',
11531
+ description='The input parameters for the tool invocation.',
11532
+ title='Input Parameters',
11570
11533
  )
11571
- required_secret_envvars: Dict[str, str] = Field(
11572
- ...,
11573
- description='The secret environment variables required for the tool to run.',
11574
- title='Required Secret Envvars',
11534
+ invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11535
+ ..., description='The mode of invocation.', title='Invocation Mode'
11575
11536
  )
11576
11537
 
11577
11538
 
@@ -11643,7 +11604,7 @@ class UserGetMemoriesResponse(BaseModel):
11643
11604
  )
11644
11605
 
11645
11606
 
11646
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11607
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11647
11608
  num_conversations: int = Field(
11648
11609
  ...,
11649
11610
  description='The number of conversations the user has created.',
@@ -12082,7 +12043,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12082
12043
  [], description='The IDs of the messages to retrieve.', title='Id'
12083
12044
  )
12084
12045
  message_type: Optional[List[MessageType]] = Field(
12085
- ['external-event', 'agent-message', 'user-message'],
12046
+ ['user-message', 'external-event', 'agent-message'],
12086
12047
  description='The type of messages to retrieve.',
12087
12048
  title='Message Type',
12088
12049
  )
@@ -13888,7 +13849,7 @@ class ServiceInstance(BaseModel):
13888
13849
  agent_id: str = Field(
13889
13850
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13890
13851
  )
13891
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13852
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13892
13853
  ..., description='The tags of the service.', title='Tags'
13893
13854
  )
13894
13855
 
@@ -13941,7 +13902,7 @@ class SimulationUnitTestSet(BaseModel):
13941
13902
  description='Whether the unit test set has been deleted.',
13942
13903
  title='Is Deleted',
13943
13904
  )
13944
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13905
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13945
13906
  ..., description='The tags of the simulation unit test set.', title='Tags'
13946
13907
  )
13947
13908
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13980,7 +13941,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13980
13941
  description='Whether the unit test set has been deleted.',
13981
13942
  title='Is Deleted',
13982
13943
  )
13983
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13944
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13984
13945
  ..., description='The tags of the simulation unit test set.', title='Tags'
13985
13946
  )
13986
13947
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14096,7 +14057,7 @@ class ToolInstance(BaseModel):
14096
14057
  description='A list of encrypted environment variables that some versions of this tool uses.',
14097
14058
  title='Secret Envvars',
14098
14059
  )
14099
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14060
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14100
14061
  ..., description='The tags of the simulation persona.', title='Tags'
14101
14062
  )
14102
14063
 
@@ -14719,7 +14680,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14719
14680
  )
14720
14681
 
14721
14682
 
14722
- class RoleModifyRoleRequestPermissionGrant(BaseModel):
14683
+ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14723
14684
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14724
14685
  ...,
14725
14686
  description='Whether this grant allows or denies the specified access.',
@@ -14736,6 +14697,45 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14736
14697
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14737
14698
 
14738
14699
 
14700
+ class RoleModifyRoleRequest(BaseModel):
14701
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14702
+ None,
14703
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
14704
+ )
14705
+ permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14706
+ None,
14707
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14708
+ title='Permission Grants',
14709
+ )
14710
+ frontend_view: Optional[FrontendView] = Field(
14711
+ None,
14712
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14713
+ )
14714
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14715
+ Field(
14716
+ {},
14717
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14718
+ title='Inherited From',
14719
+ )
14720
+ )
14721
+
14722
+
14723
+ class ServiceCreateServiceRequestVersionSet(BaseModel):
14724
+ agent_version_number: Optional[int] = Field(
14725
+ ...,
14726
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14727
+ title='Agent Version Number',
14728
+ )
14729
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14730
+ ...,
14731
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14732
+ title='Service Hierarchical State Machine Version Number',
14733
+ )
14734
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14735
+ Field(..., title='Llm Model Preferences')
14736
+ )
14737
+
14738
+
14739
14739
  class ServiceGetServicesResponse(BaseModel):
14740
14740
  services: List[ServiceInstance] = Field(
14741
14741
  ..., description='The services that are found.', title='Services'
@@ -14756,20 +14756,10 @@ class ServiceGetServicesResponse(BaseModel):
14756
14756
  )
14757
14757
 
14758
14758
 
14759
- class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14760
- agent_version_number: Optional[int] = Field(
14761
- ...,
14762
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14763
- title='Agent Version Number',
14764
- )
14765
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14766
- ...,
14767
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14768
- title='Service Hierarchical State Machine Version Number',
14759
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
14760
+ version_set: ServiceCreateServiceRequestVersionSet = Field(
14761
+ ..., description='The version set to upsert.'
14769
14762
  )
14770
- llm_model_preferences: Dict[
14771
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14772
- ] = Field(..., title='Llm Model Preferences')
14773
14763
 
14774
14764
 
14775
14765
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14835,7 +14825,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14835
14825
 
14836
14826
  class SimulationGetSimulationPersonasResponse(BaseModel):
14837
14827
  simulation_personas: List[
14838
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14828
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14839
14829
  ] = Field(
14840
14830
  ..., description='The list of simulation personas.', title='Simulation Personas'
14841
14831
  )
@@ -14907,6 +14897,14 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14907
14897
  )
14908
14898
 
14909
14899
 
14900
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
14901
+ simulation_personas: List[
14902
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14903
+ ] = Field(
14904
+ ..., description='The list of simulation personas.', title='Simulation Personas'
14905
+ )
14906
+
14907
+
14910
14908
  class SimulationSearchSimulationScenariosResponse(BaseModel):
14911
14909
  simulation_scenarios: List[
14912
14910
  SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
@@ -15007,7 +15005,7 @@ class ToolGetToolsResponse(BaseModel):
15007
15005
 
15008
15006
 
15009
15007
  class ToolInvokeToolVersionRequest(BaseModel):
15010
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
15008
+ inputs: List[ToolTestToolRequestInput] = Field(
15011
15009
  ...,
15012
15010
  description='The list of inputs for the tool invocation.',
15013
15011
  max_length=10,
@@ -15028,6 +15026,37 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15028
15026
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15029
15027
 
15030
15028
 
15029
+ class ToolTestToolRequest(BaseModel):
15030
+ inputs: List[ToolTestToolRequestInput] = Field(
15031
+ ...,
15032
+ description='The list of inputs for the tool invocation.',
15033
+ max_length=10,
15034
+ min_length=1,
15035
+ title='Inputs',
15036
+ )
15037
+ commit_branch: str = Field(
15038
+ ...,
15039
+ description='The branch in the tools repo whose tip will be tested.',
15040
+ title='Commit Branch',
15041
+ )
15042
+ project_path: str = Field(
15043
+ ...,
15044
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
15045
+ pattern='^[-\\w\\d_/]+$',
15046
+ title='Project Path',
15047
+ )
15048
+ required_envvars: Dict[str, str] = Field(
15049
+ ...,
15050
+ description='The environment variables required for the tool to run.',
15051
+ title='Required Envvars',
15052
+ )
15053
+ required_secret_envvars: Dict[str, str] = Field(
15054
+ ...,
15055
+ description='The secret environment variables required for the tool to run.',
15056
+ title='Required Secret Envvars',
15057
+ )
15058
+
15059
+
15031
15060
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15032
15061
 
15033
15062
 
@@ -15068,7 +15097,7 @@ class UserGetUserModelResponse(BaseModel):
15068
15097
  )
15069
15098
 
15070
15099
 
15071
- class UserSearchUsersResponseUserInstance(BaseModel):
15100
+ class UserGetUsersResponseUserInstance(BaseModel):
15072
15101
  org_id: str = Field(
15073
15102
  ...,
15074
15103
  description='The ID of the organization that this user belongs to.',
@@ -15084,7 +15113,7 @@ class UserSearchUsersResponseUserInstance(BaseModel):
15084
15113
  ..., description='The last name of the user.', title='Last Name'
15085
15114
  )
15086
15115
  email: str = Field(..., description='Email of the user.', title='Email')
15087
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15116
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15088
15117
  ..., description="Statistics about the user's usage of the Amigo platform."
15089
15118
  )
15090
15119
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15093,6 +15122,12 @@ class UserSearchUsersResponseUserInstance(BaseModel):
15093
15122
  )
15094
15123
 
15095
15124
 
15125
+ class UserSearchUsersResponse(BaseModel):
15126
+ users: List[UserGetUsersResponseUserInstance] = Field(
15127
+ ..., description='Users in this organization.', title='Users'
15128
+ )
15129
+
15130
+
15096
15131
  class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
15097
15132
  webhook_deliveries: List[WebhookDeliveryInstance] = Field(
15098
15133
  ..., description='The retrieved webhook deliveries.', title='Webhook Deliveries'
@@ -15188,7 +15223,7 @@ class ActionStateInput(BaseModel):
15188
15223
  Field(..., title='Boundary Constraints')
15189
15224
  )
15190
15225
  exit_conditions: List[
15191
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15226
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15192
15227
  ] = Field(..., title='Exit Conditions')
15193
15228
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15194
15229
  ..., title='Action Tool Call Specs'
@@ -15297,7 +15332,7 @@ class DecisionStateInput(BaseModel):
15297
15332
  type: Literal['decision'] = Field(..., title='Type')
15298
15333
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15299
15334
  exit_conditions: List[
15300
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15335
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15301
15336
  ] = Field(..., title='Exit Conditions')
15302
15337
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15303
15338
  ..., title='Decision Guidelines'
@@ -15338,7 +15373,7 @@ class Metric(BaseModel):
15338
15373
  additional_notes: Optional[str] = Field(
15339
15374
  ..., description='Additional notes about the metric.', title='Additional Notes'
15340
15375
  )
15341
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15376
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15342
15377
  ..., description='The tags of the metric.', title='Tags'
15343
15378
  )
15344
15379
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15408,7 +15443,7 @@ class MetricInstance(BaseModel):
15408
15443
  additional_notes: Optional[str] = Field(
15409
15444
  ..., description='Additional notes about the metric.', title='Additional Notes'
15410
15445
  )
15411
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15446
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15412
15447
  ..., description='The tags of the metric.', title='Tags'
15413
15448
  )
15414
15449
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15610,7 +15645,7 @@ class SimulationUnitTest(BaseModel):
15610
15645
  is_deleted: bool = Field(
15611
15646
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15612
15647
  )
15613
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15648
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15614
15649
  ..., description='The tags of the simulation persona.', title='Tags'
15615
15650
  )
15616
15651
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15655,7 +15690,7 @@ class SimulationUnitTestInstance(BaseModel):
15655
15690
  is_deleted: bool = Field(
15656
15691
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15657
15692
  )
15658
- tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15693
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15659
15694
  ..., description='The tags of the simulation persona.', title='Tags'
15660
15695
  )
15661
15696
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15955,7 +15990,7 @@ class RoleCreateRoleRequest(BaseModel):
15955
15990
  description: str = Field(
15956
15991
  ..., description='A description about the role.', min_length=1
15957
15992
  )
15958
- permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
15993
+ permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15959
15994
  ...,
15960
15995
  description='A list of permission grants associated with this role.',
15961
15996
  title='Permission Grants',
@@ -15981,29 +16016,6 @@ class RoleGetRolesResponse(BaseModel):
15981
16016
  )
15982
16017
 
15983
16018
 
15984
- class RoleModifyRoleRequest(BaseModel):
15985
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15986
- None,
15987
- description='A description about the role. Only updated if specified. This field is a mutable field.',
15988
- )
15989
- permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
15990
- None,
15991
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15992
- title='Permission Grants',
15993
- )
15994
- frontend_view: Optional[FrontendView] = Field(
15995
- None,
15996
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15997
- )
15998
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
15999
- Field(
16000
- {},
16001
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16002
- title='Inherited From',
16003
- )
16004
- )
16005
-
16006
-
16007
16019
  class ServiceCreateServiceRequest(BaseModel):
16008
16020
  service_hierarchical_state_machine_id: str = Field(
16009
16021
  ...,
@@ -16026,23 +16038,15 @@ class ServiceCreateServiceRequest(BaseModel):
16026
16038
  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.',
16027
16039
  title='Is Active',
16028
16040
  )
16029
- release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
16030
- Field(
16031
- None,
16032
- 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.',
16033
- )
16041
+ release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16042
+ None,
16043
+ 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.',
16034
16044
  )
16035
16045
  tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16036
16046
  ..., description='The tags of this service.', title='Tags'
16037
16047
  )
16038
16048
 
16039
16049
 
16040
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
16041
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
16042
- ..., description='The version set to upsert.'
16043
- )
16044
-
16045
-
16046
16050
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16047
16051
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16048
16052
  description: str = Field(
@@ -16212,7 +16216,7 @@ class ToolSearchToolInvocationsResponse(BaseModel):
16212
16216
 
16213
16217
 
16214
16218
  class UserGetUsersResponse(BaseModel):
16215
- users: List[UserSearchUsersResponseUserInstance] = Field(
16219
+ users: List[UserGetUsersResponseUserInstance] = Field(
16216
16220
  ..., description='Users in this organization.', title='Users'
16217
16221
  )
16218
16222
  has_more: bool = Field(
@@ -16225,12 +16229,6 @@ class UserGetUsersResponse(BaseModel):
16225
16229
  )
16226
16230
 
16227
16231
 
16228
- class UserSearchUsersResponse(BaseModel):
16229
- users: List[UserSearchUsersResponseUserInstance] = Field(
16230
- ..., description='Users in this organization.', title='Users'
16231
- )
16232
-
16233
-
16234
16232
  class SimulationUnitTestSetRunInstance(BaseModel):
16235
16233
  org_id: str = Field(..., title='Org Id')
16236
16234
  id: str = Field(..., title='Id')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.71.0
3
+ Version: 0.72.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=HDbivAb29t5GGkU9dPkkh0GQ6qDToJIqNdRgkpdSMYo,139
1
+ amigo_sdk/__init__.py,sha256=o8hL9L8iuXkmjt2KVEDsSYZmyb3rCvnOTcom9EGZ-tI,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=AMOa2wehaiY0um98EUEV_thJJXDBM1em6PK4_MjFoAk,456924
9
+ amigo_sdk/generated/model.py,sha256=ewNse-R58YNSfRi1RmRjdU9RU9twt9hPagRaLaOZT9g,456861
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.71.0.dist-info/METADATA,sha256=sbLqyfisJQa45uQja9_jnH95bR46KVTu2DQ5JrM1TU0,8499
15
- amigo_sdk-0.71.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.71.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.71.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.71.0.dist-info/RECORD,,
14
+ amigo_sdk-0.72.0.dist-info/METADATA,sha256=SRW_-63VqUM3Mcr4crq_m7c9Sjxe21Dpm1EJfOspMVI,8499
15
+ amigo_sdk-0.72.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.72.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.72.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.72.0.dist-info/RECORD,,