amigo_sdk 0.70.0__py3-none-any.whl → 0.72.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.70.0"
1
+ __version__ = "0.72.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-03T16:58:45+00:00
3
+ # timestamp: 2025-12-03T17:57:08+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1630,6 +1630,11 @@ class AmigoLibMongoCollectionsRoleRolePermissionGrantAction(Enum):
1630
1630
  deny = 'Deny'
1631
1631
 
1632
1632
 
1633
+ class AmigoLibMongoCollectionsServiceServiceTag(BaseModel):
1634
+ key: str = Field(..., title='Key')
1635
+ value: Optional[str] = Field(..., title='Value')
1636
+
1637
+
1633
1638
  class AmigoLibMongoCollectionsServiceServiceVersionSet(BaseModel):
1634
1639
  agent_version_number: Optional[int] = Field(
1635
1640
  ...,
@@ -1663,11 +1668,6 @@ AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo = (
1663
1668
  )
1664
1669
 
1665
1670
 
1666
- class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag(BaseModel):
1667
- key: str = Field(..., title='Key')
1668
- value: Optional[str] = Field(..., title='Value')
1669
-
1670
-
1671
1671
  class AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUnitTestRunDescriptor(
1672
1672
  BaseModel
1673
1673
  ):
@@ -11017,22 +11017,6 @@ class ServiceUpdateServiceRequest(BaseModel):
11017
11017
  )
11018
11018
 
11019
11019
 
11020
- class ServiceUpsertServiceVersionSetRequestVersionSet(BaseModel):
11021
- agent_version_number: Optional[int] = Field(
11022
- ...,
11023
- description='The version number of the agent to be used. If None, the latest agent version will be used.',
11024
- title='Agent Version Number',
11025
- )
11026
- service_hierarchical_state_machine_version_number: Optional[int] = Field(
11027
- ...,
11028
- description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
11029
- title='Service Hierarchical State Machine Version Number',
11030
- )
11031
- llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
11032
- Field(..., title='Llm Model Preferences')
11033
- )
11034
-
11035
-
11036
11020
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11037
11021
  background: str = Field(
11038
11022
  ..., description='The background of the simulation persona.', min_length=1
@@ -11151,16 +11135,6 @@ class SimulationCreateSimulationUnitTestResponse(BaseModel):
11151
11135
  )
11152
11136
 
11153
11137
 
11154
- class SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11155
- unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11156
- run_count: int = Field(
11157
- ...,
11158
- description='The number of times to run the unit test.',
11159
- gt=0,
11160
- title='Run Count',
11161
- )
11162
-
11163
-
11164
11138
  class SimulationCreateSimulationUnitTestSetResponse(BaseModel):
11165
11139
  simulation_unit_test_set_id: str = Field(
11166
11140
  ...,
@@ -11251,37 +11225,6 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11251
11225
  )
11252
11226
 
11253
11227
 
11254
- class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11255
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11256
- name: str = Field(
11257
- ..., description='The name of the simulation scenario.', title='Name'
11258
- )
11259
- tags: Dict[str, Optional[str]] = Field(
11260
- ..., description='The tags of the simulation scenario.', title='Tags'
11261
- )
11262
- is_deleted: bool = Field(
11263
- ...,
11264
- description='Whether the simulation scenario is deleted.',
11265
- title='Is Deleted',
11266
- )
11267
- created_at: AwareDatetime = Field(
11268
- ...,
11269
- description='The timestamp when the simulation scenario was created.',
11270
- title='Created At',
11271
- )
11272
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11273
- Field(..., description='The user who created the simulation scenario.')
11274
- )
11275
- updated_at: AwareDatetime = Field(
11276
- ...,
11277
- description='The timestamp when the simulation scenario was last updated.',
11278
- title='Updated At',
11279
- )
11280
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11281
- Field(..., description='The user who last updated the simulation scenario.')
11282
- )
11283
-
11284
-
11285
11228
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11286
11229
  presigned_url: str = Field(
11287
11230
  ...,
@@ -11404,13 +11347,34 @@ class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseMo
11404
11347
  )
11405
11348
 
11406
11349
 
11407
- class SimulationSearchSimulationScenariosResponse(BaseModel):
11408
- simulation_scenarios: List[
11409
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11410
- ] = Field(
11350
+ class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11351
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11352
+ name: str = Field(
11353
+ ..., description='The name of the simulation scenario.', title='Name'
11354
+ )
11355
+ tags: Dict[str, Optional[str]] = Field(
11356
+ ..., description='The tags of the simulation scenario.', title='Tags'
11357
+ )
11358
+ is_deleted: bool = Field(
11411
11359
  ...,
11412
- description='The list of simulation scenarios.',
11413
- title='Simulation Scenarios',
11360
+ description='Whether the simulation scenario is deleted.',
11361
+ title='Is Deleted',
11362
+ )
11363
+ created_at: AwareDatetime = Field(
11364
+ ...,
11365
+ description='The timestamp when the simulation scenario was created.',
11366
+ title='Created At',
11367
+ )
11368
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11369
+ Field(..., description='The user who created the simulation scenario.')
11370
+ )
11371
+ updated_at: AwareDatetime = Field(
11372
+ ...,
11373
+ description='The timestamp when the simulation scenario was last updated.',
11374
+ title='Updated At',
11375
+ )
11376
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11377
+ Field(..., description='The user who last updated the simulation scenario.')
11414
11378
  )
11415
11379
 
11416
11380
 
@@ -11471,39 +11435,13 @@ class SimulationUpdateSimulationUnitTestRequestRunCount(RootModel[int]):
11471
11435
  )
11472
11436
 
11473
11437
 
11474
- class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
11475
- RootModel[List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
11476
- ):
11477
- root: List[SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
11478
- Field(
11479
- ...,
11480
- description='The unit test runs that are part of this set.',
11481
- min_length=1,
11482
- title='Unit Test Runs',
11483
- )
11484
- )
11485
-
11486
-
11487
- class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
11488
- name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11489
- None, description='The name of the simulation unit test set.'
11490
- )
11491
- description: Optional[
11492
- Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
11493
- ] = Field(
11494
- {},
11495
- description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
11496
- title='Description',
11497
- )
11498
- unit_test_runs: Optional[
11499
- SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
11500
- ] = Field(
11501
- None,
11502
- description='The unit test runs that are part of this set.',
11503
- title='Unit Test Runs',
11504
- )
11505
- tags: Optional[Dict[str, Optional[str]]] = Field(
11506
- None, description='The tags of the simulation unit test set.', title='Tags'
11438
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor(BaseModel):
11439
+ unit_test_id: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
11440
+ run_count: int = Field(
11441
+ ...,
11442
+ description='The number of times to run the unit test.',
11443
+ gt=0,
11444
+ title='Run Count',
11507
11445
  )
11508
11446
 
11509
11447
 
@@ -11540,22 +11478,6 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11540
11478
  )
11541
11479
 
11542
11480
 
11543
- class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11544
- regular = 'regular'
11545
- conversation_simulation = 'conversation-simulation'
11546
-
11547
-
11548
- class ToolInvokeToolVersionRequestInput(BaseModel):
11549
- input_parameters: Dict[str, Any] = Field(
11550
- ...,
11551
- description='The input parameters for the tool invocation.',
11552
- title='Input Parameters',
11553
- )
11554
- invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11555
- ..., description='The mode of invocation.', title='Invocation Mode'
11556
- )
11557
-
11558
-
11559
11481
  class ToolModifyToolRequest(BaseModel):
11560
11482
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11561
11483
  None, description='A description of this tool. Only updates if not-null.'
@@ -11598,34 +11520,19 @@ class ToolPublishToolVersionResponse(BaseModel):
11598
11520
  )
11599
11521
 
11600
11522
 
11601
- class ToolTestToolRequest(BaseModel):
11602
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11603
- ...,
11604
- description='The list of inputs for the tool invocation.',
11605
- max_length=10,
11606
- min_length=1,
11607
- title='Inputs',
11608
- )
11609
- commit_branch: str = Field(
11610
- ...,
11611
- description='The branch in the tools repo whose tip will be tested.',
11612
- title='Commit Branch',
11613
- )
11614
- project_path: str = Field(
11615
- ...,
11616
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11617
- pattern='^[-\\w\\d_/]+$',
11618
- title='Project Path',
11619
- )
11620
- required_envvars: Dict[str, str] = Field(
11523
+ class ToolTestToolRequestInputInvocationMode(Enum):
11524
+ regular = 'regular'
11525
+ conversation_simulation = 'conversation-simulation'
11526
+
11527
+
11528
+ class ToolTestToolRequestInput(BaseModel):
11529
+ input_parameters: Dict[str, Any] = Field(
11621
11530
  ...,
11622
- description='The environment variables required for the tool to run.',
11623
- title='Required Envvars',
11531
+ description='The input parameters for the tool invocation.',
11532
+ title='Input Parameters',
11624
11533
  )
11625
- required_secret_envvars: Dict[str, str] = Field(
11626
- ...,
11627
- description='The secret environment variables required for the tool to run.',
11628
- title='Required Secret Envvars',
11534
+ invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11535
+ ..., description='The mode of invocation.', title='Invocation Mode'
11629
11536
  )
11630
11537
 
11631
11538
 
@@ -11697,7 +11604,7 @@ class UserGetMemoriesResponse(BaseModel):
11697
11604
  )
11698
11605
 
11699
11606
 
11700
- class UserSearchUsersResponseUserInstanceUserStats(BaseModel):
11607
+ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11701
11608
  num_conversations: int = Field(
11702
11609
  ...,
11703
11610
  description='The number of conversations the user has created.',
@@ -12136,7 +12043,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12136
12043
  [], description='The IDs of the messages to retrieve.', title='Id'
12137
12044
  )
12138
12045
  message_type: Optional[List[MessageType]] = Field(
12139
- ['agent-message', 'user-message', 'external-event'],
12046
+ ['user-message', 'external-event', 'agent-message'],
12140
12047
  description='The type of messages to retrieve.',
12141
12048
  title='Message Type',
12142
12049
  )
@@ -13942,9 +13849,9 @@ class ServiceInstance(BaseModel):
13942
13849
  agent_id: str = Field(
13943
13850
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13944
13851
  )
13945
- tags: List[
13946
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13947
- ] = Field(..., description='The tags of the service.', title='Tags')
13852
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13853
+ ..., description='The tags of the service.', title='Tags'
13854
+ )
13948
13855
 
13949
13856
 
13950
13857
  class SimulationConversationInvocationSource(BaseModel):
@@ -13995,9 +13902,7 @@ class SimulationUnitTestSet(BaseModel):
13995
13902
  description='Whether the unit test set has been deleted.',
13996
13903
  title='Is Deleted',
13997
13904
  )
13998
- tags: List[
13999
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14000
- ] = Field(
13905
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14001
13906
  ..., description='The tags of the simulation unit test set.', title='Tags'
14002
13907
  )
14003
13908
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14036,9 +13941,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14036
13941
  description='Whether the unit test set has been deleted.',
14037
13942
  title='Is Deleted',
14038
13943
  )
14039
- tags: List[
14040
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14041
- ] = Field(
13944
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14042
13945
  ..., description='The tags of the simulation unit test set.', title='Tags'
14043
13946
  )
14044
13947
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14154,9 +14057,9 @@ class ToolInstance(BaseModel):
14154
14057
  description='A list of encrypted environment variables that some versions of this tool uses.',
14155
14058
  title='Secret Envvars',
14156
14059
  )
14157
- tags: List[
14158
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14159
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14060
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14061
+ ..., description='The tags of the simulation persona.', title='Tags'
14062
+ )
14160
14063
 
14161
14064
 
14162
14065
  class ToolVersionInstance(BaseModel):
@@ -14817,36 +14720,19 @@ class RoleModifyRoleRequest(BaseModel):
14817
14720
  )
14818
14721
 
14819
14722
 
14820
- class ServiceCreateServiceRequest(BaseModel):
14821
- service_hierarchical_state_machine_id: str = Field(
14822
- ...,
14823
- description='The ID of the state machine that this service uses.',
14824
- pattern='^[a-f0-9]{24}$',
14825
- title='Service Hierarchical State Machine Id',
14826
- )
14827
- agent_id: str = Field(
14723
+ class ServiceCreateServiceRequestVersionSet(BaseModel):
14724
+ agent_version_number: Optional[int] = Field(
14828
14725
  ...,
14829
- description='The ID of the agent that this service uses.',
14830
- pattern='^[a-f0-9]{24}$',
14831
- title='Agent Id',
14832
- )
14833
- name: str = Field(..., description='The name of this service.', min_length=1)
14834
- description: str = Field(
14835
- ..., description='A description of this service.', min_length=1
14726
+ description='The version number of the agent to be used. If None, the latest agent version will be used.',
14727
+ title='Agent Version Number',
14836
14728
  )
14837
- is_active: bool = Field(
14729
+ service_hierarchical_state_machine_version_number: Optional[int] = Field(
14838
14730
  ...,
14839
- 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.',
14840
- title='Is Active',
14841
- )
14842
- release_version_set: Optional[ServiceUpsertServiceVersionSetRequestVersionSet] = (
14843
- Field(
14844
- None,
14845
- 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.',
14846
- )
14731
+ description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14732
+ title='Service Hierarchical State Machine Version Number',
14847
14733
  )
14848
- tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
14849
- ..., description='The tags of this service.', title='Tags'
14734
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14735
+ Field(..., title='Llm Model Preferences')
14850
14736
  )
14851
14737
 
14852
14738
 
@@ -14871,7 +14757,7 @@ class ServiceGetServicesResponse(BaseModel):
14871
14757
 
14872
14758
 
14873
14759
  class ServiceUpsertServiceVersionSetRequest(BaseModel):
14874
- version_set: ServiceUpsertServiceVersionSetRequestVersionSet = Field(
14760
+ version_set: ServiceCreateServiceRequestVersionSet = Field(
14875
14761
  ..., description='The version set to upsert.'
14876
14762
  )
14877
14763
 
@@ -14925,7 +14811,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14925
14811
  ..., description='The description of the simulation unit test set.'
14926
14812
  )
14927
14813
  unit_test_runs: List[
14928
- SimulationCreateSimulationUnitTestSetRequestUnitTestRunDescriptor
14814
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor
14929
14815
  ] = Field(
14930
14816
  ...,
14931
14817
  description='The unit test runs that are part of this set.',
@@ -14963,7 +14849,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14963
14849
 
14964
14850
  class SimulationGetSimulationScenariosResponse(BaseModel):
14965
14851
  simulation_scenarios: List[
14966
- SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14852
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14967
14853
  ] = Field(
14968
14854
  ...,
14969
14855
  description='The list of simulation scenarios.',
@@ -15019,6 +14905,16 @@ class SimulationSearchSimulationPersonasResponse(BaseModel):
15019
14905
  )
15020
14906
 
15021
14907
 
14908
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
14909
+ simulation_scenarios: List[
14910
+ SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14911
+ ] = Field(
14912
+ ...,
14913
+ description='The list of simulation scenarios.',
14914
+ title='Simulation Scenarios',
14915
+ )
14916
+
14917
+
15022
14918
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
15023
14919
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
15024
14920
  ...,
@@ -15032,6 +14928,42 @@ SimulationUpdateSimulationUnitTestRequestSuccessCriterion = (
15032
14928
  )
15033
14929
 
15034
14930
 
14931
+ class SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns(
14932
+ RootModel[List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor]]
14933
+ ):
14934
+ root: List[SimulationUpdateSimulationUnitTestSetRequestUnitTestRunDescriptor] = (
14935
+ Field(
14936
+ ...,
14937
+ description='The unit test runs that are part of this set.',
14938
+ min_length=1,
14939
+ title='Unit Test Runs',
14940
+ )
14941
+ )
14942
+
14943
+
14944
+ class SimulationUpdateSimulationUnitTestSetRequest(BaseModel):
14945
+ name: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
14946
+ None, description='The name of the simulation unit test set.'
14947
+ )
14948
+ description: Optional[
14949
+ Union[AmigoLibPydanticBaseModelStrippedNonemptyString1, FieldNotSet]
14950
+ ] = Field(
14951
+ {},
14952
+ description='The description of the simulation unit test set. If not specified or an empty object is provided, the description will not be updated.',
14953
+ title='Description',
14954
+ )
14955
+ unit_test_runs: Optional[
14956
+ SimulationUpdateSimulationUnitTestSetRequestUnitTestRuns
14957
+ ] = Field(
14958
+ None,
14959
+ description='The unit test runs that are part of this set.',
14960
+ title='Unit Test Runs',
14961
+ )
14962
+ tags: Optional[Dict[str, Optional[str]]] = Field(
14963
+ None, description='The tags of the simulation unit test set.', title='Tags'
14964
+ )
14965
+
14966
+
15035
14967
  class ToolGetToolVersionsResponse(BaseModel):
15036
14968
  tool_versions: List[ToolVersionInstance] = Field(
15037
14969
  ...,
@@ -15073,7 +15005,7 @@ class ToolGetToolsResponse(BaseModel):
15073
15005
 
15074
15006
 
15075
15007
  class ToolInvokeToolVersionRequest(BaseModel):
15076
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
15008
+ inputs: List[ToolTestToolRequestInput] = Field(
15077
15009
  ...,
15078
15010
  description='The list of inputs for the tool invocation.',
15079
15011
  max_length=10,
@@ -15094,6 +15026,37 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15094
15026
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15095
15027
 
15096
15028
 
15029
+ class ToolTestToolRequest(BaseModel):
15030
+ inputs: List[ToolTestToolRequestInput] = Field(
15031
+ ...,
15032
+ description='The list of inputs for the tool invocation.',
15033
+ max_length=10,
15034
+ min_length=1,
15035
+ title='Inputs',
15036
+ )
15037
+ commit_branch: str = Field(
15038
+ ...,
15039
+ description='The branch in the tools repo whose tip will be tested.',
15040
+ title='Commit Branch',
15041
+ )
15042
+ project_path: str = Field(
15043
+ ...,
15044
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
15045
+ pattern='^[-\\w\\d_/]+$',
15046
+ title='Project Path',
15047
+ )
15048
+ required_envvars: Dict[str, str] = Field(
15049
+ ...,
15050
+ description='The environment variables required for the tool to run.',
15051
+ title='Required Envvars',
15052
+ )
15053
+ required_secret_envvars: Dict[str, str] = Field(
15054
+ ...,
15055
+ description='The secret environment variables required for the tool to run.',
15056
+ title='Required Secret Envvars',
15057
+ )
15058
+
15059
+
15097
15060
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15098
15061
 
15099
15062
 
@@ -15134,7 +15097,7 @@ class UserGetUserModelResponse(BaseModel):
15134
15097
  )
15135
15098
 
15136
15099
 
15137
- class UserSearchUsersResponseUserInstance(BaseModel):
15100
+ class UserGetUsersResponseUserInstance(BaseModel):
15138
15101
  org_id: str = Field(
15139
15102
  ...,
15140
15103
  description='The ID of the organization that this user belongs to.',
@@ -15150,7 +15113,7 @@ class UserSearchUsersResponseUserInstance(BaseModel):
15150
15113
  ..., description='The last name of the user.', title='Last Name'
15151
15114
  )
15152
15115
  email: str = Field(..., description='Email of the user.', title='Email')
15153
- user_stats: UserSearchUsersResponseUserInstanceUserStats = Field(
15116
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15154
15117
  ..., description="Statistics about the user's usage of the Amigo platform."
15155
15118
  )
15156
15119
  role: str = Field(..., description='The ID of the role of the user.', title='Role')
@@ -15159,6 +15122,12 @@ class UserSearchUsersResponseUserInstance(BaseModel):
15159
15122
  )
15160
15123
 
15161
15124
 
15125
+ class UserSearchUsersResponse(BaseModel):
15126
+ users: List[UserGetUsersResponseUserInstance] = Field(
15127
+ ..., description='Users in this organization.', title='Users'
15128
+ )
15129
+
15130
+
15162
15131
  class WebhookDestinationGetWebhookDeliveriesResponse(BaseModel):
15163
15132
  webhook_deliveries: List[WebhookDeliveryInstance] = Field(
15164
15133
  ..., description='The retrieved webhook deliveries.', title='Webhook Deliveries'
@@ -15404,9 +15373,9 @@ class Metric(BaseModel):
15404
15373
  additional_notes: Optional[str] = Field(
15405
15374
  ..., description='Additional notes about the metric.', title='Additional Notes'
15406
15375
  )
15407
- tags: List[
15408
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15409
- ] = Field(..., description='The tags of the metric.', title='Tags')
15376
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15377
+ ..., description='The tags of the metric.', title='Tags'
15378
+ )
15410
15379
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15411
15380
  ..., description='The user who created the metric.'
15412
15381
  )
@@ -15474,9 +15443,9 @@ class MetricInstance(BaseModel):
15474
15443
  additional_notes: Optional[str] = Field(
15475
15444
  ..., description='Additional notes about the metric.', title='Additional Notes'
15476
15445
  )
15477
- tags: List[
15478
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15479
- ] = Field(..., description='The tags of the metric.', title='Tags')
15446
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15447
+ ..., description='The tags of the metric.', title='Tags'
15448
+ )
15480
15449
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15481
15450
  ..., description='The user who created the metric.'
15482
15451
  )
@@ -15676,9 +15645,9 @@ class SimulationUnitTest(BaseModel):
15676
15645
  is_deleted: bool = Field(
15677
15646
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15678
15647
  )
15679
- tags: List[
15680
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15681
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15648
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15649
+ ..., description='The tags of the simulation persona.', title='Tags'
15650
+ )
15682
15651
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15683
15652
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15684
15653
 
@@ -15721,9 +15690,9 @@ class SimulationUnitTestInstance(BaseModel):
15721
15690
  is_deleted: bool = Field(
15722
15691
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15723
15692
  )
15724
- tags: List[
15725
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15726
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15693
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15694
+ ..., description='The tags of the simulation persona.', title='Tags'
15695
+ )
15727
15696
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15728
15697
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15729
15698
 
@@ -16047,6 +16016,37 @@ class RoleGetRolesResponse(BaseModel):
16047
16016
  )
16048
16017
 
16049
16018
 
16019
+ class ServiceCreateServiceRequest(BaseModel):
16020
+ service_hierarchical_state_machine_id: str = Field(
16021
+ ...,
16022
+ description='The ID of the state machine that this service uses.',
16023
+ pattern='^[a-f0-9]{24}$',
16024
+ title='Service Hierarchical State Machine Id',
16025
+ )
16026
+ agent_id: str = Field(
16027
+ ...,
16028
+ description='The ID of the agent that this service uses.',
16029
+ pattern='^[a-f0-9]{24}$',
16030
+ title='Agent Id',
16031
+ )
16032
+ name: str = Field(..., description='The name of this service.', min_length=1)
16033
+ description: str = Field(
16034
+ ..., description='A description of this service.', min_length=1
16035
+ )
16036
+ is_active: bool = Field(
16037
+ ...,
16038
+ 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.',
16039
+ title='Is Active',
16040
+ )
16041
+ release_version_set: Optional[ServiceCreateServiceRequestVersionSet] = Field(
16042
+ None,
16043
+ 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.',
16044
+ )
16045
+ tags: Dict[str, Optional[StrippedNonemptyStringWS]] = Field(
16046
+ ..., description='The tags of this service.', title='Tags'
16047
+ )
16048
+
16049
+
16050
16050
  class SimulationCreateSimulationUnitTestRequest(BaseModel):
16051
16051
  name: str = Field(..., description='The name of the unit test.', min_length=1)
16052
16052
  description: str = Field(
@@ -16216,7 +16216,7 @@ class ToolSearchToolInvocationsResponse(BaseModel):
16216
16216
 
16217
16217
 
16218
16218
  class UserGetUsersResponse(BaseModel):
16219
- users: List[UserSearchUsersResponseUserInstance] = Field(
16219
+ users: List[UserGetUsersResponseUserInstance] = Field(
16220
16220
  ..., description='Users in this organization.', title='Users'
16221
16221
  )
16222
16222
  has_more: bool = Field(
@@ -16229,12 +16229,6 @@ class UserGetUsersResponse(BaseModel):
16229
16229
  )
16230
16230
 
16231
16231
 
16232
- class UserSearchUsersResponse(BaseModel):
16233
- users: List[UserSearchUsersResponseUserInstance] = Field(
16234
- ..., description='Users in this organization.', title='Users'
16235
- )
16236
-
16237
-
16238
16232
  class SimulationUnitTestSetRunInstance(BaseModel):
16239
16233
  org_id: str = Field(..., title='Org Id')
16240
16234
  id: str = Field(..., title='Id')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amigo_sdk
3
- Version: 0.70.0
3
+ Version: 0.72.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=f5lR2WPI6sR2xJpKf3k4M0oUwFUzeqSBqcO3UipgrQc,139
1
+ amigo_sdk/__init__.py,sha256=o8hL9L8iuXkmjt2KVEDsSYZmyb3rCvnOTcom9EGZ-tI,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=53HP0RAAxkl4msbceJG48IsQYARftJozpPxGMMavnO0,457250
9
+ amigo_sdk/generated/model.py,sha256=ewNse-R58YNSfRi1RmRjdU9RU9twt9hPagRaLaOZT9g,456861
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.70.0.dist-info/METADATA,sha256=a3t-Y72PZyYcb7VTrKh8WL1zoJyDDZ371AO3t0FkZgQ,8499
15
- amigo_sdk-0.70.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.70.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.70.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.70.0.dist-info/RECORD,,
14
+ amigo_sdk-0.72.0.dist-info/METADATA,sha256=SRW_-63VqUM3Mcr4crq_m7c9Sjxe21Dpm1EJfOspMVI,8499
15
+ amigo_sdk-0.72.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.72.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.72.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.72.0.dist-info/RECORD,,