amigo_sdk 0.67.0__py3-none-any.whl → 0.69.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.67.0"
1
+ __version__ = "0.69.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-02T08:21:19+00:00
3
+ # timestamp: 2025-12-03T11:17:35+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -33,12 +33,12 @@ class ActionTooLongEvent(BaseModel):
33
33
  )
34
34
 
35
35
 
36
- class AnnotationStateInputNextState(RootModel[List]):
37
- root: List = Field(..., max_length=2, min_length=2, title='Next State')
36
+ class AnnotationStateInputNextState(RootModel[List[Any]]):
37
+ root: List[Any] = Field(..., max_length=2, min_length=2, title='Next State')
38
38
 
39
39
 
40
- class AnnotationStateOutputNextState(RootModel[List]):
41
- root: List = Field(
40
+ class AnnotationStateOutputNextState(RootModel[List[Any]]):
41
+ root: List[Any] = Field(
42
42
  ...,
43
43
  description="The state to transition to after the inner thought message is generated. If it's a string, the session will transition to a state within this contextual graph. If it's a tuple, the first element\nmust be of the form `{external_contextual_graph_reference_name}.{state_name}` and represents a state in another contextual graph that the session will transition to, and the second element must be a state\nin this contextual graph that the session will transition to after reaching the terminal state of the external graph.",
44
44
  max_length=2,
@@ -68,7 +68,7 @@ class AnnotationStateTransitionLog(BaseModel):
68
68
  description='Name of the previous state to transition from.',
69
69
  title='Previous State',
70
70
  )
71
- previous_service_hierarchical_state_machine_version_info: List = Field(
71
+ previous_service_hierarchical_state_machine_version_info: List[Any] = Field(
72
72
  ...,
73
73
  description='The identifier of the service hierarchical state machine that the previous state is in.',
74
74
  max_length=2,
@@ -78,7 +78,7 @@ class AnnotationStateTransitionLog(BaseModel):
78
78
  next_state: str = Field(
79
79
  ..., description='Name of the next state to transition to.', title='Next State'
80
80
  )
81
- next_service_hierarchical_state_machine_version_info: List = Field(
81
+ next_service_hierarchical_state_machine_version_info: List[Any] = Field(
82
82
  ...,
83
83
  description='The identifier of the service hierarchical state machine that the next state is in.',
84
84
  max_length=2,
@@ -154,8 +154,8 @@ class ConversationByTimeMetricInput(BaseModel):
154
154
  )
155
155
 
156
156
 
157
- class ConversationByTimeMetricOutputConversationCount(RootModel[List]):
158
- root: List = Field(..., max_length=2, min_length=2)
157
+ class ConversationByTimeMetricOutputConversationCount(RootModel[List[Any]]):
158
+ root: List[Any] = Field(..., max_length=2, min_length=2)
159
159
 
160
160
 
161
161
  class ConversationByTimeMetricOutput(BaseModel):
@@ -224,7 +224,7 @@ class DynamicBehaviorInvocation(BaseModel):
224
224
  description='The IDs of the agent inner thoughts that led to the dynamic behavior invocation.',
225
225
  title='Agent Inner Thoughts Ids',
226
226
  )
227
- dynamic_behavior_set_version_info: List = Field(
227
+ dynamic_behavior_set_version_info: List[Any] = Field(
228
228
  ...,
229
229
  description='The ID and version number of the dynamic behavior set version that was activated.',
230
230
  max_length=2,
@@ -260,7 +260,7 @@ class EngageUserDynamicBehaviorOverrideEvent(BaseModel):
260
260
 
261
261
  class EngageUserInvocationMetadata(BaseModel):
262
262
  type: Literal['engage-user'] = Field('engage-user', title='Type')
263
- current_state_machine_and_version: List = Field(
263
+ current_state_machine_and_version: List[Any] = Field(
264
264
  ...,
265
265
  description='The ID and version of the state machine that is currently being executed.',
266
266
  max_length=2,
@@ -320,8 +320,8 @@ class EvaluationSourceType(Enum):
320
320
  simulation = 'simulation'
321
321
 
322
322
 
323
- class ExitConditionOutputNextState(RootModel[List]):
324
- root: List = Field(
323
+ class ExitConditionOutputNextState(RootModel[List[Any]]):
324
+ root: List[Any] = Field(
325
325
  ...,
326
326
  description="The state to transition to if this exit condition is met. If it's a string, the session will transition to a state within this contextual graph. If it's a tuple, the first element\nmust be of the form `{external_contextual_graph_reference_name}.{state_name}` and represents a state in another contextual graph that the session will transition to, and the second element must be a state\nin this contextual graph that the session will transition to after reaching the terminal state of the external graph.",
327
327
  max_length=2,
@@ -442,7 +442,7 @@ class GenerateToolParamsDesignatedToolRetrievedEvent(BaseModel):
442
442
 
443
443
  class InCondition(BaseModel):
444
444
  type: Literal['In'] = Field('In', title='Type')
445
- values: List = Field(
445
+ values: List[Any] = Field(
446
446
  ...,
447
447
  description='A list of values, one of which the attribute must be equal to. All values must be of the same type as the type of this attribute in the permission.',
448
448
  title='Values',
@@ -483,7 +483,7 @@ class JumpbackStateTransitionLog(BaseModel):
483
483
  description='Name of the previous state to transition from.',
484
484
  title='Previous State',
485
485
  )
486
- previous_service_hierarchical_state_machine_version_info: List = Field(
486
+ previous_service_hierarchical_state_machine_version_info: List[Any] = Field(
487
487
  ...,
488
488
  description='The identifier of the service hierarchical state machine that the previous state is in.',
489
489
  max_length=2,
@@ -493,7 +493,7 @@ class JumpbackStateTransitionLog(BaseModel):
493
493
  next_state: str = Field(
494
494
  ..., description='Name of the next state to transition to.', title='Next State'
495
495
  )
496
- next_service_hierarchical_state_machine_version_info: List = Field(
496
+ next_service_hierarchical_state_machine_version_info: List[Any] = Field(
497
497
  ...,
498
498
  description='The identifier of the service hierarchical state machine that the next state is in.',
499
499
  max_length=2,
@@ -610,7 +610,7 @@ class NavigateStateMachineExitConditionSelectedEvent(BaseModel):
610
610
  description='The exit condition that the agent has selected.',
611
611
  title='Exit Condition',
612
612
  )
613
- next_state_state_machine_version_info: List = Field(
613
+ next_state_state_machine_version_info: List[Any] = Field(
614
614
  ...,
615
615
  description='The state machine version info of the next state.',
616
616
  max_length=2,
@@ -700,7 +700,7 @@ class NavigateStateMachineStateTransitionedEvent(BaseModel):
700
700
  'navigate-state-machine-state-transitioned', title='Type'
701
701
  )
702
702
  prev_state: str = Field(..., description='The previous state.', title='Prev State')
703
- prev_state_state_machine_version_info: List = Field(
703
+ prev_state_state_machine_version_info: List[Any] = Field(
704
704
  ...,
705
705
  description='The state machine version info of the previous state.',
706
706
  max_length=2,
@@ -708,7 +708,7 @@ class NavigateStateMachineStateTransitionedEvent(BaseModel):
708
708
  title='Prev State State Machine Version Info',
709
709
  )
710
710
  next_state: str = Field(..., description='The next state.', title='Next State')
711
- next_state_state_machine_version_info: List = Field(
711
+ next_state_state_machine_version_info: List[Any] = Field(
712
712
  ...,
713
713
  description='The state machine version info of the next state.',
714
714
  max_length=2,
@@ -834,8 +834,8 @@ class RecallStateInputNextState(AnnotationStateInputNextState):
834
834
  pass
835
835
 
836
836
 
837
- class RecallStateOutputNextState(RootModel[List]):
838
- root: List = Field(
837
+ class RecallStateOutputNextState(RootModel[List[Any]]):
838
+ root: List[Any] = Field(
839
839
  ...,
840
840
  description="The state to transition to after the active memory extraction is performed. If it's a string, the session will transition to a state within this contextual graph. If it's a tuple, the first element\nmust be of the form `{external_contextual_graph_reference_name}.{state_name}` and represents a state in another contextual graph that the session will transition to, and the second element must be a state\nin this contextual graph that the session will transition to after reaching the terminal state of the external graph.",
841
841
  max_length=2,
@@ -870,7 +870,7 @@ class RecallStateTransitionLog(BaseModel):
870
870
  description='Name of the previous state to transition from.',
871
871
  title='Previous State',
872
872
  )
873
- previous_service_hierarchical_state_machine_version_info: List = Field(
873
+ previous_service_hierarchical_state_machine_version_info: List[Any] = Field(
874
874
  ...,
875
875
  description='The identifier of the service hierarchical state machine that the previous state is in.',
876
876
  max_length=2,
@@ -880,7 +880,7 @@ class RecallStateTransitionLog(BaseModel):
880
880
  next_state: str = Field(
881
881
  ..., description='Name of the next state to transition to.', title='Next State'
882
882
  )
883
- next_service_hierarchical_state_machine_version_info: List = Field(
883
+ next_service_hierarchical_state_machine_version_info: List[Any] = Field(
884
884
  ...,
885
885
  description='The identifier of the service hierarchical state machine that the next state is in.',
886
886
  max_length=2,
@@ -914,9 +914,9 @@ class ResultPersistence(Enum):
914
914
 
915
915
 
916
916
  class SelectDynamicBehaviorCompletedEventSelectedDynamicBehaviorSetVersionInfo(
917
- RootModel[List]
917
+ RootModel[List[Any]]
918
918
  ):
919
- root: List = Field(
919
+ root: List[Any] = Field(
920
920
  ...,
921
921
  max_length=2,
922
922
  min_length=2,
@@ -925,9 +925,9 @@ class SelectDynamicBehaviorCompletedEventSelectedDynamicBehaviorSetVersionInfo(
925
925
 
926
926
 
927
927
  class SelectDynamicBehaviorCompletedEventPreviousSelectedDynamicBehaviorSetVersionInfo(
928
- RootModel[List]
928
+ RootModel[List[Any]]
929
929
  ):
930
- root: List = Field(
930
+ root: List[Any] = Field(
931
931
  ...,
932
932
  max_length=2,
933
933
  min_length=2,
@@ -1064,7 +1064,7 @@ class StateOrRefName(RootModel[str]):
1064
1064
 
1065
1065
  class StateTransitionInvocationMetadata(BaseModel):
1066
1066
  type: Literal['state-transition'] = Field('state-transition', title='Type')
1067
- current_state_machine_and_version: List = Field(
1067
+ current_state_machine_and_version: List[Any] = Field(
1068
1068
  ...,
1069
1069
  description='The ID and version of the state machine that is currently being executed.',
1070
1070
  max_length=2,
@@ -1263,7 +1263,7 @@ class ToolCallStateOutput(BaseModel):
1263
1263
 
1264
1264
  class ToolCallStateInvocationMetadata(BaseModel):
1265
1265
  type: Literal['tool-call-state'] = Field('tool-call-state', title='Type')
1266
- current_state_machine_and_version: List = Field(
1266
+ current_state_machine_and_version: List[Any] = Field(
1267
1267
  ...,
1268
1268
  description='The ID and version of the state machine that is currently being executed.',
1269
1269
  max_length=2,
@@ -1283,7 +1283,7 @@ class ToolCallStateTransitionLog(BaseModel):
1283
1283
  description='Name of the previous state to transition from.',
1284
1284
  title='Previous State',
1285
1285
  )
1286
- previous_service_hierarchical_state_machine_version_info: List = Field(
1286
+ previous_service_hierarchical_state_machine_version_info: List[Any] = Field(
1287
1287
  ...,
1288
1288
  description='The identifier of the service hierarchical state machine that the previous state is in.',
1289
1289
  max_length=2,
@@ -1293,7 +1293,7 @@ class ToolCallStateTransitionLog(BaseModel):
1293
1293
  next_state: str = Field(
1294
1294
  ..., description='Name of the next state to transition to.', title='Next State'
1295
1295
  )
1296
- next_service_hierarchical_state_machine_version_info: List = Field(
1296
+ next_service_hierarchical_state_machine_version_info: List[Any] = Field(
1297
1297
  ...,
1298
1298
  description='The identifier of the service hierarchical state machine that the next state is in.',
1299
1299
  max_length=2,
@@ -1396,8 +1396,8 @@ class TotalMessageCountMetricOutput(BaseModel):
1396
1396
  message_count: int = Field(..., title='Message Count')
1397
1397
 
1398
1398
 
1399
- class UnitTestRunSpecScenarioVersionInfo(RootModel[List]):
1400
- root: List = Field(
1399
+ class UnitTestRunSpecScenarioVersionInfo(RootModel[List[Any]]):
1400
+ root: List[Any] = Field(
1401
1401
  ...,
1402
1402
  description='The version of the scenario that the unit test runs on. This field is only populated if the authenticated user has the `Simulation:GetSimulationUnitTest` permission.',
1403
1403
  max_length=2,
@@ -1406,8 +1406,8 @@ class UnitTestRunSpecScenarioVersionInfo(RootModel[List]):
1406
1406
  )
1407
1407
 
1408
1408
 
1409
- class UnitTestRunSpecPersonaVersionInfo(RootModel[List]):
1410
- root: List = Field(
1409
+ class UnitTestRunSpecPersonaVersionInfo(RootModel[List[Any]]):
1410
+ root: List[Any] = Field(
1411
1411
  ...,
1412
1412
  description='The version of the persona that the unit test runs on. This field is only populated if the authenticated user has the `Simulation:GetSimulationUnitTest` permission.',
1413
1413
  max_length=2,
@@ -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
  ):
@@ -1704,6 +1704,12 @@ AmigoLibMongoCollectionsSimulationUnitTestSetRunSimulationUnitTestSetRunUserInfo
1704
1704
  )
1705
1705
 
1706
1706
 
1707
+ class AmigoLibMongoCollectionsToolInvocationToolInvocationVersion(BaseModel):
1708
+ major: int = Field(..., title='Major')
1709
+ minor: int = Field(..., title='Minor')
1710
+ patch: int = Field(..., title='Patch')
1711
+
1712
+
1707
1713
  class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1708
1714
  user_id: str = Field(..., description='The ID of the user.', title='User Id')
1709
1715
  user_org_id: str = Field(
@@ -1711,12 +1717,6 @@ class AmigoLibMongoCollectionsToolVersionToolVersionUserInfo(BaseModel):
1711
1717
  )
1712
1718
 
1713
1719
 
1714
- class AmigoLibMongoCollectionsToolVersionToolVersionVersion(BaseModel):
1715
- major: int = Field(..., title='Major')
1716
- minor: int = Field(..., title='Minor')
1717
- patch: int = Field(..., title='Patch')
1718
-
1719
-
1720
1720
  class AmigoLibMongoCollectionsUserUserPreferences(BaseModel):
1721
1721
  enable_response_recommendation: Optional[bool] = Field(
1722
1722
  False,
@@ -1780,7 +1780,7 @@ class AdminSubmitSqlQueryResponse(BaseModel):
1780
1780
  description='The time taken to execute the query in milliseconds.',
1781
1781
  title='Execution Time Ms',
1782
1782
  )
1783
- result: List[List] = Field(
1783
+ result: List[List[Any]] = Field(
1784
1784
  ...,
1785
1785
  description='The result of the query as a list of rows, where each row is a list of column values.',
1786
1786
  title='Result',
@@ -1870,9 +1870,9 @@ class ConversationGenerateConversationStarterResponse(BaseModel):
1870
1870
 
1871
1871
 
1872
1872
  class ConversationGetInteractionInsightsResponseTriggeredDynamicBehaviorSetVersionInfo(
1873
- RootModel[List]
1873
+ RootModel[List[Any]]
1874
1874
  ):
1875
- root: List = Field(
1875
+ root: List[Any] = Field(
1876
1876
  ...,
1877
1877
  description='The ID and version number of the dynamic behavior set that was activated during this interaction.',
1878
1878
  max_length=2,
@@ -1955,6 +1955,20 @@ class DynamicBehaviorSetGetDynamicBehaviorInvocationsResponse(BaseModel):
1955
1955
  )
1956
1956
 
1957
1957
 
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
+
1958
1972
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1959
1973
  applied_to_services_ids: List[str] = Field(
1960
1974
  ...,
@@ -1975,18 +1989,14 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponseFilterValues(BaseModel):
1975
1989
  )
1976
1990
 
1977
1991
 
1978
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance(
1979
- BaseModel
1980
- ):
1981
- id: str = Field(..., title='Id')
1982
- name: str = Field(..., title='Name')
1983
- is_active: bool = Field(..., title='Is Active')
1984
- applied_to_services: List[str] = Field(..., title='Applied To Services')
1985
- tags: Dict[str, Optional[str]] = Field(..., title='Tags')
1986
- created_at: AwareDatetime = Field(..., title='Created At')
1987
- creator: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
1988
- updated_at: AwareDatetime = Field(..., title='Updated At')
1989
- updated_by: AmigoLibMongoCollectionsDynamicBehaviorSetDynamicBehaviorSetUserInfo
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
+ )
1990
2000
 
1991
2001
 
1992
2002
  class DynamicBehaviorSetUpdateDynamicBehaviorSetRequestAppliedToService(
@@ -10772,19 +10782,19 @@ class OrganizationCreateServiceHierarchicalStateMachineResponse(BaseModel):
10772
10782
  )
10773
10783
 
10774
10784
 
10775
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState(
10785
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState(
10776
10786
  AnnotationStateInputNextState
10777
10787
  ):
10778
10788
  pass
10779
10789
 
10780
10790
 
10781
- class OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition(
10791
+ class OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition(
10782
10792
  BaseModel
10783
10793
  ):
10784
10794
  description: str = Field(..., min_length=1)
10785
10795
  next_state: Union[
10786
10796
  StateOrRefName,
10787
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitConditionNextState,
10797
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitConditionNextState,
10788
10798
  ] = Field(..., title='Next State')
10789
10799
 
10790
10800
 
@@ -10952,6 +10962,13 @@ class RoleModifyRoleResponse(BaseModel):
10952
10962
  )
10953
10963
 
10954
10964
 
10965
+ class ServiceCreateServiceRequestVersionSetLLMConfig(BaseModel):
10966
+ llm_name: LLMType
10967
+ params: Optional[Dict[str, Any]] = Field(
10968
+ {}, description='LLM-specific parameters to use.', title='Params'
10969
+ )
10970
+
10971
+
10955
10972
  class ServiceCreateServiceResponse(BaseModel):
10956
10973
  id: str = Field(..., description='The ID of the newly created service.', title='Id')
10957
10974
 
@@ -11011,13 +11028,6 @@ class ServiceUpdateServiceRequest(BaseModel):
11011
11028
  )
11012
11029
 
11013
11030
 
11014
- class ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig(BaseModel):
11015
- llm_name: LLMType
11016
- params: Optional[Dict[str, Any]] = Field(
11017
- {}, description='LLM-specific parameters to use.', title='Params'
11018
- )
11019
-
11020
-
11021
11031
  class SimulationCreateSimulationPersonaRequestInitialVersion(BaseModel):
11022
11032
  background: str = Field(
11023
11033
  ..., description='The background of the simulation persona.', min_length=1
@@ -11205,6 +11215,40 @@ class SimulationGetSimulationPersonasResponseFilterValues(BaseModel):
11205
11215
  )
11206
11216
 
11207
11217
 
11218
+ class SimulationGetSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11219
+ id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11220
+ name: str = Field(
11221
+ ..., description='The name of the simulation persona.', title='Name'
11222
+ )
11223
+ role: str = Field(
11224
+ ..., description='The role of the simulation persona.', title='Role'
11225
+ )
11226
+ tags: Dict[str, Optional[str]] = Field(
11227
+ ..., description='The tags of the simulation persona.', title='Tags'
11228
+ )
11229
+ is_deleted: bool = Field(
11230
+ ...,
11231
+ description='Whether the simulation persona is deleted.',
11232
+ title='Is Deleted',
11233
+ )
11234
+ created_at: AwareDatetime = Field(
11235
+ ...,
11236
+ description='The timestamp when the simulation persona was created.',
11237
+ title='Created At',
11238
+ )
11239
+ creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11240
+ ..., description='The user who created the simulation persona.'
11241
+ )
11242
+ updated_at: AwareDatetime = Field(
11243
+ ...,
11244
+ description='The timestamp when the simulation persona was last updated.',
11245
+ title='Updated At',
11246
+ )
11247
+ updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11248
+ Field(..., description='The user who last updated the simulation persona.')
11249
+ )
11250
+
11251
+
11208
11252
  class SimulationGetSimulationScenarioVersionsResponse(BaseModel):
11209
11253
  simulation_scenario_versions: List[SimulationScenarioVersion] = Field(
11210
11254
  ...,
@@ -11236,6 +11280,37 @@ class SimulationGetSimulationScenariosResponseFilterValues(BaseModel):
11236
11280
  )
11237
11281
 
11238
11282
 
11283
+ class SimulationGetSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11284
+ id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11285
+ name: str = Field(
11286
+ ..., description='The name of the simulation scenario.', title='Name'
11287
+ )
11288
+ tags: Dict[str, Optional[str]] = Field(
11289
+ ..., description='The tags of the simulation scenario.', title='Tags'
11290
+ )
11291
+ is_deleted: bool = Field(
11292
+ ...,
11293
+ description='Whether the simulation scenario is deleted.',
11294
+ title='Is Deleted',
11295
+ )
11296
+ created_at: AwareDatetime = Field(
11297
+ ...,
11298
+ description='The timestamp when the simulation scenario was created.',
11299
+ title='Created At',
11300
+ )
11301
+ creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11302
+ Field(..., description='The user who created the simulation scenario.')
11303
+ )
11304
+ updated_at: AwareDatetime = Field(
11305
+ ...,
11306
+ description='The timestamp when the simulation scenario was last updated.',
11307
+ title='Updated At',
11308
+ )
11309
+ updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11310
+ Field(..., description='The user who last updated the simulation scenario.')
11311
+ )
11312
+
11313
+
11239
11314
  class SimulationGetSimulationUnitTestSetRunArtifactsResponse(BaseModel):
11240
11315
  presigned_url: str = Field(
11241
11316
  ...,
@@ -11324,68 +11399,21 @@ class SimulationGetSimulationUnitTestsResponseFilterValues(BaseModel):
11324
11399
  )
11325
11400
 
11326
11401
 
11327
- class SimulationSearchSimulationPersonasResponseSimulationPersonaInstance(BaseModel):
11328
- id: str = Field(..., description='The ID of the simulation persona.', title='Id')
11329
- name: str = Field(
11330
- ..., description='The name of the simulation persona.', title='Name'
11331
- )
11332
- role: str = Field(
11333
- ..., description='The role of the simulation persona.', title='Role'
11334
- )
11335
- tags: Dict[str, Optional[str]] = Field(
11336
- ..., description='The tags of the simulation persona.', title='Tags'
11337
- )
11338
- is_deleted: bool = Field(
11339
- ...,
11340
- description='Whether the simulation persona is deleted.',
11341
- title='Is Deleted',
11342
- )
11343
- created_at: AwareDatetime = Field(
11344
- ...,
11345
- description='The timestamp when the simulation persona was created.',
11346
- title='Created At',
11347
- )
11348
- creator: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = Field(
11349
- ..., description='The user who created the simulation persona.'
11350
- )
11351
- updated_at: AwareDatetime = Field(
11352
- ...,
11353
- description='The timestamp when the simulation persona was last updated.',
11354
- title='Updated At',
11355
- )
11356
- updated_by: AmigoLibMongoCollectionsSimulationPersonaSimulationPersonaUserInfo = (
11357
- Field(..., description='The user who last updated the simulation persona.')
11402
+ class SimulationSearchSimulationPersonasResponse(BaseModel):
11403
+ simulation_personas: List[
11404
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
11405
+ ] = Field(
11406
+ ..., description='The list of simulation personas.', title='Simulation Personas'
11358
11407
  )
11359
11408
 
11360
11409
 
11361
- class SimulationSearchSimulationScenariosResponseSimulationScenarioInstance(BaseModel):
11362
- id: str = Field(..., description='The ID of the simulation scenario.', title='Id')
11363
- name: str = Field(
11364
- ..., description='The name of the simulation scenario.', title='Name'
11365
- )
11366
- tags: Dict[str, Optional[str]] = Field(
11367
- ..., description='The tags of the simulation scenario.', title='Tags'
11368
- )
11369
- is_deleted: bool = Field(
11370
- ...,
11371
- description='Whether the simulation scenario is deleted.',
11372
- title='Is Deleted',
11373
- )
11374
- created_at: AwareDatetime = Field(
11375
- ...,
11376
- description='The timestamp when the simulation scenario was created.',
11377
- title='Created At',
11378
- )
11379
- creator: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11380
- Field(..., description='The user who created the simulation scenario.')
11381
- )
11382
- updated_at: AwareDatetime = Field(
11410
+ class SimulationSearchSimulationScenariosResponse(BaseModel):
11411
+ simulation_scenarios: List[
11412
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
11413
+ ] = Field(
11383
11414
  ...,
11384
- description='The timestamp when the simulation scenario was last updated.',
11385
- title='Updated At',
11386
- )
11387
- updated_by: AmigoLibMongoCollectionsSimulationScenarioSimulationScenarioUserInfo = (
11388
- Field(..., description='The user who last updated the simulation scenario.')
11415
+ description='The list of simulation scenarios.',
11416
+ title='Simulation Scenarios',
11389
11417
  )
11390
11418
 
11391
11419
 
@@ -11515,22 +11543,6 @@ class ToolGetToolsResponseFilterValues(BaseModel):
11515
11543
  )
11516
11544
 
11517
11545
 
11518
- class ToolInvokeToolVersionRequestInputInvocationMode(Enum):
11519
- regular = 'regular'
11520
- conversation_simulation = 'conversation-simulation'
11521
-
11522
-
11523
- class ToolInvokeToolVersionRequestInput(BaseModel):
11524
- input_parameters: Dict[str, Any] = Field(
11525
- ...,
11526
- description='The input parameters for the tool invocation.',
11527
- title='Input Parameters',
11528
- )
11529
- invocation_mode: ToolInvokeToolVersionRequestInputInvocationMode = Field(
11530
- ..., description='The mode of invocation.', title='Invocation Mode'
11531
- )
11532
-
11533
-
11534
11546
  class ToolModifyToolRequest(BaseModel):
11535
11547
  description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
11536
11548
  None, description='A description of this tool. Only updates if not-null.'
@@ -11573,34 +11585,19 @@ class ToolPublishToolVersionResponse(BaseModel):
11573
11585
  )
11574
11586
 
11575
11587
 
11576
- class ToolTestToolRequest(BaseModel):
11577
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
11578
- ...,
11579
- description='The list of inputs for the tool invocation.',
11580
- max_length=10,
11581
- min_length=1,
11582
- title='Inputs',
11583
- )
11584
- commit_branch: str = Field(
11585
- ...,
11586
- description='The branch in the tools repo whose tip will be tested.',
11587
- title='Commit Branch',
11588
- )
11589
- project_path: str = Field(
11590
- ...,
11591
- description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
11592
- pattern='^[-\\w\\d_/]+$',
11593
- title='Project Path',
11594
- )
11595
- required_envvars: Dict[str, str] = Field(
11588
+ class ToolTestToolRequestInputInvocationMode(Enum):
11589
+ regular = 'regular'
11590
+ conversation_simulation = 'conversation-simulation'
11591
+
11592
+
11593
+ class ToolTestToolRequestInput(BaseModel):
11594
+ input_parameters: Dict[str, Any] = Field(
11596
11595
  ...,
11597
- description='The environment variables required for the tool to run.',
11598
- title='Required Envvars',
11596
+ description='The input parameters for the tool invocation.',
11597
+ title='Input Parameters',
11599
11598
  )
11600
- required_secret_envvars: Dict[str, str] = Field(
11601
- ...,
11602
- description='The secret environment variables required for the tool to run.',
11603
- title='Required Secret Envvars',
11599
+ invocation_mode: ToolTestToolRequestInputInvocationMode = Field(
11600
+ ..., description='The mode of invocation.', title='Invocation Mode'
11604
11601
  )
11605
11602
 
11606
11603
 
@@ -11690,6 +11687,31 @@ class UserGetUsersResponseUserInstanceUserStats(BaseModel):
11690
11687
  )
11691
11688
 
11692
11689
 
11690
+ class UserSearchUsersResponseUserInstance(BaseModel):
11691
+ org_id: str = Field(
11692
+ ...,
11693
+ description='The ID of the organization that this user belongs to.',
11694
+ title='Org Id',
11695
+ )
11696
+ user_id: str = Field(
11697
+ ..., description='The identifier of the user.', title='User Id'
11698
+ )
11699
+ first_name: str = Field(
11700
+ ..., description='The first name of the user.', title='First Name'
11701
+ )
11702
+ last_name: str = Field(
11703
+ ..., description='The last name of the user.', title='Last Name'
11704
+ )
11705
+ email: str = Field(..., description='Email of the user.', title='Email')
11706
+ user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
11707
+ ..., description="Statistics about the user's usage of the Amigo platform."
11708
+ )
11709
+ role: str = Field(..., description='The ID of the role of the user.', title='Role')
11710
+ preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
11711
+ ..., description='The preferences of the user.'
11712
+ )
11713
+
11714
+
11693
11715
  class UserSignInWithApiKeyResponse(BaseModel):
11694
11716
  id_token: str = Field(
11695
11717
  ...,
@@ -12111,7 +12133,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
12111
12133
  [], description='The IDs of the messages to retrieve.', title='Id'
12112
12134
  )
12113
12135
  message_type: Optional[List[MessageType]] = Field(
12114
- ['user-message', 'agent-message', 'external-event'],
12136
+ ['external-event', 'agent-message', 'user-message'],
12115
12137
  description='The type of messages to retrieve.',
12116
12138
  title='Message Type',
12117
12139
  )
@@ -13556,7 +13578,7 @@ class ActionStateTransitionLog(BaseModel):
13556
13578
  description='Name of the previous state to transition from.',
13557
13579
  title='Previous State',
13558
13580
  )
13559
- previous_service_hierarchical_state_machine_version_info: List = Field(
13581
+ previous_service_hierarchical_state_machine_version_info: List[Any] = Field(
13560
13582
  ...,
13561
13583
  description='The identifier of the service hierarchical state machine that the previous state is in.',
13562
13584
  max_length=2,
@@ -13566,7 +13588,7 @@ class ActionStateTransitionLog(BaseModel):
13566
13588
  next_state: str = Field(
13567
13589
  ..., description='Name of the next state to transition to.', title='Next State'
13568
13590
  )
13569
- next_service_hierarchical_state_machine_version_info: List = Field(
13591
+ next_service_hierarchical_state_machine_version_info: List[Any] = Field(
13570
13592
  ...,
13571
13593
  description='The identifier of the service hierarchical state machine that the next state is in.',
13572
13594
  max_length=2,
@@ -13654,7 +13676,7 @@ class DecisionStateTransitionLog(BaseModel):
13654
13676
  description='Name of the previous state to transition from.',
13655
13677
  title='Previous State',
13656
13678
  )
13657
- previous_service_hierarchical_state_machine_version_info: List = Field(
13679
+ previous_service_hierarchical_state_machine_version_info: List[Any] = Field(
13658
13680
  ...,
13659
13681
  description='The identifier of the service hierarchical state machine that the previous state is in.',
13660
13682
  max_length=2,
@@ -13664,7 +13686,7 @@ class DecisionStateTransitionLog(BaseModel):
13664
13686
  next_state: str = Field(
13665
13687
  ..., description='Name of the next state to transition to.', title='Next State'
13666
13688
  )
13667
- next_service_hierarchical_state_machine_version_info: List = Field(
13689
+ next_service_hierarchical_state_machine_version_info: List[Any] = Field(
13668
13690
  ...,
13669
13691
  description='The identifier of the service hierarchical state machine that the next state is in.',
13670
13692
  max_length=2,
@@ -13837,7 +13859,7 @@ class ReflectionStateTransitionLog(BaseModel):
13837
13859
  description='Name of the previous state to transition from.',
13838
13860
  title='Previous State',
13839
13861
  )
13840
- previous_service_hierarchical_state_machine_version_info: List = Field(
13862
+ previous_service_hierarchical_state_machine_version_info: List[Any] = Field(
13841
13863
  ...,
13842
13864
  description='The identifier of the service hierarchical state machine that the previous state is in.',
13843
13865
  max_length=2,
@@ -13847,7 +13869,7 @@ class ReflectionStateTransitionLog(BaseModel):
13847
13869
  next_state: str = Field(
13848
13870
  ..., description='Name of the next state to transition to.', title='Next State'
13849
13871
  )
13850
- next_service_hierarchical_state_machine_version_info: List = Field(
13872
+ next_service_hierarchical_state_machine_version_info: List[Any] = Field(
13851
13873
  ...,
13852
13874
  description='The identifier of the service hierarchical state machine that the next state is in.',
13853
13875
  max_length=2,
@@ -13917,9 +13939,9 @@ class ServiceInstance(BaseModel):
13917
13939
  agent_id: str = Field(
13918
13940
  ..., description='The ID of the agent that this service uses.', title='Agent Id'
13919
13941
  )
13920
- tags: List[
13921
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13922
- ] = Field(..., description='The tags of the service.', title='Tags')
13942
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13943
+ ..., description='The tags of the service.', title='Tags'
13944
+ )
13923
13945
 
13924
13946
 
13925
13947
  class SimulationConversationInvocationSource(BaseModel):
@@ -13970,9 +13992,7 @@ class SimulationUnitTestSet(BaseModel):
13970
13992
  description='Whether the unit test set has been deleted.',
13971
13993
  title='Is Deleted',
13972
13994
  )
13973
- tags: List[
13974
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
13975
- ] = Field(
13995
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
13976
13996
  ..., description='The tags of the simulation unit test set.', title='Tags'
13977
13997
  )
13978
13998
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14011,9 +14031,7 @@ class SimulationUnitTestSetInstance(BaseModel):
14011
14031
  description='Whether the unit test set has been deleted.',
14012
14032
  title='Is Deleted',
14013
14033
  )
14014
- tags: List[
14015
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14016
- ] = Field(
14034
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14017
14035
  ..., description='The tags of the simulation unit test set.', title='Tags'
14018
14036
  )
14019
14037
  creator: AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetUserInfo
@@ -14129,9 +14147,9 @@ class ToolInstance(BaseModel):
14129
14147
  description='A list of encrypted environment variables that some versions of this tool uses.',
14130
14148
  title='Secret Envvars',
14131
14149
  )
14132
- tags: List[
14133
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
14134
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
14150
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
14151
+ ..., description='The tags of the simulation persona.', title='Tags'
14152
+ )
14135
14153
 
14136
14154
 
14137
14155
  class ToolVersionInstance(BaseModel):
@@ -14144,7 +14162,7 @@ class ToolVersionInstance(BaseModel):
14144
14162
  description='The ID of the tool that this version belongs to.',
14145
14163
  title='Tool Id',
14146
14164
  )
14147
- version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
14165
+ version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
14148
14166
  ..., description='The version of the tool.'
14149
14167
  )
14150
14168
  required_envvars: List[str] = Field(
@@ -14225,14 +14243,14 @@ class VersionSetInfo(BaseModel):
14225
14243
  description='The name of the version set. If the value is `unknown`, it means the conversation was created before this field was introduced and the version set name cannot be retroactively determined.',
14226
14244
  title='Name',
14227
14245
  )
14228
- agent_version_info: List = Field(
14246
+ agent_version_info: List[Any] = Field(
14229
14247
  ...,
14230
14248
  description='The ID of the agent and version number used in this conversation.',
14231
14249
  max_length=2,
14232
14250
  min_length=2,
14233
14251
  title='Agent Version Info',
14234
14252
  )
14235
- service_hierarchical_state_machine_version_info: List = Field(
14253
+ service_hierarchical_state_machine_version_info: List[Any] = Field(
14236
14254
  ...,
14237
14255
  description='The ID of the state machine and version number used in this conversation.',
14238
14256
  max_length=2,
@@ -14460,7 +14478,7 @@ class DynamicBehaviorSetGetDynamicBehaviorSetVersionsResponse(BaseModel):
14460
14478
 
14461
14479
  class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14462
14480
  dynamic_behavior_sets: List[
14463
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14481
+ DynamicBehaviorSetGetDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14464
14482
  ] = Field(
14465
14483
  ...,
14466
14484
  description='The retrieved dynamic behavior sets.',
@@ -14484,16 +14502,6 @@ class DynamicBehaviorSetGetDynamicBehaviorSetsResponse(BaseModel):
14484
14502
  )
14485
14503
 
14486
14504
 
14487
- class DynamicBehaviorSetSearchDynamicBehaviorSetsResponse(BaseModel):
14488
- dynamic_behavior_sets: List[
14489
- DynamicBehaviorSetSearchDynamicBehaviorSetsResponseDynamicBehaviorSetInstance
14490
- ] = Field(
14491
- ...,
14492
- description='The retrieved dynamic behavior sets.',
14493
- title='Dynamic Behavior Sets',
14494
- )
14495
-
14496
-
14497
14505
  class MetricCreateMetricRequest(BaseModel):
14498
14506
  name: str = Field(
14499
14507
  ...,
@@ -14802,9 +14810,9 @@ class ServiceCreateServiceRequestVersionSet(BaseModel):
14802
14810
  description='The version number of the state machine to be used. If None, the latest state machine version will be used.',
14803
14811
  title='Service Hierarchical State Machine Version Number',
14804
14812
  )
14805
- llm_model_preferences: Dict[
14806
- str, ServiceUpsertServiceVersionSetRequestVersionSetLLMConfig
14807
- ] = Field(..., title='Llm Model Preferences')
14813
+ llm_model_preferences: Dict[str, ServiceCreateServiceRequestVersionSetLLMConfig] = (
14814
+ Field(..., title='Llm Model Preferences')
14815
+ )
14808
14816
 
14809
14817
 
14810
14818
  class ServiceGetServicesResponse(BaseModel):
@@ -14896,7 +14904,7 @@ class SimulationCreateSimulationUnitTestSetRequest(BaseModel):
14896
14904
 
14897
14905
  class SimulationGetSimulationPersonasResponse(BaseModel):
14898
14906
  simulation_personas: List[
14899
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14907
+ SimulationGetSimulationPersonasResponseSimulationPersonaInstance
14900
14908
  ] = Field(
14901
14909
  ..., description='The list of simulation personas.', title='Simulation Personas'
14902
14910
  )
@@ -14920,7 +14928,7 @@ class SimulationGetSimulationPersonasResponse(BaseModel):
14920
14928
 
14921
14929
  class SimulationGetSimulationScenariosResponse(BaseModel):
14922
14930
  simulation_scenarios: List[
14923
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14931
+ SimulationGetSimulationScenariosResponseSimulationScenarioInstance
14924
14932
  ] = Field(
14925
14933
  ...,
14926
14934
  description='The list of simulation scenarios.',
@@ -14968,24 +14976,6 @@ class SimulationGetSimulationUnitTestSetsResponse(BaseModel):
14968
14976
  )
14969
14977
 
14970
14978
 
14971
- class SimulationSearchSimulationPersonasResponse(BaseModel):
14972
- simulation_personas: List[
14973
- SimulationSearchSimulationPersonasResponseSimulationPersonaInstance
14974
- ] = Field(
14975
- ..., description='The list of simulation personas.', title='Simulation Personas'
14976
- )
14977
-
14978
-
14979
- class SimulationSearchSimulationScenariosResponse(BaseModel):
14980
- simulation_scenarios: List[
14981
- SimulationSearchSimulationScenariosResponseSimulationScenarioInstance
14982
- ] = Field(
14983
- ...,
14984
- description='The list of simulation scenarios.',
14985
- title='Simulation Scenarios',
14986
- )
14987
-
14988
-
14989
14979
  class SimulationSearchSimulationUnitTestSetResponse(BaseModel):
14990
14980
  simulation_unit_test_sets: List[SimulationUnitTestSet] = Field(
14991
14981
  ...,
@@ -15040,7 +15030,7 @@ class ToolGetToolsResponse(BaseModel):
15040
15030
 
15041
15031
 
15042
15032
  class ToolInvokeToolVersionRequest(BaseModel):
15043
- inputs: List[ToolInvokeToolVersionRequestInput] = Field(
15033
+ inputs: List[ToolTestToolRequestInput] = Field(
15044
15034
  ...,
15045
15035
  description='The list of inputs for the tool invocation.',
15046
15036
  max_length=10,
@@ -15061,6 +15051,37 @@ class ToolModifyToolEnvvarsRequest(BaseModel):
15061
15051
  deletes: Optional[List[DeleteRequest]] = Field([], title='Deletes')
15062
15052
 
15063
15053
 
15054
+ class ToolTestToolRequest(BaseModel):
15055
+ inputs: List[ToolTestToolRequestInput] = Field(
15056
+ ...,
15057
+ description='The list of inputs for the tool invocation.',
15058
+ max_length=10,
15059
+ min_length=1,
15060
+ title='Inputs',
15061
+ )
15062
+ commit_branch: str = Field(
15063
+ ...,
15064
+ description='The branch in the tools repo whose tip will be tested.',
15065
+ title='Commit Branch',
15066
+ )
15067
+ project_path: str = Field(
15068
+ ...,
15069
+ description='The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.',
15070
+ pattern='^[-\\w\\d_/]+$',
15071
+ title='Project Path',
15072
+ )
15073
+ required_envvars: Dict[str, str] = Field(
15074
+ ...,
15075
+ description='The environment variables required for the tool to run.',
15076
+ title='Required Envvars',
15077
+ )
15078
+ required_secret_envvars: Dict[str, str] = Field(
15079
+ ...,
15080
+ description='The secret environment variables required for the tool to run.',
15081
+ title='Required Secret Envvars',
15082
+ )
15083
+
15084
+
15064
15085
  ToolTestToolResponse = ToolInvokeToolVersionResponse
15065
15086
 
15066
15087
 
@@ -15101,33 +15122,22 @@ class UserGetUserModelResponse(BaseModel):
15101
15122
  )
15102
15123
 
15103
15124
 
15104
- class UserGetUsersResponseUserInstance(BaseModel):
15105
- org_id: str = Field(
15106
- ...,
15107
- description='The ID of the organization that this user belongs to.',
15108
- title='Org Id',
15109
- )
15110
- user_id: str = Field(
15111
- ..., description='The identifier of the user.', title='User Id'
15112
- )
15113
- first_name: str = Field(
15114
- ..., description='The first name of the user.', title='First Name'
15115
- )
15116
- last_name: str = Field(
15117
- ..., description='The last name of the user.', title='Last Name'
15125
+ class UserGetUsersResponse(BaseModel):
15126
+ users: List[UserSearchUsersResponseUserInstance] = Field(
15127
+ ..., description='Users in this organization.', title='Users'
15118
15128
  )
15119
- email: str = Field(..., description='Email of the user.', title='Email')
15120
- user_stats: UserGetUsersResponseUserInstanceUserStats = Field(
15121
- ..., description="Statistics about the user's usage of the Amigo platform."
15129
+ has_more: bool = Field(
15130
+ ..., description='Whether there are more users to retrieve.', title='Has More'
15122
15131
  )
15123
- role: str = Field(..., description='The ID of the role of the user.', title='Role')
15124
- preferences: AmigoLibMongoCollectionsUserUserPreferences = Field(
15125
- ..., description='The preferences of the user.'
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',
15126
15136
  )
15127
15137
 
15128
15138
 
15129
15139
  class UserSearchUsersResponse(BaseModel):
15130
- users: List[UserGetUsersResponseUserInstance] = Field(
15140
+ users: List[UserSearchUsersResponseUserInstance] = Field(
15131
15141
  ..., description='Users in this organization.', title='Users'
15132
15142
  )
15133
15143
 
@@ -15227,7 +15237,7 @@ class ActionStateInput(BaseModel):
15227
15237
  Field(..., title='Boundary Constraints')
15228
15238
  )
15229
15239
  exit_conditions: List[
15230
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15240
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15231
15241
  ] = Field(..., title='Exit Conditions')
15232
15242
  action_tool_call_specs: List[ToolCallSpecInput] = Field(
15233
15243
  ..., title='Action Tool Call Specs'
@@ -15336,7 +15346,7 @@ class DecisionStateInput(BaseModel):
15336
15346
  type: Literal['decision'] = Field(..., title='Type')
15337
15347
  name: str = Field(..., pattern='^[A-Za-z0-9_]+$')
15338
15348
  exit_conditions: List[
15339
- OrganizationCreateServiceHierarchicalStateMachineVersionRequestActionStateExitCondition
15349
+ OrganizationCreateServiceHierarchicalStateMachineVersionRequestDecisionStateExitCondition
15340
15350
  ] = Field(..., title='Exit Conditions')
15341
15351
  decision_guidelines: List[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
15342
15352
  ..., title='Decision Guidelines'
@@ -15377,9 +15387,9 @@ class Metric(BaseModel):
15377
15387
  additional_notes: Optional[str] = Field(
15378
15388
  ..., description='Additional notes about the metric.', title='Additional Notes'
15379
15389
  )
15380
- tags: List[
15381
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15382
- ] = Field(..., description='The tags of the metric.', title='Tags')
15390
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15391
+ ..., description='The tags of the metric.', title='Tags'
15392
+ )
15383
15393
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15384
15394
  ..., description='The user who created the metric.'
15385
15395
  )
@@ -15447,9 +15457,9 @@ class MetricInstance(BaseModel):
15447
15457
  additional_notes: Optional[str] = Field(
15448
15458
  ..., description='Additional notes about the metric.', title='Additional Notes'
15449
15459
  )
15450
- tags: List[
15451
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15452
- ] = Field(..., description='The tags of the metric.', title='Tags')
15460
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15461
+ ..., description='The tags of the metric.', title='Tags'
15462
+ )
15453
15463
  creator: AmigoLibMongoCollectionsMetricMetricUserInfo = Field(
15454
15464
  ..., description='The user who created the metric.'
15455
15465
  )
@@ -15587,7 +15597,7 @@ class ServiceHierarchicalStateMachineInstance(BaseModel):
15587
15597
  description='The state the user will be in when the session ends. This must be an action state.',
15588
15598
  title='Terminal State',
15589
15599
  )
15590
- references: Dict[str, List] = Field(
15600
+ references: Dict[str, List[Any]] = Field(
15591
15601
  ...,
15592
15602
  description="A dictionary of other service hierarchical state machine versions that this references to. This field is a map of the reference name to the machine's ID and its version number.",
15593
15603
  title='References',
@@ -15649,9 +15659,9 @@ class SimulationUnitTest(BaseModel):
15649
15659
  is_deleted: bool = Field(
15650
15660
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15651
15661
  )
15652
- tags: List[
15653
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15654
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15662
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15663
+ ..., description='The tags of the simulation persona.', title='Tags'
15664
+ )
15655
15665
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15656
15666
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15657
15667
 
@@ -15694,9 +15704,9 @@ class SimulationUnitTestInstance(BaseModel):
15694
15704
  is_deleted: bool = Field(
15695
15705
  ..., description='Whether the unit test has been deleted.', title='Is Deleted'
15696
15706
  )
15697
- tags: List[
15698
- AmigoLibMongoCollectionsSimulationUnitTestSetSimulationUnitTestSetTag
15699
- ] = Field(..., description='The tags of the simulation persona.', title='Tags')
15707
+ tags: List[AmigoLibMongoCollectionsServiceServiceTag] = Field(
15708
+ ..., description='The tags of the simulation persona.', title='Tags'
15709
+ )
15700
15710
  creator: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15701
15711
  updated_by: AmigoLibMongoCollectionsSimulationUnitTestSimulationUnitTestUserInfo
15702
15712
 
@@ -15708,14 +15718,14 @@ class UnitTestRunSpec(BaseModel):
15708
15718
  run_count: int = Field(
15709
15719
  ..., description='The number of times to run the unit test.', title='Run Count'
15710
15720
  )
15711
- service_hierarchical_state_machine_version_info: List = Field(
15721
+ service_hierarchical_state_machine_version_info: List[Any] = Field(
15712
15722
  ...,
15713
15723
  description='The version of the service hierarchical state machine that the unit test runs on.',
15714
15724
  max_length=2,
15715
15725
  min_length=2,
15716
15726
  title='Service Hierarchical State Machine Version Info',
15717
15727
  )
15718
- agent_version_info: List = Field(
15728
+ agent_version_info: List[Any] = Field(
15719
15729
  ...,
15720
15730
  description='The version of the agent that the unit test runs on.',
15721
15731
  max_length=2,
@@ -15922,7 +15932,7 @@ class OrganizationCreateServiceHierarchicalStateMachineVersionRequest(BaseModel)
15922
15932
  description='The state the user will be in when the session ends. This must be an action state, and must be an internal state.',
15923
15933
  pattern='^[A-Za-z0-9_]+$',
15924
15934
  )
15925
- references: Dict[str, List] = Field(
15935
+ references: Dict[str, List[Any]] = Field(
15926
15936
  ...,
15927
15937
  description="A dictionary of other service hierarchical state machines that this references to. This field is a map of the reference name to the machine's ID and its version number.",
15928
15938
  title='References',
@@ -16184,7 +16194,7 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
16184
16194
  )
16185
16195
 
16186
16196
 
16187
- class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16197
+ class ToolSearchToolInvocationsResponseToolInvocationInstance(BaseModel):
16188
16198
  id: str = Field(..., description='The ID of the tool invocation.', title='Id')
16189
16199
  org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
16190
16200
  created_at: Optional[AwareDatetime] = Field(None, title='Created At')
@@ -16206,33 +16216,11 @@ class ToolGetToolInvocationsResponseToolInvocationInstance(BaseModel):
16206
16216
  tool_id: str = Field(
16207
16217
  ..., description='The ID of the tool that was invoked.', title='Tool Id'
16208
16218
  )
16209
- tool_version: AmigoLibMongoCollectionsToolVersionToolVersionVersion = Field(
16219
+ tool_version: AmigoLibMongoCollectionsToolInvocationToolInvocationVersion = Field(
16210
16220
  ..., description='The version of the tool that was invoked.'
16211
16221
  )
16212
16222
 
16213
16223
 
16214
- class ToolSearchToolInvocationsResponse(BaseModel):
16215
- tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16216
- Field(
16217
- ..., description='The list of tool invocations.', title='Tool Invocations'
16218
- )
16219
- )
16220
-
16221
-
16222
- class UserGetUsersResponse(BaseModel):
16223
- users: List[UserGetUsersResponseUserInstance] = Field(
16224
- ..., description='Users in this organization.', title='Users'
16225
- )
16226
- has_more: bool = Field(
16227
- ..., description='Whether there are more users to retrieve.', title='Has More'
16228
- )
16229
- continuation_token: Optional[int] = Field(
16230
- ...,
16231
- description='A token to supply to the next request to retrieve the next page of users. Only populated if `has_more` is `True`.',
16232
- title='Continuation Token',
16233
- )
16234
-
16235
-
16236
16224
  class SimulationUnitTestSetRunInstance(BaseModel):
16237
16225
  org_id: str = Field(..., title='Org Id')
16238
16226
  id: str = Field(..., title='Id')
@@ -16332,7 +16320,7 @@ class SimulationGetSimulationUnitTestSetRunsResponse(BaseModel):
16332
16320
 
16333
16321
 
16334
16322
  class ToolGetToolInvocationsResponse(BaseModel):
16335
- tool_invocations: List[ToolGetToolInvocationsResponseToolInvocationInstance] = (
16323
+ tool_invocations: List[ToolSearchToolInvocationsResponseToolInvocationInstance] = (
16336
16324
  Field(
16337
16325
  ..., description='The list of tool invocations.', title='Tool Invocations'
16338
16326
  )
@@ -16347,3 +16335,11 @@ class ToolGetToolInvocationsResponse(BaseModel):
16347
16335
  description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
16348
16336
  title='Continuation Token',
16349
16337
  )
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.67.0
3
+ Version: 0.69.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=_Vt20XUAV719JwAfR87fdDdt_AzUTzcNx0cHi5VVTdA,139
1
+ amigo_sdk/__init__.py,sha256=f92ou06jG_dF-bjS0-u3e5y3NCawwALx_NrF_xmcEnw,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=byPdfHdBjkFPxltnyGsxQEo1yl8pF9x53IIF_OKJWzE,456940
9
+ amigo_sdk/generated/model.py,sha256=D0il2vJlghD_VpR9544TJLTunouNRIshwInQV9jNFBI,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.67.0.dist-info/METADATA,sha256=qTyi_Kit19ZHi0PkFa6POvNZDZOoiBvsCCnetJZc40s,8499
15
- amigo_sdk-0.67.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
- amigo_sdk-0.67.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
- amigo_sdk-0.67.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
- amigo_sdk-0.67.0.dist-info/RECORD,,
14
+ amigo_sdk-0.69.0.dist-info/METADATA,sha256=J5S8JJ1vkUxh-b00MjaGH_60uwEA6lS7Ies9BFf-kRM,8499
15
+ amigo_sdk-0.69.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
16
+ amigo_sdk-0.69.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
17
+ amigo_sdk-0.69.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
18
+ amigo_sdk-0.69.0.dist-info/RECORD,,