amigo_sdk 0.75.0__py3-none-any.whl → 0.77.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.75.0"
1
+ __version__ = "0.77.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-04T01:13:30+00:00
3
+ # timestamp: 2025-12-05T19:51:30+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -513,6 +513,7 @@ class LLMType(Enum):
513
513
  azure_gpt_5_2025_08_07 = 'azure_gpt-5-2025-08-07'
514
514
  azure_gpt_5_mini_2025_08_07 = 'azure_gpt-5-mini-2025-08-07'
515
515
  azure_gpt_5_nano_2025_08_07 = 'azure_gpt-5-nano-2025-08-07'
516
+ azure_gpt_5_1_2025_11_13 = 'azure_gpt-5.1-2025-11-13'
516
517
  google_claude_sonnet_4_5_20250929 = 'google_claude-sonnet-4-5@20250929'
517
518
  aws_claude_sonnet_4_5_20250929 = 'aws_claude-sonnet-4-5-20250929'
518
519
  google_gemini_2_5_pro = 'google_gemini-2.5-pro'
@@ -1615,11 +1616,6 @@ class AmigoLibMongoCollectionsDynamicBehaviorSetVersionAction(BaseModel):
1615
1616
  )
1616
1617
 
1617
1618
 
1618
- class AmigoLibMongoCollectionsMetricMetricTag(BaseModel):
1619
- key: str = Field(..., title='Key')
1620
- value: Optional[str] = Field(..., title='Value')
1621
-
1622
-
1623
1619
  AmigoLibMongoCollectionsMetricMetricUserInfo = (
1624
1620
  AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1625
1621
  )
@@ -1635,6 +1631,11 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1635
1631
  deny = 'Deny'
1636
1632
 
1637
1633
 
1634
+ class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1635
+ key: str = Field(..., title='Key')
1636
+ value: Optional[str] = Field(..., title='Value')
1637
+
1638
+
1638
1639
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1639
1640
  agent_version_number: Optional[int] = Field(
1640
1641
  ...,
@@ -1955,20 +1956,6 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1955
1956
  )
1956
1957
 
1957
1958
 
1958
- class DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1959
- BaseModel
1960
- ):
1961
- id: str = Field(..., title='Id')
1962
- name: str = Field(..., title='Name')
1963
- is_active: bool = Field(..., title='Is Active')
1964
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1965
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1966
- created_at: AwareDatetime = Field(..., title='Created At')
1967
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1968
- updated_at: AwareDatetime = Field(..., title='Updated At')
1969
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1970
-
1971
-
1972
1959
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1973
1960
  applied_to_services_ids: List[str] = Field(
1974
1961
  ...,
@@ -1989,14 +1976,18 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1989
1976
  )
1990
1977
 
1991
1978
 
1992
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
1993
- dynamic_behavior_sets: List[
1994
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
1995
- ] = Field(
1996
- ...,
1997
- description='The retrieved dynamic behavior sets.',
1998
- title='Dynamic Behavior Sets',
1999
- )
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
2000
1991
 
2001
1992
 
2002
1993
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10752,13 +10743,6 @@ class OrganizationCreateOrganizationRequestPreferences(BaseModel):
10752
10743
  )
10753
10744
 
10754
10745
 
10755
- class OrganizationCreateOrganizationRequestUserDimension(BaseModel):
10756
- description: str = Field(..., min_length=1)
10757
- tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10758
- ..., title='Tags'
10759
- )
10760
-
10761
-
10762
10746
  class OrganizationCreateOrganizationResponse(BaseModel):
10763
10747
  org_id: str = Field(
10764
10748
  ...,
@@ -10900,22 +10884,18 @@ class OrganizationGetUserDimensionsResponse(BaseModel):
10900
10884
  )
10901
10885
 
10902
10886
 
10903
- class OrganizationModifyOrganizationRequestUserDimensions(
10904
- RootModel[List[OrganizationCreateOrganizationRequestUserDimension]]
10905
- ):
10906
- root: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
10907
- ...,
10908
- description='User dimensions for the organization. If not set or `null`, this field is not updated.',
10909
- min_length=1,
10910
- title='User Dimensions',
10911
- )
10912
-
10913
-
10914
10887
  OrganizationModifyOrganizationRequestPreferences = (
10915
10888
  OrganizationCreateOrganizationRequestPreferences
10916
10889
  )
10917
10890
 
10918
10891
 
10892
+ class OrganizationModifyOrganizationRequestUserDimension(BaseModel):
10893
+ description: str = Field(..., min_length=1)
10894
+ tags: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
10895
+ ..., title='Tags'
10896
+ )
10897
+
10898
+
10919
10899
  class RoleAssignRoleRequest(BaseModel):
10920
10900
  user_id: str = Field(
10921
10901
  ...,
@@ -11028,6 +11008,22 @@ class ServiceUpdateServiceRequest(BaseModel):
11028
11008
  )
11029
11009
 
11030
11010
 
11011
+ class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
11012
+ agent_version_number: Optional[int] = Field(
11013
+ ...,
11014
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
11015
+ title='Agent Version Number',
11016
+ )
11017
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
11018
+ ...,
11019
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
11020
+ title='Service Hierarchical State Machine Version Number',
11021
+ )
11022
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
11023
+ Field(..., title='Llm Model Preferences')
11024
+ )
11025
+
11026
+
11031
11027
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11032
11028
  background: str = Field(
11033
11029
  ..., description='The background of the simulation persona.', min_length=1
@@ -11146,16 +11142,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11146
11142
  )
11147
11143
 
11148
11144
 
11149
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11150
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11151
- run_count: int = Field(
11152
- ...,
11153
- description='The number of times to run the unit test.',
11154
- gt=0,
11155
- title='Run Count',
11156
- )
11157
-
11158
-
11159
11145
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11160
11146
  simulation_unit_test_set_id: str = Field(
11161
11147
  ...,
@@ -11246,6 +11232,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11246
11232
  )
11247
11233
 
11248
11234
 
11235
+ class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11236
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11237
+ name: str = Field(
11238
+ ..., description='The name of the simulation scenario.', title='Name'
11239
+ )
11240
+ tags: Dict[str, Optional[str]] = Field(
11241
+ ..., description='The tags of the simulation scenario.', title='Tags'
11242
+ )
11243
+ is_deleted: bool = Field(
11244
+ ...,
11245
+ description='Whether the simulation scenario is deleted.',
11246
+ title='Is Deleted',
11247
+ )
11248
+ created_at: AwareDatetime = Field(
11249
+ ...,
11250
+ description='The timestamp when the simulation scenario was created.',
11251
+ title='Created At',
11252
+ )
11253
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11254
+ Field(..., description='The user who created the simulation scenario.')
11255
+ )
11256
+ updated_at: AwareDatetime = Field(
11257
+ ...,
11258
+ description='The timestamp when the simulation scenario was last updated.',
11259
+ title='Updated At',
11260
+ )
11261
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11262
+ Field(..., description='The user who last updated the simulation scenario.')
11263
+ )
11264
+
11265
+
11249
11266
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11250
11267
  presigned_url: str = Field(
11251
11268
  ...,
@@ -11368,34 +11385,13 @@ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseMo
11368
11385
  )
11369
11386
 
11370
11387
 
11371
- class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11372
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11373
- name: str = Field(
11374
- ..., description='The name of the simulation scenario.', title='Name'
11375
- )
11376
- tags: Dict[str, Optional[str]] = Field(
11377
- ..., description='The tags of the simulation scenario.', title='Tags'
11378
- )
11379
- is_deleted: bool = Field(
11380
- ...,
11381
- description='Whether the simulation scenario is deleted.',
11382
- title='Is Deleted',
11383
- )
11384
- created_at: AwareDatetime = Field(
11385
- ...,
11386
- description='The timestamp when the simulation scenario was created.',
11387
- title='Created At',
11388
- )
11389
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11390
- Field(..., description='The user who created the simulation scenario.')
11391
- )
11392
- updated_at: AwareDatetime = Field(
11388
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11389
+ simulation_scenarios: List[
11390
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11391
+ ] = Field(
11393
11392
  ...,
11394
- description='The timestamp when the simulation scenario was last updated.',
11395
- title='Updated At',
11396
- )
11397
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11398
- Field(..., description='The user who last updated the simulation scenario.')
11393
+ description='The list of simulation scenarios.',
11394
+ title='Simulation Scenarios',
11399
11395
  )
11400
11396
 
11401
11397
 
@@ -11456,39 +11452,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11456
11452
  )
11457
11453
 
11458
11454
 
11459
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11460
- RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11461
- ):
11462
- root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11463
- Field(
11464
- ...,
11465
- description='The unit test runs that are part of this set.',
11466
- min_length=1,
11467
- title='Unit Test Runs',
11468
- )
11469
- )
11470
-
11471
-
11472
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11473
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11474
- None, description='The name of the simulation unit test set.'
11475
- )
11476
- description: Optional[
11477
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11478
- ] = Field(
11479
- {},
11480
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11481
- title='Description',
11482
- )
11483
- unit_test_runs: Optional[
11484
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11485
- ] = Field(
11486
- None,
11487
- description='The unit test runs that are part of this set.',
11488
- title='Unit Test Runs',
11489
- )
11490
- tags: Optional[Dict[str, Optional[str]]] = Field(
11491
- None, description='The tags of the simulation unit test set.', title='Tags'
11455
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11456
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11457
+ run_count: int = Field(
11458
+ ...,
11459
+ description='The number of times to run the unit test.',
11460
+ gt=0,
11461
+ title='Run Count',
11492
11462
  )
11493
11463
 
11494
11464
 
@@ -11682,7 +11652,7 @@ class UserGetMemoriesResponse(BaseModel):
11682
11652
  )
11683
11653
 
11684
11654
 
11685
- class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11655
+ class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11686
11656
  num_conversations: int = Field(
11687
11657
  ...,
11688
11658
  description='The number of conversations the user has created.',
@@ -11700,31 +11670,6 @@ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11700
11670
  )
11701
11671
 
11702
11672
 
11703
- class UserSearchUsersResponseUserInstance(BaseModel):
11704
- org_id: str = Field(
11705
- ...,
11706
- description='The ID of the organization that this user belongs to.',
11707
- title='Org Id',
11708
- )
11709
- user_id: str = Field(
11710
- ..., description='The identifier of the user.', title='User Id'
11711
- )
11712
- first_name: str = Field(
11713
- ..., description='The first name of the user.', title='First Name'
11714
- )
11715
- last_name: str = Field(
11716
- ..., description='The last name of the user.', title='Last Name'
11717
- )
11718
- email: str = Field(..., description='Email of the user.', title='Email')
11719
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
11720
- ..., description="Statistics about the user's usage of the Amigo platform."
11721
- )
11722
- role: str = Field(..., description='The ID of the role of the user.', title='Role')
11723
- preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
11724
- ..., description='The preferences of the user.'
11725
- )
11726
-
11727
-
11728
11673
  class UserSignInWithApiKeyResponse(BaseModel):
11729
11674
  id_token: str = Field(
11730
11675
  ...,
@@ -13952,7 +13897,7 @@ class ServiceInstance(BaseModel):
13952
13897
  agent_id: str = Field(
13953
13898
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13954
13899
  )
13955
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13900
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13956
13901
  ..., description='The tags of the service.', title='Tags'
13957
13902
  )
13958
13903
 
@@ -14005,7 +13950,7 @@ class SimulationUnitTestSet(BaseModel):
14005
13950
  description='Whether the unit test set has been deleted.',
14006
13951
  title='Is Deleted',
14007
13952
  )
14008
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13953
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14009
13954
  ..., description='The tags of the simulation unit test set.', title='Tags'
14010
13955
  )
14011
13956
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14044,7 +13989,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14044
13989
  description='Whether the unit test set has been deleted.',
14045
13990
  title='Is Deleted',
14046
13991
  )
14047
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
13992
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14048
13993
  ..., description='The tags of the simulation unit test set.', title='Tags'
14049
13994
  )
14050
13995
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14160,7 +14105,7 @@ class ToolInstance(BaseModel):
14160
14105
  description='A list of encrypted environment variables that some versions of this tool uses.',
14161
14106
  title='Secret Envvars',
14162
14107
  )
14163
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
14108
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14164
14109
  ..., description='The tags of the simulation persona.', title='Tags'
14165
14110
  )
14166
14111
 
@@ -14491,7 +14436,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14491
14436
 
14492
14437
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14493
14438
  dynamic_behavior_sets: List[
14494
- DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14439
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14495
14440
  ] = Field(
14496
14441
  ...,
14497
14442
  description='The retrieved dynamic behavior sets.',
@@ -14515,6 +14460,16 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14515
14460
  )
14516
14461
 
14517
14462
 
14463
+ class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14464
+ dynamic_behavior_sets: List[
14465
+ DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14466
+ ] = Field(
14467
+ ...,
14468
+ description='The retrieved dynamic behavior sets.',
14469
+ title='Dynamic Behavior Sets',
14470
+ )
14471
+
14472
+
14518
14473
  class MetricCreateMetricRequest(BaseModel):
14519
14474
  name: str = Field(
14520
14475
  ...,
@@ -14571,7 +14526,7 @@ class OrganizationCreateOrganizationRequest(BaseModel):
14571
14526
  description='Additional descriptions of the services offered by this organization that is displayed below `main_description` in a smaller font.',
14572
14527
  min_length=1,
14573
14528
  )
14574
- user_dimensions: List[OrganizationCreateOrganizationRequestUserDimension] = Field(
14529
+ user_dimensions: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14575
14530
  ...,
14576
14531
  description='User dimensions for the organization.',
14577
14532
  title='User Dimensions',
@@ -14715,6 +14670,17 @@ class OrganizationGetOrganizationMetricsResponse(BaseModel):
14715
14670
  )
14716
14671
 
14717
14672
 
14673
+ class OrganizationModifyOrganizationRequestUserDimensions(
14674
+ RootModel[List[OrganizationModifyOrganizationRequestUserDimension]]
14675
+ ):
14676
+ root: List[OrganizationModifyOrganizationRequestUserDimension] = Field(
14677
+ ...,
14678
+ description='User dimensions for the organization. If not set or `null`, this field is not updated.',
14679
+ min_length=1,
14680
+ title='User Dimensions',
14681
+ )
14682
+
14683
+
14718
14684
  class OrganizationModifyOrganizationRequest(BaseModel):
14719
14685
  title: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14720
14686
  None,
@@ -14812,19 +14778,36 @@ class RoleModifyRoleRequest(BaseModel):
14812
14778
  )
14813
14779
 
14814
14780
 
14815
- class ServiceCreateServiceRequestVersionSet(BaseModel):
14816
- agent_version_number: Optional[int] = Field(
14781
+ class ServiceCreateServiceRequest(BaseModel):
14782
+ service_hierarchical_state_machine_id: str = Field(
14817
14783
  ...,
14818
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
14819
- title='Agent Version Number',
14784
+ description='The ID of the state machine that this service uses.',
14785
+ pattern='^[a-f0-9]{24}$',
14786
+ title='Service Hierarchical State Machine Id',
14820
14787
  )
14821
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
14788
+ agent_id: str = Field(
14822
14789
  ...,
14823
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14824
- title='Service Hierarchical State Machine Version Number',
14790
+ description='The ID of the agent that this service uses.',
14791
+ pattern='^[a-f0-9]{24}$',
14792
+ title='Agent Id',
14825
14793
  )
14826
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14827
- Field(..., title='Llm Model Preferences')
14794
+ name: str = Field(..., description='The name of this service.', min_length=1)
14795
+ description: str = Field(
14796
+ ..., description='A description of this service.', min_length=1
14797
+ )
14798
+ is_active: bool = Field(
14799
+ ...,
14800
+ 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.',
14801
+ title='Is Active',
14802
+ )
14803
+ release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14804
+ Field(
14805
+ None,
14806
+ 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.',
14807
+ )
14808
+ )
14809
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14810
+ ..., description='The tags of this service.', title='Tags'
14828
14811
  )
14829
14812
 
14830
14813
 
@@ -14849,7 +14832,7 @@ class ServiceGetServicesResponse(BaseModel):
14849
14832
 
14850
14833
 
14851
14834
  class ServiceUpsertServiceVersionSetRequest(BaseModel):
14852
- version_set: ServiceCreateServiceRequestVersionSet = Field(
14835
+ version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14853
14836
  ..., description='The version set to upsert.'
14854
14837
  )
14855
14838
 
@@ -14903,7 +14886,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14903
14886
  ..., description='The description of the simulation unit test set.'
14904
14887
  )
14905
14888
  unit_test_runs: List[
14906
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14889
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14907
14890
  ] = Field(
14908
14891
  ...,
14909
14892
  description='The unit test runs that are part of this set.',
@@ -14941,7 +14924,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14941
14924
 
14942
14925
  class SimulationGetSimulationScenariosResponse(BaseModel):
14943
14926
  simulation_scenarios: List[
14944
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14927
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14945
14928
  ] = Field(
14946
14929
  ...,
14947
14930
  description='The list of simulation scenarios.',
@@ -14997,16 +14980,6 @@ class SimulationSearchSimulationPersonasResponse(BaseModel):
14997
14980
  )
14998
14981
 
14999
14982
 
15000
- class SimulationSearchSimulationScenariosResponse(BaseModel):
15001
- simulation_scenarios: List[
15002
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
15003
- ] = Field(
15004
- ...,
15005
- description='The list of simulation scenarios.',
15006
- title='Simulation Scenarios',
15007
- )
15008
-
15009
-
15010
14983
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
15011
14984
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
15012
14985
  ...,
@@ -15020,6 +14993,42 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15020
14993
  )
15021
14994
 
15022
14995
 
14996
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14997
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14998
+ ):
14999
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
15000
+ Field(
15001
+ ...,
15002
+ description='The unit test runs that are part of this set.',
15003
+ min_length=1,
15004
+ title='Unit Test Runs',
15005
+ )
15006
+ )
15007
+
15008
+
15009
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
15010
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15011
+ None, description='The name of the simulation unit test set.'
15012
+ )
15013
+ description: Optional[
15014
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
15015
+ ] = Field(
15016
+ {},
15017
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
15018
+ title='Description',
15019
+ )
15020
+ unit_test_runs: Optional[
15021
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
15022
+ ] = Field(
15023
+ None,
15024
+ description='The unit test runs that are part of this set.',
15025
+ title='Unit Test Runs',
15026
+ )
15027
+ tags: Optional[Dict[str, Optional[str]]] = Field(
15028
+ None, description='The tags of the simulation unit test set.', title='Tags'
15029
+ )
15030
+
15031
+
15023
15032
  class ToolGetToolVersionsResponse(BaseModel):
15024
15033
  tool_versions: List[ToolVersionInstance] = Field(
15025
15034
  ...,
@@ -15122,22 +15131,33 @@ class UserGetUserModelResponse(BaseModel):
15122
15131
  )
15123
15132
 
15124
15133
 
15125
- class UserGetUsersResponse(BaseModel):
15126
- users: List[UserSearchUsersResponseUserInstance] = Field(
15127
- ..., description='Users in this organization.', title='Users'
15134
+ class UserGetUsersResponseUserInstance(BaseModel):
15135
+ org_id: str = Field(
15136
+ ...,
15137
+ description='The ID of the organization that this user belongs to.',
15138
+ title='Org Id',
15128
15139
  )
15129
- has_more: bool = Field(
15130
- ..., description='Whether there are more users to retrieve.', title='Has More'
15140
+ user_id: str = Field(
15141
+ ..., description='The identifier of the user.', title='User Id'
15131
15142
  )
15132
- continuation_token: Optional[int] = Field(
15133
- ...,
15134
- description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
15135
- title='Continuation Token',
15143
+ first_name: str = Field(
15144
+ ..., description='The first name of the user.', title='First Name'
15145
+ )
15146
+ last_name: str = Field(
15147
+ ..., description='The last name of the user.', title='Last Name'
15148
+ )
15149
+ email: str = Field(..., description='Email of the user.', title='Email')
15150
+ user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15151
+ ..., description="Statistics about the user's usage of the Amigo platform."
15152
+ )
15153
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
15154
+ preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
15155
+ ..., description='The preferences of the user.'
15136
15156
  )
15137
15157
 
15138
15158
 
15139
15159
  class UserSearchUsersResponse(BaseModel):
15140
- users: List[UserSearchUsersResponseUserInstance] = Field(
15160
+ users: List[UserGetUsersResponseUserInstance] = Field(
15141
15161
  ..., description='Users in this organization.', title='Users'
15142
15162
  )
15143
15163
 
@@ -15387,7 +15407,7 @@ class Metric(BaseModel):
15387
15407
  additional_notes: Optional[str] = Field(
15388
15408
  ..., description='Additional notes about the metric.', title='Additional Notes'
15389
15409
  )
15390
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15410
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15391
15411
  ..., description='The tags of the metric.', title='Tags'
15392
15412
  )
15393
15413
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15457,7 +15477,7 @@ class MetricInstance(BaseModel):
15457
15477
  additional_notes: Optional[str] = Field(
15458
15478
  ..., description='Additional notes about the metric.', title='Additional Notes'
15459
15479
  )
15460
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15480
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15461
15481
  ..., description='The tags of the metric.', title='Tags'
15462
15482
  )
15463
15483
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
@@ -15659,7 +15679,7 @@ class SimulationUnitTest(BaseModel):
15659
15679
  is_deleted: bool = Field(
15660
15680
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15661
15681
  )
15662
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15682
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15663
15683
  ..., description='The tags of the simulation persona.', title='Tags'
15664
15684
  )
15665
15685
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -15704,7 +15724,7 @@ class SimulationUnitTestInstance(BaseModel):
15704
15724
  is_deleted: bool = Field(
15705
15725
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15706
15726
  )
15707
- tags: List[AmigoLibMongoCollectionsMetricMetricTag] = Field(
15727
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15708
15728
  ..., description='The tags of the simulation persona.', title='Tags'
15709
15729
  )
15710
15730
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
@@ -16030,37 +16050,6 @@ class RoleGetRolesResponse(BaseModel):
16030
16050
  )
16031
16051
 
16032
16052
 
16033
- class ServiceCreateServiceRequest(BaseModel):
16034
- service_hierarchical_state_machine_id: str = Field(
16035
- ...,
16036
- description='The ID of the state machine that this service uses.',
16037
- pattern='^[a-f0-9]{24}$',
16038
- title='Service Hierarchical State Machine Id',
16039
- )
16040
- agent_id: str = Field(
16041
- ...,
16042
- description='The ID of the agent that this service uses.',
16043
- pattern='^[a-f0-9]{24}$',
16044
- title='Agent Id',
16045
- )
16046
- name: str = Field(..., description='The name of this service.', min_length=1)
16047
- description: str = Field(
16048
- ..., description='A description of this service.', min_length=1
16049
- )
16050
- is_active: bool = Field(
16051
- ...,
16052
- 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.',
16053
- title='Is Active',
16054
- )
16055
- release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16056
- None,
16057
- 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.',
16058
- )
16059
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16060
- ..., description='The tags of this service.', title='Tags'
16061
- )
16062
-
16063
-
16064
16053
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16065
16054
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16066
16055
  description: str = Field(
@@ -16194,7 +16183,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16194
16183
  )
16195
16184
 
16196
16185
 
16197
- class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16186
+ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16198
16187
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16199
16188
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16200
16189
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16221,6 +16210,28 @@ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16221
16210
  )
16222
16211
 
16223
16212
 
16213
+ class ToolSearchToolInvocationsResponse(BaseModel):
16214
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16215
+ Field(
16216
+ ..., description='The list of tool invocations.', title='Tool Invocations'
16217
+ )
16218
+ )
16219
+
16220
+
16221
+ class UserGetUsersResponse(BaseModel):
16222
+ users: List[UserGetUsersResponseUserInstance] = Field(
16223
+ ..., description='Users in this organization.', title='Users'
16224
+ )
16225
+ has_more: bool = Field(
16226
+ ..., description='Whether there are more users to retrieve.', title='Has More'
16227
+ )
16228
+ continuation_token: Optional[int] = Field(
16229
+ ...,
16230
+ description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
16231
+ title='Continuation Token',
16232
+ )
16233
+
16234
+
16224
16235
  class SimulationUnitTestSetRunInstance(BaseModel):
16225
16236
  org_id: str = Field(..., title='Org Id')
16226
16237
  id: str = Field(..., title='Id')
@@ -16320,7 +16331,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16320
16331
 
16321
16332
 
16322
16333
  class ToolGetToolInvocationsResponse(BaseModel):
16323
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16334
+ tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16324
16335
  Field(
16325
16336
  ..., description='The list of tool invocations.', title='Tool Invocations'
16326
16337
  )
@@ -16335,11 +16346,3 @@ class ToolGetToolInvocationsResponse(BaseModel):
16335
16346
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16336
16347
  title='Continuation Token',
16337
16348
  )
16338
-
16339
-
16340
- class ToolSearchToolInvocationsResponse(BaseModel):
16341
- tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16342
- Field(
16343
- ..., description='The list of tool invocations.', title='Tool Invocations'
16344
- )
16345
- )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.75.0
3
+ Version: 0.77.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=tzY6nagu7lgJ1MKARQEIKkdcAKo2EjbmL6C88h2QsjU,139
1
+ amigo_sdk/__init__.py,sha256=JTPgIO7jxqmWqA6C9SaT7p8J1TahHegxAG-qS2sN1UA,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=stIlA3cf-9diXa8V1obNAun6xX5d6u_BAyRl8S13fZ8,456896
9
+ amigo_sdk/generated/model.py,sha256=3xwqqHW4ltUk0_MV8B4OCTLQxPgZCEoCq4QA_c1BpZ4,457018
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.75.0.dist-info/METADATA,sha256=8puY-2UtB259Cym1UM1XjY0KcEHAVF5mzpzeeFRunRk,8499
15
- amigo_sdk-0.75.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.75.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.75.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.75.0.dist-info/RECORD,,
14
+ amigo_sdk-0.77.0.dist-info/METADATA,sha256=ITC0cPeXZwdfM1fZsm0o_P51pWFhNwt-3Tij4yUPB7s,8499
15
+ amigo_sdk-0.77.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.77.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.77.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.77.0.dist-info/RECORD,,