amigo_sdk 0.32.0__py3-none-any.whl → 0.34.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 +369 -5
- {amigo_sdk-0.32.0.dist-info → amigo_sdk-0.34.0.dist-info}/METADATA +1 -1
- {amigo_sdk-0.32.0.dist-info → amigo_sdk-0.34.0.dist-info}/RECORD +7 -7
- {amigo_sdk-0.32.0.dist-info → amigo_sdk-0.34.0.dist-info}/WHEEL +0 -0
- {amigo_sdk-0.32.0.dist-info → amigo_sdk-0.34.0.dist-info}/entry_points.txt +0 -0
- {amigo_sdk-0.32.0.dist-info → amigo_sdk-0.34.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:49:03+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(
|
|
@@ -8369,7 +8447,6 @@ class LLMLoadBalancingSetType(Enum):
|
|
|
8369
8447
|
gpt_5_2025_08_07 = 'gpt-5-2025-08-07'
|
|
8370
8448
|
gpt_5_mini_2025_08_07 = 'gpt-5-mini-2025-08-07'
|
|
8371
8449
|
gpt_5_nano_2025_08_07 = 'gpt-5-nano-2025-08-07'
|
|
8372
|
-
gpt_5_chat_2025_08_07 = 'gpt-5-chat-2025-08-07'
|
|
8373
8450
|
claude_sonnet_4_20250514 = 'claude-sonnet-4-20250514'
|
|
8374
8451
|
|
|
8375
8452
|
|
|
@@ -8378,14 +8455,12 @@ class LLMType(Enum):
|
|
|
8378
8455
|
openai_gpt_5_2025_08_07 = 'openai_gpt-5-2025-08-07'
|
|
8379
8456
|
openai_gpt_5_mini_2025_08_07 = 'openai_gpt-5-mini-2025-08-07'
|
|
8380
8457
|
openai_gpt_5_nano_2025_08_07 = 'openai_gpt-5-nano-2025-08-07'
|
|
8381
|
-
openai_gpt_5_chat_2025_08_07 = 'openai_gpt-5-chat-2025-08-07'
|
|
8382
8458
|
azure_o4_mini_2025_04_16 = 'azure_o4-mini-2025-04-16'
|
|
8383
8459
|
azure_gpt_4_1_2025_04_14 = 'azure_gpt-4.1-2025-04-14'
|
|
8384
8460
|
azure_gpt_4_1_mini_2025_04_14 = 'azure_gpt-4.1-mini-2025-04-14'
|
|
8385
8461
|
azure_gpt_5_2025_08_07 = 'azure_gpt-5-2025-08-07'
|
|
8386
8462
|
azure_gpt_5_mini_2025_08_07 = 'azure_gpt-5-mini-2025-08-07'
|
|
8387
8463
|
azure_gpt_5_nano_2025_08_07 = 'azure_gpt-5-nano-2025-08-07'
|
|
8388
|
-
azure_gpt_5_chat_2025_08_07 = 'azure_gpt-5-chat-2025-08-07'
|
|
8389
8464
|
google_claude_sonnet_4_20250514 = 'google_claude-sonnet-4@20250514'
|
|
8390
8465
|
aws_claude_sonnet_4_20250514 = 'aws_claude-sonnet-4-20250514'
|
|
8391
8466
|
anthropic_claude_sonnet_4_20250514 = 'anthropic_claude-sonnet-4-20250514'
|
|
@@ -8796,6 +8871,24 @@ class ReflectionStateOutputNextState(AnnotationStateOutputNextState):
|
|
|
8796
8871
|
pass
|
|
8797
8872
|
|
|
8798
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
|
+
|
|
8799
8892
|
class RelationshipToDeveloperOutput(BaseModel):
|
|
8800
8893
|
ownership: str = Field(
|
|
8801
8894
|
...,
|
|
@@ -8925,6 +9018,18 @@ class SideEffectStateTransitionLog(BaseModel):
|
|
|
8925
9018
|
)
|
|
8926
9019
|
|
|
8927
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
|
+
|
|
8928
9033
|
class SimulationEvaluationSource(BaseModel):
|
|
8929
9034
|
type: Literal['simulation'] = Field('simulation', title='Type')
|
|
8930
9035
|
simulation_unit_test_set_run_id: str = Field(
|
|
@@ -8995,10 +9100,58 @@ class StateOrRefName(RootModel[str]):
|
|
|
8995
9100
|
root: str = Field(..., pattern='^[A-Za-z0-9_]+$')
|
|
8996
9101
|
|
|
8997
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
|
+
|
|
8998
9132
|
class StrippedNonemptyStringWS(RootModel[str]):
|
|
8999
9133
|
root: str = Field(..., min_length=1, pattern='^[\\w\\s]+$')
|
|
9000
9134
|
|
|
9001
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
|
+
|
|
9002
9155
|
class Tag(BaseModel):
|
|
9003
9156
|
key: str = Field(..., title='Key')
|
|
9004
9157
|
value: Optional[str] = Field(..., title='Value')
|
|
@@ -11139,6 +11292,16 @@ class ToolGetToolsResponseFilterValues(BaseModel):
|
|
|
11139
11292
|
)
|
|
11140
11293
|
|
|
11141
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
|
+
|
|
11142
11305
|
class ToolModifyToolRequest(BaseModel):
|
|
11143
11306
|
description: Optional[AmigoLibPydanticBaseModelStrippedNonemptyString1] = Field(
|
|
11144
11307
|
None, description='A description of this tool. Only updates if not-null.'
|
|
@@ -11712,7 +11875,7 @@ class GetConversationMessagesParametersQuery(BaseModel):
|
|
|
11712
11875
|
[], description='The IDs of the messages to retrieve.', title='Id'
|
|
11713
11876
|
)
|
|
11714
11877
|
message_type: Optional[List[MessageType]] = Field(
|
|
11715
|
-
['
|
|
11878
|
+
['agent-message', 'external-event', 'user-message'],
|
|
11716
11879
|
description='The type of messages to retrieve.',
|
|
11717
11880
|
title='Message Type',
|
|
11718
11881
|
)
|
|
@@ -12908,6 +13071,24 @@ class GetToolVersionsParametersQuery(BaseModel):
|
|
|
12908
13071
|
)
|
|
12909
13072
|
|
|
12910
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
|
+
|
|
12911
13092
|
class APIKey(BaseModel):
|
|
12912
13093
|
field_id: str = Field(
|
|
12913
13094
|
..., alias='_id', description='The ID of the document.', title='Id'
|
|
@@ -13402,6 +13583,54 @@ class ReflectionStateTransitionLog(BaseModel):
|
|
|
13402
13583
|
)
|
|
13403
13584
|
|
|
13404
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
|
+
|
|
13405
13634
|
class RelationshipToDeveloperInput(BaseModel):
|
|
13406
13635
|
ownership: str = Field(..., min_length=1)
|
|
13407
13636
|
type: str = Field(..., min_length=1)
|
|
@@ -13436,6 +13665,36 @@ class RoleInstance(BaseModel):
|
|
|
13436
13665
|
)
|
|
13437
13666
|
|
|
13438
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
|
+
|
|
13439
13698
|
class SimulationPersonaInstance(BaseModel):
|
|
13440
13699
|
id: str = Field(..., description='The ID of the simulation persona.', title='Id')
|
|
13441
13700
|
name: str = Field(
|
|
@@ -14553,6 +14812,12 @@ class ToolGetToolsResponse(BaseModel):
|
|
|
14553
14812
|
)
|
|
14554
14813
|
|
|
14555
14814
|
|
|
14815
|
+
class ToolInvokeToolVersionResponse(BaseModel):
|
|
14816
|
+
invocation_results: List[
|
|
14817
|
+
Union[SucceededInvocationResult, FailedInvocationResult]
|
|
14818
|
+
] = Field(..., title='Invocation Results')
|
|
14819
|
+
|
|
14820
|
+
|
|
14556
14821
|
class ToolModifyToolEnvvarsRequest(BaseModel):
|
|
14557
14822
|
inserts: Optional[List[InsertRequest]] = Field([], title='Inserts')
|
|
14558
14823
|
updates: Optional[List[UpdateRequest]] = Field([], title='Updates')
|
|
@@ -14994,6 +15259,34 @@ class SuccessCriterionOutput(BaseModel):
|
|
|
14994
15259
|
] = Field(..., discriminator='type')
|
|
14995
15260
|
|
|
14996
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
|
+
|
|
14997
15290
|
class UnitTestRunSpec(BaseModel):
|
|
14998
15291
|
unit_test_id: str = Field(
|
|
14999
15292
|
..., description='ID of the unit test to run.', title='Unit Test Id'
|
|
@@ -15415,6 +15708,77 @@ class SimulationUpdateSimulationUnitTestRequest(BaseModel):
|
|
|
15415
15708
|
)
|
|
15416
15709
|
|
|
15417
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
|
+
|
|
15418
15782
|
class SimulationUnitTest(BaseModel):
|
|
15419
15783
|
field_id: str = Field(
|
|
15420
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=6b0vc2xMMuatKiNz0Bc9-niRmexdV-DnBIfprK5gxag,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=HucLqV3fttJey2SpA03TuuRrrh1vluZrVuaqZQuZKpg,439364
|
|
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.34.0.dist-info/METADATA,sha256=_0Tps4mHAKVyQ6QA2VxJi56tJlMlQ8qVn0VzeB9ktm0,8350
|
|
15
|
+
amigo_sdk-0.34.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
+
amigo_sdk-0.34.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
|
|
17
|
+
amigo_sdk-0.34.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
|
|
18
|
+
amigo_sdk-0.34.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|