amigo_sdk 0.99.0__py3-none-any.whl → 0.101.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.99.0"
1
+ __version__ = "0.101.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-09T15:07:06+00:00
3
+ # timestamp: 2026-01-11T00:33:21+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1224,31 +1224,12 @@ class VersionComponent(RootModel[int | Literal['latest']]):
1224
1224
  root: int | Literal['latest']
1225
1225
 
1226
1226
 
1227
- class SampleRate(IntEnum):
1228
- integer_22050 = 22050
1229
- integer_44100 = 44100
1230
-
1231
-
1232
- class SampleWidth1(IntEnum):
1233
- integer_4 = 4
1234
- integer_8 = 8
1235
-
1236
-
1237
- class VoiceResponseMP3AudioFormat(BaseModel):
1238
- type: Literal['mp3'] = Field('mp3', title='Type')
1239
- sample_rate: SampleRate = Field(..., title='Sample Rate')
1240
- sample_width: SampleWidth1 = Field(..., title='Sample Width')
1241
-
1242
-
1243
- class SampleRate1(IntEnum):
1244
- integer_8000 = 8000
1245
- integer_16000 = 16000
1246
- integer_44100 = 44100
1227
+ class VoiceResponseMP3AudioFormat(MP3UserMessageAudioConfig):
1228
+ pass
1247
1229
 
1248
1230
 
1249
1231
  class VoiceResponsePCMAudioFormat(BaseModel):
1250
1232
  type: Literal['pcm'] = Field('pcm', title='Type')
1251
- sample_rate: SampleRate1 = Field(..., title='Sample Rate')
1252
1233
 
1253
1234
 
1254
1235
  class WebhookDeliveryStatus(Enum):
@@ -1490,11 +1471,6 @@ class MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo(
1490
1471
  pass
1491
1472
 
1492
1473
 
1493
- class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1494
- key: str = Field(..., title='Key')
1495
- value: str | None = Field(..., title='Value')
1496
-
1497
-
1498
1474
  class MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1499
1475
  BaseModel
1500
1476
  ):
@@ -1529,6 +1505,11 @@ class MongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo(
1529
1505
  pass
1530
1506
 
1531
1507
 
1508
+ class MongoCollectionsToolToolTag(BaseModel):
1509
+ key: str = Field(..., title='Key')
1510
+ value: str | None = Field(..., title='Value')
1511
+
1512
+
1532
1513
  class MongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1533
1514
  major: int = Field(..., title='Major')
1534
1515
  minor: int = Field(..., title='Minor')
@@ -1770,6 +1751,18 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolC
1770
1751
  )
1771
1752
 
1772
1753
 
1754
+ class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction(
1755
+ BaseModel
1756
+ ):
1757
+ type: Literal['inject-instruction'] = Field(..., title='Type')
1758
+ instruction: str = Field(..., min_length=1)
1759
+ overrides_instructions: bool = Field(
1760
+ ...,
1761
+ description='During injection, whether the original instruction of the state is overriden with this instruction.',
1762
+ title='Overrides Instructions',
1763
+ )
1764
+
1765
+
1773
1766
  class DynamicBehaviorSetCreateDynamicBehaviorSetResponse(BaseModel):
1774
1767
  dynamic_behavior_set_id: str = Field(
1775
1768
  ...,
@@ -1784,18 +1777,6 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidat
1784
1777
  pass
1785
1778
 
1786
1779
 
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
-
1799
1780
  class DynamicBehaviorSetCreateDynamicBehaviorSetVersionResponse(BaseModel):
1800
1781
  new_version_number: int = Field(
1801
1782
  ...,
@@ -10602,6 +10583,11 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10602
10583
  )
10603
10584
 
10604
10585
 
10586
+ class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10587
+ description: str = Field(..., min_length=1)
10588
+ tags: list[PydanticBaseModelStrippedNonemptyString1] = Field(..., title='Tags')
10589
+
10590
+
10605
10591
  class OrganizationCreateOrganizationResponse(BaseModel):
10606
10592
  org_id: str = Field(
10607
10593
  ...,
@@ -10633,7 +10619,7 @@ class NextState9(NextState7):
10633
10619
  pass
10634
10620
 
10635
10621
 
10636
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10622
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10637
10623
  BaseModel
10638
10624
  ):
10639
10625
  description: str = Field(..., min_length=1)
@@ -10776,17 +10762,23 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10776
10762
  )
10777
10763
 
10778
10764
 
10765
+ class UserDimensions(
10766
+ RootModel[list[OrganizationCreateOrganizationRequestUserDimension]]
10767
+ ):
10768
+ root: list[OrganizationCreateOrganizationRequestUserDimension] = Field(
10769
+ ...,
10770
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10771
+ min_length=1,
10772
+ title='User Dimensions',
10773
+ )
10774
+
10775
+
10779
10776
  class OrganizationModifyOrganizationRequestPreferences(
10780
10777
  OrganizationCreateOrganizationRequestPreferences
10781
10778
  ):
10782
10779
  pass
10783
10780
 
10784
10781
 
10785
- class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10786
- description: str = Field(..., min_length=1)
10787
- tags: list[PydanticBaseModelStrippedNonemptyString1] = Field(..., title='Tags')
10788
-
10789
-
10790
10782
  class RoleAssignRoleRequest(BaseModel):
10791
10783
  user_id: str = Field(
10792
10784
  ...,
@@ -10815,13 +10807,6 @@ class RoleModifyRoleResponse(BaseModel):
10815
10807
  )
10816
10808
 
10817
10809
 
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
-
10825
10810
  class ServiceCreateServiceResponse(BaseModel):
10826
10811
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10827
10812
 
@@ -10897,6 +10882,13 @@ class ServiceUpdateServiceRequest(BaseModel):
10897
10882
  )
10898
10883
 
10899
10884
 
10885
+ class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
10886
+ llm_name: LLMType
10887
+ params: dict[str, Any] | None = Field(
10888
+ {}, description='LLM-specific parameters to use.', title='Params'
10889
+ )
10890
+
10891
+
10900
10892
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
10901
10893
  background: str = Field(
10902
10894
  ..., description='The background of the simulation persona.', min_length=1
@@ -11069,40 +11061,6 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11069
11061
  )
11070
11062
 
11071
11063
 
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
-
11106
11064
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11107
11065
  simulation_scenario_versions: list[SimulationScenarioVersion] = Field(
11108
11066
  ...,
@@ -11253,11 +11211,37 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11253
11211
  )
11254
11212
 
11255
11213
 
11256
- class SimulationSearchSimulationPersonasResponse(BaseModel):
11257
- simulation_personas: list[
11258
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11259
- ] = Field(
11260
- ..., description='The list of simulation personas.', title='Simulation Personas'
11214
+ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11215
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11216
+ name: str = Field(
11217
+ ..., description='The name of the simulation persona.', title='Name'
11218
+ )
11219
+ role: str = Field(
11220
+ ..., description='The role of the simulation persona.', title='Role'
11221
+ )
11222
+ tags: dict[str, str | None] = Field(
11223
+ ..., description='The tags of the simulation persona.', title='Tags'
11224
+ )
11225
+ is_deleted: bool = Field(
11226
+ ...,
11227
+ description='Whether the simulation persona is deleted.',
11228
+ title='Is Deleted',
11229
+ )
11230
+ created_at: AwareDatetime = Field(
11231
+ ...,
11232
+ description='The timestamp when the simulation persona was created.',
11233
+ title='Created At',
11234
+ )
11235
+ creator: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11236
+ ..., description='The user who created the simulation persona.'
11237
+ )
11238
+ updated_at: AwareDatetime = Field(
11239
+ ...,
11240
+ description='The timestamp when the simulation persona was last updated.',
11241
+ title='Updated At',
11242
+ )
11243
+ updated_by: MongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11244
+ ..., description='The user who last updated the simulation persona.'
11261
11245
  )
11262
11246
 
11263
11247
 
@@ -11555,7 +11539,7 @@ class UserGetMemoriesResponse(BaseModel):
11555
11539
  )
11556
11540
 
11557
11541
 
11558
- class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11542
+ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11559
11543
  num_conversations: int = Field(
11560
11544
  ...,
11561
11545
  description='The number of conversations the user has created.',
@@ -11573,31 +11557,6 @@ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11573
11557
  )
11574
11558
 
11575
11559
 
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
-
11601
11560
  class UserSignInWithApiKeyResponse(BaseModel):
11602
11561
  id_token: str = Field(
11603
11562
  ...,
@@ -11999,7 +11958,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
11999
11958
  title='Id',
12000
11959
  )
12001
11960
  message_type: list[MessageType] | None = Field(
12002
- ['external-event', 'agent-message', 'user-message'],
11961
+ ['user-message', 'agent-message', 'external-event'],
12003
11962
  description='The type of messages to retrieve.',
12004
11963
  title='Message Type',
12005
11964
  )
@@ -13159,7 +13118,7 @@ class ActionStateInput(BaseModel):
13159
13118
  ..., title='Boundary Constraints'
13160
13119
  )
13161
13120
  exit_conditions: list[
13162
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
13121
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
13163
13122
  ] = Field(..., title='Exit Conditions')
13164
13123
  action_tool_call_specs: list[
13165
13124
  OrganizationCreateServiceHierarchicalStateMachineVersionRequestToolCallSpec
@@ -13305,7 +13264,7 @@ class DecisionStateInput(BaseModel):
13305
13264
  type: Literal['decision'] = Field(..., title='Type')
13306
13265
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
13307
13266
  exit_conditions: list[
13308
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
13267
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
13309
13268
  ] = Field(..., title='Exit Conditions')
13310
13269
  decision_guidelines: list[PydanticBaseModelStrippedNonemptyString1] = Field(
13311
13270
  ..., title='Decision Guidelines'
@@ -13637,7 +13596,7 @@ class ServiceInstance(BaseModel):
13637
13596
  agent_id: str = Field(
13638
13597
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13639
13598
  )
13640
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13599
+ tags: list[MongoCollectionsToolToolTag] = Field(
13641
13600
  ..., description='The tags of the service.', title='Tags'
13642
13601
  )
13643
13602
 
@@ -13690,7 +13649,7 @@ class SimulationUnitTestSet(BaseModel):
13690
13649
  description='Whether the unit test set has been deleted.',
13691
13650
  title='Is Deleted',
13692
13651
  )
13693
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13652
+ tags: list[MongoCollectionsToolToolTag] = Field(
13694
13653
  ..., description='The tags of the simulation unit test set.', title='Tags'
13695
13654
  )
13696
13655
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13727,7 +13686,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13727
13686
  description='Whether the unit test set has been deleted.',
13728
13687
  title='Is Deleted',
13729
13688
  )
13730
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13689
+ tags: list[MongoCollectionsToolToolTag] = Field(
13731
13690
  ..., description='The tags of the simulation unit test set.', title='Tags'
13732
13691
  )
13733
13692
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13855,7 +13814,7 @@ class ToolInstance(BaseModel):
13855
13814
  description='A list of encrypted environment variables that some versions of this tool uses.',
13856
13815
  title='Secret Envvars',
13857
13816
  )
13858
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
13817
+ tags: list[MongoCollectionsToolToolTag] = Field(
13859
13818
  ..., description='The tags of the simulation persona.', title='Tags'
13860
13819
  )
13861
13820
 
@@ -14230,7 +14189,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14230
14189
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14231
14190
  min_length=1,
14232
14191
  )
14233
- user_dimensions: list[OrganizationModifyOrganizationRequestUserDimension] = Field(
14192
+ user_dimensions: list[OrganizationCreateOrganizationRequestUserDimension] = Field(
14234
14193
  ...,
14235
14194
  description='User dimensions for the organization.',
14236
14195
  title='User Dimensions',
@@ -14400,17 +14359,6 @@ class OrganizationGetApiKeysResponse(BaseModel):
14400
14359
  )
14401
14360
 
14402
14361
 
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
-
14414
14362
  class OrganizationModifyOrganizationRequest(BaseModel):
14415
14363
  title: PydanticBaseModelStrippedNonemptyString1 | None = Field(
14416
14364
  None,
@@ -14464,7 +14412,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14464
14412
  )
14465
14413
 
14466
14414
 
14467
- class RoleCreateRoleRequestPermissionGrant(BaseModel):
14415
+ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14468
14416
  action: Action = Field(
14469
14417
  ...,
14470
14418
  description='Whether this grant allows or denies the specified access.',
@@ -14479,22 +14427,6 @@ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14479
14427
  description: PydanticBaseModelStrippedNonemptyString1 | None = None
14480
14428
 
14481
14429
 
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
-
14498
14430
  class ServiceCreateServiceRequestVersionSet(BaseModel):
14499
14431
  agent_version_number: int | None = Field(
14500
14432
  ...,
@@ -14506,9 +14438,9 @@ class ServiceCreateServiceRequestVersionSet(BaseModel):
14506
14438
  description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14507
14439
  title='Service Hierarchical State Machine Version Number',
14508
14440
  )
14509
- llm_model_preferences: dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14510
- Field(..., title='Llm Model Preferences')
14511
- )
14441
+ llm_model_preferences: dict[
14442
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14443
+ ] = Field(..., title='Llm Model Preferences')
14512
14444
 
14513
14445
 
14514
14446
  class ServiceGetServicesResponse(BaseModel):
@@ -14600,7 +14532,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14600
14532
 
14601
14533
  class SimulationGetSimulationPersonasResponse(BaseModel):
14602
14534
  simulation_personas: list[
14603
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14535
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14604
14536
  ] = Field(
14605
14537
  ..., description='The list of simulation personas.', title='Simulation Personas'
14606
14538
  )
@@ -14668,6 +14600,14 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14668
14600
  )
14669
14601
 
14670
14602
 
14603
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
14604
+ simulation_personas: list[
14605
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14606
+ ] = Field(
14607
+ ..., description='The list of simulation personas.', title='Simulation Personas'
14608
+ )
14609
+
14610
+
14671
14611
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14672
14612
  simulation_unit_test_sets: list[SimulationUnitTestSet] = Field(
14673
14613
  ...,
@@ -14788,22 +14728,33 @@ class UserGetUserModelResponse(BaseModel):
14788
14728
  )
14789
14729
 
14790
14730
 
14791
- class UserGetUsersResponse(BaseModel):
14792
- users: list[UserSearchUsersResponseUserInstance] = Field(
14793
- ..., description='Users in this organization.', title='Users'
14731
+ class UserGetUsersResponseUserInstance(BaseModel):
14732
+ org_id: str = Field(
14733
+ ...,
14734
+ description='The ID of the organization that this user belongs to.',
14735
+ title='Org Id',
14794
14736
  )
14795
- has_more: bool = Field(
14796
- ..., description='Whether there are more users to retrieve.', title='Has More'
14737
+ user_id: str = Field(
14738
+ ..., description='The identifier of the user.', title='User Id'
14797
14739
  )
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',
14740
+ first_name: str = Field(
14741
+ ..., description='The first name of the user.', title='First Name'
14742
+ )
14743
+ last_name: str = Field(
14744
+ ..., description='The last name of the user.', title='Last Name'
14745
+ )
14746
+ email: str = Field(..., description='Email of the user.', title='Email')
14747
+ user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
14748
+ ..., description="Statistics about the user's usage of the Amigo platform."
14749
+ )
14750
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
14751
+ preferences: MongoCollectionsUserUserPreferences = Field(
14752
+ ..., description='The preferences of the user.'
14802
14753
  )
14803
14754
 
14804
14755
 
14805
14756
  class UserSearchUsersResponse(BaseModel):
14806
- users: list[UserSearchUsersResponseUserInstance] = Field(
14757
+ users: list[UserGetUsersResponseUserInstance] = Field(
14807
14758
  ..., description='Users in this organization.', title='Users'
14808
14759
  )
14809
14760
 
@@ -15001,7 +14952,7 @@ class Metric(BaseModel):
15001
14952
  additional_notes: str | None = Field(
15002
14953
  ..., description='Additional notes about the metric.', title='Additional Notes'
15003
14954
  )
15004
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
14955
+ tags: list[MongoCollectionsToolToolTag] = Field(
15005
14956
  ..., description='The tags of the metric.', title='Tags'
15006
14957
  )
15007
14958
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15074,7 +15025,7 @@ class MetricInstance(BaseModel):
15074
15025
  additional_notes: str | None = Field(
15075
15026
  ..., description='Additional notes about the metric.', title='Additional Notes'
15076
15027
  )
15077
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15028
+ tags: list[MongoCollectionsToolToolTag] = Field(
15078
15029
  ..., description='The tags of the metric.', title='Tags'
15079
15030
  )
15080
15031
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15128,18 +15079,6 @@ class RoleInstance(BaseModel):
15128
15079
  description='The permission grants given to the role. Only returned if the `return_permission_grants` query parameter is True. ',
15129
15080
  title='Permission Grants',
15130
15081
  )
15131
- inherited_from: str | None = Field(
15132
- ...,
15133
- deprecated=True,
15134
- description='The ID of the role that this role inherits from. Only returned if the role inherits from another role.',
15135
- title='Inherited From',
15136
- )
15137
- is_base_role: bool = Field(
15138
- ...,
15139
- deprecated=True,
15140
- description='Whether this role is a base role. Base roles cannot inherit from other roles. One can only inherit from base roles.',
15141
- title='Is Base Role',
15142
- )
15143
15082
 
15144
15083
 
15145
15084
  class SimulationUnitTest(BaseModel):
@@ -15182,7 +15121,7 @@ class SimulationUnitTest(BaseModel):
15182
15121
  is_deleted: bool = Field(
15183
15122
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15184
15123
  )
15185
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15124
+ tags: list[MongoCollectionsToolToolTag] = Field(
15186
15125
  ..., description='The tags of the simulation persona.', title='Tags'
15187
15126
  )
15188
15127
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15227,7 +15166,7 @@ class SimulationUnitTestInstance(BaseModel):
15227
15166
  is_deleted: bool = Field(
15228
15167
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15229
15168
  )
15230
- tags: list[MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag] = Field(
15169
+ tags: list[MongoCollectionsToolToolTag] = Field(
15231
15170
  ..., description='The tags of the simulation persona.', title='Tags'
15232
15171
  )
15233
15172
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15329,7 +15268,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersion(BaseModel)
15329
15268
  )
15330
15269
  actions: list[
15331
15270
  Annotated[
15332
- DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestInjectInstructionAction
15271
+ DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15333
15272
  | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolCandidatesAction,
15334
15273
  Field(discriminator='type'),
15335
15274
  ]
@@ -15350,7 +15289,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequest(BaseModel):
15350
15289
  )
15351
15290
  actions: list[
15352
15291
  Annotated[
15353
- DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestInjectInstructionAction
15292
+ DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15354
15293
  | DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidatesAction,
15355
15294
  Field(discriminator='type'),
15356
15295
  ]
@@ -15479,7 +15418,7 @@ class RoleCreateRoleRequest(BaseModel):
15479
15418
  description: str = Field(
15480
15419
  ..., description='A description about the role.', min_length=1
15481
15420
  )
15482
- permission_grants: list[RoleCreateRoleRequestPermissionGrant] = Field(
15421
+ permission_grants: list[RoleModifyRoleRequestPermissionGrant] = Field(
15483
15422
  ...,
15484
15423
  description='A list of permission grants associated with this role.',
15485
15424
  title='Permission Grants',
@@ -15495,6 +15434,22 @@ class RoleGetRolesResponse(BaseModel):
15495
15434
  )
15496
15435
 
15497
15436
 
15437
+ class RoleModifyRoleRequest(BaseModel):
15438
+ description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
15439
+ None,
15440
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
15441
+ )
15442
+ permission_grants: list[RoleModifyRoleRequestPermissionGrant] | None = Field(
15443
+ None,
15444
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
15445
+ title='Permission Grants',
15446
+ )
15447
+ frontend_view: FrontendView | None = Field(
15448
+ None,
15449
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
15450
+ )
15451
+
15452
+
15498
15453
  class ServiceCreateServiceRequest(BaseModel):
15499
15454
  service_hierarchical_state_machine_id: str = Field(
15500
15455
  ...,
@@ -15659,7 +15614,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
15659
15614
  )
15660
15615
 
15661
15616
 
15662
- class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
15617
+ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
15663
15618
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
15664
15619
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
15665
15620
  created_at: AwareDatetime | None = Field(None, title='Created At')
@@ -15686,11 +15641,17 @@ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
15686
15641
  )
15687
15642
 
15688
15643
 
15689
- class ToolSearchToolInvocationsResponse(BaseModel):
15690
- tool_invocations: list[ToolGetToolInvocationsResponseToolInvocationInstance] = (
15691
- Field(
15692
- ..., description='The list of tool invocations.', title='Tool Invocations'
15693
- )
15644
+ class UserGetUsersResponse(BaseModel):
15645
+ users: list[UserGetUsersResponseUserInstance] = Field(
15646
+ ..., description='Users in this organization.', title='Users'
15647
+ )
15648
+ has_more: bool = Field(
15649
+ ..., description='Whether there are more users to retrieve.', title='Has More'
15650
+ )
15651
+ continuation_token: int | None = Field(
15652
+ ...,
15653
+ description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
15654
+ title='Continuation Token',
15694
15655
  )
15695
15656
 
15696
15657
 
@@ -15898,7 +15859,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
15898
15859
 
15899
15860
 
15900
15861
  class ToolGetToolInvocationsResponse(BaseModel):
15901
- tool_invocations: list[ToolGetToolInvocationsResponseToolInvocationInstance] = (
15862
+ tool_invocations: list[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
15902
15863
  Field(
15903
15864
  ..., description='The list of tool invocations.', title='Tool Invocations'
15904
15865
  )
@@ -15913,3 +15874,11 @@ class ToolGetToolInvocationsResponse(BaseModel):
15913
15874
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
15914
15875
  title='Continuation Token',
15915
15876
  )
15877
+
15878
+
15879
+ class ToolSearchToolInvocationsResponse(BaseModel):
15880
+ tool_invocations: list[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
15881
+ Field(
15882
+ ..., description='The list of tool invocations.', title='Tool Invocations'
15883
+ )
15884
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.99.0
3
+ Version: 0.101.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=fOBc3DBkFkXroPOMRTiJxzkTPgX9MrMlvui8UAyHCDY,139
5
+ amigo_sdk/__init__.py,sha256=NSTXBTjs3uCHrXsjzDlo7D-Q2jFXrrDQDAEIhsDJzcA,140
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=N85ReSiut41HgVUydr8HTqB6DTJHRkhEZwJFIqheeYY,444818
13
+ amigo_sdk/generated/model.py,sha256=QLTBWs3hxDuM2yd4O8jbK1O9DmtTv09n2LreINnzx68,443599
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.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,,
18
+ amigo_sdk-0.101.0.dist-info/METADATA,sha256=AmXMv0xgaHjP7jWcqtxft3CuE7KGcvpiqMKZ1Iz4FLo,8500
19
+ amigo_sdk-0.101.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
20
+ amigo_sdk-0.101.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
21
+ amigo_sdk-0.101.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
22
+ amigo_sdk-0.101.0.dist-info/RECORD,,