amigo_sdk 0.79.0__py3-none-any.whl → 0.81.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.79.0"
1
+ __version__ = "0.81.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-07T09:18:40+00:00
3
+ # timestamp: 2025-12-08T01:17:04+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
  )
@@ -1664,11 +1669,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1664
1669
  )
1665
1670
 
1666
1671
 
1667
- class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1668
- key: str = Field(..., title='Key')
1669
- value: Optional[str] = Field(..., title='Value')
1670
-
1671
-
1672
1672
  class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1673
1673
  BaseModel
1674
1674
  ):
@@ -10773,19 +10773,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10773
10773
  )
10774
10774
 
10775
10775
 
10776
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10776
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10777
10777
  AnnotationStateInputNextState
10778
10778
  ):
10779
10779
  pass
10780
10780
 
10781
10781
 
10782
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10782
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10783
10783
  BaseModel
10784
10784
  ):
10785
10785
  description: str = Field(..., min_length=1)
10786
10786
  next_state: Union[
10787
10787
  StateOrRefName,
10788
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10788
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10789
10789
  ] = Field(..., title='Next State')
10790
10790
 
10791
10791
 
@@ -11196,6 +11196,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11196
11196
  )
11197
11197
 
11198
11198
 
11199
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11200
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11201
+ name: str = Field(
11202
+ ..., description='The name of the simulation persona.', title='Name'
11203
+ )
11204
+ role: str = Field(
11205
+ ..., description='The role of the simulation persona.', title='Role'
11206
+ )
11207
+ tags: Dict[str, Optional[str]] = Field(
11208
+ ..., description='The tags of the simulation persona.', title='Tags'
11209
+ )
11210
+ is_deleted: bool = Field(
11211
+ ...,
11212
+ description='Whether the simulation persona is deleted.',
11213
+ title='Is Deleted',
11214
+ )
11215
+ created_at: AwareDatetime = Field(
11216
+ ...,
11217
+ description='The timestamp when the simulation persona was created.',
11218
+ title='Created At',
11219
+ )
11220
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11221
+ ..., description='The user who created the simulation persona.'
11222
+ )
11223
+ updated_at: AwareDatetime = Field(
11224
+ ...,
11225
+ description='The timestamp when the simulation persona was last updated.',
11226
+ title='Updated At',
11227
+ )
11228
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11229
+ Field(..., description='The user who last updated the simulation persona.')
11230
+ )
11231
+
11232
+
11199
11233
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11200
11234
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11201
11235
  ...,
@@ -11346,37 +11380,11 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11346
11380
  )
11347
11381
 
11348
11382
 
11349
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11350
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11351
- name: str = Field(
11352
- ..., description='The name of the simulation persona.', title='Name'
11353
- )
11354
- role: str = Field(
11355
- ..., description='The role of the simulation persona.', title='Role'
11356
- )
11357
- tags: Dict[str, Optional[str]] = Field(
11358
- ..., description='The tags of the simulation persona.', title='Tags'
11359
- )
11360
- is_deleted: bool = Field(
11361
- ...,
11362
- description='Whether the simulation persona is deleted.',
11363
- title='Is Deleted',
11364
- )
11365
- created_at: AwareDatetime = Field(
11366
- ...,
11367
- description='The timestamp when the simulation persona was created.',
11368
- title='Created At',
11369
- )
11370
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11371
- ..., description='The user who created the simulation persona.'
11372
- )
11373
- updated_at: AwareDatetime = Field(
11374
- ...,
11375
- description='The timestamp when the simulation persona was last updated.',
11376
- title='Updated At',
11377
- )
11378
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11379
- Field(..., description='The user who last updated the simulation persona.')
11383
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11384
+ simulation_personas: List[
11385
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11386
+ ] = Field(
11387
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11380
11388
  )
11381
11389
 
11382
11390
 
@@ -11490,6 +11498,22 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11490
11498
  )
11491
11499
 
11492
11500
 
11501
+ class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11502
+ regular = 'regular'
11503
+ conversation_simulation = 'conversation-simulation'
11504
+
11505
+
11506
+ class ToolInvokeToolVersionRequestInput(BaseModel):
11507
+ input_parameters: Dict[str, Any] = Field(
11508
+ ...,
11509
+ description='The input parameters for the tool invocation.',
11510
+ title='Input Parameters',
11511
+ )
11512
+ invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11513
+ ..., description='The mode of invocation.', title='Invocation Mode'
11514
+ )
11515
+
11516
+
11493
11517
  class ToolModifyToolRequest(BaseModel):
11494
11518
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11495
11519
  None, description='A description of this tool. Only updates if not-null.'
@@ -11532,19 +11556,34 @@ class ToolPublishToolVersionResponse(BaseModel):
11532
11556
  )
11533
11557
 
11534
11558
 
11535
- class ToolTestToolRequestInputInvocationMode(Enum):
11536
- regular = 'regular'
11537
- conversation_simulation = 'conversation-simulation'
11538
-
11539
-
11540
- class ToolTestToolRequestInput(BaseModel):
11541
- input_parameters: Dict[str, Any] = Field(
11559
+ class ToolTestToolRequest(BaseModel):
11560
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11542
11561
  ...,
11543
- description='The input parameters for the tool invocation.',
11544
- title='Input Parameters',
11562
+ description='The list of inputs for the tool invocation.',
11563
+ max_length=10,
11564
+ min_length=1,
11565
+ title='Inputs',
11545
11566
  )
11546
- invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11547
- ..., description='The mode of invocation.', title='Invocation Mode'
11567
+ commit_branch: str = Field(
11568
+ ...,
11569
+ description='The branch in the tools repo whose tip will be tested.',
11570
+ title='Commit Branch',
11571
+ )
11572
+ project_path: str = Field(
11573
+ ...,
11574
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11575
+ pattern='^[-\\w\\d_/]+$',
11576
+ title='Project Path',
11577
+ )
11578
+ required_envvars: Dict[str, str] = Field(
11579
+ ...,
11580
+ description='The environment variables required for the tool to run.',
11581
+ title='Required Envvars',
11582
+ )
11583
+ required_secret_envvars: Dict[str, str] = Field(
11584
+ ...,
11585
+ description='The secret environment variables required for the tool to run.',
11586
+ title='Required Secret Envvars',
11548
11587
  )
11549
11588
 
11550
11589
 
@@ -11616,7 +11655,7 @@ class UserGetMemoriesResponse(BaseModel):
11616
11655
  )
11617
11656
 
11618
11657
 
11619
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11658
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11620
11659
  num_conversations: int = Field(
11621
11660
  ...,
11622
11661
  description='The number of conversations the user has created.',
@@ -11634,6 +11673,31 @@ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11634
11673
  )
11635
11674
 
11636
11675
 
11676
+ class UserSearchUsersResponseUserInstance(BaseModel):
11677
+ org_id: str = Field(
11678
+ ...,
11679
+ description='The ID of the organization that this user belongs to.',
11680
+ title='Org Id',
11681
+ )
11682
+ user_id: str = Field(
11683
+ ..., description='The identifier of the user.', title='User Id'
11684
+ )
11685
+ first_name: str = Field(
11686
+ ..., description='The first name of the user.', title='First Name'
11687
+ )
11688
+ last_name: str = Field(
11689
+ ..., description='The last name of the user.', title='Last Name'
11690
+ )
11691
+ email: str = Field(..., description='Email of the user.', title='Email')
11692
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
11693
+ ..., description="Statistics about the user's usage of the Amigo platform."
11694
+ )
11695
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
11696
+ preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
11697
+ ..., description='The preferences of the user.'
11698
+ )
11699
+
11700
+
11637
11701
  class UserSignInWithApiKeyResponse(BaseModel):
11638
11702
  id_token: str = Field(
11639
11703
  ...,
@@ -12055,7 +12119,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12055
12119
  [], description='The IDs of the messages to retrieve.', title='Id'
12056
12120
  )
12057
12121
  message_type: Optional[List[MessageType]] = Field(
12058
- ['user-message', 'external-event', 'agent-message'],
12122
+ ['external-event', 'user-message', 'agent-message'],
12059
12123
  description='The type of messages to retrieve.',
12060
12124
  title='Message Type',
12061
12125
  )
@@ -13861,9 +13925,9 @@ class ServiceInstance(BaseModel):
13861
13925
  agent_id: str = Field(
13862
13926
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13863
13927
  )
13864
- tags: List[
13865
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13866
- ] = Field(..., description='The tags of the service.', title='Tags')
13928
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13929
+ ..., description='The tags of the service.', title='Tags'
13930
+ )
13867
13931
 
13868
13932
 
13869
13933
  class SimulationConversationInvocationSource(BaseModel):
@@ -13914,9 +13978,7 @@ class SimulationUnitTestSet(BaseModel):
13914
13978
  description='Whether the unit test set has been deleted.',
13915
13979
  title='Is Deleted',
13916
13980
  )
13917
- tags: List[
13918
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13919
- ] = Field(
13981
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13920
13982
  ..., description='The tags of the simulation unit test set.', title='Tags'
13921
13983
  )
13922
13984
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13955,9 +14017,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13955
14017
  description='Whether the unit test set has been deleted.',
13956
14018
  title='Is Deleted',
13957
14019
  )
13958
- tags: List[
13959
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13960
- ] = Field(
14020
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13961
14021
  ..., description='The tags of the simulation unit test set.', title='Tags'
13962
14022
  )
13963
14023
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14073,9 +14133,9 @@ class ToolInstance(BaseModel):
14073
14133
  description='A list of encrypted environment variables that some versions of this tool uses.',
14074
14134
  title='Secret Envvars',
14075
14135
  )
14076
- tags: List[
14077
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14078
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14136
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14137
+ ..., description='The tags of the simulation persona.', title='Tags'
14138
+ )
14079
14139
 
14080
14140
 
14081
14141
  class ToolVersionInstance(BaseModel):
@@ -14695,7 +14755,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14695
14755
  )
14696
14756
 
14697
14757
 
14698
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14758
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14699
14759
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14700
14760
  ...,
14701
14761
  description='Whether this grant allows or denies the specified access.',
@@ -14712,45 +14772,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14712
14772
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14713
14773
 
14714
14774
 
14715
- class RoleModifyRoleRequest(BaseModel):
14716
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14717
- None,
14718
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14719
- )
14720
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14721
- None,
14722
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14723
- title='Permission Grants',
14724
- )
14725
- frontend_view: Optional[FrontendView] = Field(
14726
- None,
14727
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14728
- )
14729
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14730
- Field(
14731
- {},
14732
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14733
- title='Inherited From',
14734
- )
14735
- )
14736
-
14737
-
14738
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14739
- agent_version_number: Optional[int] = Field(
14740
- ...,
14741
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14742
- title='Agent Version Number',
14743
- )
14744
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14745
- ...,
14746
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14747
- title='Service Hierarchical State Machine Version Number',
14748
- )
14749
- llm_model_preferences: Dict[
14750
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14751
- ] = Field(..., title='Llm Model Preferences')
14752
-
14753
-
14754
14775
  class ServiceGetServicesResponse(BaseModel):
14755
14776
  services: List[ServiceInstance] = Field(
14756
14777
  ..., description='The services that are found.', title='Services'
@@ -14771,10 +14792,20 @@ class ServiceGetServicesResponse(BaseModel):
14771
14792
  )
14772
14793
 
14773
14794
 
14774
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
14775
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14776
- ..., description='The version set to upsert.'
14795
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14796
+ agent_version_number: Optional[int] = Field(
14797
+ ...,
14798
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14799
+ title='Agent Version Number',
14800
+ )
14801
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14802
+ ...,
14803
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14804
+ title='Service Hierarchical State Machine Version Number',
14777
14805
  )
14806
+ llm_model_preferences: Dict[
14807
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14808
+ ] = Field(..., title='Llm Model Preferences')
14778
14809
 
14779
14810
 
14780
14811
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14840,7 +14871,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14840
14871
 
14841
14872
  class SimulationGetSimulationPersonasResponse(BaseModel):
14842
14873
  simulation_personas: List[
14843
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14874
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14844
14875
  ] = Field(
14845
14876
  ..., description='The list of simulation personas.', title='Simulation Personas'
14846
14877
  )
@@ -14912,14 +14943,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14912
14943
  )
14913
14944
 
14914
14945
 
14915
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14916
- simulation_personas: List[
14917
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14918
- ] = Field(
14919
- ..., description='The list of simulation personas.', title='Simulation Personas'
14920
- )
14921
-
14922
-
14923
14946
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14924
14947
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
14925
14948
  ...,
@@ -15010,7 +15033,7 @@ class ToolGetToolsResponse(BaseModel):
15010
15033
 
15011
15034
 
15012
15035
  class ToolInvokeToolVersionRequest(BaseModel):
15013
- inputs: List[ToolTestToolRequestInput] = Field(
15036
+ inputs: List[ToolInvokeToolVersionRequestInput] = Field(
15014
15037
  ...,
15015
15038
  description='The list of inputs for the tool invocation.',
15016
15039
  max_length=10,
@@ -15031,37 +15054,6 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15031
15054
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15032
15055
 
15033
15056
 
15034
- class ToolTestToolRequest(BaseModel):
15035
- inputs: List[ToolTestToolRequestInput] = Field(
15036
- ...,
15037
- description='The list of inputs for the tool invocation.',
15038
- max_length=10,
15039
- min_length=1,
15040
- title='Inputs',
15041
- )
15042
- commit_branch: str = Field(
15043
- ...,
15044
- description='The branch in the tools repo whose tip will be tested.',
15045
- title='Commit Branch',
15046
- )
15047
- project_path: str = Field(
15048
- ...,
15049
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
15050
- pattern='^[-\\w\\d_/]+$',
15051
- title='Project Path',
15052
- )
15053
- required_envvars: Dict[str, str] = Field(
15054
- ...,
15055
- description='The environment variables required for the tool to run.',
15056
- title='Required Envvars',
15057
- )
15058
- required_secret_envvars: Dict[str, str] = Field(
15059
- ...,
15060
- description='The secret environment variables required for the tool to run.',
15061
- title='Required Secret Envvars',
15062
- )
15063
-
15064
-
15065
15057
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15066
15058
 
15067
15059
 
@@ -15102,33 +15094,22 @@ class UserGetUserModelResponse(BaseModel):
15102
15094
  )
15103
15095
 
15104
15096
 
15105
- class UserGetUsersResponseUserInstance(BaseModel):
15106
- org_id: str = Field(
15107
- ...,
15108
- description='The ID of the organization that this user belongs to.',
15109
- title='Org Id',
15110
- )
15111
- user_id: str = Field(
15112
- ..., description='The identifier of the user.', title='User Id'
15113
- )
15114
- first_name: str = Field(
15115
- ..., description='The first name of the user.', title='First Name'
15116
- )
15117
- last_name: str = Field(
15118
- ..., description='The last name of the user.', title='Last Name'
15097
+ class UserGetUsersResponse(BaseModel):
15098
+ users: List[UserSearchUsersResponseUserInstance] = Field(
15099
+ ..., description='Users in this organization.', title='Users'
15119
15100
  )
15120
- email: str = Field(..., description='Email of the user.', title='Email')
15121
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15122
- ..., description="Statistics about the user's usage of the Amigo platform."
15101
+ has_more: bool = Field(
15102
+ ..., description='Whether there are more users to retrieve.', title='Has More'
15123
15103
  )
15124
- role: str = Field(..., description='The ID of the role of the user.', title='Role')
15125
- preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
15126
- ..., description='The preferences of the user.'
15104
+ continuation_token: Optional[int] = Field(
15105
+ ...,
15106
+ description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
15107
+ title='Continuation Token',
15127
15108
  )
15128
15109
 
15129
15110
 
15130
15111
  class UserSearchUsersResponse(BaseModel):
15131
- users: List[UserGetUsersResponseUserInstance] = Field(
15112
+ users: List[UserSearchUsersResponseUserInstance] = Field(
15132
15113
  ..., description='Users in this organization.', title='Users'
15133
15114
  )
15134
15115
 
@@ -15224,7 +15205,7 @@ class ActionStateInput(BaseModel):
15224
15205
  Field(..., title='Boundary Constraints')
15225
15206
  )
15226
15207
  exit_conditions: List[
15227
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15208
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15228
15209
  ] = Field(..., title='Exit Conditions')
15229
15210
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15230
15211
  ..., title='Action Tool Call Specs'
@@ -15333,7 +15314,7 @@ class DecisionStateInput(BaseModel):
15333
15314
  type: Literal['decision'] = Field(..., title='Type')
15334
15315
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15335
15316
  exit_conditions: List[
15336
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15317
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15337
15318
  ] = Field(..., title='Exit Conditions')
15338
15319
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15339
15320
  ..., title='Decision Guidelines'
@@ -15374,9 +15355,9 @@ class Metric(BaseModel):
15374
15355
  additional_notes: Optional[str] = Field(
15375
15356
  ..., description='Additional notes about the metric.', title='Additional Notes'
15376
15357
  )
15377
- tags: List[
15378
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15379
- ] = Field(..., description='The tags of the metric.', title='Tags')
15358
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15359
+ ..., description='The tags of the metric.', title='Tags'
15360
+ )
15380
15361
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15381
15362
  ..., description='The user who created the metric.'
15382
15363
  )
@@ -15444,9 +15425,9 @@ class MetricInstance(BaseModel):
15444
15425
  additional_notes: Optional[str] = Field(
15445
15426
  ..., description='Additional notes about the metric.', title='Additional Notes'
15446
15427
  )
15447
- tags: List[
15448
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15449
- ] = Field(..., description='The tags of the metric.', title='Tags')
15428
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15429
+ ..., description='The tags of the metric.', title='Tags'
15430
+ )
15450
15431
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15451
15432
  ..., description='The user who created the metric.'
15452
15433
  )
@@ -15646,9 +15627,9 @@ class SimulationUnitTest(BaseModel):
15646
15627
  is_deleted: bool = Field(
15647
15628
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15648
15629
  )
15649
- tags: List[
15650
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15651
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15630
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15631
+ ..., description='The tags of the simulation persona.', title='Tags'
15632
+ )
15652
15633
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15653
15634
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15654
15635
 
@@ -15691,9 +15672,9 @@ class SimulationUnitTestInstance(BaseModel):
15691
15672
  is_deleted: bool = Field(
15692
15673
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15693
15674
  )
15694
- tags: List[
15695
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15696
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15675
+ tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15676
+ ..., description='The tags of the simulation persona.', title='Tags'
15677
+ )
15697
15678
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15698
15679
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15699
15680
 
@@ -15991,7 +15972,7 @@ class RoleCreateRoleRequest(BaseModel):
15991
15972
  description: str = Field(
15992
15973
  ..., description='A description about the role.', min_length=1
15993
15974
  )
15994
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
15975
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
15995
15976
  ...,
15996
15977
  description='A list of permission grants associated with this role.',
15997
15978
  title='Permission Grants',
@@ -16017,6 +15998,29 @@ class RoleGetRolesResponse(BaseModel):
16017
15998
  )
16018
15999
 
16019
16000
 
16001
+ class RoleModifyRoleRequest(BaseModel):
16002
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
16003
+ None,
16004
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
16005
+ )
16006
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
16007
+ None,
16008
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
16009
+ title='Permission Grants',
16010
+ )
16011
+ frontend_view: Optional[FrontendView] = Field(
16012
+ None,
16013
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
16014
+ )
16015
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
16016
+ Field(
16017
+ {},
16018
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16019
+ title='Inherited From',
16020
+ )
16021
+ )
16022
+
16023
+
16020
16024
  class ServiceCreateServiceRequest(BaseModel):
16021
16025
  service_hierarchical_state_machine_id: str = Field(
16022
16026
  ...,
@@ -16039,15 +16043,23 @@ class ServiceCreateServiceRequest(BaseModel):
16039
16043
  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.',
16040
16044
  title='Is Active',
16041
16045
  )
16042
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16043
- None,
16044
- 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.',
16046
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
16047
+ Field(
16048
+ None,
16049
+ 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.',
16050
+ )
16045
16051
  )
16046
16052
  tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16047
16053
  ..., description='The tags of this service.', title='Tags'
16048
16054
  )
16049
16055
 
16050
16056
 
16057
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
16058
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
16059
+ ..., description='The version set to upsert.'
16060
+ )
16061
+
16062
+
16051
16063
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16052
16064
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16053
16065
  description: str = Field(
@@ -16181,7 +16193,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16181
16193
  )
16182
16194
 
16183
16195
 
16184
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16196
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16185
16197
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16186
16198
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16187
16199
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16208,17 +16220,11 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16208
16220
  )
16209
16221
 
16210
16222
 
16211
- class UserGetUsersResponse(BaseModel):
16212
- users: List[UserGetUsersResponseUserInstance] = Field(
16213
- ..., description='Users in this organization.', title='Users'
16214
- )
16215
- has_more: bool = Field(
16216
- ..., description='Whether there are more users to retrieve.', title='Has More'
16217
- )
16218
- continuation_token: Optional[int] = Field(
16219
- ...,
16220
- description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
16221
- title='Continuation Token',
16223
+ class ToolSearchToolInvocationsResponse(BaseModel):
16224
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16225
+ Field(
16226
+ ..., description='The list of tool invocations.', title='Tool Invocations'
16227
+ )
16222
16228
  )
16223
16229
 
16224
16230
 
@@ -16321,7 +16327,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16321
16327
 
16322
16328
 
16323
16329
  class ToolGetToolInvocationsResponse(BaseModel):
16324
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16330
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16325
16331
  Field(
16326
16332
  ..., description='The list of tool invocations.', title='Tool Invocations'
16327
16333
  )
@@ -16336,11 +16342,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
16336
16342
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16337
16343
  title='Continuation Token',
16338
16344
  )
16339
-
16340
-
16341
- class ToolSearchToolInvocationsResponse(BaseModel):
16342
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16343
- Field(
16344
- ..., description='The list of tool invocations.', title='Tool Invocations'
16345
- )
16346
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.79.0
3
+ Version: 0.81.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=ar-6ayofqErW1JyYxYeXSsvwrALCXEsRGmCSZzABW5w,139
1
+ amigo_sdk/__init__.py,sha256=HaA6H6mHrr-Ttp3EHvVG2NE2halE4CM9PjYHewK8CIY,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=oss6NKHiMuA9s4EGLZhrxzzH3CcalMEt3EnnU0bfOlM,457010
9
+ amigo_sdk/generated/model.py,sha256=GA6aL8dQ9a3iG8bGjAHnBl6goqwj-xqqP3vaQWVualg,456810
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.79.0.dist-info/METADATA,sha256=UGou5yb9Xi6Q6Q44mlA5PedZ9bBhLMS4NqgBkdxZU4M,8499
15
- amigo_sdk-0.79.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.79.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.79.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.79.0.dist-info/RECORD,,
14
+ amigo_sdk-0.81.0.dist-info/METADATA,sha256=8pei_-Qdcek71uaX8vvrgNGnLyBuYgccWvek2aBlB88,8499
15
+ amigo_sdk-0.81.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.81.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.81.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.81.0.dist-info/RECORD,,