amigo_sdk 0.98.0__py3-none-any.whl → 0.99.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.98.0"
1
+ __version__ = "0.99.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: 2026-01-08T23:39:28+00:00
3
+ # timestamp: 2026-01-09T15:07:06+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -398,6 +398,16 @@ class InitialMessageType(Enum):
398
398
  skip = 'skip'
399
399
 
400
400
 
401
+ class InjectInstructionActionOutput(BaseModel):
402
+ type: Literal['inject-instruction'] = Field(..., title='Type')
403
+ instruction: str = Field(..., title='Instruction')
404
+ overrides_instructions: bool = Field(
405
+ ...,
406
+ description='During injection, whether the original instruction of the state is overriden with this instruction.',
407
+ title='Overrides Instructions',
408
+ )
409
+
410
+
401
411
  class InteractionCompleteEvent(BaseModel):
402
412
  type: Literal['interaction-complete'] = Field('interaction-complete', title='Type')
403
413
  message_id: str = Field(
@@ -1397,18 +1407,6 @@ class MongoCollectionsDynamicBehaviorSetVersionDynamicBehaviorSetVersionChangeTo
1397
1407
  )
1398
1408
 
1399
1409
 
1400
- class MongoCollectionsDynamicBehaviorSetVersionDynamicBehaviorSetVersionInjectInstructionAction(
1401
- BaseModel
1402
- ):
1403
- type: Literal['inject-instruction'] = Field(..., title='Type')
1404
- instruction: str = Field(..., title='Instruction')
1405
- overrides_instructions: bool = Field(
1406
- ...,
1407
- description='During injection, whether the original instruction of the state is overriden with this instruction.',
1408
- title='Overrides Instructions',
1409
- )
1410
-
1411
-
1412
1410
  class MongoCollectionsMetricMetricUserInfo(
1413
1411
  MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1414
1412
  ):
@@ -1426,11 +1424,6 @@ class Action(Enum):
1426
1424
  deny = 'Deny'
1427
1425
 
1428
1426
 
1429
- class MongoCollectionsServiceServiceTag(BaseModel):
1430
- key: str = Field(..., title='Key')
1431
- value: str | None = Field(..., title='Value')
1432
-
1433
-
1434
1427
  class MongoCollectionsServiceServiceVersionSet(BaseModel):
1435
1428
  agent_version_number: int | None = Field(
1436
1429
  ...,
@@ -1497,6 +1490,11 @@ class MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo(
1497
1490
  pass
1498
1491
 
1499
1492
 
1493
+ class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1494
+ key: str = Field(..., title='Key')
1495
+ value: str | None = Field(..., title='Value')
1496
+
1497
+
1500
1498
  class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1501
1499
  BaseModel
1502
1500
  ):
@@ -1772,18 +1770,6 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolC
1772
1770
  )
1773
1771
 
1774
1772
 
1775
- class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction(
1776
- BaseModel
1777
- ):
1778
- type: Literal['inject-instruction'] = Field(..., title='Type')
1779
- instruction: str = Field(..., min_length=1)
1780
- overrides_instructions: bool = Field(
1781
- ...,
1782
- description='During injection, whether the original instruction of the state is overriden with this instruction.',
1783
- title='Overrides Instructions',
1784
- )
1785
-
1786
-
1787
1773
  class DynamicBehaviorSetCreateDynamicBehaviorSetResponse(BaseModel):
1788
1774
  dynamic_behavior_set_id: str = Field(
1789
1775
  ...,
@@ -1798,6 +1784,18 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidat
1798
1784
  pass
1799
1785
 
1800
1786
 
1787
+ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestInjectInstructionAction(
1788
+ BaseModel
1789
+ ):
1790
+ type: Literal['inject-instruction'] = Field(..., title='Type')
1791
+ instruction: str = Field(..., min_length=1)
1792
+ overrides_instructions: bool = Field(
1793
+ ...,
1794
+ description='During injection, whether the original instruction of the state is overriden with this instruction.',
1795
+ title='Overrides Instructions',
1796
+ )
1797
+
1798
+
1801
1799
  class DynamicBehaviorSetCreateDynamicBehaviorSetVersionResponse(BaseModel):
1802
1800
  new_version_number: int = Field(
1803
1801
  ...,
@@ -10604,11 +10602,6 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10604
10602
  )
10605
10603
 
10606
10604
 
10607
- class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10608
- description: str = Field(..., min_length=1)
10609
- tags: list[PydanticBaseModelStrippedNonemptyString1] = Field(..., title='Tags')
10610
-
10611
-
10612
10605
  class OrganizationCreateOrganizationResponse(BaseModel):
10613
10606
  org_id: str = Field(
10614
10607
  ...,
@@ -10640,7 +10633,7 @@ class NextState9(NextState7):
10640
10633
  pass
10641
10634
 
10642
10635
 
10643
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10636
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10644
10637
  BaseModel
10645
10638
  ):
10646
10639
  description: str = Field(..., min_length=1)
@@ -10783,23 +10776,17 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10783
10776
  )
10784
10777
 
10785
10778
 
10786
- class UserDimensions(
10787
- RootModel[list[OrganizationCreateOrganizationRequestUserDimension]]
10788
- ):
10789
- root: list[OrganizationCreateOrganizationRequestUserDimension] = Field(
10790
- ...,
10791
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10792
- min_length=1,
10793
- title='User Dimensions',
10794
- )
10795
-
10796
-
10797
10779
  class OrganizationModifyOrganizationRequestPreferences(
10798
10780
  OrganizationCreateOrganizationRequestPreferences
10799
10781
  ):
10800
10782
  pass
10801
10783
 
10802
10784
 
10785
+ class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10786
+ description: str = Field(..., min_length=1)
10787
+ tags: list[PydanticBaseModelStrippedNonemptyString1] = Field(..., title='Tags')
10788
+
10789
+
10803
10790
  class RoleAssignRoleRequest(BaseModel):
10804
10791
  user_id: str = Field(
10805
10792
  ...,
@@ -10816,36 +10803,25 @@ class RoleAssignRoleResponse(BaseModel):
10816
10803
  )
10817
10804
 
10818
10805
 
10819
- class InheritedFrom(RootModel[str]):
10820
- root: str = Field(
10821
- ...,
10822
- description='The ID of the role that this role inherits from.',
10823
- pattern='^[a-f0-9]{24}$',
10824
- title='Inherited From',
10825
- )
10826
-
10827
-
10828
10806
  class RoleCreateRoleResponse(BaseModel):
10829
10807
  role_id: str = Field(
10830
10808
  ..., description='The ID of the newly created role.', title='Role Id'
10831
10809
  )
10832
10810
 
10833
10811
 
10834
- class InheritedFrom1(RootModel[str]):
10835
- root: str = Field(
10836
- ...,
10837
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
10838
- pattern='^[a-f0-9]{24}$',
10839
- title='Inherited From',
10840
- )
10841
-
10842
-
10843
10812
  class RoleModifyRoleResponse(BaseModel):
10844
10813
  role_id: str = Field(
10845
10814
  ..., description='The identifier of the updated role.', title='Role Id'
10846
10815
  )
10847
10816
 
10848
10817
 
10818
+ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10819
+ llm_name: LLMType
10820
+ params: dict[str, Any] | None = Field(
10821
+ {}, description='LLM-specific parameters to use.', title='Params'
10822
+ )
10823
+
10824
+
10849
10825
  class ServiceCreateServiceResponse(BaseModel):
10850
10826
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10851
10827
 
@@ -10921,13 +10897,6 @@ class ServiceUpdateServiceRequest(BaseModel):
10921
10897
  )
10922
10898
 
10923
10899
 
10924
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
10925
- llm_name: LLMType
10926
- params: dict[str, Any] | None = Field(
10927
- {}, description='LLM-specific parameters to use.', title='Params'
10928
- )
10929
-
10930
-
10931
10900
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
10932
10901
  background: str = Field(
10933
10902
  ..., description='The background of the simulation persona.', min_length=1
@@ -11100,6 +11069,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11100
11069
  )
11101
11070
 
11102
11071
 
11072
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11073
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11074
+ name: str = Field(
11075
+ ..., description='The name of the simulation persona.', title='Name'
11076
+ )
11077
+ role: str = Field(
11078
+ ..., description='The role of the simulation persona.', title='Role'
11079
+ )
11080
+ tags: dict[str, str | None] = Field(
11081
+ ..., description='The tags of the simulation persona.', title='Tags'
11082
+ )
11083
+ is_deleted: bool = Field(
11084
+ ...,
11085
+ description='Whether the simulation persona is deleted.',
11086
+ title='Is Deleted',
11087
+ )
11088
+ created_at: AwareDatetime = Field(
11089
+ ...,
11090
+ description='The timestamp when the simulation persona was created.',
11091
+ title='Created At',
11092
+ )
11093
+ creator: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11094
+ ..., description='The user who created the simulation persona.'
11095
+ )
11096
+ updated_at: AwareDatetime = Field(
11097
+ ...,
11098
+ description='The timestamp when the simulation persona was last updated.',
11099
+ title='Updated At',
11100
+ )
11101
+ updated_by: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11102
+ ..., description='The user who last updated the simulation persona.'
11103
+ )
11104
+
11105
+
11103
11106
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11104
11107
  simulation_scenario_versions: list[SimulationScenarioVersion] = Field(
11105
11108
  ...,
@@ -11250,37 +11253,11 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11250
11253
  )
11251
11254
 
11252
11255
 
11253
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11254
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11255
- name: str = Field(
11256
- ..., description='The name of the simulation persona.', title='Name'
11257
- )
11258
- role: str = Field(
11259
- ..., description='The role of the simulation persona.', title='Role'
11260
- )
11261
- tags: dict[str, str | None] = Field(
11262
- ..., description='The tags of the simulation persona.', title='Tags'
11263
- )
11264
- is_deleted: bool = Field(
11265
- ...,
11266
- description='Whether the simulation persona is deleted.',
11267
- title='Is Deleted',
11268
- )
11269
- created_at: AwareDatetime = Field(
11270
- ...,
11271
- description='The timestamp when the simulation persona was created.',
11272
- title='Created At',
11273
- )
11274
- creator: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11275
- ..., description='The user who created the simulation persona.'
11276
- )
11277
- updated_at: AwareDatetime = Field(
11278
- ...,
11279
- description='The timestamp when the simulation persona was last updated.',
11280
- title='Updated At',
11281
- )
11282
- updated_by: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11283
- ..., description='The user who last updated the simulation persona.'
11256
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11257
+ simulation_personas: list[
11258
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11259
+ ] = Field(
11260
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11284
11261
  )
11285
11262
 
11286
11263
 
@@ -11578,7 +11555,7 @@ class UserGetMemoriesResponse(BaseModel):
11578
11555
  )
11579
11556
 
11580
11557
 
11581
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11558
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11582
11559
  num_conversations: int = Field(
11583
11560
  ...,
11584
11561
  description='The number of conversations the user has created.',
@@ -11596,6 +11573,31 @@ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11596
11573
  )
11597
11574
 
11598
11575
 
11576
+ class UserSearchUsersResponseUserInstance(BaseModel):
11577
+ org_id: str = Field(
11578
+ ...,
11579
+ description='The ID of the organization that this user belongs to.',
11580
+ title='Org Id',
11581
+ )
11582
+ user_id: str = Field(
11583
+ ..., description='The identifier of the user.', title='User Id'
11584
+ )
11585
+ first_name: str = Field(
11586
+ ..., description='The first name of the user.', title='First Name'
11587
+ )
11588
+ last_name: str = Field(
11589
+ ..., description='The last name of the user.', title='Last Name'
11590
+ )
11591
+ email: str = Field(..., description='Email of the user.', title='Email')
11592
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
11593
+ ..., description="Statistics about the user's usage of the Amigo platform."
11594
+ )
11595
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
11596
+ preferences: MongoCollectionsUserUserPreferences = Field(
11597
+ ..., description='The preferences of the user.'
11598
+ )
11599
+
11600
+
11599
11601
  class UserSignInWithApiKeyResponse(BaseModel):
11600
11602
  id_token: str = Field(
11601
11603
  ...,
@@ -11997,7 +11999,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11997
11999
  title='Id',
11998
12000
  )
11999
12001
  message_type: list[MessageType] | None = Field(
12000
- ['agent-message', 'external-event', 'user-message'],
12002
+ ['external-event', 'agent-message', 'user-message'],
12001
12003
  description='The type of messages to retrieve.',
12002
12004
  title='Message Type',
12003
12005
  )
@@ -13157,7 +13159,7 @@ class ActionStateInput(BaseModel):
13157
13159
  ..., title='Boundary Constraints'
13158
13160
  )
13159
13161
  exit_conditions: list[
13160
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
13162
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
13161
13163
  ] = Field(..., title='Exit Conditions')
13162
13164
  action_tool_call_specs: list[
13163
13165
  OrganizationCreateServiceHierarchicalStateMachineVersionRequestToolCallSpec
@@ -13303,7 +13305,7 @@ class DecisionStateInput(BaseModel):
13303
13305
  type: Literal['decision'] = Field(..., title='Type')
13304
13306
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
13305
13307
  exit_conditions: list[
13306
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
13308
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
13307
13309
  ] = Field(..., title='Exit Conditions')
13308
13310
  decision_guidelines: list[PydanticBaseModelStrippedNonemptyString1] = Field(
13309
13311
  ..., title='Decision Guidelines'
@@ -13635,7 +13637,7 @@ class ServiceInstance(BaseModel):
13635
13637
  agent_id: str = Field(
13636
13638
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13637
13639
  )
13638
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13640
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13639
13641
  ..., description='The tags of the service.', title='Tags'
13640
13642
  )
13641
13643
 
@@ -13688,7 +13690,7 @@ class SimulationUnitTestSet(BaseModel):
13688
13690
  description='Whether the unit test set has been deleted.',
13689
13691
  title='Is Deleted',
13690
13692
  )
13691
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13693
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13692
13694
  ..., description='The tags of the simulation unit test set.', title='Tags'
13693
13695
  )
13694
13696
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13725,7 +13727,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13725
13727
  description='Whether the unit test set has been deleted.',
13726
13728
  title='Is Deleted',
13727
13729
  )
13728
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13730
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13729
13731
  ..., description='The tags of the simulation unit test set.', title='Tags'
13730
13732
  )
13731
13733
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13853,7 +13855,7 @@ class ToolInstance(BaseModel):
13853
13855
  description='A list of encrypted environment variables that some versions of this tool uses.',
13854
13856
  title='Secret Envvars',
13855
13857
  )
13856
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13858
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13857
13859
  ..., description='The tags of the simulation persona.', title='Tags'
13858
13860
  )
13859
13861
 
@@ -14228,7 +14230,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14228
14230
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14229
14231
  min_length=1,
14230
14232
  )
14231
- user_dimensions: list[OrganizationCreateOrganizationRequestUserDimension] = Field(
14233
+ user_dimensions: list[OrganizationModifyOrganizationRequestUserDimension] = Field(
14232
14234
  ...,
14233
14235
  description='User dimensions for the organization.',
14234
14236
  title='User Dimensions',
@@ -14398,6 +14400,17 @@ class OrganizationGetApiKeysResponse(BaseModel):
14398
14400
  )
14399
14401
 
14400
14402
 
14403
+ class UserDimensions(
14404
+ RootModel[list[OrganizationModifyOrganizationRequestUserDimension]]
14405
+ ):
14406
+ root: list[OrganizationModifyOrganizationRequestUserDimension] = Field(
14407
+ ...,
14408
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14409
+ min_length=1,
14410
+ title='User Dimensions',
14411
+ )
14412
+
14413
+
14401
14414
  class OrganizationModifyOrganizationRequest(BaseModel):
14402
14415
  title: PydanticBaseModelStrippedNonemptyString1 | None = Field(
14403
14416
  None,
@@ -14451,7 +14464,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14451
14464
  )
14452
14465
 
14453
14466
 
14454
- class RoleModifyRoleRequestPermissionGrant(BaseModel):
14467
+ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14455
14468
  action: Action = Field(
14456
14469
  ...,
14457
14470
  description='Whether this grant allows or denies the specified access.',
@@ -14466,6 +14479,22 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14466
14479
  description: PydanticBaseModelStrippedNonemptyString1 | None = None
14467
14480
 
14468
14481
 
14482
+ class RoleModifyRoleRequest(BaseModel):
14483
+ description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
14484
+ None,
14485
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
14486
+ )
14487
+ permission_grants: list[RoleCreateRoleRequestPermissionGrant] | None = Field(
14488
+ None,
14489
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14490
+ title='Permission Grants',
14491
+ )
14492
+ frontend_view: FrontendView | None = Field(
14493
+ None,
14494
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14495
+ )
14496
+
14497
+
14469
14498
  class ServiceCreateServiceRequestVersionSet(BaseModel):
14470
14499
  agent_version_number: int | None = Field(
14471
14500
  ...,
@@ -14477,9 +14506,9 @@ class ServiceCreateServiceRequestVersionSet(BaseModel):
14477
14506
  description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14478
14507
  title='Service Hierarchical State Machine Version Number',
14479
14508
  )
14480
- llm_model_preferences: dict[
14481
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14482
- ] = Field(..., title='Llm Model Preferences')
14509
+ llm_model_preferences: dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14510
+ Field(..., title='Llm Model Preferences')
14511
+ )
14483
14512
 
14484
14513
 
14485
14514
  class ServiceGetServicesResponse(BaseModel):
@@ -14571,7 +14600,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14571
14600
 
14572
14601
  class SimulationGetSimulationPersonasResponse(BaseModel):
14573
14602
  simulation_personas: list[
14574
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14603
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14575
14604
  ] = Field(
14576
14605
  ..., description='The list of simulation personas.', title='Simulation Personas'
14577
14606
  )
@@ -14639,14 +14668,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14639
14668
  )
14640
14669
 
14641
14670
 
14642
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14643
- simulation_personas: list[
14644
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14645
- ] = Field(
14646
- ..., description='The list of simulation personas.', title='Simulation Personas'
14647
- )
14648
-
14649
-
14650
14671
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14651
14672
  simulation_unit_test_sets: list[SimulationUnitTestSet] = Field(
14652
14673
  ...,
@@ -14767,33 +14788,22 @@ class UserGetUserModelResponse(BaseModel):
14767
14788
  )
14768
14789
 
14769
14790
 
14770
- class UserGetUsersResponseUserInstance(BaseModel):
14771
- org_id: str = Field(
14772
- ...,
14773
- description='The ID of the organization that this user belongs to.',
14774
- title='Org Id',
14775
- )
14776
- user_id: str = Field(
14777
- ..., description='The identifier of the user.', title='User Id'
14778
- )
14779
- first_name: str = Field(
14780
- ..., description='The first name of the user.', title='First Name'
14781
- )
14782
- last_name: str = Field(
14783
- ..., description='The last name of the user.', title='Last Name'
14791
+ class UserGetUsersResponse(BaseModel):
14792
+ users: list[UserSearchUsersResponseUserInstance] = Field(
14793
+ ..., description='Users in this organization.', title='Users'
14784
14794
  )
14785
- email: str = Field(..., description='Email of the user.', title='Email')
14786
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
14787
- ..., description="Statistics about the user's usage of the Amigo platform."
14795
+ has_more: bool = Field(
14796
+ ..., description='Whether there are more users to retrieve.', title='Has More'
14788
14797
  )
14789
- role: str = Field(..., description='The ID of the role of the user.', title='Role')
14790
- preferences: MongoCollectionsUserUserPreferences = Field(
14791
- ..., description='The preferences of the user.'
14798
+ continuation_token: int | None = Field(
14799
+ ...,
14800
+ description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
14801
+ title='Continuation Token',
14792
14802
  )
14793
14803
 
14794
14804
 
14795
14805
  class UserSearchUsersResponse(BaseModel):
14796
- users: list[UserGetUsersResponseUserInstance] = Field(
14806
+ users: list[UserSearchUsersResponseUserInstance] = Field(
14797
14807
  ..., description='Users in this organization.', title='Users'
14798
14808
  )
14799
14809
 
@@ -14954,7 +14964,7 @@ class CurrentAgentActionEvent(BaseModel):
14954
14964
  ) = Field(..., description='The type of action the agent is performing right now.')
14955
14965
 
14956
14966
 
14957
- class DynamicBehaviorSetVersionInstance(BaseModel):
14967
+ class DynamicBehaviorSetVersion(BaseModel):
14958
14968
  field_id: str = Field(
14959
14969
  ..., alias='_id', description='The ID of the document.', title='Id'
14960
14970
  )
@@ -14966,15 +14976,10 @@ class DynamicBehaviorSetVersionInstance(BaseModel):
14966
14976
  conversation_triggers: list[str] = Field(..., title='Conversation Triggers')
14967
14977
  actions: list[
14968
14978
  Annotated[
14969
- MongoCollectionsDynamicBehaviorSetVersionDynamicBehaviorSetVersionInjectInstructionAction
14970
- | ChangeToolCandidatesActionOutput,
14979
+ InjectInstructionActionOutput | ChangeToolCandidatesActionOutput,
14971
14980
  Field(discriminator='type'),
14972
14981
  ]
14973
14982
  ] = Field(..., title='Actions')
14974
- action: (
14975
- MongoCollectionsDynamicBehaviorSetVersionDynamicBehaviorSetVersionInjectInstructionAction
14976
- | None
14977
- )
14978
14983
 
14979
14984
 
14980
14985
  class Metric(BaseModel):
@@ -14996,7 +15001,7 @@ class Metric(BaseModel):
14996
15001
  additional_notes: str | None = Field(
14997
15002
  ..., description='Additional notes about the metric.', title='Additional Notes'
14998
15003
  )
14999
- tags: list[MongoCollectionsServiceServiceTag] = Field(
15004
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15000
15005
  ..., description='The tags of the metric.', title='Tags'
15001
15006
  )
15002
15007
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15069,7 +15074,7 @@ class MetricInstance(BaseModel):
15069
15074
  additional_notes: str | None = Field(
15070
15075
  ..., description='Additional notes about the metric.', title='Additional Notes'
15071
15076
  )
15072
- tags: list[MongoCollectionsServiceServiceTag] = Field(
15077
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15073
15078
  ..., description='The tags of the metric.', title='Tags'
15074
15079
  )
15075
15080
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15125,11 +15130,13 @@ class RoleInstance(BaseModel):
15125
15130
  )
15126
15131
  inherited_from: str | None = Field(
15127
15132
  ...,
15133
+ deprecated=True,
15128
15134
  description='The ID of the role that this role inherits from. Only returned if the role inherits from another role.',
15129
15135
  title='Inherited From',
15130
15136
  )
15131
15137
  is_base_role: bool = Field(
15132
15138
  ...,
15139
+ deprecated=True,
15133
15140
  description='Whether this role is a base role. Base roles cannot inherit from other roles. One can only inherit from base roles.',
15134
15141
  title='Is Base Role',
15135
15142
  )
@@ -15175,7 +15182,7 @@ class SimulationUnitTest(BaseModel):
15175
15182
  is_deleted: bool = Field(
15176
15183
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15177
15184
  )
15178
- tags: list[MongoCollectionsServiceServiceTag] = Field(
15185
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15179
15186
  ..., description='The tags of the simulation persona.', title='Tags'
15180
15187
  )
15181
15188
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15220,7 +15227,7 @@ class SimulationUnitTestInstance(BaseModel):
15220
15227
  is_deleted: bool = Field(
15221
15228
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15222
15229
  )
15223
- tags: list[MongoCollectionsServiceServiceTag] = Field(
15230
+ tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15224
15231
  ..., description='The tags of the simulation persona.', title='Tags'
15225
15232
  )
15226
15233
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15320,16 +15327,13 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersion(BaseModel)
15320
15327
  min_length=1,
15321
15328
  title='Conversation Triggers',
15322
15329
  )
15323
- actions: (
15324
- list[
15325
- Annotated[
15326
- DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15327
- | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolCandidatesAction,
15328
- Field(discriminator='type'),
15329
- ]
15330
+ actions: list[
15331
+ Annotated[
15332
+ DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestInjectInstructionAction
15333
+ | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolCandidatesAction,
15334
+ Field(discriminator='type'),
15330
15335
  ]
15331
- | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15332
- ) = Field(
15336
+ ] = Field(
15333
15337
  ...,
15334
15338
  description='The action to perform when the dynamic behavior set version is activated.',
15335
15339
  title='Actions',
@@ -15344,16 +15348,13 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequest(BaseModel):
15344
15348
  min_length=1,
15345
15349
  title='Conversation Triggers',
15346
15350
  )
15347
- actions: (
15348
- list[
15349
- Annotated[
15350
- DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15351
- | DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidatesAction,
15352
- Field(discriminator='type'),
15353
- ]
15351
+ actions: list[
15352
+ Annotated[
15353
+ DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestInjectInstructionAction
15354
+ | DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidatesAction,
15355
+ Field(discriminator='type'),
15354
15356
  ]
15355
- | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15356
- ) = Field(
15357
+ ] = Field(
15357
15358
  ...,
15358
15359
  description='The action to perform when the dynamic behavior set version is activated.',
15359
15360
  title='Actions',
@@ -15361,7 +15362,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequest(BaseModel):
15361
15362
 
15362
15363
 
15363
15364
  class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
15364
- dynamic_behavior_set_versions: list[DynamicBehaviorSetVersionInstance] = Field(
15365
+ dynamic_behavior_set_versions: list[DynamicBehaviorSetVersion] = Field(
15365
15366
  ...,
15366
15367
  description='The retrieved dynamic behavior set versions.',
15367
15368
  title='Dynamic Behavior Set Versions',
@@ -15478,7 +15479,7 @@ class RoleCreateRoleRequest(BaseModel):
15478
15479
  description: str = Field(
15479
15480
  ..., description='A description about the role.', min_length=1
15480
15481
  )
15481
- permission_grants: list[RoleModifyRoleRequestPermissionGrant] = Field(
15482
+ permission_grants: list[RoleCreateRoleRequestPermissionGrant] = Field(
15482
15483
  ...,
15483
15484
  description='A list of permission grants associated with this role.',
15484
15485
  title='Permission Grants',
@@ -15486,16 +15487,6 @@ class RoleCreateRoleRequest(BaseModel):
15486
15487
  frontend_view: FrontendView = Field(
15487
15488
  ..., description='The frontend view for users of this role.'
15488
15489
  )
15489
- is_base_role: bool = Field(
15490
- ...,
15491
- description='Whether this role is a base role. Base roles cannot inherit from other roles. One can only inherit from base roles.',
15492
- title='Is Base Role',
15493
- )
15494
- inherited_from: InheritedFrom | None = Field(
15495
- ...,
15496
- description='The ID of the role that this role inherits from.',
15497
- title='Inherited From',
15498
- )
15499
15490
 
15500
15491
 
15501
15492
  class RoleGetRolesResponse(BaseModel):
@@ -15504,27 +15495,6 @@ class RoleGetRolesResponse(BaseModel):
15504
15495
  )
15505
15496
 
15506
15497
 
15507
- class RoleModifyRoleRequest(BaseModel):
15508
- description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
15509
- None,
15510
- description='A description about the role. Only updated if specified. This field is a mutable field.',
15511
- )
15512
- permission_grants: list[RoleModifyRoleRequestPermissionGrant] | None = Field(
15513
- None,
15514
- description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15515
- title='Permission Grants',
15516
- )
15517
- frontend_view: FrontendView | None = Field(
15518
- None,
15519
- description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15520
- )
15521
- inherited_from: InheritedFrom1 | FieldNotSet | None = Field(
15522
- default_factory=lambda: InheritedFrom1({}),
15523
- description='The ID of the role that this role inherits from. Only updated if specified. This field is an immutable field.',
15524
- title='Inherited From',
15525
- )
15526
-
15527
-
15528
15498
  class ServiceCreateServiceRequest(BaseModel):
15529
15499
  service_hierarchical_state_machine_id: str = Field(
15530
15500
  ...,
@@ -15689,7 +15659,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
15689
15659
  )
15690
15660
 
15691
15661
 
15692
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
15662
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
15693
15663
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
15694
15664
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
15695
15665
  created_at: AwareDatetime | None = Field(None, title='Created At')
@@ -15716,17 +15686,11 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
15716
15686
  )
15717
15687
 
15718
15688
 
15719
- class UserGetUsersResponse(BaseModel):
15720
- users: list[UserGetUsersResponseUserInstance] = Field(
15721
- ..., description='Users in this organization.', title='Users'
15722
- )
15723
- has_more: bool = Field(
15724
- ..., description='Whether there are more users to retrieve.', title='Has More'
15725
- )
15726
- continuation_token: int | None = Field(
15727
- ...,
15728
- description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
15729
- title='Continuation Token',
15689
+ class ToolSearchToolInvocationsResponse(BaseModel):
15690
+ tool_invocations: list[ToolGetToolInvocationsResponseToolInvocationInstance] = (
15691
+ Field(
15692
+ ..., description='The list of tool invocations.', title='Tool Invocations'
15693
+ )
15730
15694
  )
15731
15695
 
15732
15696
 
@@ -15934,7 +15898,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
15934
15898
 
15935
15899
 
15936
15900
  class ToolGetToolInvocationsResponse(BaseModel):
15937
- tool_invocations: list[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
15901
+ tool_invocations: list[ToolGetToolInvocationsResponseToolInvocationInstance] = (
15938
15902
  Field(
15939
15903
  ..., description='The list of tool invocations.', title='Tool Invocations'
15940
15904
  )
@@ -15949,11 +15913,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
15949
15913
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
15950
15914
  title='Continuation Token',
15951
15915
  )
15952
-
15953
-
15954
- class ToolSearchToolInvocationsResponse(BaseModel):
15955
- tool_invocations: list[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
15956
- Field(
15957
- ..., description='The list of tool invocations.', title='Tool Invocations'
15958
- )
15959
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.98.0
3
+ Version: 0.99.0
4
4
  Summary: Amigo AI Python SDK
5
5
  Author: Amigo AI
6
6
  License-File: LICENSE
@@ -2,7 +2,7 @@ scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  scripts/aliases.json,sha256=c1_bkZyvNDQ8iMrKtUuZQqdP87GdLnRPrb3wjX533eQ,322
3
3
  scripts/check.py,sha256=ikFavw1IjX51FNjO-kIzXjYdep3on0dKZHYvPElPFtc,2872
4
4
  scripts/gen_models.py,sha256=c4J_gHYQIBL3CcKg5z8oUusLvPePytfvLdZ7STHBcNk,3553
5
- amigo_sdk/__init__.py,sha256=SKegkSGR5Jguo83Iqy3NO1YcX0ctgzamLo5mVpq0ens,139
5
+ amigo_sdk/__init__.py,sha256=fOBc3DBkFkXroPOMRTiJxzkTPgX9MrMlvui8UAyHCDY,139
6
6
  amigo_sdk/_retry_utils.py,sha256=VbA_Uwv268J80d11R9XfnCjZiV-NwE1aXRsSlRjjRio,2108
7
7
  amigo_sdk/auth.py,sha256=WaM9PcEcnaC6CzNsgRKueHkdSAxNbRylzpR_3Q6guQ0,1765
8
8
  amigo_sdk/config.py,sha256=0eZIo-hcJ8ODftKAr-mwB-FGJxGO5PT5T4dRpyWPqAg,1491
@@ -10,13 +10,13 @@ amigo_sdk/errors.py,sha256=Yn12AxIQ6zE9jnGLWO0MUVbBsmw77Kzh82AijyreOkA,4818
10
10
  amigo_sdk/http_client.py,sha256=tfMXHqMTmlz2ja7aJhOVgbwAiJNlKCzPcK4UGNqXHO8,13488
11
11
  amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
12
12
  amigo_sdk/sdk_client.py,sha256=5nj8hzjHSFRs9JMNabdYIhQAcFE2G1jI_r7SHVGr9No,6106
13
- amigo_sdk/generated/model.py,sha256=TF46V7sugZT_tQcTCYghnb1SjpbCYj74tY__yPQL_Cw,446306
13
+ amigo_sdk/generated/model.py,sha256=N85ReSiut41HgVUydr8HTqB6DTJHRkhEZwJFIqheeYY,444818
14
14
  amigo_sdk/resources/conversation.py,sha256=X47PbPA6NqdkqXgxAPOjlO1E0W7t695tn1tPWSikMOk,14807
15
15
  amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
16
16
  amigo_sdk/resources/service.py,sha256=t1iA3nS9co-wuR-x5jBhAXXTWfMeGsLwfQcLycwVrCA,1536
17
17
  amigo_sdk/resources/user.py,sha256=P14lN-3fmIvELUjn_vpSaYpNsK-xd8zNmUV_KfcZPAU,4138
18
- amigo_sdk-0.98.0.dist-info/METADATA,sha256=VuYRbvGyFOV6VDvOLKheyRe7m16wXwrY4FLRBBtmL3A,8499
19
- amigo_sdk-0.98.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
20
- amigo_sdk-0.98.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
21
- amigo_sdk-0.98.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
22
- amigo_sdk-0.98.0.dist-info/RECORD,,
18
+ amigo_sdk-0.99.0.dist-info/METADATA,sha256=3HF-35030s8F6r2XGXe9krwkvGtRzo7RzxG2ztjfnP4,8499
19
+ amigo_sdk-0.99.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
20
+ amigo_sdk-0.99.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
21
+ amigo_sdk-0.99.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
22
+ amigo_sdk-0.99.0.dist-info/RECORD,,