amigo_sdk 0.98.0__py3-none-any.whl → 0.100.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.100.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-10T22:11:51+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
  ...,
@@ -1531,10 +1524,9 @@ class MongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo(
1531
1524
  pass
1532
1525
 
1533
1526
 
1534
- class MongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1535
- major: int = Field(..., title='Major')
1536
- minor: int = Field(..., title='Minor')
1537
- patch: int = Field(..., title='Patch')
1527
+ class MongoCollectionsToolToolTag(BaseModel):
1528
+ key: str = Field(..., title='Key')
1529
+ value: str | None = Field(..., title='Value')
1538
1530
 
1539
1531
 
1540
1532
  class MongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
@@ -1544,6 +1536,12 @@ class MongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1544
1536
  )
1545
1537
 
1546
1538
 
1539
+ class MongoCollectionsToolVersionToolVersionVersion(BaseModel):
1540
+ major: int = Field(..., title='Major')
1541
+ minor: int = Field(..., title='Minor')
1542
+ patch: int = Field(..., title='Patch')
1543
+
1544
+
1547
1545
  class MongoCollectionsUserUserPreferences(BaseModel):
1548
1546
  enable_response_recommendation: bool | None = Field(
1549
1547
  False,
@@ -1824,20 +1822,6 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1824
1822
  )
1825
1823
 
1826
1824
 
1827
- class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1828
- BaseModel
1829
- ):
1830
- id: str = Field(..., title='Id')
1831
- name: str = Field(..., title='Name')
1832
- is_active: bool = Field(..., title='Is Active')
1833
- applied_to_services: list[str] = Field(..., title='Applied To Services')
1834
- tags: dict[str, str | None] = Field(..., title='Tags')
1835
- created_at: AwareDatetime = Field(..., title='Created At')
1836
- creator: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1837
- updated_at: AwareDatetime = Field(..., title='Updated At')
1838
- updated_by: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1839
-
1840
-
1841
1825
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1842
1826
  applied_to_services_ids: list[str] = Field(
1843
1827
  ...,
@@ -1858,14 +1842,18 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1858
1842
  )
1859
1843
 
1860
1844
 
1861
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1862
- dynamic_behavior_sets: list[
1863
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1864
- ] = Field(
1865
- ...,
1866
- description='The retrieved dynamic behavior sets.',
1867
- title='Dynamic Behavior Sets',
1868
- )
1845
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1846
+ BaseModel
1847
+ ):
1848
+ id: str = Field(..., title='Id')
1849
+ name: str = Field(..., title='Name')
1850
+ is_active: bool = Field(..., title='Is Active')
1851
+ applied_to_services: list[str] = Field(..., title='Applied To Services')
1852
+ tags: dict[str, str | None] = Field(..., title='Tags')
1853
+ created_at: AwareDatetime = Field(..., title='Created At')
1854
+ creator: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1855
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1856
+ updated_by: MongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1869
1857
 
1870
1858
 
1871
1859
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequest(BaseModel):
@@ -10816,30 +10804,12 @@ class RoleAssignRoleResponse(BaseModel):
10816
10804
  )
10817
10805
 
10818
10806
 
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
10807
  class RoleCreateRoleResponse(BaseModel):
10829
10808
  role_id: str = Field(
10830
10809
  ..., description='The ID of the newly created role.', title='Role Id'
10831
10810
  )
10832
10811
 
10833
10812
 
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
10813
  class RoleModifyRoleResponse(BaseModel):
10844
10814
  role_id: str = Field(
10845
10815
  ..., description='The identifier of the updated role.', title='Role Id'
@@ -11131,37 +11101,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11131
11101
  )
11132
11102
 
11133
11103
 
11134
- class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11135
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11136
- name: str = Field(
11137
- ..., description='The name of the simulation scenario.', title='Name'
11138
- )
11139
- tags: dict[str, str | None] = Field(
11140
- ..., description='The tags of the simulation scenario.', title='Tags'
11141
- )
11142
- is_deleted: bool = Field(
11143
- ...,
11144
- description='Whether the simulation scenario is deleted.',
11145
- title='Is Deleted',
11146
- )
11147
- created_at: AwareDatetime = Field(
11148
- ...,
11149
- description='The timestamp when the simulation scenario was created.',
11150
- title='Created At',
11151
- )
11152
- creator: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11153
- ..., description='The user who created the simulation scenario.'
11154
- )
11155
- updated_at: AwareDatetime = Field(
11156
- ...,
11157
- description='The timestamp when the simulation scenario was last updated.',
11158
- title='Updated At',
11159
- )
11160
- updated_by: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11161
- ..., description='The user who last updated the simulation scenario.'
11162
- )
11163
-
11164
-
11165
11104
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11166
11105
  presigned_url: str = Field(
11167
11106
  ...,
@@ -11284,13 +11223,34 @@ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseMo
11284
11223
  )
11285
11224
 
11286
11225
 
11287
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11288
- simulation_scenarios: list[
11289
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11290
- ] = Field(
11226
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11227
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11228
+ name: str = Field(
11229
+ ..., description='The name of the simulation scenario.', title='Name'
11230
+ )
11231
+ tags: dict[str, str | None] = Field(
11232
+ ..., description='The tags of the simulation scenario.', title='Tags'
11233
+ )
11234
+ is_deleted: bool = Field(
11291
11235
  ...,
11292
- description='The list of simulation scenarios.',
11293
- title='Simulation Scenarios',
11236
+ description='Whether the simulation scenario is deleted.',
11237
+ title='Is Deleted',
11238
+ )
11239
+ created_at: AwareDatetime = Field(
11240
+ ...,
11241
+ description='The timestamp when the simulation scenario was created.',
11242
+ title='Created At',
11243
+ )
11244
+ creator: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11245
+ ..., description='The user who created the simulation scenario.'
11246
+ )
11247
+ updated_at: AwareDatetime = Field(
11248
+ ...,
11249
+ description='The timestamp when the simulation scenario was last updated.',
11250
+ title='Updated At',
11251
+ )
11252
+ updated_by: MongoCollectionsSimulationScenarioSimulationScenarioUserInfo = Field(
11253
+ ..., description='The user who last updated the simulation scenario.'
11294
11254
  )
11295
11255
 
11296
11256
 
@@ -11578,7 +11538,7 @@ class UserGetMemoriesResponse(BaseModel):
11578
11538
  )
11579
11539
 
11580
11540
 
11581
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11541
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11582
11542
  num_conversations: int = Field(
11583
11543
  ...,
11584
11544
  description='The number of conversations the user has created.',
@@ -11596,6 +11556,31 @@ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11596
11556
  )
11597
11557
 
11598
11558
 
11559
+ class UserSearchUsersResponseUserInstance(BaseModel):
11560
+ org_id: str = Field(
11561
+ ...,
11562
+ description='The ID of the organization that this user belongs to.',
11563
+ title='Org Id',
11564
+ )
11565
+ user_id: str = Field(
11566
+ ..., description='The identifier of the user.', title='User Id'
11567
+ )
11568
+ first_name: str = Field(
11569
+ ..., description='The first name of the user.', title='First Name'
11570
+ )
11571
+ last_name: str = Field(
11572
+ ..., description='The last name of the user.', title='Last Name'
11573
+ )
11574
+ email: str = Field(..., description='Email of the user.', title='Email')
11575
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
11576
+ ..., description="Statistics about the user's usage of the Amigo platform."
11577
+ )
11578
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
11579
+ preferences: MongoCollectionsUserUserPreferences = Field(
11580
+ ..., description='The preferences of the user.'
11581
+ )
11582
+
11583
+
11599
11584
  class UserSignInWithApiKeyResponse(BaseModel):
11600
11585
  id_token: str = Field(
11601
11586
  ...,
@@ -13635,7 +13620,7 @@ class ServiceInstance(BaseModel):
13635
13620
  agent_id: str = Field(
13636
13621
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13637
13622
  )
13638
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13623
+ tags: list[MongoCollectionsToolToolTag] = Field(
13639
13624
  ..., description='The tags of the service.', title='Tags'
13640
13625
  )
13641
13626
 
@@ -13688,7 +13673,7 @@ class SimulationUnitTestSet(BaseModel):
13688
13673
  description='Whether the unit test set has been deleted.',
13689
13674
  title='Is Deleted',
13690
13675
  )
13691
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13676
+ tags: list[MongoCollectionsToolToolTag] = Field(
13692
13677
  ..., description='The tags of the simulation unit test set.', title='Tags'
13693
13678
  )
13694
13679
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13725,7 +13710,7 @@ class SimulationUnitTestSetInstance(BaseModel):
13725
13710
  description='Whether the unit test set has been deleted.',
13726
13711
  title='Is Deleted',
13727
13712
  )
13728
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13713
+ tags: list[MongoCollectionsToolToolTag] = Field(
13729
13714
  ..., description='The tags of the simulation unit test set.', title='Tags'
13730
13715
  )
13731
13716
  creator: MongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -13853,7 +13838,7 @@ class ToolInstance(BaseModel):
13853
13838
  description='A list of encrypted environment variables that some versions of this tool uses.',
13854
13839
  title='Secret Envvars',
13855
13840
  )
13856
- tags: list[MongoCollectionsServiceServiceTag] = Field(
13841
+ tags: list[MongoCollectionsToolToolTag] = Field(
13857
13842
  ..., description='The tags of the simulation persona.', title='Tags'
13858
13843
  )
13859
13844
 
@@ -13868,7 +13853,7 @@ class ToolVersionInstance(BaseModel):
13868
13853
  description='The ID of the tool that this version belongs to.',
13869
13854
  title='Tool Id',
13870
13855
  )
13871
- version: MongoCollectionsToolInvocationToolInvocationVersion = Field(
13856
+ version: MongoCollectionsToolVersionToolVersionVersion = Field(
13872
13857
  ..., description='The version of the tool.'
13873
13858
  )
13874
13859
  required_envvars: list[str] = Field(
@@ -14148,7 +14133,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidat
14148
14133
 
14149
14134
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14150
14135
  dynamic_behavior_sets: list[
14151
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14136
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14152
14137
  ] = Field(
14153
14138
  ...,
14154
14139
  description='The retrieved dynamic behavior sets.',
@@ -14172,6 +14157,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14172
14157
  )
14173
14158
 
14174
14159
 
14160
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14161
+ dynamic_behavior_sets: list[
14162
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14163
+ ] = Field(
14164
+ ...,
14165
+ description='The retrieved dynamic behavior sets.',
14166
+ title='Dynamic Behavior Sets',
14167
+ )
14168
+
14169
+
14175
14170
  class MetricCreateMetricRequest(BaseModel):
14176
14171
  name: str = Field(
14177
14172
  ...,
@@ -14451,7 +14446,7 @@ class OrganizationModifyOrganizationRequest(BaseModel):
14451
14446
  )
14452
14447
 
14453
14448
 
14454
- class RoleModifyRoleRequestPermissionGrant(BaseModel):
14449
+ class RoleCreateRoleRequestPermissionGrant(BaseModel):
14455
14450
  action: Action = Field(
14456
14451
  ...,
14457
14452
  description='Whether this grant allows or denies the specified access.',
@@ -14466,6 +14461,22 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14466
14461
  description: PydanticBaseModelStrippedNonemptyString1 | None = None
14467
14462
 
14468
14463
 
14464
+ class RoleModifyRoleRequest(BaseModel):
14465
+ description: PydanticBaseModelStrippedNonemptyString1 | None = Field(
14466
+ None,
14467
+ description='A description about the role. Only updated if specified. This field is a mutable field.',
14468
+ )
14469
+ permission_grants: list[RoleCreateRoleRequestPermissionGrant] | None = Field(
14470
+ None,
14471
+ description='A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.',
14472
+ title='Permission Grants',
14473
+ )
14474
+ frontend_view: FrontendView | None = Field(
14475
+ None,
14476
+ description='The frontend view for the user of this role. Only updated if specified. This field is an immutable field.',
14477
+ )
14478
+
14479
+
14469
14480
  class ServiceCreateServiceRequestVersionSet(BaseModel):
14470
14481
  agent_version_number: int | None = Field(
14471
14482
  ...,
@@ -14593,7 +14604,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14593
14604
 
14594
14605
  class SimulationGetSimulationScenariosResponse(BaseModel):
14595
14606
  simulation_scenarios: list[
14596
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14607
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14597
14608
  ] = Field(
14598
14609
  ...,
14599
14610
  description='The list of simulation scenarios.',
@@ -14647,6 +14658,16 @@ class SimulationSearchSimulationPersonasResponse(BaseModel):
14647
14658
  )
14648
14659
 
14649
14660
 
14661
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
14662
+ simulation_scenarios: list[
14663
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14664
+ ] = Field(
14665
+ ...,
14666
+ description='The list of simulation scenarios.',
14667
+ title='Simulation Scenarios',
14668
+ )
14669
+
14670
+
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[MongoCollectionsToolToolTag] = 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[MongoCollectionsToolToolTag] = Field(
15073
15078
  ..., description='The tags of the metric.', title='Tags'
15074
15079
  )
15075
15080
  creator: MongoCollectionsMetricMetricUserInfo = Field(
@@ -15123,16 +15128,6 @@ class RoleInstance(BaseModel):
15123
15128
  description='The permission grants given to the role. Only returned if the `return_permission_grants` query parameter is True. ',
15124
15129
  title='Permission Grants',
15125
15130
  )
15126
- inherited_from: str | None = Field(
15127
- ...,
15128
- description='The ID of the role that this role inherits from. Only returned if the role inherits from another role.',
15129
- title='Inherited From',
15130
- )
15131
- is_base_role: bool = Field(
15132
- ...,
15133
- description='Whether this role is a base role. Base roles cannot inherit from other roles. One can only inherit from base roles.',
15134
- title='Is Base Role',
15135
- )
15136
15131
 
15137
15132
 
15138
15133
  class SimulationUnitTest(BaseModel):
@@ -15175,7 +15170,7 @@ class SimulationUnitTest(BaseModel):
15175
15170
  is_deleted: bool = Field(
15176
15171
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15177
15172
  )
15178
- tags: list[MongoCollectionsServiceServiceTag] = Field(
15173
+ tags: list[MongoCollectionsToolToolTag] = Field(
15179
15174
  ..., description='The tags of the simulation persona.', title='Tags'
15180
15175
  )
15181
15176
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15220,7 +15215,7 @@ class SimulationUnitTestInstance(BaseModel):
15220
15215
  is_deleted: bool = Field(
15221
15216
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15222
15217
  )
15223
- tags: list[MongoCollectionsServiceServiceTag] = Field(
15218
+ tags: list[MongoCollectionsToolToolTag] = Field(
15224
15219
  ..., description='The tags of the simulation persona.', title='Tags'
15225
15220
  )
15226
15221
  creator: MongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15320,16 +15315,13 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersion(BaseModel)
15320
15315
  min_length=1,
15321
15316
  title='Conversation Triggers',
15322
15317
  )
15323
- actions: (
15324
- list[
15325
- Annotated[
15326
- DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15327
- | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolCandidatesAction,
15328
- Field(discriminator='type'),
15329
- ]
15318
+ actions: list[
15319
+ Annotated[
15320
+ DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15321
+ | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionChangeToolCandidatesAction,
15322
+ Field(discriminator='type'),
15330
15323
  ]
15331
- | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15332
- ) = Field(
15324
+ ] = Field(
15333
15325
  ...,
15334
15326
  description='The action to perform when the dynamic behavior set version is activated.',
15335
15327
  title='Actions',
@@ -15344,16 +15336,13 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequest(BaseModel):
15344
15336
  min_length=1,
15345
15337
  title='Conversation Triggers',
15346
15338
  )
15347
- actions: (
15348
- list[
15349
- Annotated[
15350
- DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15351
- | DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidatesAction,
15352
- Field(discriminator='type'),
15353
- ]
15339
+ actions: list[
15340
+ Annotated[
15341
+ DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15342
+ | DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequestChangeToolCandidatesAction,
15343
+ Field(discriminator='type'),
15354
15344
  ]
15355
- | DynamicBehaviorSetCreateDynamicBehaviorSetRequestInitialVersionInjectInstructionAction
15356
- ) = Field(
15345
+ ] = Field(
15357
15346
  ...,
15358
15347
  description='The action to perform when the dynamic behavior set version is activated.',
15359
15348
  title='Actions',
@@ -15361,7 +15350,7 @@ class DynamicBehaviorSetCreateDynamicBehaviorSetVersionRequest(BaseModel):
15361
15350
 
15362
15351
 
15363
15352
  class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
15364
- dynamic_behavior_set_versions: list[DynamicBehaviorSetVersionInstance] = Field(
15353
+ dynamic_behavior_set_versions: list[DynamicBehaviorSetVersion] = Field(
15365
15354
  ...,
15366
15355
  description='The retrieved dynamic behavior set versions.',
15367
15356
  title='Dynamic Behavior Set Versions',
@@ -15478,7 +15467,7 @@ class RoleCreateRoleRequest(BaseModel):
15478
15467
  description: str = Field(
15479
15468
  ..., description='A description about the role.', min_length=1
15480
15469
  )
15481
- permission_grants: list[RoleModifyRoleRequestPermissionGrant] = Field(
15470
+ permission_grants: list[RoleCreateRoleRequestPermissionGrant] = Field(
15482
15471
  ...,
15483
15472
  description='A list of permission grants associated with this role.',
15484
15473
  title='Permission Grants',
@@ -15486,16 +15475,6 @@ class RoleCreateRoleRequest(BaseModel):
15486
15475
  frontend_view: FrontendView = Field(
15487
15476
  ..., description='The frontend view for users of this role.'
15488
15477
  )
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
15478
 
15500
15479
 
15501
15480
  class RoleGetRolesResponse(BaseModel):
@@ -15504,27 +15483,6 @@ class RoleGetRolesResponse(BaseModel):
15504
15483
  )
15505
15484
 
15506
15485
 
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
15486
  class ServiceCreateServiceRequest(BaseModel):
15529
15487
  service_hierarchical_state_machine_id: str = Field(
15530
15488
  ...,
@@ -15689,7 +15647,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
15689
15647
  )
15690
15648
 
15691
15649
 
15692
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
15650
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
15693
15651
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
15694
15652
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
15695
15653
  created_at: AwareDatetime | None = Field(None, title='Created At')
@@ -15711,22 +15669,16 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
15711
15669
  tool_id: str = Field(
15712
15670
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
15713
15671
  )
15714
- tool_version: MongoCollectionsToolInvocationToolInvocationVersion = Field(
15672
+ tool_version: MongoCollectionsToolVersionToolVersionVersion = Field(
15715
15673
  ..., description='The version of the tool that was invoked.'
15716
15674
  )
15717
15675
 
15718
15676
 
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',
15677
+ class ToolSearchToolInvocationsResponse(BaseModel):
15678
+ tool_invocations: list[ToolGetToolInvocationsResponseToolInvocationInstance] = (
15679
+ Field(
15680
+ ..., description='The list of tool invocations.', title='Tool Invocations'
15681
+ )
15730
15682
  )
15731
15683
 
15732
15684
 
@@ -15934,7 +15886,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
15934
15886
 
15935
15887
 
15936
15888
  class ToolGetToolInvocationsResponse(BaseModel):
15937
- tool_invocations: list[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
15889
+ tool_invocations: list[ToolGetToolInvocationsResponseToolInvocationInstance] = (
15938
15890
  Field(
15939
15891
  ..., description='The list of tool invocations.', title='Tool Invocations'
15940
15892
  )
@@ -15949,11 +15901,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
15949
15901
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
15950
15902
  title='Continuation Token',
15951
15903
  )
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.100.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=fq-r8bt-Tn-NFFokw1V0R3GBP0Gu32UmHfPwT684kK8,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=TF46V7sugZT_tQcTCYghnb1SjpbCYj74tY__yPQL_Cw,446306
13
+ amigo_sdk/generated/model.py,sha256=5zjiG6nqg4bBJqFeibpHERZ3xDR-nhajWw_GEpvwwvI,444067
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.100.0.dist-info/METADATA,sha256=lwdX4SgO5CEs-Wr-5elUMNNN-QLSZsxvdzXJ6UPptgE,8500
19
+ amigo_sdk-0.100.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
20
+ amigo_sdk-0.100.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
21
+ amigo_sdk-0.100.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
22
+ amigo_sdk-0.100.0.dist-info/RECORD,,