@amigo-ai/sdk 0.23.0 → 0.25.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.
- package/dist/types/generated/api-types.d.ts +152 -109
- package/package.json +1 -1
|
@@ -2236,6 +2236,23 @@ export interface paths {
|
|
|
2236
2236
|
patch?: never;
|
|
2237
2237
|
trace?: never;
|
|
2238
2238
|
};
|
|
2239
|
+
"/v1/{organization}/tool/test": {
|
|
2240
|
+
parameters: {
|
|
2241
|
+
query?: never;
|
|
2242
|
+
header?: never;
|
|
2243
|
+
path?: never;
|
|
2244
|
+
cookie?: never;
|
|
2245
|
+
};
|
|
2246
|
+
get?: never;
|
|
2247
|
+
put?: never;
|
|
2248
|
+
/** Test a tool */
|
|
2249
|
+
post: operations["test-tool"];
|
|
2250
|
+
delete?: never;
|
|
2251
|
+
options?: never;
|
|
2252
|
+
head?: never;
|
|
2253
|
+
patch?: never;
|
|
2254
|
+
trace?: never;
|
|
2255
|
+
};
|
|
2239
2256
|
}
|
|
2240
2257
|
export type webhooks = Record<string, never>;
|
|
2241
2258
|
export interface components {
|
|
@@ -2423,8 +2440,7 @@ export interface components {
|
|
|
2423
2440
|
*/
|
|
2424
2441
|
tool_call_logs: components["schemas"]["ToolCallLog"][][];
|
|
2425
2442
|
};
|
|
2426
|
-
|
|
2427
|
-
"AgentFrameworkInvocationMetadata-Output": components["schemas"]["StateTransitionInvocationMetadata-Output"] | components["schemas"]["EngageUserInvocationMetadata-Output"];
|
|
2443
|
+
AgentFrameworkInvocationMetadata: components["schemas"]["StateTransitionInvocationMetadata"] | components["schemas"]["EngageUserInvocationMetadata"];
|
|
2428
2444
|
/** AnnotationState */
|
|
2429
2445
|
"AnnotationState-Input": {
|
|
2430
2446
|
/**
|
|
@@ -2997,28 +3013,7 @@ export interface components {
|
|
|
2997
3013
|
overriding: boolean;
|
|
2998
3014
|
};
|
|
2999
3015
|
/** EngageUserInvocationMetadata */
|
|
3000
|
-
|
|
3001
|
-
/**
|
|
3002
|
-
* @description discriminator enum property added by openapi-typescript
|
|
3003
|
-
* @enum {string}
|
|
3004
|
-
*/
|
|
3005
|
-
type: "engage-user";
|
|
3006
|
-
/**
|
|
3007
|
-
* Current State Machine And Version
|
|
3008
|
-
* @description The ID and version of the state machine that is currently being executed.
|
|
3009
|
-
*/
|
|
3010
|
-
current_state_machine_and_version: [
|
|
3011
|
-
string,
|
|
3012
|
-
number
|
|
3013
|
-
];
|
|
3014
|
-
/**
|
|
3015
|
-
* Tool Call Round Index
|
|
3016
|
-
* @description The index of the tool call round.
|
|
3017
|
-
*/
|
|
3018
|
-
tool_call_round_index: number;
|
|
3019
|
-
};
|
|
3020
|
-
/** EngageUserInvocationMetadata */
|
|
3021
|
-
"EngageUserInvocationMetadata-Output": {
|
|
3016
|
+
EngageUserInvocationMetadata: {
|
|
3022
3017
|
/**
|
|
3023
3018
|
* @description discriminator enum property added by openapi-typescript
|
|
3024
3019
|
* @enum {string}
|
|
@@ -3362,8 +3357,7 @@ export interface components {
|
|
|
3362
3357
|
conversation_completed: boolean;
|
|
3363
3358
|
};
|
|
3364
3359
|
InvocationResult: components["schemas"]["SucceededInvocationResult"] | components["schemas"]["FailedInvocationResult"];
|
|
3365
|
-
|
|
3366
|
-
"InvocationSource-Output": components["schemas"]["RegularConversationInvocationSource-Output"] | components["schemas"]["SimulationConversationInvocationSource-Output"];
|
|
3360
|
+
InvocationSource: components["schemas"]["RegularConversationInvocationSource"] | components["schemas"]["SimulationConversationInvocationSource"];
|
|
3367
3361
|
InvocationStatus: components["schemas"]["SucceededInvocationStatus"] | components["schemas"]["FailedInvocationStatus"];
|
|
3368
3362
|
/** JumpbackStateTransitionLog */
|
|
3369
3363
|
JumpbackStateTransitionLog: {
|
|
@@ -4379,32 +4373,7 @@ export interface components {
|
|
|
4379
4373
|
tool_call_logs: components["schemas"]["ToolCallLog"][][];
|
|
4380
4374
|
};
|
|
4381
4375
|
/** RegularConversationInvocationSource */
|
|
4382
|
-
|
|
4383
|
-
/**
|
|
4384
|
-
* @description discriminator enum property added by openapi-typescript
|
|
4385
|
-
* @enum {string}
|
|
4386
|
-
*/
|
|
4387
|
-
type: "regular-conversation";
|
|
4388
|
-
/**
|
|
4389
|
-
* User Id
|
|
4390
|
-
* @description The ID of the user whose conversation invoked the tool.
|
|
4391
|
-
*/
|
|
4392
|
-
user_id: string;
|
|
4393
|
-
/**
|
|
4394
|
-
* Conversation Id
|
|
4395
|
-
* @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.
|
|
4396
|
-
*/
|
|
4397
|
-
conversation_id: string | null;
|
|
4398
|
-
/**
|
|
4399
|
-
* Interaction Id
|
|
4400
|
-
* @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.
|
|
4401
|
-
*/
|
|
4402
|
-
interaction_id: string | null;
|
|
4403
|
-
/** @description Metadata about the invocation. */
|
|
4404
|
-
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Input"];
|
|
4405
|
-
};
|
|
4406
|
-
/** RegularConversationInvocationSource */
|
|
4407
|
-
"RegularConversationInvocationSource-Output": {
|
|
4376
|
+
RegularConversationInvocationSource: {
|
|
4408
4377
|
/**
|
|
4409
4378
|
* @description discriminator enum property added by openapi-typescript
|
|
4410
4379
|
* @enum {string}
|
|
@@ -4426,7 +4395,7 @@ export interface components {
|
|
|
4426
4395
|
*/
|
|
4427
4396
|
interaction_id: string | null;
|
|
4428
4397
|
/** @description Metadata about the invocation. */
|
|
4429
|
-
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata
|
|
4398
|
+
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata"];
|
|
4430
4399
|
};
|
|
4431
4400
|
/** RelationshipToDeveloper */
|
|
4432
4401
|
"RelationshipToDeveloper-Input": {
|
|
@@ -4738,7 +4707,7 @@ export interface components {
|
|
|
4738
4707
|
type: "side-effect";
|
|
4739
4708
|
};
|
|
4740
4709
|
/** SimulationConversationInvocationSource */
|
|
4741
|
-
|
|
4710
|
+
SimulationConversationInvocationSource: {
|
|
4742
4711
|
/**
|
|
4743
4712
|
* @description discriminator enum property added by openapi-typescript
|
|
4744
4713
|
* @enum {string}
|
|
@@ -4751,23 +4720,7 @@ export interface components {
|
|
|
4751
4720
|
/** Run Index */
|
|
4752
4721
|
run_index: number | null;
|
|
4753
4722
|
/** @description Metadata about the invocation. */
|
|
4754
|
-
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata
|
|
4755
|
-
};
|
|
4756
|
-
/** SimulationConversationInvocationSource */
|
|
4757
|
-
"SimulationConversationInvocationSource-Output": {
|
|
4758
|
-
/**
|
|
4759
|
-
* @description discriminator enum property added by openapi-typescript
|
|
4760
|
-
* @enum {string}
|
|
4761
|
-
*/
|
|
4762
|
-
type: "simulation-conversation";
|
|
4763
|
-
/** Simulation Unit Test Set Run Id */
|
|
4764
|
-
simulation_unit_test_set_run_id: string | null;
|
|
4765
|
-
/** Unit Test Id */
|
|
4766
|
-
unit_test_id: string | null;
|
|
4767
|
-
/** Run Index */
|
|
4768
|
-
run_index: number | null;
|
|
4769
|
-
/** @description Metadata about the invocation. */
|
|
4770
|
-
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Output"];
|
|
4723
|
+
invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata"];
|
|
4771
4724
|
};
|
|
4772
4725
|
/** SimulationEvaluationSource */
|
|
4773
4726
|
SimulationEvaluationSource: {
|
|
@@ -5308,38 +5261,7 @@ export interface components {
|
|
|
5308
5261
|
};
|
|
5309
5262
|
StateOrRefName: string;
|
|
5310
5263
|
/** StateTransitionInvocationMetadata */
|
|
5311
|
-
|
|
5312
|
-
/**
|
|
5313
|
-
* @description discriminator enum property added by openapi-typescript
|
|
5314
|
-
* @enum {string}
|
|
5315
|
-
*/
|
|
5316
|
-
type: "state-transition";
|
|
5317
|
-
/**
|
|
5318
|
-
* Current State Machine And Version
|
|
5319
|
-
* @description The ID and version of the state machine that is currently being executed.
|
|
5320
|
-
*/
|
|
5321
|
-
current_state_machine_and_version: [
|
|
5322
|
-
string,
|
|
5323
|
-
number
|
|
5324
|
-
];
|
|
5325
|
-
/**
|
|
5326
|
-
* State Name
|
|
5327
|
-
* @description The name of the state during which the tool was invoked.
|
|
5328
|
-
*/
|
|
5329
|
-
state_name: string;
|
|
5330
|
-
/**
|
|
5331
|
-
* State Transition Index
|
|
5332
|
-
* @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.
|
|
5333
|
-
*/
|
|
5334
|
-
state_transition_index: number;
|
|
5335
|
-
/**
|
|
5336
|
-
* Tool Call Round Index
|
|
5337
|
-
* @description The index of the tool call round.
|
|
5338
|
-
*/
|
|
5339
|
-
tool_call_round_index: number;
|
|
5340
|
-
};
|
|
5341
|
-
/** StateTransitionInvocationMetadata */
|
|
5342
|
-
"StateTransitionInvocationMetadata-Output": {
|
|
5264
|
+
StateTransitionInvocationMetadata: {
|
|
5343
5265
|
/**
|
|
5344
5266
|
* @description discriminator enum property added by openapi-typescript
|
|
5345
5267
|
* @enum {string}
|
|
@@ -5640,7 +5562,7 @@ export interface components {
|
|
|
5640
5562
|
/** @description The status of the tool invocation. */
|
|
5641
5563
|
invocation_status: components["schemas"]["InvocationStatus"];
|
|
5642
5564
|
/** @description The source of the tool invocation. */
|
|
5643
|
-
invocation_source: components["schemas"]["InvocationSource
|
|
5565
|
+
invocation_source: components["schemas"]["InvocationSource"];
|
|
5644
5566
|
/** Logs */
|
|
5645
5567
|
logs: string[];
|
|
5646
5568
|
/**
|
|
@@ -8535,6 +8457,43 @@ export interface components {
|
|
|
8535
8457
|
tool_invocations: components["schemas"]["ToolInvocationInstance"][];
|
|
8536
8458
|
};
|
|
8537
8459
|
/** Request */
|
|
8460
|
+
tool__test_tool__Request: {
|
|
8461
|
+
/**
|
|
8462
|
+
* Inputs
|
|
8463
|
+
* @description The list of inputs for the tool invocation.
|
|
8464
|
+
*/
|
|
8465
|
+
inputs: components["schemas"]["Input"][];
|
|
8466
|
+
/**
|
|
8467
|
+
* Commit Hash
|
|
8468
|
+
* @description The commit hash of the tool to test.
|
|
8469
|
+
*/
|
|
8470
|
+
commit_hash: string;
|
|
8471
|
+
/**
|
|
8472
|
+
* Project Path
|
|
8473
|
+
* @description The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.
|
|
8474
|
+
*/
|
|
8475
|
+
project_path: string;
|
|
8476
|
+
/**
|
|
8477
|
+
* Required Envvars
|
|
8478
|
+
* @description The environment variables required for the tool to run.
|
|
8479
|
+
*/
|
|
8480
|
+
required_envvars: {
|
|
8481
|
+
[key: string]: string;
|
|
8482
|
+
};
|
|
8483
|
+
/**
|
|
8484
|
+
* Required Secret Envvars
|
|
8485
|
+
* @description The secret environment variables required for the tool to run.
|
|
8486
|
+
*/
|
|
8487
|
+
required_secret_envvars: {
|
|
8488
|
+
[key: string]: string;
|
|
8489
|
+
};
|
|
8490
|
+
};
|
|
8491
|
+
/** Response */
|
|
8492
|
+
tool__test_tool__Response: {
|
|
8493
|
+
/** Invocation Results */
|
|
8494
|
+
invocation_results: components["schemas"]["InvocationResult"][];
|
|
8495
|
+
};
|
|
8496
|
+
/** Request */
|
|
8538
8497
|
user__create_invited_user__Request: {
|
|
8539
8498
|
/** @description The first name of the user. */
|
|
8540
8499
|
first_name: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
|
|
@@ -17053,7 +17012,7 @@ export interface operations {
|
|
|
17053
17012
|
"application/json": components["schemas"]["tool__publish_tool_version__Response"];
|
|
17054
17013
|
};
|
|
17055
17014
|
};
|
|
17056
|
-
/** @description Specified commit is older than the last valid commit, or the environment variables required by the tool version do not exist on the tool
|
|
17015
|
+
/** @description Specified commit is older than the last valid commit, or the environment variables required by the tool version do not exist on the tool. */
|
|
17057
17016
|
400: {
|
|
17058
17017
|
headers: {
|
|
17059
17018
|
[name: string]: unknown;
|
|
@@ -17116,10 +17075,10 @@ export interface operations {
|
|
|
17116
17075
|
query?: {
|
|
17117
17076
|
/** @description The ID of the tool to get invocations for. */
|
|
17118
17077
|
tool_id?: string[];
|
|
17119
|
-
/** @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.
|
|
17120
|
-
version?:
|
|
17078
|
+
/** @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. */
|
|
17079
|
+
version?: string[];
|
|
17121
17080
|
/** @description The source of the invocation */
|
|
17122
|
-
invocation_source_type?:
|
|
17081
|
+
invocation_source_type?: ("regular-conversation" | "simulation-conversation")[];
|
|
17123
17082
|
/** @description The conversation ID associated with the invocation if it's of invocation source `regular-conversation` */
|
|
17124
17083
|
conversation_id?: string[];
|
|
17125
17084
|
/** @description The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation` */
|
|
@@ -17298,7 +17257,7 @@ export interface operations {
|
|
|
17298
17257
|
/** @description The ID of the tool to get invocations for. */
|
|
17299
17258
|
tool_id?: string[];
|
|
17300
17259
|
/** @description The source of the invocation */
|
|
17301
|
-
invocation_source_type?:
|
|
17260
|
+
invocation_source_type?: ("regular-conversation" | "simulation-conversation")[];
|
|
17302
17261
|
/** @description The conversation ID associated with the invocation if it's of invocation source `regular-conversation` */
|
|
17303
17262
|
conversation_id?: string[];
|
|
17304
17263
|
/** @description The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation` */
|
|
@@ -17371,4 +17330,88 @@ export interface operations {
|
|
|
17371
17330
|
};
|
|
17372
17331
|
};
|
|
17373
17332
|
};
|
|
17333
|
+
"test-tool": {
|
|
17334
|
+
parameters: {
|
|
17335
|
+
query?: never;
|
|
17336
|
+
header?: {
|
|
17337
|
+
/** @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. */
|
|
17338
|
+
"x-mongo-cluster-name"?: string | null;
|
|
17339
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
17340
|
+
};
|
|
17341
|
+
path: {
|
|
17342
|
+
organization: string;
|
|
17343
|
+
};
|
|
17344
|
+
cookie?: never;
|
|
17345
|
+
};
|
|
17346
|
+
requestBody: {
|
|
17347
|
+
content: {
|
|
17348
|
+
"application/json": components["schemas"]["tool__test_tool__Request"];
|
|
17349
|
+
};
|
|
17350
|
+
};
|
|
17351
|
+
responses: {
|
|
17352
|
+
/** @description Succeeded */
|
|
17353
|
+
200: {
|
|
17354
|
+
headers: {
|
|
17355
|
+
[name: string]: unknown;
|
|
17356
|
+
};
|
|
17357
|
+
content: {
|
|
17358
|
+
"application/json": components["schemas"]["tool__test_tool__Response"];
|
|
17359
|
+
};
|
|
17360
|
+
};
|
|
17361
|
+
/** @description This error can occur due to the following reasons:
|
|
17362
|
+
* * An environment variable is specified as both secret and non-secret.
|
|
17363
|
+
* * The specified tool commit failed CI checks.
|
|
17364
|
+
* * Required environment variables in the tool are not declared in the reqeust.
|
|
17365
|
+
* * Input parameters do not conform to the tool's input schema.
|
|
17366
|
+
* */
|
|
17367
|
+
400: {
|
|
17368
|
+
headers: {
|
|
17369
|
+
[name: string]: unknown;
|
|
17370
|
+
};
|
|
17371
|
+
content?: never;
|
|
17372
|
+
};
|
|
17373
|
+
/** @description Invalid authorization credentials. */
|
|
17374
|
+
401: {
|
|
17375
|
+
headers: {
|
|
17376
|
+
[name: string]: unknown;
|
|
17377
|
+
};
|
|
17378
|
+
content?: never;
|
|
17379
|
+
};
|
|
17380
|
+
/** @description Missing required permissions. */
|
|
17381
|
+
403: {
|
|
17382
|
+
headers: {
|
|
17383
|
+
[name: string]: unknown;
|
|
17384
|
+
};
|
|
17385
|
+
content?: never;
|
|
17386
|
+
};
|
|
17387
|
+
/** @description The specified organization or tool commit does not exist. */
|
|
17388
|
+
404: {
|
|
17389
|
+
headers: {
|
|
17390
|
+
[name: string]: unknown;
|
|
17391
|
+
};
|
|
17392
|
+
content?: never;
|
|
17393
|
+
};
|
|
17394
|
+
/** @description Invalid request path parameter or request body failed validation. */
|
|
17395
|
+
422: {
|
|
17396
|
+
headers: {
|
|
17397
|
+
[name: string]: unknown;
|
|
17398
|
+
};
|
|
17399
|
+
content?: never;
|
|
17400
|
+
};
|
|
17401
|
+
/** @description The user has exceeded the rate limit of 1 request per minute for this endpoint. */
|
|
17402
|
+
429: {
|
|
17403
|
+
headers: {
|
|
17404
|
+
[name: string]: unknown;
|
|
17405
|
+
};
|
|
17406
|
+
content?: never;
|
|
17407
|
+
};
|
|
17408
|
+
/** @description The service is going through temporary maintenance. */
|
|
17409
|
+
503: {
|
|
17410
|
+
headers: {
|
|
17411
|
+
[name: string]: unknown;
|
|
17412
|
+
};
|
|
17413
|
+
content?: never;
|
|
17414
|
+
};
|
|
17415
|
+
};
|
|
17416
|
+
};
|
|
17374
17417
|
}
|