amigo_sdk 0.88.0__py3-none-any.whl → 0.89.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.88.0"
1
+ __version__ = "0.89.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-13T02:45:44+00:00
3
+ # timestamp: 2025-12-13T05:34:52+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1663,16 +1663,16 @@ AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
1663
1663
  )
1664
1664
 
1665
1665
 
1666
+ class AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag(BaseModel):
1667
+ key: str = Field(..., title='Key')
1668
+ value: Optional[str] = Field(..., title='Value')
1669
+
1670
+
1666
1671
  AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1667
1672
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1668
1673
  )
1669
1674
 
1670
1675
 
1671
- class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1672
- key: str = Field(..., title='Key')
1673
- value: Optional[str] = Field(..., title='Value')
1674
-
1675
-
1676
1676
  class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1677
1677
  BaseModel
1678
1678
  ):
@@ -1709,12 +1709,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1709
1709
  )
1710
1710
 
1711
1711
 
1712
- class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1713
- major: int = Field(..., title='Major')
1714
- minor: int = Field(..., title='Minor')
1715
- patch: int = Field(..., title='Patch')
1716
-
1717
-
1718
1712
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1719
1713
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1720
1714
  user_org_id: str = Field(
@@ -1722,6 +1716,12 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1722
1716
  )
1723
1717
 
1724
1718
 
1719
+ class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1720
+ major: int = Field(..., title='Major')
1721
+ minor: int = Field(..., title='Minor')
1722
+ patch: int = Field(..., title='Patch')
1723
+
1724
+
1725
1725
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1726
1726
  enable_response_recommendation: Optional[bool] = Field(
1727
1727
  False,
@@ -10787,19 +10787,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10787
10787
  )
10788
10788
 
10789
10789
 
10790
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10790
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10791
10791
  AnnotationStateInputNextState
10792
10792
  ):
10793
10793
  pass
10794
10794
 
10795
10795
 
10796
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10796
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10797
10797
  BaseModel
10798
10798
  ):
10799
10799
  description: str = Field(..., min_length=1)
10800
10800
  next_state: Union[
10801
10801
  StateOrRefName,
10802
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10802
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10803
10803
  ] = Field(..., title='Next State')
10804
10804
 
10805
10805
 
@@ -10967,13 +10967,6 @@ class RoleModifyRoleResponse(BaseModel):
10967
10967
  )
10968
10968
 
10969
10969
 
10970
- class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10971
- llm_name: LLMType
10972
- params: Optional[Dict[str, Any]] = Field(
10973
- {}, description='LLM-specific parameters to use.', title='Params'
10974
- )
10975
-
10976
-
10977
10970
  class ServiceCreateServiceResponse(BaseModel):
10978
10971
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10979
10972
 
@@ -11049,6 +11042,13 @@ class ServiceUpdateServiceRequest(BaseModel):
11049
11042
  )
11050
11043
 
11051
11044
 
11045
+ class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11046
+ llm_name: LLMType
11047
+ params: Optional[Dict[str, Any]] = Field(
11048
+ {}, description='LLM-specific parameters to use.', title='Params'
11049
+ )
11050
+
11051
+
11052
11052
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11053
11053
  background: str = Field(
11054
11054
  ..., description='The background of the simulation persona.', min_length=1
@@ -11167,6 +11167,16 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11167
11167
  )
11168
11168
 
11169
11169
 
11170
+ class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11171
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11172
+ run_count: int = Field(
11173
+ ...,
11174
+ description='The number of times to run the unit test.',
11175
+ gt=0,
11176
+ title='Run Count',
11177
+ )
11178
+
11179
+
11170
11180
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11171
11181
  simulation_unit_test_set_id: str = Field(
11172
11182
  ...,
@@ -11226,6 +11236,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11226
11236
  )
11227
11237
 
11228
11238
 
11239
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11240
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11241
+ name: str = Field(
11242
+ ..., description='The name of the simulation persona.', title='Name'
11243
+ )
11244
+ role: str = Field(
11245
+ ..., description='The role of the simulation persona.', title='Role'
11246
+ )
11247
+ tags: Dict[str, Optional[str]] = Field(
11248
+ ..., description='The tags of the simulation persona.', title='Tags'
11249
+ )
11250
+ is_deleted: bool = Field(
11251
+ ...,
11252
+ description='Whether the simulation persona is deleted.',
11253
+ title='Is Deleted',
11254
+ )
11255
+ created_at: AwareDatetime = Field(
11256
+ ...,
11257
+ description='The timestamp when the simulation persona was created.',
11258
+ title='Created At',
11259
+ )
11260
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11261
+ ..., description='The user who created the simulation persona.'
11262
+ )
11263
+ updated_at: AwareDatetime = Field(
11264
+ ...,
11265
+ description='The timestamp when the simulation persona was last updated.',
11266
+ title='Updated At',
11267
+ )
11268
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11269
+ Field(..., description='The user who last updated the simulation persona.')
11270
+ )
11271
+
11272
+
11229
11273
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11230
11274
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11231
11275
  ...,
@@ -11376,37 +11420,11 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11376
11420
  )
11377
11421
 
11378
11422
 
11379
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11380
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11381
- name: str = Field(
11382
- ..., description='The name of the simulation persona.', title='Name'
11383
- )
11384
- role: str = Field(
11385
- ..., description='The role of the simulation persona.', title='Role'
11386
- )
11387
- tags: Dict[str, Optional[str]] = Field(
11388
- ..., description='The tags of the simulation persona.', title='Tags'
11389
- )
11390
- is_deleted: bool = Field(
11391
- ...,
11392
- description='Whether the simulation persona is deleted.',
11393
- title='Is Deleted',
11394
- )
11395
- created_at: AwareDatetime = Field(
11396
- ...,
11397
- description='The timestamp when the simulation persona was created.',
11398
- title='Created At',
11399
- )
11400
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11401
- ..., description='The user who created the simulation persona.'
11402
- )
11403
- updated_at: AwareDatetime = Field(
11404
- ...,
11405
- description='The timestamp when the simulation persona was last updated.',
11406
- title='Updated At',
11407
- )
11408
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11409
- Field(..., description='The user who last updated the simulation persona.')
11423
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11424
+ simulation_personas: List[
11425
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11426
+ ] = Field(
11427
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11410
11428
  )
11411
11429
 
11412
11430
 
@@ -11477,13 +11495,39 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11477
11495
  )
11478
11496
 
11479
11497
 
11480
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11481
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11482
- run_count: int = Field(
11483
- ...,
11484
- description='The number of times to run the unit test.',
11485
- gt=0,
11486
- title='Run Count',
11498
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11499
+ RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11500
+ ):
11501
+ root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11502
+ Field(
11503
+ ...,
11504
+ description='The unit test runs that are part of this set.',
11505
+ min_length=1,
11506
+ title='Unit Test Runs',
11507
+ )
11508
+ )
11509
+
11510
+
11511
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11512
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11513
+ None, description='The name of the simulation unit test set.'
11514
+ )
11515
+ description: Optional[
11516
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11517
+ ] = Field(
11518
+ {},
11519
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11520
+ title='Description',
11521
+ )
11522
+ unit_test_runs: Optional[
11523
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11524
+ ] = Field(
11525
+ None,
11526
+ description='The unit test runs that are part of this set.',
11527
+ title='Unit Test Runs',
11528
+ )
11529
+ tags: Optional[Dict[str, Optional[str]]] = Field(
11530
+ None, description='The tags of the simulation unit test set.', title='Tags'
11487
11531
  )
11488
11532
 
11489
11533
 
@@ -12137,7 +12181,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12137
12181
  [], description='The IDs of the messages to retrieve.', title='Id'
12138
12182
  )
12139
12183
  message_type: Optional[List[MessageType]] = Field(
12140
- ['user-message', 'agent-message', 'external-event'],
12184
+ ['user-message', 'external-event', 'agent-message'],
12141
12185
  description='The type of messages to retrieve.',
12142
12186
  title='Message Type',
12143
12187
  )
@@ -13943,9 +13987,9 @@ class ServiceInstance(BaseModel):
13943
13987
  agent_id: str = Field(
13944
13988
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13945
13989
  )
13946
- tags: List[
13947
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13948
- ] = Field(..., description='The tags of the service.', title='Tags')
13990
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
13991
+ ..., description='The tags of the service.', title='Tags'
13992
+ )
13949
13993
 
13950
13994
 
13951
13995
  class SimulationConversationInvocationSource(BaseModel):
@@ -13996,9 +14040,7 @@ class SimulationUnitTestSet(BaseModel):
13996
14040
  description='Whether the unit test set has been deleted.',
13997
14041
  title='Is Deleted',
13998
14042
  )
13999
- tags: List[
14000
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14001
- ] = Field(
14043
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14002
14044
  ..., description='The tags of the simulation unit test set.', title='Tags'
14003
14045
  )
14004
14046
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14037,9 +14079,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14037
14079
  description='Whether the unit test set has been deleted.',
14038
14080
  title='Is Deleted',
14039
14081
  )
14040
- tags: List[
14041
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14042
- ] = Field(
14082
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14043
14083
  ..., description='The tags of the simulation unit test set.', title='Tags'
14044
14084
  )
14045
14085
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14155,9 +14195,9 @@ class ToolInstance(BaseModel):
14155
14195
  description='A list of encrypted environment variables that some versions of this tool uses.',
14156
14196
  title='Secret Envvars',
14157
14197
  )
14158
- tags: List[
14159
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14160
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14198
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
14199
+ ..., description='The tags of the simulation persona.', title='Tags'
14200
+ )
14161
14201
 
14162
14202
 
14163
14203
  class ToolVersionInstance(BaseModel):
@@ -14170,7 +14210,7 @@ class ToolVersionInstance(BaseModel):
14170
14210
  description='The ID of the tool that this version belongs to.',
14171
14211
  title='Tool Id',
14172
14212
  )
14173
- version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14213
+ version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14174
14214
  ..., description='The version of the tool.'
14175
14215
  )
14176
14216
  required_envvars: List[str] = Field(
@@ -14778,7 +14818,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14778
14818
  )
14779
14819
 
14780
14820
 
14781
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14821
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14782
14822
  action: AmigoLibMongoCollectionsRoleRolePermissionGrantAction = Field(
14783
14823
  ...,
14784
14824
  description='Whether this grant allows or denies the specified access.',
@@ -14795,45 +14835,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14795
14835
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14796
14836
 
14797
14837
 
14798
- class RoleModifyRoleRequest(BaseModel):
14799
- description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14800
- None,
14801
- description='A description about the role. Only updated if specified. This field is a mutable field.',
14802
- )
14803
- permission_grants: Optional[List[RoleCreateRoleRequestPermissionGrant]] = Field(
14804
- None,
14805
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14806
- title='Permission Grants',
14807
- )
14808
- frontend_view: Optional[FrontendView] = Field(
14809
- None,
14810
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14811
- )
14812
- inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
14813
- Field(
14814
- {},
14815
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
14816
- title='Inherited From',
14817
- )
14818
- )
14819
-
14820
-
14821
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14822
- agent_version_number: Optional[int] = Field(
14823
- ...,
14824
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14825
- title='Agent Version Number',
14826
- )
14827
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14828
- ...,
14829
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14830
- title='Service Hierarchical State Machine Version Number',
14831
- )
14832
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14833
- Field(..., title='Llm Model Preferences')
14834
- )
14835
-
14836
-
14837
14838
  class ServiceGetServicesResponse(BaseModel):
14838
14839
  services: List[ServiceInstance] = Field(
14839
14840
  ..., description='The services that are found.', title='Services'
@@ -14854,10 +14855,20 @@ class ServiceGetServicesResponse(BaseModel):
14854
14855
  )
14855
14856
 
14856
14857
 
14857
- class ServiceUpsertServiceVersionSetRequest(BaseModel):
14858
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14859
- ..., description='The version set to upsert.'
14858
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
14859
+ agent_version_number: Optional[int] = Field(
14860
+ ...,
14861
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14862
+ title='Agent Version Number',
14863
+ )
14864
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14865
+ ...,
14866
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14867
+ title='Service Hierarchical State Machine Version Number',
14860
14868
  )
14869
+ llm_model_preferences: Dict[
14870
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14871
+ ] = Field(..., title='Llm Model Preferences')
14861
14872
 
14862
14873
 
14863
14874
  class SimulationCreateSimulationPersonaRequest(BaseModel):
@@ -14909,7 +14920,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14909
14920
  ..., description='The description of the simulation unit test set.'
14910
14921
  )
14911
14922
  unit_test_runs: List[
14912
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14923
+ SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14913
14924
  ] = Field(
14914
14925
  ...,
14915
14926
  description='The unit test runs that are part of this set.',
@@ -14923,7 +14934,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14923
14934
 
14924
14935
  class SimulationGetSimulationPersonasResponse(BaseModel):
14925
14936
  simulation_personas: List[
14926
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14937
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14927
14938
  ] = Field(
14928
14939
  ..., description='The list of simulation personas.', title='Simulation Personas'
14929
14940
  )
@@ -14995,14 +15006,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14995
15006
  )
14996
15007
 
14997
15008
 
14998
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14999
- simulation_personas: List[
15000
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
15001
- ] = Field(
15002
- ..., description='The list of simulation personas.', title='Simulation Personas'
15003
- )
15004
-
15005
-
15006
15009
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
15007
15010
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
15008
15011
  ...,
@@ -15016,42 +15019,6 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15016
15019
  )
15017
15020
 
15018
15021
 
15019
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
15020
- RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
15021
- ):
15022
- root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
15023
- Field(
15024
- ...,
15025
- description='The unit test runs that are part of this set.',
15026
- min_length=1,
15027
- title='Unit Test Runs',
15028
- )
15029
- )
15030
-
15031
-
15032
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
15033
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15034
- None, description='The name of the simulation unit test set.'
15035
- )
15036
- description: Optional[
15037
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
15038
- ] = Field(
15039
- {},
15040
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
15041
- title='Description',
15042
- )
15043
- unit_test_runs: Optional[
15044
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
15045
- ] = Field(
15046
- None,
15047
- description='The unit test runs that are part of this set.',
15048
- title='Unit Test Runs',
15049
- )
15050
- tags: Optional[Dict[str, Optional[str]]] = Field(
15051
- None, description='The tags of the simulation unit test set.', title='Tags'
15052
- )
15053
-
15054
-
15055
15022
  class ToolGetToolVersionsResponse(BaseModel):
15056
15023
  tool_versions: List[ToolVersionInstance] = Field(
15057
15024
  ...,
@@ -15154,7 +15121,7 @@ class UserGetUserModelResponse(BaseModel):
15154
15121
  )
15155
15122
 
15156
15123
 
15157
- class UserSearchUsersResponseUserInstance(BaseModel):
15124
+ class UserGetUsersResponseUserInstance(BaseModel):
15158
15125
  org_id: str = Field(
15159
15126
  ...,
15160
15127
  description='The ID of the organization that this user belongs to.',
@@ -15179,6 +15146,12 @@ class UserSearchUsersResponseUserInstance(BaseModel):
15179
15146
  )
15180
15147
 
15181
15148
 
15149
+ class UserSearchUsersResponse(BaseModel):
15150
+ users: List[UserGetUsersResponseUserInstance] = Field(
15151
+ ..., description='Users in this organization.', title='Users'
15152
+ )
15153
+
15154
+
15182
15155
  class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
15183
15156
  webhook_deliveries: List[WebhookDeliveryInstance] = Field(
15184
15157
  ..., description='The retrieved webhook deliveries.', title='Webhook Deliveries'
@@ -15270,7 +15243,7 @@ class ActionStateInput(BaseModel):
15270
15243
  Field(..., title='Boundary Constraints')
15271
15244
  )
15272
15245
  exit_conditions: List[
15273
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15246
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15274
15247
  ] = Field(..., title='Exit Conditions')
15275
15248
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15276
15249
  ..., title='Action Tool Call Specs'
@@ -15379,7 +15352,7 @@ class DecisionStateInput(BaseModel):
15379
15352
  type: Literal['decision'] = Field(..., title='Type')
15380
15353
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15381
15354
  exit_conditions: List[
15382
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15355
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15383
15356
  ] = Field(..., title='Exit Conditions')
15384
15357
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15385
15358
  ..., title='Decision Guidelines'
@@ -15420,9 +15393,9 @@ class Metric(BaseModel):
15420
15393
  additional_notes: Optional[str] = Field(
15421
15394
  ..., description='Additional notes about the metric.', title='Additional Notes'
15422
15395
  )
15423
- tags: List[
15424
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15425
- ] = Field(..., description='The tags of the metric.', title='Tags')
15396
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15397
+ ..., description='The tags of the metric.', title='Tags'
15398
+ )
15426
15399
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15427
15400
  ..., description='The user who created the metric.'
15428
15401
  )
@@ -15490,9 +15463,9 @@ class MetricInstance(BaseModel):
15490
15463
  additional_notes: Optional[str] = Field(
15491
15464
  ..., description='Additional notes about the metric.', title='Additional Notes'
15492
15465
  )
15493
- tags: List[
15494
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15495
- ] = Field(..., description='The tags of the metric.', title='Tags')
15466
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15467
+ ..., description='The tags of the metric.', title='Tags'
15468
+ )
15496
15469
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15497
15470
  ..., description='The user who created the metric.'
15498
15471
  )
@@ -15692,9 +15665,9 @@ class SimulationUnitTest(BaseModel):
15692
15665
  is_deleted: bool = Field(
15693
15666
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15694
15667
  )
15695
- tags: List[
15696
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15697
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15668
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15669
+ ..., description='The tags of the simulation persona.', title='Tags'
15670
+ )
15698
15671
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15699
15672
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15700
15673
 
@@ -15737,9 +15710,9 @@ class SimulationUnitTestInstance(BaseModel):
15737
15710
  is_deleted: bool = Field(
15738
15711
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15739
15712
  )
15740
- tags: List[
15741
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15742
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15713
+ tags: List[AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestTag] = Field(
15714
+ ..., description='The tags of the simulation persona.', title='Tags'
15715
+ )
15743
15716
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15744
15717
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15745
15718
 
@@ -16037,7 +16010,7 @@ class RoleCreateRoleRequest(BaseModel):
16037
16010
  description: str = Field(
16038
16011
  ..., description='A description about the role.', min_length=1
16039
16012
  )
16040
- permission_grants: List[RoleCreateRoleRequestPermissionGrant] = Field(
16013
+ permission_grants: List[RoleModifyRoleRequestPermissionGrant] = Field(
16041
16014
  ...,
16042
16015
  description='A list of permission grants associated with this role.',
16043
16016
  title='Permission Grants',
@@ -16063,6 +16036,29 @@ class RoleGetRolesResponse(BaseModel):
16063
16036
  )
16064
16037
 
16065
16038
 
16039
+ class RoleModifyRoleRequest(BaseModel):
16040
+ description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
16041
+ None,
16042
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
16043
+ )
16044
+ permission_grants: Optional[List[RoleModifyRoleRequestPermissionGrant]] = Field(
16045
+ None,
16046
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
16047
+ title='Permission Grants',
16048
+ )
16049
+ frontend_view: Optional[FrontendView] = Field(
16050
+ None,
16051
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
16052
+ )
16053
+ inherited_from: Optional[Union[RoleModifyRoleRequestInheritedFrom, FieldNotSet]] = (
16054
+ Field(
16055
+ {},
16056
+ description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
16057
+ title='Inherited From',
16058
+ )
16059
+ )
16060
+
16061
+
16066
16062
  class ServiceCreateServiceRequest(BaseModel):
16067
16063
  service_hierarchical_state_machine_id: str = Field(
16068
16064
  ...,
@@ -16085,9 +16081,11 @@ class ServiceCreateServiceRequest(BaseModel):
16085
16081
  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.',
16086
16082
  title='Is Active',
16087
16083
  )
16088
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16089
- None,
16090
- 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.',
16084
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
16085
+ Field(
16086
+ None,
16087
+ 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.',
16088
+ )
16091
16089
  )
16092
16090
  keyterms: Optional[List[StrippedNonemptyStringAZAZ02]] = Field(
16093
16091
  [],
@@ -16100,6 +16098,12 @@ class ServiceCreateServiceRequest(BaseModel):
16100
16098
  )
16101
16099
 
16102
16100
 
16101
+ class ServiceUpsertServiceVersionSetRequest(BaseModel):
16102
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
16103
+ ..., description='The version set to upsert.'
16104
+ )
16105
+
16106
+
16103
16107
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16104
16108
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16105
16109
  description: str = Field(
@@ -16233,7 +16237,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16233
16237
  )
16234
16238
 
16235
16239
 
16236
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16240
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16237
16241
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16238
16242
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16239
16243
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16255,13 +16259,21 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16255
16259
  tool_id: str = Field(
16256
16260
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16257
16261
  )
16258
- tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16262
+ tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16259
16263
  ..., description='The version of the tool that was invoked.'
16260
16264
  )
16261
16265
 
16262
16266
 
16267
+ class ToolSearchToolInvocationsResponse(BaseModel):
16268
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16269
+ Field(
16270
+ ..., description='The list of tool invocations.', title='Tool Invocations'
16271
+ )
16272
+ )
16273
+
16274
+
16263
16275
  class UserGetUsersResponse(BaseModel):
16264
- users: List[UserSearchUsersResponseUserInstance] = Field(
16276
+ users: List[UserGetUsersResponseUserInstance] = Field(
16265
16277
  ..., description='Users in this organization.', title='Users'
16266
16278
  )
16267
16279
  has_more: bool = Field(
@@ -16274,12 +16286,6 @@ class UserGetUsersResponse(BaseModel):
16274
16286
  )
16275
16287
 
16276
16288
 
16277
- class UserSearchUsersResponse(BaseModel):
16278
- users: List[UserSearchUsersResponseUserInstance] = Field(
16279
- ..., description='Users in this organization.', title='Users'
16280
- )
16281
-
16282
-
16283
16289
  class SimulationUnitTestSetRunInstance(BaseModel):
16284
16290
  org_id: str = Field(..., title='Org Id')
16285
16291
  id: str = Field(..., title='Id')
@@ -16379,7 +16385,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16379
16385
 
16380
16386
 
16381
16387
  class ToolGetToolInvocationsResponse(BaseModel):
16382
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16388
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16383
16389
  Field(
16384
16390
  ..., description='The list of tool invocations.', title='Tool Invocations'
16385
16391
  )
@@ -16394,11 +16400,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
16394
16400
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16395
16401
  title='Continuation Token',
16396
16402
  )
16397
-
16398
-
16399
- class ToolSearchToolInvocationsResponse(BaseModel):
16400
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16401
- Field(
16402
- ..., description='The list of tool invocations.', title='Tool Invocations'
16403
- )
16404
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.88.0
3
+ Version: 0.89.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=FKbIt8-kJa6zNHoEaDBdEDeXQhCtCg_q6LDaMKsME2A,139
1
+ amigo_sdk/__init__.py,sha256=rGmy-Yz0nzn6UU-btR286O467NZm2g-sU8t9L490r_w,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=Yu1EgbOhCb5OZkhrvcg-yVhCxQYV1IeX5R6-4BM7Ftc,459766
9
+ amigo_sdk/generated/model.py,sha256=2TOHOTb78mJTE-CEEB0N8U9QLLMHsPMZ_tYTBCW4_30,459725
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.88.0.dist-info/METADATA,sha256=5sYuYXPAgHl1hMJcDGrhEXd5_iBdvNFr5I-0GI_YPQo,8499
15
- amigo_sdk-0.88.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.88.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.88.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.88.0.dist-info/RECORD,,
14
+ amigo_sdk-0.89.0.dist-info/METADATA,sha256=LJCKxqd2VZTctCBrxHjH-eesoctQ8_rvGuGGmFUsTcw,8499
15
+ amigo_sdk-0.89.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.89.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.89.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.89.0.dist-info/RECORD,,