amigo_sdk 0.78.0__py3-none-any.whl → 0.80.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.78.0"
1
+ __version__ = "0.80.0"
2
2
  from .sdk_client import AmigoClient, AsyncAmigoClient
3
3
 
4
4
  __all__ = ["__version__", "AmigoClient", "AsyncAmigoClient"]
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: <stdin>
3
- # timestamp: 2025-12-05T22:50:39+00:00
3
+ # timestamp: 2025-12-07T16:12:19+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1616,11 +1616,6 @@ class AmigoLibMongoCollectionsDynamicBehaviorSetVersionAction(BaseModel):
1616
1616
  )
1617
1617
 
1618
1618
 
1619
- class AmigoLibMongoCollectionsMetricMetricTag(BaseModel):
1620
- key: str = Field(..., title='Key')
1621
- value: Optional[str] = Field(..., title='Value')
1622
-
1623
-
1624
1619
  AmigoLibMongoCollectionsMetricMetricUserInfo = (
1625
1620
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1626
1621
  )
@@ -1705,6 +1700,11 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1705
1700
  )
1706
1701
 
1707
1702
 
1703
+ class AmigoLibMongoCollectionsToolToolTag(BaseModel):
1704
+ key: str = Field(..., title='Key')
1705
+ value: Optional[str] = Field(..., title='Value')
1706
+
1707
+
1708
1708
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1709
1709
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1710
1710
  user_org_id: str = Field(
@@ -1956,6 +1956,20 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1956
1956
  )
1957
1957
 
1958
1958
 
1959
+ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1960
+ BaseModel
1961
+ ):
1962
+ id: str = Field(..., title='Id')
1963
+ name: str = Field(..., title='Name')
1964
+ is_active: bool = Field(..., title='Is Active')
1965
+ applied_to_services: List[str] = Field(..., title='Applied To Services')
1966
+ tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1967
+ created_at: AwareDatetime = Field(..., title='Created At')
1968
+ creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1969
+ updated_at: AwareDatetime = Field(..., title='Updated At')
1970
+ updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1971
+
1972
+
1959
1973
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1960
1974
  applied_to_services_ids: List[str] = Field(
1961
1975
  ...,
@@ -1976,18 +1990,14 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1976
1990
  )
1977
1991
 
1978
1992
 
1979
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1980
- BaseModel
1981
- ):
1982
- id: str = Field(..., title='Id')
1983
- name: str = Field(..., title='Name')
1984
- is_active: bool = Field(..., title='Is Active')
1985
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1986
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1987
- created_at: AwareDatetime = Field(..., title='Created At')
1988
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1989
- updated_at: AwareDatetime = Field(..., title='Updated At')
1990
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1993
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1994
+ dynamic_behavior_sets: List[
1995
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1996
+ ] = Field(
1997
+ ...,
1998
+ description='The retrieved dynamic behavior sets.',
1999
+ title='Dynamic Behavior Sets',
2000
+ )
1991
2001
 
1992
2002
 
1993
2003
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10743,13 +10753,6 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10743
10753
  )
10744
10754
 
10745
10755
 
10746
- class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10747
- description: str = Field(..., min_length=1)
10748
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10749
- ..., title='Tags'
10750
- )
10751
-
10752
-
10753
10756
  class OrganizationCreateOrganizationResponse(BaseModel):
10754
10757
  org_id: str = Field(
10755
10758
  ...,
@@ -10773,19 +10776,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10773
10776
  )
10774
10777
 
10775
10778
 
10776
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10779
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10777
10780
  AnnotationStateInputNextState
10778
10781
  ):
10779
10782
  pass
10780
10783
 
10781
10784
 
10782
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10785
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10783
10786
  BaseModel
10784
10787
  ):
10785
10788
  description: str = Field(..., min_length=1)
10786
10789
  next_state: Union[
10787
10790
  StateOrRefName,
10788
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10791
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10789
10792
  ] = Field(..., title='Next State')
10790
10793
 
10791
10794
 
@@ -10891,22 +10894,18 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10891
10894
  )
10892
10895
 
10893
10896
 
10894
- class OrganizationModifyOrganizationRequestUserDimensions(
10895
- RootModel[List[OrganizationCreateOrganizationRequestUserDimension]]
10896
- ):
10897
- root: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
10898
- ...,
10899
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10900
- min_length=1,
10901
- title='User Dimensions',
10902
- )
10903
-
10904
-
10905
10897
  OrganizationModifyOrganizationRequestPreferences = (
10906
10898
  OrganizationCreateOrganizationRequestPreferences
10907
10899
  )
10908
10900
 
10909
10901
 
10902
+ class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10903
+ description: str = Field(..., min_length=1)
10904
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10905
+ ..., title='Tags'
10906
+ )
10907
+
10908
+
10910
10909
  class RoleAssignRoleRequest(BaseModel):
10911
10910
  user_id: str = Field(
10912
10911
  ...,
@@ -10953,13 +10952,6 @@ class RoleModifyRoleResponse(BaseModel):
10953
10952
  )
10954
10953
 
10955
10954
 
10956
- class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10957
- llm_name: LLMType
10958
- params: Optional[Dict[str, Any]] = Field(
10959
- {}, description='LLM-specific parameters to use.', title='Params'
10960
- )
10961
-
10962
-
10963
10955
  class ServiceCreateServiceResponse(BaseModel):
10964
10956
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10965
10957
 
@@ -11019,19 +11011,10 @@ class ServiceUpdateServiceRequest(BaseModel):
11019
11011
  )
11020
11012
 
11021
11013
 
11022
- class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
11023
- agent_version_number: Optional[int] = Field(
11024
- ...,
11025
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
11026
- title='Agent Version Number',
11027
- )
11028
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
11029
- ...,
11030
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
11031
- title='Service Hierarchical State Machine Version Number',
11032
- )
11033
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
11034
- Field(..., title='Llm Model Preferences')
11014
+ class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11015
+ llm_name: LLMType
11016
+ params: Optional[Dict[str, Any]] = Field(
11017
+ {}, description='LLM-specific parameters to use.', title='Params'
11035
11018
  )
11036
11019
 
11037
11020
 
@@ -11153,16 +11136,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11153
11136
  )
11154
11137
 
11155
11138
 
11156
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11157
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11158
- run_count: int = Field(
11159
- ...,
11160
- description='The number of times to run the unit test.',
11161
- gt=0,
11162
- title='Run Count',
11163
- )
11164
-
11165
-
11166
11139
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11167
11140
  simulation_unit_test_set_id: str = Field(
11168
11141
  ...,
@@ -11222,40 +11195,6 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11222
11195
  )
11223
11196
 
11224
11197
 
11225
- class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11226
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11227
- name: str = Field(
11228
- ..., description='The name of the simulation persona.', title='Name'
11229
- )
11230
- role: str = Field(
11231
- ..., description='The role of the simulation persona.', title='Role'
11232
- )
11233
- tags: Dict[str, Optional[str]] = Field(
11234
- ..., description='The tags of the simulation persona.', title='Tags'
11235
- )
11236
- is_deleted: bool = Field(
11237
- ...,
11238
- description='Whether the simulation persona is deleted.',
11239
- title='Is Deleted',
11240
- )
11241
- created_at: AwareDatetime = Field(
11242
- ...,
11243
- description='The timestamp when the simulation persona was created.',
11244
- title='Created At',
11245
- )
11246
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11247
- ..., description='The user who created the simulation persona.'
11248
- )
11249
- updated_at: AwareDatetime = Field(
11250
- ...,
11251
- description='The timestamp when the simulation persona was last updated.',
11252
- title='Updated At',
11253
- )
11254
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11255
- Field(..., description='The user who last updated the simulation persona.')
11256
- )
11257
-
11258
-
11259
11198
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11260
11199
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11261
11200
  ...,
@@ -11406,11 +11345,37 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11406
11345
  )
11407
11346
 
11408
11347
 
11409
- class SimulationSearchSimulationPersonasResponse(BaseModel):
11410
- simulation_personas: List[
11411
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11412
- ] = Field(
11413
- ..., description='The list of simulation personas.', title='Simulation Personas'
11348
+ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11349
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11350
+ name: str = Field(
11351
+ ..., description='The name of the simulation persona.', title='Name'
11352
+ )
11353
+ role: str = Field(
11354
+ ..., description='The role of the simulation persona.', title='Role'
11355
+ )
11356
+ tags: Dict[str, Optional[str]] = Field(
11357
+ ..., description='The tags of the simulation persona.', title='Tags'
11358
+ )
11359
+ is_deleted: bool = Field(
11360
+ ...,
11361
+ description='Whether the simulation persona is deleted.',
11362
+ title='Is Deleted',
11363
+ )
11364
+ created_at: AwareDatetime = Field(
11365
+ ...,
11366
+ description='The timestamp when the simulation persona was created.',
11367
+ title='Created At',
11368
+ )
11369
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11370
+ ..., description='The user who created the simulation persona.'
11371
+ )
11372
+ updated_at: AwareDatetime = Field(
11373
+ ...,
11374
+ description='The timestamp when the simulation persona was last updated.',
11375
+ title='Updated At',
11376
+ )
11377
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11378
+ Field(..., description='The user who last updated the simulation persona.')
11414
11379
  )
11415
11380
 
11416
11381
 
@@ -11481,39 +11446,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11481
11446
  )
11482
11447
 
11483
11448
 
11484
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11485
- RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11486
- ):
11487
- root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11488
- Field(
11489
- ...,
11490
- description='The unit test runs that are part of this set.',
11491
- min_length=1,
11492
- title='Unit Test Runs',
11493
- )
11494
- )
11495
-
11496
-
11497
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11498
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11499
- None, description='The name of the simulation unit test set.'
11500
- )
11501
- description: Optional[
11502
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11503
- ] = Field(
11504
- {},
11505
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11506
- title='Description',
11507
- )
11508
- unit_test_runs: Optional[
11509
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11510
- ] = Field(
11511
- None,
11512
- description='The unit test runs that are part of this set.',
11513
- title='Unit Test Runs',
11514
- )
11515
- tags: Optional[Dict[str, Optional[str]]] = Field(
11516
- None, description='The tags of the simulation unit test set.', title='Tags'
11449
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11450
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11451
+ run_count: int = Field(
11452
+ ...,
11453
+ description='The number of times to run the unit test.',
11454
+ gt=0,
11455
+ title='Run Count',
11517
11456
  )
11518
11457
 
11519
11458
 
@@ -11707,7 +11646,7 @@ class UserGetMemoriesResponse(BaseModel):
11707
11646
  )
11708
11647
 
11709
11648
 
11710
- class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11649
+ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11711
11650
  num_conversations: int = Field(
11712
11651
  ...,
11713
11652
  description='The number of conversations the user has created.',
@@ -11725,31 +11664,6 @@ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11725
11664
  )
11726
11665
 
11727
11666
 
11728
- class UserSearchUsersResponseUserInstance(BaseModel):
11729
- org_id: str = Field(
11730
- ...,
11731
- description='The ID of the organization that this user belongs to.',
11732
- title='Org Id',
11733
- )
11734
- user_id: str = Field(
11735
- ..., description='The identifier of the user.', title='User Id'
11736
- )
11737
- first_name: str = Field(
11738
- ..., description='The first name of the user.', title='First Name'
11739
- )
11740
- last_name: str = Field(
11741
- ..., description='The last name of the user.', title='Last Name'
11742
- )
11743
- email: str = Field(..., description='Email of the user.', title='Email')
11744
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
11745
- ..., description="Statistics about the user's usage of the Amigo platform."
11746
- )
11747
- role: str = Field(..., description='The ID of the role of the user.', title='Role')
11748
- preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
11749
- ..., description='The preferences of the user.'
11750
- )
11751
-
11752
-
11753
11667
  class UserSignInWithApiKeyResponse(BaseModel):
11754
11668
  id_token: str = Field(
11755
11669
  ...,
@@ -12171,7 +12085,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12171
12085
  [], description='The IDs of the messages to retrieve.', title='Id'
12172
12086
  )
12173
12087
  message_type: Optional[List[MessageType]] = Field(
12174
- ['user-message', 'external-event', 'agent-message'],
12088
+ ['user-message', 'agent-message', 'external-event'],
12175
12089
  description='The type of messages to retrieve.',
12176
12090
  title='Message Type',
12177
12091
  )
@@ -13977,7 +13891,7 @@ class ServiceInstance(BaseModel):
13977
13891
  agent_id: str = Field(
13978
13892
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13979
13893
  )
13980
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13894
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
13981
13895
  ..., description='The tags of the service.', title='Tags'
13982
13896
  )
13983
13897
 
@@ -14030,7 +13944,7 @@ class SimulationUnitTestSet(BaseModel):
14030
13944
  description='Whether the unit test set has been deleted.',
14031
13945
  title='Is Deleted',
14032
13946
  )
14033
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13947
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14034
13948
  ..., description='The tags of the simulation unit test set.', title='Tags'
14035
13949
  )
14036
13950
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14069,7 +13983,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14069
13983
  description='Whether the unit test set has been deleted.',
14070
13984
  title='Is Deleted',
14071
13985
  )
14072
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13986
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14073
13987
  ..., description='The tags of the simulation unit test set.', title='Tags'
14074
13988
  )
14075
13989
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14185,7 +14099,7 @@ class ToolInstance(BaseModel):
14185
14099
  description='A list of encrypted environment variables that some versions of this tool uses.',
14186
14100
  title='Secret Envvars',
14187
14101
  )
14188
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14102
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
14189
14103
  ..., description='The tags of the simulation persona.', title='Tags'
14190
14104
  )
14191
14105
 
@@ -14516,7 +14430,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14516
14430
 
14517
14431
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14518
14432
  dynamic_behavior_sets: List[
14519
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14433
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14520
14434
  ] = Field(
14521
14435
  ...,
14522
14436
  description='The retrieved dynamic behavior sets.',
@@ -14540,16 +14454,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14540
14454
  )
14541
14455
 
14542
14456
 
14543
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14544
- dynamic_behavior_sets: List[
14545
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14546
- ] = Field(
14547
- ...,
14548
- description='The retrieved dynamic behavior sets.',
14549
- title='Dynamic Behavior Sets',
14550
- )
14551
-
14552
-
14553
14457
  class MetricCreateMetricRequest(BaseModel):
14554
14458
  name: str = Field(
14555
14459
  ...,
@@ -14606,7 +14510,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14606
14510
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14607
14511
  min_length=1,
14608
14512
  )
14609
- user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14513
+ user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14610
14514
  ...,
14611
14515
  description='User dimensions for the organization.',
14612
14516
  title='User Dimensions',
@@ -14750,6 +14654,17 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14750
14654
  )
14751
14655
 
14752
14656
 
14657
+ class OrganizationModifyOrganizationRequestUserDimensions(
14658
+ RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14659
+ ):
14660
+ root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14661
+ ...,
14662
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14663
+ min_length=1,
14664
+ title='User Dimensions',
14665
+ )
14666
+
14667
+
14753
14668
  class OrganizationModifyOrganizationRequest(BaseModel):
14754
14669
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14755
14670
  None,
@@ -14824,37 +14739,20 @@ class RoleModifyRoleRequestPermissionGrant(BaseModel):
14824
14739
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = None
14825
14740
 
14826
14741
 
14827
- class ServiceCreateServiceRequest(BaseModel):
14828
- service_hierarchical_state_machine_id: str = Field(
14829
- ...,
14830
- description='The ID of the state machine that this service uses.',
14831
- pattern='^[a-f0-9]{24}$',
14832
- title='Service Hierarchical State Machine Id',
14833
- )
14834
- agent_id: str = Field(
14742
+ class ServiceCreateServiceRequestVersionSet(BaseModel):
14743
+ agent_version_number: Optional[int] = Field(
14835
14744
  ...,
14836
- description='The ID of the agent that this service uses.',
14837
- pattern='^[a-f0-9]{24}$',
14838
- title='Agent Id',
14839
- )
14840
- name: str = Field(..., description='The name of this service.', min_length=1)
14841
- description: str = Field(
14842
- ..., description='A description of this service.', min_length=1
14745
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14746
+ title='Agent Version Number',
14843
14747
  )
14844
- is_active: bool = Field(
14748
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14845
14749
  ...,
14846
- description='Whether the newly-created service is active. Only active services are visible to users on the dashboard. You can later adjust the activeness of this service.',
14847
- title='Is Active',
14848
- )
14849
- release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14850
- Field(
14851
- None,
14852
- description='The `release` version set to use for this service. If not specified, the `release` version set will be the same as the `edge` version set, which uses the\nlatest agent and state machine versions with no model preference.',
14853
- )
14854
- )
14855
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14856
- ..., description='The tags of this service.', title='Tags'
14750
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14751
+ title='Service Hierarchical State Machine Version Number',
14857
14752
  )
14753
+ llm_model_preferences: Dict[
14754
+ str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14755
+ ] = Field(..., title='Llm Model Preferences')
14858
14756
 
14859
14757
 
14860
14758
  class ServiceGetServicesResponse(BaseModel):
@@ -14878,7 +14776,7 @@ class ServiceGetServicesResponse(BaseModel):
14878
14776
 
14879
14777
 
14880
14778
  class ServiceUpsertServiceVersionSetRequest(BaseModel):
14881
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14779
+ version_set: ServiceCreateServiceRequestVersionSet = Field(
14882
14780
  ..., description='The version set to upsert.'
14883
14781
  )
14884
14782
 
@@ -14932,7 +14830,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14932
14830
  ..., description='The description of the simulation unit test set.'
14933
14831
  )
14934
14832
  unit_test_runs: List[
14935
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14833
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14936
14834
  ] = Field(
14937
14835
  ...,
14938
14836
  description='The unit test runs that are part of this set.',
@@ -14946,7 +14844,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14946
14844
 
14947
14845
  class SimulationGetSimulationPersonasResponse(BaseModel):
14948
14846
  simulation_personas: List[
14949
- SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14847
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14950
14848
  ] = Field(
14951
14849
  ..., description='The list of simulation personas.', title='Simulation Personas'
14952
14850
  )
@@ -15018,6 +14916,14 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
15018
14916
  )
15019
14917
 
15020
14918
 
14919
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
14920
+ simulation_personas: List[
14921
+ SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14922
+ ] = Field(
14923
+ ..., description='The list of simulation personas.', title='Simulation Personas'
14924
+ )
14925
+
14926
+
15021
14927
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
15022
14928
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
15023
14929
  ...,
@@ -15031,6 +14937,42 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15031
14937
  )
15032
14938
 
15033
14939
 
14940
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14941
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14942
+ ):
14943
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14944
+ Field(
14945
+ ...,
14946
+ description='The unit test runs that are part of this set.',
14947
+ min_length=1,
14948
+ title='Unit Test Runs',
14949
+ )
14950
+ )
14951
+
14952
+
14953
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14954
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14955
+ None, description='The name of the simulation unit test set.'
14956
+ )
14957
+ description: Optional[
14958
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
14959
+ ] = Field(
14960
+ {},
14961
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14962
+ title='Description',
14963
+ )
14964
+ unit_test_runs: Optional[
14965
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
14966
+ ] = Field(
14967
+ None,
14968
+ description='The unit test runs that are part of this set.',
14969
+ title='Unit Test Runs',
14970
+ )
14971
+ tags: Optional[Dict[str, Optional[str]]] = Field(
14972
+ None, description='The tags of the simulation unit test set.', title='Tags'
14973
+ )
14974
+
14975
+
15034
14976
  class ToolGetToolVersionsResponse(BaseModel):
15035
14977
  tool_versions: List[ToolVersionInstance] = Field(
15036
14978
  ...,
@@ -15133,23 +15075,28 @@ class UserGetUserModelResponse(BaseModel):
15133
15075
  )
15134
15076
 
15135
15077
 
15136
- class UserGetUsersResponse(BaseModel):
15137
- users: List[UserSearchUsersResponseUserInstance] = Field(
15138
- ..., description='Users in this organization.', title='Users'
15078
+ class UserSearchUsersResponseUserInstance(BaseModel):
15079
+ org_id: str = Field(
15080
+ ...,
15081
+ description='The ID of the organization that this user belongs to.',
15082
+ title='Org Id',
15139
15083
  )
15140
- has_more: bool = Field(
15141
- ..., description='Whether there are more users to retrieve.', title='Has More'
15084
+ user_id: str = Field(
15085
+ ..., description='The identifier of the user.', title='User Id'
15142
15086
  )
15143
- continuation_token: Optional[int] = Field(
15144
- ...,
15145
- description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
15146
- title='Continuation Token',
15087
+ first_name: str = Field(
15088
+ ..., description='The first name of the user.', title='First Name'
15147
15089
  )
15148
-
15149
-
15150
- class UserSearchUsersResponse(BaseModel):
15151
- users: List[UserSearchUsersResponseUserInstance] = Field(
15152
- ..., description='Users in this organization.', title='Users'
15090
+ last_name: str = Field(
15091
+ ..., description='The last name of the user.', title='Last Name'
15092
+ )
15093
+ email: str = Field(..., description='Email of the user.', title='Email')
15094
+ user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15095
+ ..., description="Statistics about the user's usage of the Amigo platform."
15096
+ )
15097
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
15098
+ preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
15099
+ ..., description='The preferences of the user.'
15153
15100
  )
15154
15101
 
15155
15102
 
@@ -15244,7 +15191,7 @@ class ActionStateInput(BaseModel):
15244
15191
  Field(..., title='Boundary Constraints')
15245
15192
  )
15246
15193
  exit_conditions: List[
15247
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15194
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15248
15195
  ] = Field(..., title='Exit Conditions')
15249
15196
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15250
15197
  ..., title='Action Tool Call Specs'
@@ -15353,7 +15300,7 @@ class DecisionStateInput(BaseModel):
15353
15300
  type: Literal['decision'] = Field(..., title='Type')
15354
15301
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15355
15302
  exit_conditions: List[
15356
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15303
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15357
15304
  ] = Field(..., title='Exit Conditions')
15358
15305
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15359
15306
  ..., title='Decision Guidelines'
@@ -15394,7 +15341,7 @@ class Metric(BaseModel):
15394
15341
  additional_notes: Optional[str] = Field(
15395
15342
  ..., description='Additional notes about the metric.', title='Additional Notes'
15396
15343
  )
15397
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15344
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15398
15345
  ..., description='The tags of the metric.', title='Tags'
15399
15346
  )
15400
15347
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15464,7 +15411,7 @@ class MetricInstance(BaseModel):
15464
15411
  additional_notes: Optional[str] = Field(
15465
15412
  ..., description='Additional notes about the metric.', title='Additional Notes'
15466
15413
  )
15467
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15414
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15468
15415
  ..., description='The tags of the metric.', title='Tags'
15469
15416
  )
15470
15417
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15666,7 +15613,7 @@ class SimulationUnitTest(BaseModel):
15666
15613
  is_deleted: bool = Field(
15667
15614
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15668
15615
  )
15669
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15616
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15670
15617
  ..., description='The tags of the simulation persona.', title='Tags'
15671
15618
  )
15672
15619
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15711,7 +15658,7 @@ class SimulationUnitTestInstance(BaseModel):
15711
15658
  is_deleted: bool = Field(
15712
15659
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15713
15660
  )
15714
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15661
+ tags: List[AmigoLibMongoCollectionsToolToolTag] = Field(
15715
15662
  ..., description='The tags of the simulation persona.', title='Tags'
15716
15663
  )
15717
15664
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -16060,6 +16007,37 @@ class RoleModifyRoleRequest(BaseModel):
16060
16007
  )
16061
16008
 
16062
16009
 
16010
+ class ServiceCreateServiceRequest(BaseModel):
16011
+ service_hierarchical_state_machine_id: str = Field(
16012
+ ...,
16013
+ description='The ID of the state machine that this service uses.',
16014
+ pattern='^[a-f0-9]{24}$',
16015
+ title='Service Hierarchical State Machine Id',
16016
+ )
16017
+ agent_id: str = Field(
16018
+ ...,
16019
+ description='The ID of the agent that this service uses.',
16020
+ pattern='^[a-f0-9]{24}$',
16021
+ title='Agent Id',
16022
+ )
16023
+ name: str = Field(..., description='The name of this service.', min_length=1)
16024
+ description: str = Field(
16025
+ ..., description='A description of this service.', min_length=1
16026
+ )
16027
+ is_active: bool = Field(
16028
+ ...,
16029
+ description='Whether the newly-created service is active. Only active services are visible to users on the dashboard. You can later adjust the activeness of this service.',
16030
+ title='Is Active',
16031
+ )
16032
+ release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16033
+ None,
16034
+ description='The `release` version set to use for this service. If not specified, the `release` version set will be the same as the `edge` version set, which uses the\nlatest agent and state machine versions with no model preference.',
16035
+ )
16036
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16037
+ ..., description='The tags of this service.', title='Tags'
16038
+ )
16039
+
16040
+
16063
16041
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16064
16042
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16065
16043
  description: str = Field(
@@ -16220,6 +16198,26 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16220
16198
  )
16221
16199
 
16222
16200
 
16201
+ class UserGetUsersResponse(BaseModel):
16202
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16203
+ ..., description='Users in this organization.', title='Users'
16204
+ )
16205
+ has_more: bool = Field(
16206
+ ..., description='Whether there are more users to retrieve.', title='Has More'
16207
+ )
16208
+ continuation_token: Optional[int] = Field(
16209
+ ...,
16210
+ description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
16211
+ title='Continuation Token',
16212
+ )
16213
+
16214
+
16215
+ class UserSearchUsersResponse(BaseModel):
16216
+ users: List[UserSearchUsersResponseUserInstance] = Field(
16217
+ ..., description='Users in this organization.', title='Users'
16218
+ )
16219
+
16220
+
16223
16221
  class SimulationUnitTestSetRunInstance(BaseModel):
16224
16222
  org_id: str = Field(..., title='Org Id')
16225
16223
  id: str = Field(..., title='Id')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.78.0
3
+ Version: 0.80.0
4
4
  Summary: Amigo AI Python SDK
5
5
  Author: Amigo AI
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- amigo_sdk/__init__.py,sha256=QU5xGHb6mxsAiFwRzJslvPOzJbIaLrzyERz9OjZcbA0,139
1
+ amigo_sdk/__init__.py,sha256=50kY2U6TcikpbngZxROTW-UmjxfQuA0q2UOHSgVpPgI,139
2
2
  amigo_sdk/_retry_utils.py,sha256=VbA_Uwv268J80d11R9XfnCjZiV-NwE1aXRsSlRjjRio,2108
3
3
  amigo_sdk/auth.py,sha256=WaM9PcEcnaC6CzNsgRKueHkdSAxNbRylzpR_3Q6guQ0,1765
4
4
  amigo_sdk/config.py,sha256=0eZIo-hcJ8ODftKAr-mwB-FGJxGO5PT5T4dRpyWPqAg,1491
@@ -6,13 +6,13 @@ amigo_sdk/errors.py,sha256=Yn12AxIQ6zE9jnGLWO0MUVbBsmw77Kzh82AijyreOkA,4818
6
6
  amigo_sdk/http_client.py,sha256=tfMXHqMTmlz2ja7aJhOVgbwAiJNlKCzPcK4UGNqXHO8,13488
7
7
  amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
8
8
  amigo_sdk/sdk_client.py,sha256=5nj8hzjHSFRs9JMNabdYIhQAcFE2G1jI_r7SHVGr9No,6106
9
- amigo_sdk/generated/model.py,sha256=OTtKLRDZ90LyqlHqlisfzi0efr6PPp10ocXEV58Uzu4,456783
9
+ amigo_sdk/generated/model.py,sha256=ZC11JcyHGuxNn2g7NTOhS5t8yocZOzuV7qjK7fjnghQ,456703
10
10
  amigo_sdk/resources/conversation.py,sha256=u4kOx5LPbhX92L41UnmPmaF9TkQA5bGev8N00dMoP9I,14805
11
11
  amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
12
12
  amigo_sdk/resources/service.py,sha256=t1iA3nS9co-wuR-x5jBhAXXTWfMeGsLwfQcLycwVrCA,1536
13
13
  amigo_sdk/resources/user.py,sha256=zikijiuGXgmkBVtrldor6XQGQK6jWXonDvNFuQs6XK4,3472
14
- amigo_sdk-0.78.0.dist-info/METADATA,sha256=wn8bMk8wa6tVQ7v3KIwv3nkZytZpGipaak5zr6Jj0ZI,8499
15
- amigo_sdk-0.78.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.78.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.78.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.78.0.dist-info/RECORD,,
14
+ amigo_sdk-0.80.0.dist-info/METADATA,sha256=jD45qCkSyJAbFOHD-zfNh52DX1SrJkBVhGL-hMZcskw,8499
15
+ amigo_sdk-0.80.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.80.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.80.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.80.0.dist-info/RECORD,,