@amigo-ai/sdk 0.20.1 → 0.22.0
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.
|
@@ -2170,6 +2170,55 @@ export interface paths {
|
|
|
2170
2170
|
patch?: never;
|
|
2171
2171
|
trace?: never;
|
|
2172
2172
|
};
|
|
2173
|
+
"/v1/{organization}/tool/invocation": {
|
|
2174
|
+
parameters: {
|
|
2175
|
+
query?: never;
|
|
2176
|
+
header?: never;
|
|
2177
|
+
path?: never;
|
|
2178
|
+
cookie?: never;
|
|
2179
|
+
};
|
|
2180
|
+
/**
|
|
2181
|
+
* Get tool invocations
|
|
2182
|
+
* @description Retrieve tool invocations under the specified filters.
|
|
2183
|
+
*
|
|
2184
|
+
* #### Permissions
|
|
2185
|
+
* This endpoint may require the following permission:
|
|
2186
|
+
* * `Conversation:GetInteractionInsights` for `ToolInvocation`s from a regular conversation.
|
|
2187
|
+
* * `Simulation:GetSimulationUnitTestSetRun` for `ToolInvocation`s from a simulation conversation.
|
|
2188
|
+
*/
|
|
2189
|
+
get: operations["get-tool-invocations"];
|
|
2190
|
+
put?: never;
|
|
2191
|
+
post?: never;
|
|
2192
|
+
delete?: never;
|
|
2193
|
+
options?: never;
|
|
2194
|
+
head?: never;
|
|
2195
|
+
patch?: never;
|
|
2196
|
+
trace?: never;
|
|
2197
|
+
};
|
|
2198
|
+
"/v1/{organization}/tool/{tool_id}/version/{version}/invoke": {
|
|
2199
|
+
parameters: {
|
|
2200
|
+
query?: never;
|
|
2201
|
+
header?: never;
|
|
2202
|
+
path?: never;
|
|
2203
|
+
cookie?: never;
|
|
2204
|
+
};
|
|
2205
|
+
get?: never;
|
|
2206
|
+
put?: never;
|
|
2207
|
+
/**
|
|
2208
|
+
* Invoke a tool version
|
|
2209
|
+
* @description Invoke a specified tool version with the given input parameters.
|
|
2210
|
+
*
|
|
2211
|
+
* #### Permissions
|
|
2212
|
+
* This endpoint requires the following permissions:
|
|
2213
|
+
* * `Tool:InvokeTool` for the tool to invoke.
|
|
2214
|
+
*/
|
|
2215
|
+
post: operations["invoke-tool-version"];
|
|
2216
|
+
delete?: never;
|
|
2217
|
+
options?: never;
|
|
2218
|
+
head?: never;
|
|
2219
|
+
patch?: never;
|
|
2220
|
+
trace?: never;
|
|
2221
|
+
};
|
|
2173
2222
|
}
|
|
2174
2223
|
export type webhooks = Record<string, never>;
|
|
2175
2224
|
export interface components {
|
|
@@ -2357,6 +2406,8 @@ export interface components {
|
|
|
2357
2406
|
*/
|
|
2358
2407
|
tool_call_logs: components["schemas"]["ToolCallLog"][][];
|
|
2359
2408
|
};
|
|
2409
|
+
"AgentFrameworkInvocationMetadata-Input": components["schemas"]["StateTransitionInvocationMetadata-Input"] | components["schemas"]["EngageUserInvocationMetadata-Input"];
|
|
2410
|
+
"AgentFrameworkInvocationMetadata-Output": components["schemas"]["StateTransitionInvocationMetadata-Output"] | components["schemas"]["EngageUserInvocationMetadata-Output"];
|
|
2360
2411
|
/** AnnotationState */
|
|
2361
2412
|
"AnnotationState-Input": {
|
|
2362
2413
|
/**
|
|
@@ -2928,6 +2979,48 @@ export interface components {
|
|
|
2928
2979
|
*/
|
|
2929
2980
|
overriding: boolean;
|
|
2930
2981
|
};
|
|
2982
|
+
/** EngageUserInvocationMetadata */
|
|
2983
|
+
"EngageUserInvocationMetadata-Input": {
|
|
2984
|
+
/**
|
|
2985
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2986
|
+
* @enum {string}
|
|
2987
|
+
*/
|
|
2988
|
+
type: "engage-user";
|
|
2989
|
+
/**
|
|
2990
|
+
* Current State Machine And Version
|
|
2991
|
+
* @description The ID and version of the state machine that is currently being executed.
|
|
2992
|
+
*/
|
|
2993
|
+
current_state_machine_and_version: [
|
|
2994
|
+
string,
|
|
2995
|
+
number
|
|
2996
|
+
];
|
|
2997
|
+
/**
|
|
2998
|
+
* Tool Call Round Index
|
|
2999
|
+
* @description The index of the tool call round.
|
|
3000
|
+
*/
|
|
3001
|
+
tool_call_round_index: number;
|
|
3002
|
+
};
|
|
3003
|
+
/** EngageUserInvocationMetadata */
|
|
3004
|
+
"EngageUserInvocationMetadata-Output": {
|
|
3005
|
+
/**
|
|
3006
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3007
|
+
* @enum {string}
|
|
3008
|
+
*/
|
|
3009
|
+
type: "engage-user";
|
|
3010
|
+
/**
|
|
3011
|
+
* Current State Machine And Version
|
|
3012
|
+
* @description The ID and version of the state machine that is currently being executed.
|
|
3013
|
+
*/
|
|
3014
|
+
current_state_machine_and_version: [
|
|
3015
|
+
string,
|
|
3016
|
+
number
|
|
3017
|
+
];
|
|
3018
|
+
/**
|
|
3019
|
+
* Tool Call Round Index
|
|
3020
|
+
* @description The index of the tool call round.
|
|
3021
|
+
*/
|
|
3022
|
+
tool_call_round_index: number;
|
|
3023
|
+
};
|
|
2931
3024
|
/**
|
|
2932
3025
|
* EngageUserMessageFragmentGeneratedEvent
|
|
2933
3026
|
* @description Indicating that the agent has generated a fragment of the agent response.
|
|
@@ -3039,6 +3132,57 @@ export interface components {
|
|
|
3039
3132
|
string
|
|
3040
3133
|
][];
|
|
3041
3134
|
};
|
|
3135
|
+
/** FailedInvocationResult */
|
|
3136
|
+
FailedInvocationResult: {
|
|
3137
|
+
/**
|
|
3138
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3139
|
+
* @enum {string}
|
|
3140
|
+
*/
|
|
3141
|
+
succeeded: "False";
|
|
3142
|
+
/**
|
|
3143
|
+
* Exception Message
|
|
3144
|
+
* @description The message of the exception during the tool invocation.
|
|
3145
|
+
*/
|
|
3146
|
+
exception_message: string;
|
|
3147
|
+
/**
|
|
3148
|
+
* Exception Type
|
|
3149
|
+
* @description The type of the exception during the tool invocation.
|
|
3150
|
+
*/
|
|
3151
|
+
exception_type: string;
|
|
3152
|
+
/**
|
|
3153
|
+
* Exception Stack Trace
|
|
3154
|
+
* @description The stack trace of the exception during the tool invocation.
|
|
3155
|
+
*/
|
|
3156
|
+
exception_stack_trace: string[];
|
|
3157
|
+
/**
|
|
3158
|
+
* Duration Ms
|
|
3159
|
+
* @description The duration of the tool invocation in milliseconds.
|
|
3160
|
+
*/
|
|
3161
|
+
duration_ms: number;
|
|
3162
|
+
};
|
|
3163
|
+
/** FailedInvocationStatus */
|
|
3164
|
+
FailedInvocationStatus: {
|
|
3165
|
+
/**
|
|
3166
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3167
|
+
* @enum {string}
|
|
3168
|
+
*/
|
|
3169
|
+
succeeded: "False";
|
|
3170
|
+
/**
|
|
3171
|
+
* Exception Message
|
|
3172
|
+
* @description The exception message if the tool invocation failed.
|
|
3173
|
+
*/
|
|
3174
|
+
exception_message: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* Exception Type
|
|
3177
|
+
* @description The exception type if the tool invocation failed.
|
|
3178
|
+
*/
|
|
3179
|
+
exception_type: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* Exception Stack Trace
|
|
3182
|
+
* @description The exception stack trace if the tool invocation failed.
|
|
3183
|
+
*/
|
|
3184
|
+
exception_stack_trace: string[];
|
|
3185
|
+
};
|
|
3042
3186
|
/** @enum {string} */
|
|
3043
3187
|
Format: "text" | "voice";
|
|
3044
3188
|
/** @enum {string} */
|
|
@@ -3138,6 +3282,22 @@ export interface components {
|
|
|
3138
3282
|
*/
|
|
3139
3283
|
type: "user-message";
|
|
3140
3284
|
};
|
|
3285
|
+
/** Input */
|
|
3286
|
+
Input: {
|
|
3287
|
+
/**
|
|
3288
|
+
* Input Parameters
|
|
3289
|
+
* @description The input parameters for the tool invocation.
|
|
3290
|
+
*/
|
|
3291
|
+
input_parameters: {
|
|
3292
|
+
[key: string]: unknown;
|
|
3293
|
+
};
|
|
3294
|
+
/**
|
|
3295
|
+
* Invocation Mode
|
|
3296
|
+
* @description The mode of invocation.
|
|
3297
|
+
* @enum {string}
|
|
3298
|
+
*/
|
|
3299
|
+
invocation_mode: "regular" | "conversation-simulation";
|
|
3300
|
+
};
|
|
3141
3301
|
/** InsertRequest */
|
|
3142
3302
|
InsertRequest: {
|
|
3143
3303
|
/** @description The name of the environment variable to insert. */
|
|
@@ -3184,6 +3344,10 @@ export interface components {
|
|
|
3184
3344
|
*/
|
|
3185
3345
|
conversation_completed: boolean;
|
|
3186
3346
|
};
|
|
3347
|
+
InvocationResult: components["schemas"]["SucceededInvocationResult"] | components["schemas"]["FailedInvocationResult"];
|
|
3348
|
+
"InvocationSource-Input": components["schemas"]["RegularConversationInvocationSource-Input"] | components["schemas"]["SimulationConversationInvocationSource-Input"];
|
|
3349
|
+
"InvocationSource-Output": components["schemas"]["RegularConversationInvocationSource-Output"] | components["schemas"]["SimulationConversationInvocationSource-Output"];
|
|
3350
|
+
InvocationStatus: components["schemas"]["SucceededInvocationStatus"] | components["schemas"]["FailedInvocationStatus"];
|
|
3187
3351
|
/** JumpbackStateTransitionLog */
|
|
3188
3352
|
JumpbackStateTransitionLog: {
|
|
3189
3353
|
/**
|
|
@@ -4197,6 +4361,56 @@ export interface components {
|
|
|
4197
4361
|
*/
|
|
4198
4362
|
tool_call_logs: components["schemas"]["ToolCallLog"][][];
|
|
4199
4363
|
};
|
|
4364
|
+
/** RegularConversationInvocationSource */
|
|
4365
|
+
"RegularConversationInvocationSource-Input": {
|
|
4366
|
+
/**
|
|
4367
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4368
|
+
* @enum {string}
|
|
4369
|
+
*/
|
|
4370
|
+
type: "regular-conversation";
|
|
4371
|
+
/**
|
|
4372
|
+
* User Id
|
|
4373
|
+
* @description The ID of the user whose conversation invoked the tool.
|
|
4374
|
+
*/
|
|
4375
|
+
user_id: string;
|
|
4376
|
+
/**
|
|
4377
|
+
* Conversation Id
|
|
4378
|
+
* @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.
|
|
4379
|
+
*/
|
|
4380
|
+
conversation_id: string | null;
|
|
4381
|
+
/**
|
|
4382
|
+
* Interaction Id
|
|
4383
|
+
* @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.
|
|
4384
|
+
*/
|
|
4385
|
+
interaction_id: string | null;
|
|
4386
|
+
/** @description Metadata about the invocation. */
|
|
4387
|
+
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Input"];
|
|
4388
|
+
};
|
|
4389
|
+
/** RegularConversationInvocationSource */
|
|
4390
|
+
"RegularConversationInvocationSource-Output": {
|
|
4391
|
+
/**
|
|
4392
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4393
|
+
* @enum {string}
|
|
4394
|
+
*/
|
|
4395
|
+
type: "regular-conversation";
|
|
4396
|
+
/**
|
|
4397
|
+
* User Id
|
|
4398
|
+
* @description The ID of the user whose conversation invoked the tool.
|
|
4399
|
+
*/
|
|
4400
|
+
user_id: string;
|
|
4401
|
+
/**
|
|
4402
|
+
* Conversation Id
|
|
4403
|
+
* @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.
|
|
4404
|
+
*/
|
|
4405
|
+
conversation_id: string | null;
|
|
4406
|
+
/**
|
|
4407
|
+
* Interaction Id
|
|
4408
|
+
* @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.
|
|
4409
|
+
*/
|
|
4410
|
+
interaction_id: string | null;
|
|
4411
|
+
/** @description Metadata about the invocation. */
|
|
4412
|
+
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Output"];
|
|
4413
|
+
};
|
|
4200
4414
|
/** RelationshipToDeveloper */
|
|
4201
4415
|
"RelationshipToDeveloper-Input": {
|
|
4202
4416
|
ownership: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
|
|
@@ -4506,6 +4720,38 @@ export interface components {
|
|
|
4506
4720
|
*/
|
|
4507
4721
|
type: "side-effect";
|
|
4508
4722
|
};
|
|
4723
|
+
/** SimulationConversationInvocationSource */
|
|
4724
|
+
"SimulationConversationInvocationSource-Input": {
|
|
4725
|
+
/**
|
|
4726
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4727
|
+
* @enum {string}
|
|
4728
|
+
*/
|
|
4729
|
+
type: "simulation-conversation";
|
|
4730
|
+
/** Simulation Unit Test Set Run Id */
|
|
4731
|
+
simulation_unit_test_set_run_id: string | null;
|
|
4732
|
+
/** Unit Test Id */
|
|
4733
|
+
unit_test_id: string | null;
|
|
4734
|
+
/** Run Index */
|
|
4735
|
+
run_index: number | null;
|
|
4736
|
+
/** @description Metadata about the invocation. */
|
|
4737
|
+
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Input"];
|
|
4738
|
+
};
|
|
4739
|
+
/** SimulationConversationInvocationSource */
|
|
4740
|
+
"SimulationConversationInvocationSource-Output": {
|
|
4741
|
+
/**
|
|
4742
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4743
|
+
* @enum {string}
|
|
4744
|
+
*/
|
|
4745
|
+
type: "simulation-conversation";
|
|
4746
|
+
/** Simulation Unit Test Set Run Id */
|
|
4747
|
+
simulation_unit_test_set_run_id: string | null;
|
|
4748
|
+
/** Unit Test Id */
|
|
4749
|
+
unit_test_id: string | null;
|
|
4750
|
+
/** Run Index */
|
|
4751
|
+
run_index: number | null;
|
|
4752
|
+
/** @description Metadata about the invocation. */
|
|
4753
|
+
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Output"];
|
|
4754
|
+
};
|
|
4509
4755
|
/** SimulationEvaluationSource */
|
|
4510
4756
|
SimulationEvaluationSource: {
|
|
4511
4757
|
/**
|
|
@@ -5044,11 +5290,104 @@ export interface components {
|
|
|
5044
5290
|
latest_version: number | null;
|
|
5045
5291
|
};
|
|
5046
5292
|
StateOrRefName: string;
|
|
5293
|
+
/** StateTransitionInvocationMetadata */
|
|
5294
|
+
"StateTransitionInvocationMetadata-Input": {
|
|
5295
|
+
/**
|
|
5296
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5297
|
+
* @enum {string}
|
|
5298
|
+
*/
|
|
5299
|
+
type: "state-transition";
|
|
5300
|
+
/**
|
|
5301
|
+
* Current State Machine And Version
|
|
5302
|
+
* @description The ID and version of the state machine that is currently being executed.
|
|
5303
|
+
*/
|
|
5304
|
+
current_state_machine_and_version: [
|
|
5305
|
+
string,
|
|
5306
|
+
number
|
|
5307
|
+
];
|
|
5308
|
+
/**
|
|
5309
|
+
* State Name
|
|
5310
|
+
* @description The name of the state during which the tool was invoked.
|
|
5311
|
+
*/
|
|
5312
|
+
state_name: string;
|
|
5313
|
+
/**
|
|
5314
|
+
* State Transition Index
|
|
5315
|
+
* @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.
|
|
5316
|
+
*/
|
|
5317
|
+
state_transition_index: number;
|
|
5318
|
+
/**
|
|
5319
|
+
* Tool Call Round Index
|
|
5320
|
+
* @description The index of the tool call round.
|
|
5321
|
+
*/
|
|
5322
|
+
tool_call_round_index: number;
|
|
5323
|
+
};
|
|
5324
|
+
/** StateTransitionInvocationMetadata */
|
|
5325
|
+
"StateTransitionInvocationMetadata-Output": {
|
|
5326
|
+
/**
|
|
5327
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5328
|
+
* @enum {string}
|
|
5329
|
+
*/
|
|
5330
|
+
type: "state-transition";
|
|
5331
|
+
/**
|
|
5332
|
+
* Current State Machine And Version
|
|
5333
|
+
* @description The ID and version of the state machine that is currently being executed.
|
|
5334
|
+
*/
|
|
5335
|
+
current_state_machine_and_version: [
|
|
5336
|
+
string,
|
|
5337
|
+
number
|
|
5338
|
+
];
|
|
5339
|
+
/**
|
|
5340
|
+
* State Name
|
|
5341
|
+
* @description The name of the state during which the tool was invoked.
|
|
5342
|
+
*/
|
|
5343
|
+
state_name: string;
|
|
5344
|
+
/**
|
|
5345
|
+
* State Transition Index
|
|
5346
|
+
* @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.
|
|
5347
|
+
*/
|
|
5348
|
+
state_transition_index: number;
|
|
5349
|
+
/**
|
|
5350
|
+
* Tool Call Round Index
|
|
5351
|
+
* @description The index of the tool call round.
|
|
5352
|
+
*/
|
|
5353
|
+
tool_call_round_index: number;
|
|
5354
|
+
};
|
|
5047
5355
|
StateTransitionLog: components["schemas"]["ActionStateTransitionLog"] | components["schemas"]["DecisionStateTransitionLog"] | components["schemas"]["RecallStateTransitionLog"] | components["schemas"]["JumpbackStateTransitionLog"] | components["schemas"]["AnnotationStateTransitionLog"] | components["schemas"]["ReflectionStateTransitionLog"] | components["schemas"]["SideEffectStateTransitionLog"];
|
|
5048
5356
|
"StrippedNonemptyString_A-Z______": string;
|
|
5049
5357
|
StrippedNonemptyString___w__s_____: string;
|
|
5050
5358
|
"StrippedNonemptyString_a-z-______": string;
|
|
5051
5359
|
"StrippedNonemptyString_a-z0-9______": string;
|
|
5360
|
+
/** SucceededInvocationResult */
|
|
5361
|
+
SucceededInvocationResult: {
|
|
5362
|
+
/**
|
|
5363
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5364
|
+
* @enum {string}
|
|
5365
|
+
*/
|
|
5366
|
+
succeeded: "True";
|
|
5367
|
+
/**
|
|
5368
|
+
* Output
|
|
5369
|
+
* @description The output of the tool invocation.
|
|
5370
|
+
*/
|
|
5371
|
+
output: string;
|
|
5372
|
+
/**
|
|
5373
|
+
* Duration Ms
|
|
5374
|
+
* @description The duration of the tool invocation in milliseconds.
|
|
5375
|
+
*/
|
|
5376
|
+
duration_ms: number;
|
|
5377
|
+
};
|
|
5378
|
+
/** SucceededInvocationStatus */
|
|
5379
|
+
SucceededInvocationStatus: {
|
|
5380
|
+
/**
|
|
5381
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5382
|
+
* @enum {string}
|
|
5383
|
+
*/
|
|
5384
|
+
succeeded: "True";
|
|
5385
|
+
/**
|
|
5386
|
+
* Output
|
|
5387
|
+
* @description The output produced by the tool invocation.
|
|
5388
|
+
*/
|
|
5389
|
+
output: string;
|
|
5390
|
+
};
|
|
5052
5391
|
/** SuccessCriterion */
|
|
5053
5392
|
"SuccessCriterion-Output": {
|
|
5054
5393
|
/** Name */
|
|
@@ -5259,6 +5598,47 @@ export interface components {
|
|
|
5259
5598
|
*/
|
|
5260
5599
|
tags: components["schemas"]["Tag"][];
|
|
5261
5600
|
};
|
|
5601
|
+
/** ToolInvocationInstance */
|
|
5602
|
+
ToolInvocationInstance: {
|
|
5603
|
+
/**
|
|
5604
|
+
* Id
|
|
5605
|
+
* @description The ID of the tool invocation.
|
|
5606
|
+
*/
|
|
5607
|
+
id: string;
|
|
5608
|
+
/**
|
|
5609
|
+
* Org Id
|
|
5610
|
+
* @description The ID of the organization.
|
|
5611
|
+
*/
|
|
5612
|
+
org_id: string;
|
|
5613
|
+
/**
|
|
5614
|
+
* Created At
|
|
5615
|
+
* Format: date-time
|
|
5616
|
+
*/
|
|
5617
|
+
created_at?: string;
|
|
5618
|
+
/**
|
|
5619
|
+
* Updated At
|
|
5620
|
+
* Format: date-time
|
|
5621
|
+
*/
|
|
5622
|
+
updated_at?: string;
|
|
5623
|
+
/** @description The status of the tool invocation. */
|
|
5624
|
+
invocation_status: components["schemas"]["InvocationStatus"];
|
|
5625
|
+
/** @description The source of the tool invocation. */
|
|
5626
|
+
invocation_source: components["schemas"]["InvocationSource-Output"];
|
|
5627
|
+
/** Logs */
|
|
5628
|
+
logs: string[];
|
|
5629
|
+
/**
|
|
5630
|
+
* Duration Ms
|
|
5631
|
+
* @description The duration of the tool invocation in milliseconds.
|
|
5632
|
+
*/
|
|
5633
|
+
duration_ms: number;
|
|
5634
|
+
/**
|
|
5635
|
+
* Tool Id
|
|
5636
|
+
* @description The ID of the tool that was invoked.
|
|
5637
|
+
*/
|
|
5638
|
+
tool_id: string;
|
|
5639
|
+
/** @description The version of the tool that was invoked. */
|
|
5640
|
+
tool_version: components["schemas"]["Version"];
|
|
5641
|
+
};
|
|
5262
5642
|
/** ToolVersionInstance */
|
|
5263
5643
|
ToolVersionInstance: {
|
|
5264
5644
|
/**
|
|
@@ -6059,7 +6439,7 @@ export interface components {
|
|
|
6059
6439
|
* Result
|
|
6060
6440
|
* @description The result of the query as a list of rows, where each row is a list of column values.
|
|
6061
6441
|
*/
|
|
6062
|
-
result:
|
|
6442
|
+
result: unknown[][];
|
|
6063
6443
|
/**
|
|
6064
6444
|
* Truncated
|
|
6065
6445
|
* @description Whether the result was truncated due to the row limit.
|
|
@@ -7978,6 +8358,24 @@ export interface components {
|
|
|
7978
8358
|
id: string;
|
|
7979
8359
|
};
|
|
7980
8360
|
/** Response */
|
|
8361
|
+
tool__get_tool_invocations__Response: {
|
|
8362
|
+
/**
|
|
8363
|
+
* Tool Invocations
|
|
8364
|
+
* @description The list of tool invocations.
|
|
8365
|
+
*/
|
|
8366
|
+
tool_invocations: components["schemas"]["ToolInvocationInstance"][];
|
|
8367
|
+
/**
|
|
8368
|
+
* Has More
|
|
8369
|
+
* @description Whether there are more tool invocations to retrieve.
|
|
8370
|
+
*/
|
|
8371
|
+
has_more: boolean;
|
|
8372
|
+
/**
|
|
8373
|
+
* Continuation Token
|
|
8374
|
+
* @description The continuation token to retrieve the next page of tool invocations, or null if there are no more tool invocations.
|
|
8375
|
+
*/
|
|
8376
|
+
continuation_token: unknown | null;
|
|
8377
|
+
};
|
|
8378
|
+
/** Response */
|
|
7981
8379
|
tool__get_tool_versions__Response: {
|
|
7982
8380
|
/**
|
|
7983
8381
|
* Tool Versions
|
|
@@ -8040,6 +8438,19 @@ export interface components {
|
|
|
8040
8438
|
tags: string[];
|
|
8041
8439
|
};
|
|
8042
8440
|
/** Request */
|
|
8441
|
+
tool__invoke_tool_version__Request: {
|
|
8442
|
+
/**
|
|
8443
|
+
* Inputs
|
|
8444
|
+
* @description The list of inputs for the tool invocation.
|
|
8445
|
+
*/
|
|
8446
|
+
inputs: components["schemas"]["Input"][];
|
|
8447
|
+
};
|
|
8448
|
+
/** Response */
|
|
8449
|
+
tool__invoke_tool_version__Response: {
|
|
8450
|
+
/** Invocation Results */
|
|
8451
|
+
invocation_results: components["schemas"]["InvocationResult"][];
|
|
8452
|
+
};
|
|
8453
|
+
/** Request */
|
|
8043
8454
|
tool__modify_tool__Request: {
|
|
8044
8455
|
/** @description A description of this tool. Only updates if not-null. */
|
|
8045
8456
|
description?: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"] | null;
|
|
@@ -16675,4 +17086,181 @@ export interface operations {
|
|
|
16675
17086
|
};
|
|
16676
17087
|
};
|
|
16677
17088
|
};
|
|
17089
|
+
"get-tool-invocations": {
|
|
17090
|
+
parameters: {
|
|
17091
|
+
query?: {
|
|
17092
|
+
/** @description The ID of the tool to get invocations for. */
|
|
17093
|
+
tool_id?: string[];
|
|
17094
|
+
/** @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. */
|
|
17095
|
+
version?: (string | null)[];
|
|
17096
|
+
/** @description The source of the invocation */
|
|
17097
|
+
invocation_source_type?: components["schemas"]["InvocationSource-Input"][];
|
|
17098
|
+
/** @description The conversation ID associated with the invocation if it's of invocation source `regular-conversation` */
|
|
17099
|
+
conversation_id?: string[];
|
|
17100
|
+
/** @description The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation` */
|
|
17101
|
+
simulation_unit_test_set_run_id?: string[];
|
|
17102
|
+
/** @description Whether the invocation succeeded */
|
|
17103
|
+
succeeded?: boolean | null;
|
|
17104
|
+
/** @description The maximum number of tool invocations to return. */
|
|
17105
|
+
limit?: number;
|
|
17106
|
+
/** @description The continuation token from the previous request used to retrieve the next page of tool invocations. */
|
|
17107
|
+
continuation_token?: number;
|
|
17108
|
+
/** @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. */
|
|
17109
|
+
sort_by?: string[];
|
|
17110
|
+
};
|
|
17111
|
+
header?: {
|
|
17112
|
+
/** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
|
|
17113
|
+
"x-mongo-cluster-name"?: string | null;
|
|
17114
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
17115
|
+
};
|
|
17116
|
+
path: {
|
|
17117
|
+
organization: string;
|
|
17118
|
+
};
|
|
17119
|
+
cookie?: never;
|
|
17120
|
+
};
|
|
17121
|
+
requestBody?: never;
|
|
17122
|
+
responses: {
|
|
17123
|
+
/** @description Succeeded. */
|
|
17124
|
+
200: {
|
|
17125
|
+
headers: {
|
|
17126
|
+
[name: string]: unknown;
|
|
17127
|
+
};
|
|
17128
|
+
content: {
|
|
17129
|
+
"application/json": components["schemas"]["tool__get_tool_invocations__Response"];
|
|
17130
|
+
};
|
|
17131
|
+
};
|
|
17132
|
+
/** @description The `tool_id` and `version` query parameters are not the same length. */
|
|
17133
|
+
400: {
|
|
17134
|
+
headers: {
|
|
17135
|
+
[name: string]: unknown;
|
|
17136
|
+
};
|
|
17137
|
+
content?: never;
|
|
17138
|
+
};
|
|
17139
|
+
/** @description Invalid authorization credentials. */
|
|
17140
|
+
401: {
|
|
17141
|
+
headers: {
|
|
17142
|
+
[name: string]: unknown;
|
|
17143
|
+
};
|
|
17144
|
+
content?: never;
|
|
17145
|
+
};
|
|
17146
|
+
/** @description Missing required permissions. */
|
|
17147
|
+
403: {
|
|
17148
|
+
headers: {
|
|
17149
|
+
[name: string]: unknown;
|
|
17150
|
+
};
|
|
17151
|
+
content?: never;
|
|
17152
|
+
};
|
|
17153
|
+
/** @description Specified organization does not exist. */
|
|
17154
|
+
404: {
|
|
17155
|
+
headers: {
|
|
17156
|
+
[name: string]: unknown;
|
|
17157
|
+
};
|
|
17158
|
+
content?: never;
|
|
17159
|
+
};
|
|
17160
|
+
/** @description Invalid request path parameter or request query parameter failed validation. */
|
|
17161
|
+
422: {
|
|
17162
|
+
headers: {
|
|
17163
|
+
[name: string]: unknown;
|
|
17164
|
+
};
|
|
17165
|
+
content?: never;
|
|
17166
|
+
};
|
|
17167
|
+
/** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
|
|
17168
|
+
429: {
|
|
17169
|
+
headers: {
|
|
17170
|
+
[name: string]: unknown;
|
|
17171
|
+
};
|
|
17172
|
+
content?: never;
|
|
17173
|
+
};
|
|
17174
|
+
/** @description The service is going through temporary maintenance. */
|
|
17175
|
+
503: {
|
|
17176
|
+
headers: {
|
|
17177
|
+
[name: string]: unknown;
|
|
17178
|
+
};
|
|
17179
|
+
content?: never;
|
|
17180
|
+
};
|
|
17181
|
+
};
|
|
17182
|
+
};
|
|
17183
|
+
"invoke-tool-version": {
|
|
17184
|
+
parameters: {
|
|
17185
|
+
query?: never;
|
|
17186
|
+
header?: {
|
|
17187
|
+
/** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
|
|
17188
|
+
"x-mongo-cluster-name"?: string | null;
|
|
17189
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
17190
|
+
};
|
|
17191
|
+
path: {
|
|
17192
|
+
organization: string;
|
|
17193
|
+
/** @description The ID of the tool to invoke */
|
|
17194
|
+
tool_id: string;
|
|
17195
|
+
/** @description The version of the tool to invoke */
|
|
17196
|
+
version: string;
|
|
17197
|
+
};
|
|
17198
|
+
cookie?: never;
|
|
17199
|
+
};
|
|
17200
|
+
requestBody: {
|
|
17201
|
+
content: {
|
|
17202
|
+
"application/json": components["schemas"]["tool__invoke_tool_version__Request"];
|
|
17203
|
+
};
|
|
17204
|
+
};
|
|
17205
|
+
responses: {
|
|
17206
|
+
/** @description Succeeded */
|
|
17207
|
+
200: {
|
|
17208
|
+
headers: {
|
|
17209
|
+
[name: string]: unknown;
|
|
17210
|
+
};
|
|
17211
|
+
content: {
|
|
17212
|
+
"application/json": components["schemas"]["tool__invoke_tool_version__Response"];
|
|
17213
|
+
};
|
|
17214
|
+
};
|
|
17215
|
+
/** @description The input parameters do not conform to the tool's input schema. */
|
|
17216
|
+
400: {
|
|
17217
|
+
headers: {
|
|
17218
|
+
[name: string]: unknown;
|
|
17219
|
+
};
|
|
17220
|
+
content?: never;
|
|
17221
|
+
};
|
|
17222
|
+
/** @description Invalid authorization credentials. */
|
|
17223
|
+
401: {
|
|
17224
|
+
headers: {
|
|
17225
|
+
[name: string]: unknown;
|
|
17226
|
+
};
|
|
17227
|
+
content?: never;
|
|
17228
|
+
};
|
|
17229
|
+
/** @description Missing required permissions. */
|
|
17230
|
+
403: {
|
|
17231
|
+
headers: {
|
|
17232
|
+
[name: string]: unknown;
|
|
17233
|
+
};
|
|
17234
|
+
content?: never;
|
|
17235
|
+
};
|
|
17236
|
+
/** @description The specified organization, tool, or tool version does not exist. */
|
|
17237
|
+
404: {
|
|
17238
|
+
headers: {
|
|
17239
|
+
[name: string]: unknown;
|
|
17240
|
+
};
|
|
17241
|
+
content?: never;
|
|
17242
|
+
};
|
|
17243
|
+
/** @description Invalid request path parameter or request body failed validation. */
|
|
17244
|
+
422: {
|
|
17245
|
+
headers: {
|
|
17246
|
+
[name: string]: unknown;
|
|
17247
|
+
};
|
|
17248
|
+
content?: never;
|
|
17249
|
+
};
|
|
17250
|
+
/** @description The user has exceeded the rate limit of 10 requests per minute for this endpoint. */
|
|
17251
|
+
429: {
|
|
17252
|
+
headers: {
|
|
17253
|
+
[name: string]: unknown;
|
|
17254
|
+
};
|
|
17255
|
+
content?: never;
|
|
17256
|
+
};
|
|
17257
|
+
/** @description The service is going through temporary maintenance. */
|
|
17258
|
+
503: {
|
|
17259
|
+
headers: {
|
|
17260
|
+
[name: string]: unknown;
|
|
17261
|
+
};
|
|
17262
|
+
content?: never;
|
|
17263
|
+
};
|
|
17264
|
+
};
|
|
17265
|
+
};
|
|
16678
17266
|
}
|