amigo_sdk 0.33.0__py3-none-any.whl → 0.35.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.
Potentially problematic release.
This version of amigo_sdk might be problematic. Click here for more details.
- amigo_sdk/__init__.py +1 -1
- amigo_sdk/generated/model.py +370 -3
- {amigo_sdk-0.33.0.dist-info → amigo_sdk-0.35.0.dist-info}/METADATA +1 -1
- {amigo_sdk-0.33.0.dist-info → amigo_sdk-0.35.0.dist-info}/RECORD +7 -7
- {amigo_sdk-0.33.0.dist-info → amigo_sdk-0.35.0.dist-info}/WHEEL +0 -0
- {amigo_sdk-0.33.0.dist-info → amigo_sdk-0.35.0.dist-info}/entry_points.txt +0 -0
- {amigo_sdk-0.33.0.dist-info → amigo_sdk-0.35.0.dist-info}/licenses/LICENSE +0 -0
amigo_sdk/__init__.py
CHANGED
amigo_sdk/generated/model.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: <stdin>
|
|
3
|
-
# timestamp: 2025-
|
|
3
|
+
# timestamp: 2025-10-01T22:56:24+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -240,6 +240,25 @@ class EngageUserDynamicBehaviorOverrideEvent(BaseModel):
|
|
|
240
240
|
)
|
|
241
241
|
|
|
242
242
|
|
|
243
|
+
class EngageUserInvocationMetadataInput(BaseModel):
|
|
244
|
+
type: Literal['engage-user'] = Field('engage-user', title='Type')
|
|
245
|
+
current_state_machine_and_version: List = Field(
|
|
246
|
+
...,
|
|
247
|
+
description='The ID and version of the state machine that is currently being executed.',
|
|
248
|
+
max_length=2,
|
|
249
|
+
min_length=2,
|
|
250
|
+
title='Current State Machine And Version',
|
|
251
|
+
)
|
|
252
|
+
tool_call_round_index: int = Field(
|
|
253
|
+
...,
|
|
254
|
+
description='The index of the tool call round.',
|
|
255
|
+
title='Tool Call Round Index',
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
EngageUserInvocationMetadataOutput = EngageUserInvocationMetadataInput
|
|
260
|
+
|
|
261
|
+
|
|
243
262
|
class EngageUserMessageFragmentGeneratedEvent(BaseModel):
|
|
244
263
|
type: Literal['engage-user-message-fragment-generated'] = Field(
|
|
245
264
|
'engage-user-message-fragment-generated', title='Type'
|
|
@@ -330,6 +349,49 @@ class ExtractActiveMemoriesAgentActionEvent(BaseModel):
|
|
|
330
349
|
] = Field(..., title='Queries And Responses')
|
|
331
350
|
|
|
332
351
|
|
|
352
|
+
class FailedInvocationResult(BaseModel):
|
|
353
|
+
succeeded: Literal['False'] = Field(..., title='Succeeded')
|
|
354
|
+
exception_message: str = Field(
|
|
355
|
+
...,
|
|
356
|
+
description='The message of the exception during the tool invocation.',
|
|
357
|
+
title='Exception Message',
|
|
358
|
+
)
|
|
359
|
+
exception_type: str = Field(
|
|
360
|
+
...,
|
|
361
|
+
description='The type of the exception during the tool invocation.',
|
|
362
|
+
title='Exception Type',
|
|
363
|
+
)
|
|
364
|
+
exception_stack_trace: List[str] = Field(
|
|
365
|
+
...,
|
|
366
|
+
description='The stack trace of the exception during the tool invocation.',
|
|
367
|
+
title='Exception Stack Trace',
|
|
368
|
+
)
|
|
369
|
+
duration_ms: int = Field(
|
|
370
|
+
...,
|
|
371
|
+
description='The duration of the tool invocation in milliseconds.',
|
|
372
|
+
title='Duration Ms',
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
class FailedInvocationStatus(BaseModel):
|
|
377
|
+
succeeded: Literal['False'] = Field(..., title='Succeeded')
|
|
378
|
+
exception_message: str = Field(
|
|
379
|
+
...,
|
|
380
|
+
description='The exception message if the tool invocation failed.',
|
|
381
|
+
title='Exception Message',
|
|
382
|
+
)
|
|
383
|
+
exception_type: str = Field(
|
|
384
|
+
...,
|
|
385
|
+
description='The exception type if the tool invocation failed.',
|
|
386
|
+
title='Exception Type',
|
|
387
|
+
)
|
|
388
|
+
exception_stack_trace: List[str] = Field(
|
|
389
|
+
...,
|
|
390
|
+
description='The exception stack trace if the tool invocation failed.',
|
|
391
|
+
title='Exception Stack Trace',
|
|
392
|
+
)
|
|
393
|
+
|
|
394
|
+
|
|
333
395
|
class Format(Enum):
|
|
334
396
|
text = 'text'
|
|
335
397
|
voice = 'voice'
|
|
@@ -8297,6 +8359,22 @@ class InitialUserMessageConfig(BaseModel):
|
|
|
8297
8359
|
type: Literal['user-message'] = Field(..., title='Type')
|
|
8298
8360
|
|
|
8299
8361
|
|
|
8362
|
+
class InputInvocationMode(Enum):
|
|
8363
|
+
regular = 'regular'
|
|
8364
|
+
conversation_simulation = 'conversation-simulation'
|
|
8365
|
+
|
|
8366
|
+
|
|
8367
|
+
class Input(BaseModel):
|
|
8368
|
+
input_parameters: Dict[str, Any] = Field(
|
|
8369
|
+
...,
|
|
8370
|
+
description='The input parameters for the tool invocation.',
|
|
8371
|
+
title='Input Parameters',
|
|
8372
|
+
)
|
|
8373
|
+
invocation_mode: InputInvocationMode = Field(
|
|
8374
|
+
..., description='The mode of invocation.', title='Invocation Mode'
|
|
8375
|
+
)
|
|
8376
|
+
|
|
8377
|
+
|
|
8300
8378
|
class InteractionCompleteEvent(BaseModel):
|
|
8301
8379
|
type: Literal['interaction-complete'] = Field('interaction-complete', title='Type')
|
|
8302
8380
|
message_id: str = Field(
|
|
@@ -8793,6 +8871,24 @@ class ReflectionStateOutputNextState(AnnotationStateOutputNextState):
|
|
|
8793
8871
|
pass
|
|
8794
8872
|
|
|
8795
8873
|
|
|
8874
|
+
class RegularConversationInvocationSourceInputConversationId(RootModel[str]):
|
|
8875
|
+
root: str = Field(
|
|
8876
|
+
...,
|
|
8877
|
+
description='The ID of the conversation where the tool was invoked. This conversation might not actually exist if later in the call the conversation is rolled back.',
|
|
8878
|
+
pattern='^[a-f0-9]{24}$',
|
|
8879
|
+
title='Conversation Id',
|
|
8880
|
+
)
|
|
8881
|
+
|
|
8882
|
+
|
|
8883
|
+
class RegularConversationInvocationSourceInputInteractionId(RootModel[str]):
|
|
8884
|
+
root: str = Field(
|
|
8885
|
+
...,
|
|
8886
|
+
description='The ID of the interaction where the tool was invoked. This interaction might not actually exist if later in the call the interaction is rolled back.',
|
|
8887
|
+
pattern='^[a-f0-9]{24}$',
|
|
8888
|
+
title='Interaction Id',
|
|
8889
|
+
)
|
|
8890
|
+
|
|
8891
|
+
|
|
8796
8892
|
class RelationshipToDeveloperOutput(BaseModel):
|
|
8797
8893
|
ownership: str = Field(
|
|
8798
8894
|
...,
|
|
@@ -8922,6 +9018,18 @@ class SideEffectStateTransitionLog(BaseModel):
|
|
|
8922
9018
|
)
|
|
8923
9019
|
|
|
8924
9020
|
|
|
9021
|
+
class SimulationConversationInvocationSourceInputSimulationUnitTestSetRunId(
|
|
9022
|
+
RootModel[str]
|
|
9023
|
+
):
|
|
9024
|
+
root: str = Field(
|
|
9025
|
+
..., pattern='^[a-f0-9]{24}$', title='Simulation Unit Test Set Run Id'
|
|
9026
|
+
)
|
|
9027
|
+
|
|
9028
|
+
|
|
9029
|
+
class SimulationConversationInvocationSourceInputUnitTestId(RootModel[str]):
|
|
9030
|
+
root: str = Field(..., pattern='^[a-f0-9]{24}$', title='Unit Test Id')
|
|
9031
|
+
|
|
9032
|
+
|
|
8925
9033
|
class SimulationEvaluationSource(BaseModel):
|
|
8926
9034
|
type: Literal['simulation'] = Field('simulation', title='Type')
|
|
8927
9035
|
simulation_unit_test_set_run_id: str = Field(
|
|
@@ -8992,10 +9100,58 @@ class StateOrRefName(RootModel[str]):
|
|
|
8992
9100
|
root: str = Field(..., pattern='^[A-Za-z0-9_]+$')
|
|
8993
9101
|
|
|
8994
9102
|
|
|
9103
|
+
class StateTransitionInvocationMetadataInput(BaseModel):
|
|
9104
|
+
type: Literal['state-transition'] = Field('state-transition', title='Type')
|
|
9105
|
+
current_state_machine_and_version: List = Field(
|
|
9106
|
+
...,
|
|
9107
|
+
description='The ID and version of the state machine that is currently being executed.',
|
|
9108
|
+
max_length=2,
|
|
9109
|
+
min_length=2,
|
|
9110
|
+
title='Current State Machine And Version',
|
|
9111
|
+
)
|
|
9112
|
+
state_name: str = Field(
|
|
9113
|
+
...,
|
|
9114
|
+
description='The name of the state during which the tool was invoked.',
|
|
9115
|
+
title='State Name',
|
|
9116
|
+
)
|
|
9117
|
+
state_transition_index: int = Field(
|
|
9118
|
+
...,
|
|
9119
|
+
description='The index of the state transition during which the tool was invoked. As an example, the first state processing that occurs during this state machine navigation process has index 1.',
|
|
9120
|
+
title='State Transition Index',
|
|
9121
|
+
)
|
|
9122
|
+
tool_call_round_index: int = Field(
|
|
9123
|
+
...,
|
|
9124
|
+
description='The index of the tool call round.',
|
|
9125
|
+
title='Tool Call Round Index',
|
|
9126
|
+
)
|
|
9127
|
+
|
|
9128
|
+
|
|
9129
|
+
StateTransitionInvocationMetadataOutput = StateTransitionInvocationMetadataInput
|
|
9130
|
+
|
|
9131
|
+
|
|
8995
9132
|
class StrippedNonemptyStringWS(RootModel[str]):
|
|
8996
9133
|
root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
|
|
8997
9134
|
|
|
8998
9135
|
|
|
9136
|
+
class SucceededInvocationResult(BaseModel):
|
|
9137
|
+
succeeded: Literal[True] = Field(True, title='Succeeded')
|
|
9138
|
+
output: str = Field(
|
|
9139
|
+
..., description='The output of the tool invocation.', title='Output'
|
|
9140
|
+
)
|
|
9141
|
+
duration_ms: int = Field(
|
|
9142
|
+
...,
|
|
9143
|
+
description='The duration of the tool invocation in milliseconds.',
|
|
9144
|
+
title='Duration Ms',
|
|
9145
|
+
)
|
|
9146
|
+
|
|
9147
|
+
|
|
9148
|
+
class SucceededInvocationStatus(BaseModel):
|
|
9149
|
+
succeeded: Literal[True] = Field(True, title='Succeeded')
|
|
9150
|
+
output: str = Field(
|
|
9151
|
+
..., description='The output produced by the tool invocation.', title='Output'
|
|
9152
|
+
)
|
|
9153
|
+
|
|
9154
|
+
|
|
8999
9155
|
class Tag(BaseModel):
|
|
9000
9156
|
key: str = Field(..., title='Key')
|
|
9001
9157
|
value: Optional[str] = Field(..., title='Value')
|
|
@@ -9502,7 +9658,7 @@ class AdminSubmitSqlQueryResponse(BaseModel):
|
|
|
9502
9658
|
description='The time taken to execute the query in milliseconds.',
|
|
9503
9659
|
title='Execution Time Ms',
|
|
9504
9660
|
)
|
|
9505
|
-
result: List[List
|
|
9661
|
+
result: List[List] = Field(
|
|
9506
9662
|
...,
|
|
9507
9663
|
description='The result of the query as a list of rows, where each row is a list of column values.',
|
|
9508
9664
|
title='Result',
|
|
@@ -11136,6 +11292,16 @@ class ToolGetToolsResponseFilterValues(BaseModel):
|
|
|
11136
11292
|
)
|
|
11137
11293
|
|
|
11138
11294
|
|
|
11295
|
+
class ToolInvokeToolVersionRequest(BaseModel):
|
|
11296
|
+
inputs: List[Input] = Field(
|
|
11297
|
+
...,
|
|
11298
|
+
description='The list of inputs for the tool invocation.',
|
|
11299
|
+
max_length=10,
|
|
11300
|
+
min_length=1,
|
|
11301
|
+
title='Inputs',
|
|
11302
|
+
)
|
|
11303
|
+
|
|
11304
|
+
|
|
11139
11305
|
class ToolModifyToolRequest(BaseModel):
|
|
11140
11306
|
description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
|
|
11141
11307
|
None, description='A description of this tool. Only updates if not-null.'
|
|
@@ -11709,7 +11875,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
|
|
|
11709
11875
|
[], description='The IDs of the messages to retrieve.', title='Id'
|
|
11710
11876
|
)
|
|
11711
11877
|
message_type: Optional[List[MessageType]] = Field(
|
|
11712
|
-
['
|
|
11878
|
+
['user-message', 'agent-message', 'external-event'],
|
|
11713
11879
|
description='The type of messages to retrieve.',
|
|
11714
11880
|
title='Message Type',
|
|
11715
11881
|
)
|
|
@@ -12905,6 +13071,24 @@ class GetToolVersionsParametersQuery(BaseModel):
|
|
|
12905
13071
|
)
|
|
12906
13072
|
|
|
12907
13073
|
|
|
13074
|
+
class GetToolInvocationsParametersQueryToolIdItem(
|
|
13075
|
+
DynamicBehaviorSetCreateDynamicBehaviorSetRequestAppliedToService
|
|
13076
|
+
):
|
|
13077
|
+
pass
|
|
13078
|
+
|
|
13079
|
+
|
|
13080
|
+
class GetToolInvocationsParametersQueryConversationIdItem(
|
|
13081
|
+
DynamicBehaviorSetCreateDynamicBehaviorSetRequestAppliedToService
|
|
13082
|
+
):
|
|
13083
|
+
pass
|
|
13084
|
+
|
|
13085
|
+
|
|
13086
|
+
class GetToolInvocationsParametersQuerySimulationUnitTestSetRunIdItem(
|
|
13087
|
+
DynamicBehaviorSetCreateDynamicBehaviorSetRequestAppliedToService
|
|
13088
|
+
):
|
|
13089
|
+
pass
|
|
13090
|
+
|
|
13091
|
+
|
|
12908
13092
|
class APIKey(BaseModel):
|
|
12909
13093
|
field_id: str = Field(
|
|
12910
13094
|
..., alias='_id', description='The ID of the document.', title='Id'
|
|
@@ -13399,6 +13583,54 @@ class ReflectionStateTransitionLog(BaseModel):
|
|
|
13399
13583
|
)
|
|
13400
13584
|
|
|
13401
13585
|
|
|
13586
|
+
class RegularConversationInvocationSourceInput(BaseModel):
|
|
13587
|
+
type: Literal['regular-conversation'] = Field('regular-conversation', title='Type')
|
|
13588
|
+
user_id: str = Field(
|
|
13589
|
+
...,
|
|
13590
|
+
description='The ID of the user whose conversation invoked the tool.',
|
|
13591
|
+
title='User Id',
|
|
13592
|
+
)
|
|
13593
|
+
conversation_id: Optional[
|
|
13594
|
+
RegularConversationInvocationSourceInputConversationId
|
|
13595
|
+
] = Field(
|
|
13596
|
+
...,
|
|
13597
|
+
description='The ID of the conversation where the tool was invoked. This conversation might not actually exist if later in the call the conversation is rolled back.',
|
|
13598
|
+
title='Conversation Id',
|
|
13599
|
+
)
|
|
13600
|
+
interaction_id: Optional[RegularConversationInvocationSourceInputInteractionId] = (
|
|
13601
|
+
Field(
|
|
13602
|
+
...,
|
|
13603
|
+
description='The ID of the interaction where the tool was invoked. This interaction might not actually exist if later in the call the interaction is rolled back.',
|
|
13604
|
+
title='Interaction Id',
|
|
13605
|
+
)
|
|
13606
|
+
)
|
|
13607
|
+
invocation_metadata: Union[
|
|
13608
|
+
StateTransitionInvocationMetadataInput, EngageUserInvocationMetadataInput
|
|
13609
|
+
] = Field(..., description='Metadata about the invocation.', discriminator='type')
|
|
13610
|
+
|
|
13611
|
+
|
|
13612
|
+
class RegularConversationInvocationSourceOutput(BaseModel):
|
|
13613
|
+
type: Literal['regular-conversation'] = Field('regular-conversation', title='Type')
|
|
13614
|
+
user_id: str = Field(
|
|
13615
|
+
...,
|
|
13616
|
+
description='The ID of the user whose conversation invoked the tool.',
|
|
13617
|
+
title='User Id',
|
|
13618
|
+
)
|
|
13619
|
+
conversation_id: Optional[str] = Field(
|
|
13620
|
+
...,
|
|
13621
|
+
description='The ID of the conversation where the tool was invoked. This conversation might not actually exist if later in the call the conversation is rolled back.',
|
|
13622
|
+
title='Conversation Id',
|
|
13623
|
+
)
|
|
13624
|
+
interaction_id: Optional[str] = Field(
|
|
13625
|
+
...,
|
|
13626
|
+
description='The ID of the interaction where the tool was invoked. This interaction might not actually exist if later in the call the interaction is rolled back.',
|
|
13627
|
+
title='Interaction Id',
|
|
13628
|
+
)
|
|
13629
|
+
invocation_metadata: Union[
|
|
13630
|
+
StateTransitionInvocationMetadataOutput, EngageUserInvocationMetadataOutput
|
|
13631
|
+
] = Field(..., description='Metadata about the invocation.', discriminator='type')
|
|
13632
|
+
|
|
13633
|
+
|
|
13402
13634
|
class RelationshipToDeveloperInput(BaseModel):
|
|
13403
13635
|
ownership: str = Field(..., min_length=1)
|
|
13404
13636
|
type: str = Field(..., min_length=1)
|
|
@@ -13433,6 +13665,36 @@ class RoleInstance(BaseModel):
|
|
|
13433
13665
|
)
|
|
13434
13666
|
|
|
13435
13667
|
|
|
13668
|
+
class SimulationConversationInvocationSourceInput(BaseModel):
|
|
13669
|
+
type: Literal['simulation-conversation'] = Field(
|
|
13670
|
+
'simulation-conversation', title='Type'
|
|
13671
|
+
)
|
|
13672
|
+
simulation_unit_test_set_run_id: Optional[
|
|
13673
|
+
SimulationConversationInvocationSourceInputSimulationUnitTestSetRunId
|
|
13674
|
+
] = Field(..., title='Simulation Unit Test Set Run Id')
|
|
13675
|
+
unit_test_id: Optional[SimulationConversationInvocationSourceInputUnitTestId] = (
|
|
13676
|
+
Field(..., title='Unit Test Id')
|
|
13677
|
+
)
|
|
13678
|
+
run_index: Optional[int] = Field(..., title='Run Index')
|
|
13679
|
+
invocation_metadata: Union[
|
|
13680
|
+
StateTransitionInvocationMetadataInput, EngageUserInvocationMetadataInput
|
|
13681
|
+
] = Field(..., description='Metadata about the invocation.', discriminator='type')
|
|
13682
|
+
|
|
13683
|
+
|
|
13684
|
+
class SimulationConversationInvocationSourceOutput(BaseModel):
|
|
13685
|
+
type: Literal['simulation-conversation'] = Field(
|
|
13686
|
+
'simulation-conversation', title='Type'
|
|
13687
|
+
)
|
|
13688
|
+
simulation_unit_test_set_run_id: Optional[str] = Field(
|
|
13689
|
+
..., title='Simulation Unit Test Set Run Id'
|
|
13690
|
+
)
|
|
13691
|
+
unit_test_id: Optional[str] = Field(..., title='Unit Test Id')
|
|
13692
|
+
run_index: Optional[int] = Field(..., title='Run Index')
|
|
13693
|
+
invocation_metadata: Union[
|
|
13694
|
+
StateTransitionInvocationMetadataOutput, EngageUserInvocationMetadataOutput
|
|
13695
|
+
] = Field(..., description='Metadata about the invocation.', discriminator='type')
|
|
13696
|
+
|
|
13697
|
+
|
|
13436
13698
|
class SimulationPersonaInstance(BaseModel):
|
|
13437
13699
|
id: str = Field(..., description='The ID of the simulation persona.', title='Id')
|
|
13438
13700
|
name: str = Field(
|
|
@@ -14550,6 +14812,12 @@ class ToolGetToolsResponse(BaseModel):
|
|
|
14550
14812
|
)
|
|
14551
14813
|
|
|
14552
14814
|
|
|
14815
|
+
class ToolInvokeToolVersionResponse(BaseModel):
|
|
14816
|
+
invocation_results: List[
|
|
14817
|
+
Union[SucceededInvocationResult, FailedInvocationResult]
|
|
14818
|
+
] = Field(..., title='Invocation Results')
|
|
14819
|
+
|
|
14820
|
+
|
|
14553
14821
|
class ToolModifyToolEnvvarsRequest(BaseModel):
|
|
14554
14822
|
inserts: Optional[List[InsertRequest]] = Field([], title='Inserts')
|
|
14555
14823
|
updates: Optional[List[UpdateRequest]] = Field([], title='Updates')
|
|
@@ -14991,6 +15259,34 @@ class SuccessCriterionOutput(BaseModel):
|
|
|
14991
15259
|
] = Field(..., discriminator='type')
|
|
14992
15260
|
|
|
14993
15261
|
|
|
15262
|
+
class ToolInvocationInstance(BaseModel):
|
|
15263
|
+
id: str = Field(..., description='The ID of the tool invocation.', title='Id')
|
|
15264
|
+
org_id: str = Field(..., description='The ID of the organization.', title='Org Id')
|
|
15265
|
+
created_at: Optional[AwareDatetime] = Field(None, title='Created At')
|
|
15266
|
+
updated_at: Optional[AwareDatetime] = Field(None, title='Updated At')
|
|
15267
|
+
invocation_status: Union[SucceededInvocationStatus, FailedInvocationStatus] = Field(
|
|
15268
|
+
..., description='The status of the tool invocation.', discriminator='succeeded'
|
|
15269
|
+
)
|
|
15270
|
+
invocation_source: Union[
|
|
15271
|
+
RegularConversationInvocationSourceOutput,
|
|
15272
|
+
SimulationConversationInvocationSourceOutput,
|
|
15273
|
+
] = Field(
|
|
15274
|
+
..., description='The source of the tool invocation.', discriminator='type'
|
|
15275
|
+
)
|
|
15276
|
+
logs: List[str] = Field(..., title='Logs')
|
|
15277
|
+
duration_ms: int = Field(
|
|
15278
|
+
...,
|
|
15279
|
+
description='The duration of the tool invocation in milliseconds.',
|
|
15280
|
+
title='Duration Ms',
|
|
15281
|
+
)
|
|
15282
|
+
tool_id: str = Field(
|
|
15283
|
+
..., description='The ID of the tool that was invoked.', title='Tool Id'
|
|
15284
|
+
)
|
|
15285
|
+
tool_version: Version = Field(
|
|
15286
|
+
..., description='The version of the tool that was invoked.'
|
|
15287
|
+
)
|
|
15288
|
+
|
|
15289
|
+
|
|
14994
15290
|
class UnitTestRunSpec(BaseModel):
|
|
14995
15291
|
unit_test_id: str = Field(
|
|
14996
15292
|
..., description='ID of the unit test to run.', title='Unit Test Id'
|
|
@@ -15412,6 +15708,77 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
|
|
|
15412
15708
|
)
|
|
15413
15709
|
|
|
15414
15710
|
|
|
15711
|
+
class ToolGetToolInvocationsResponse(BaseModel):
|
|
15712
|
+
tool_invocations: List[ToolInvocationInstance] = Field(
|
|
15713
|
+
..., description='The list of tool invocations.', title='Tool Invocations'
|
|
15714
|
+
)
|
|
15715
|
+
has_more: bool = Field(
|
|
15716
|
+
...,
|
|
15717
|
+
description='Whether there are more tool invocations to retrieve.',
|
|
15718
|
+
title='Has More',
|
|
15719
|
+
)
|
|
15720
|
+
continuation_token: Any = Field(
|
|
15721
|
+
...,
|
|
15722
|
+
description='The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.',
|
|
15723
|
+
title='Continuation Token',
|
|
15724
|
+
)
|
|
15725
|
+
|
|
15726
|
+
|
|
15727
|
+
class GetToolInvocationsParametersQuery(BaseModel):
|
|
15728
|
+
tool_id: Optional[List[GetToolInvocationsParametersQueryToolIdItem]] = Field(
|
|
15729
|
+
[], description='The ID of the tool to get invocations for.', title='Tool Id'
|
|
15730
|
+
)
|
|
15731
|
+
version: Optional[List[Optional[str]]] = Field(
|
|
15732
|
+
[],
|
|
15733
|
+
description='A list of semver constraint that specifies the version to retrieve in the [Python packaging specification](https://packaging.python.org/en/latest/specifications/version-specifiers/#id5). This must be the exact same length as `tool_id`, and each entry corresponds to the tool ID at the same index. If an entry is null, all versions of the corresponding tool are retrieved.',
|
|
15734
|
+
title='Version',
|
|
15735
|
+
)
|
|
15736
|
+
invocation_source_type: Optional[
|
|
15737
|
+
List[
|
|
15738
|
+
Union[
|
|
15739
|
+
RegularConversationInvocationSourceInput,
|
|
15740
|
+
SimulationConversationInvocationSourceInput,
|
|
15741
|
+
]
|
|
15742
|
+
]
|
|
15743
|
+
] = Field(
|
|
15744
|
+
[], description='The source of the invocation', title='Invocation Source Type'
|
|
15745
|
+
)
|
|
15746
|
+
conversation_id: Optional[
|
|
15747
|
+
List[GetToolInvocationsParametersQueryConversationIdItem]
|
|
15748
|
+
] = Field(
|
|
15749
|
+
[],
|
|
15750
|
+
description="The conversation ID associated with the invocation if it's of invocation source `regular-conversation`",
|
|
15751
|
+
title='Conversation Id',
|
|
15752
|
+
)
|
|
15753
|
+
simulation_unit_test_set_run_id: Optional[
|
|
15754
|
+
List[GetToolInvocationsParametersQuerySimulationUnitTestSetRunIdItem]
|
|
15755
|
+
] = Field(
|
|
15756
|
+
[],
|
|
15757
|
+
description="The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation`",
|
|
15758
|
+
title='Simulation Unit Test Set Run Id',
|
|
15759
|
+
)
|
|
15760
|
+
succeeded: Optional[bool] = Field(
|
|
15761
|
+
None, description='Whether the invocation succeeded', title='Succeeded'
|
|
15762
|
+
)
|
|
15763
|
+
limit: Optional[int] = Field(
|
|
15764
|
+
100,
|
|
15765
|
+
description='The maximum number of tool invocations to return.',
|
|
15766
|
+
ge=0,
|
|
15767
|
+
le=100,
|
|
15768
|
+
title='Limit',
|
|
15769
|
+
)
|
|
15770
|
+
continuation_token: Optional[int] = Field(
|
|
15771
|
+
0,
|
|
15772
|
+
description='The continuation token from the previous request used to retrieve the next page of tool invocations.',
|
|
15773
|
+
title='Continuation Token',
|
|
15774
|
+
)
|
|
15775
|
+
sort_by: Optional[List[str]] = Field(
|
|
15776
|
+
[],
|
|
15777
|
+
description='The fields to sort the versions by. Supported fields are `created_at`, `version.major`, `version.minor`, `version.patch`, `tool_id`, `invocation_source.type`, and `invocation_status.succeeded`. Specify a `+` before the field name to indicate ascending sorting and `-` for descending sorting. Multiple fields can be specified to break ties.',
|
|
15778
|
+
title='Sort By',
|
|
15779
|
+
)
|
|
15780
|
+
|
|
15781
|
+
|
|
15415
15782
|
class SimulationUnitTest(BaseModel):
|
|
15416
15783
|
field_id: str = Field(
|
|
15417
15784
|
..., alias='_id', description='The ID of the document.', title='Id'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
amigo_sdk/__init__.py,sha256=
|
|
1
|
+
amigo_sdk/__init__.py,sha256=mfgCxw1nS6T4ulINXzGDvgjRvgObvgC6rgdUmxUcLPU,139
|
|
2
2
|
amigo_sdk/_retry_utils.py,sha256=kFjw9Wqye6MB5-B4rjLxsbSNcfYBIztcollIoncd1hY,2142
|
|
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=RkRyF5eAASd8fIOS6YvL9rLDvLAYWqHfpHSCR7jqvl4,4840
|
|
|
6
6
|
amigo_sdk/http_client.py,sha256=v25UoUbXcMeHTnfJMcrl8RSSwCVkKUL1Jv-0HoXP1B4,13507
|
|
7
7
|
amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
|
|
8
8
|
amigo_sdk/sdk_client.py,sha256=Kr9M9o66pOLu0T2VDvqdYMmPZzgKJyTELu7BSPgGrYQ,6152
|
|
9
|
-
amigo_sdk/generated/model.py,sha256=
|
|
9
|
+
amigo_sdk/generated/model.py,sha256=4715BsBiHr4YG5fpu0tWGGEKx8JbchIR9j8lJaXP2eU,439359
|
|
10
10
|
amigo_sdk/resources/conversation.py,sha256=5PkJOvLKqnriSS9K9hKw2VRPxRLTuABEbCyPy1fz1r0,14817
|
|
11
11
|
amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
|
|
12
12
|
amigo_sdk/resources/service.py,sha256=SiwEHXCQk4r1b_tGv47M08VuB7RALDHJQzWlpuD937g,1571
|
|
13
13
|
amigo_sdk/resources/user.py,sha256=i4t5aVzBI37KwAtLKSDWTMwf4D4KQdSDoUiblFe1u7o,3529
|
|
14
|
-
amigo_sdk-0.
|
|
15
|
-
amigo_sdk-0.
|
|
16
|
-
amigo_sdk-0.
|
|
17
|
-
amigo_sdk-0.
|
|
18
|
-
amigo_sdk-0.
|
|
14
|
+
amigo_sdk-0.35.0.dist-info/METADATA,sha256=Y5YYCVVbK6MCjW20YAVmEcwWaH05Q86mqBWCOwByjik,8350
|
|
15
|
+
amigo_sdk-0.35.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
+
amigo_sdk-0.35.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
|
|
17
|
+
amigo_sdk-0.35.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
|
|
18
|
+
amigo_sdk-0.35.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|