@amigo-ai/sdk 0.22.0 → 0.24.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.
@@ -2219,6 +2219,23 @@ export interface paths {
2219
2219
  patch?: never;
2220
2220
  trace?: never;
2221
2221
  };
2222
+ "/v1/{organization}/tool/invocation/search": {
2223
+ parameters: {
2224
+ query?: never;
2225
+ header?: never;
2226
+ path?: never;
2227
+ cookie?: never;
2228
+ };
2229
+ /** Search tool invocations */
2230
+ get: operations["search-tool-invocations"];
2231
+ put?: never;
2232
+ post?: never;
2233
+ delete?: never;
2234
+ options?: never;
2235
+ head?: never;
2236
+ patch?: never;
2237
+ trace?: never;
2238
+ };
2222
2239
  }
2223
2240
  export type webhooks = Record<string, never>;
2224
2241
  export interface components {
@@ -2406,8 +2423,7 @@ export interface components {
2406
2423
  */
2407
2424
  tool_call_logs: components["schemas"]["ToolCallLog"][][];
2408
2425
  };
2409
- "AgentFrameworkInvocationMetadata-Input": components["schemas"]["StateTransitionInvocationMetadata-Input"] | components["schemas"]["EngageUserInvocationMetadata-Input"];
2410
- "AgentFrameworkInvocationMetadata-Output": components["schemas"]["StateTransitionInvocationMetadata-Output"] | components["schemas"]["EngageUserInvocationMetadata-Output"];
2426
+ AgentFrameworkInvocationMetadata: components["schemas"]["StateTransitionInvocationMetadata"] | components["schemas"]["EngageUserInvocationMetadata"];
2411
2427
  /** AnnotationState */
2412
2428
  "AnnotationState-Input": {
2413
2429
  /**
@@ -2980,28 +2996,7 @@ export interface components {
2980
2996
  overriding: boolean;
2981
2997
  };
2982
2998
  /** 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": {
2999
+ EngageUserInvocationMetadata: {
3005
3000
  /**
3006
3001
  * @description discriminator enum property added by openapi-typescript
3007
3002
  * @enum {string}
@@ -3345,8 +3340,7 @@ export interface components {
3345
3340
  conversation_completed: boolean;
3346
3341
  };
3347
3342
  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"];
3343
+ InvocationSource: components["schemas"]["RegularConversationInvocationSource"] | components["schemas"]["SimulationConversationInvocationSource"];
3350
3344
  InvocationStatus: components["schemas"]["SucceededInvocationStatus"] | components["schemas"]["FailedInvocationStatus"];
3351
3345
  /** JumpbackStateTransitionLog */
3352
3346
  JumpbackStateTransitionLog: {
@@ -4362,32 +4356,7 @@ export interface components {
4362
4356
  tool_call_logs: components["schemas"]["ToolCallLog"][][];
4363
4357
  };
4364
4358
  /** 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": {
4359
+ RegularConversationInvocationSource: {
4391
4360
  /**
4392
4361
  * @description discriminator enum property added by openapi-typescript
4393
4362
  * @enum {string}
@@ -4409,7 +4378,7 @@ export interface components {
4409
4378
  */
4410
4379
  interaction_id: string | null;
4411
4380
  /** @description Metadata about the invocation. */
4412
- invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Output"];
4381
+ invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata"];
4413
4382
  };
4414
4383
  /** RelationshipToDeveloper */
4415
4384
  "RelationshipToDeveloper-Input": {
@@ -4721,23 +4690,7 @@ export interface components {
4721
4690
  type: "side-effect";
4722
4691
  };
4723
4692
  /** 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": {
4693
+ SimulationConversationInvocationSource: {
4741
4694
  /**
4742
4695
  * @description discriminator enum property added by openapi-typescript
4743
4696
  * @enum {string}
@@ -4750,7 +4703,7 @@ export interface components {
4750
4703
  /** Run Index */
4751
4704
  run_index: number | null;
4752
4705
  /** @description Metadata about the invocation. */
4753
- invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata-Output"];
4706
+ invocation_metadata: components["schemas"]["AgentFrameworkInvocationMetadata"];
4754
4707
  };
4755
4708
  /** SimulationEvaluationSource */
4756
4709
  SimulationEvaluationSource: {
@@ -5291,38 +5244,7 @@ export interface components {
5291
5244
  };
5292
5245
  StateOrRefName: string;
5293
5246
  /** 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": {
5247
+ StateTransitionInvocationMetadata: {
5326
5248
  /**
5327
5249
  * @description discriminator enum property added by openapi-typescript
5328
5250
  * @enum {string}
@@ -5623,7 +5545,7 @@ export interface components {
5623
5545
  /** @description The status of the tool invocation. */
5624
5546
  invocation_status: components["schemas"]["InvocationStatus"];
5625
5547
  /** @description The source of the tool invocation. */
5626
- invocation_source: components["schemas"]["InvocationSource-Output"];
5548
+ invocation_source: components["schemas"]["InvocationSource"];
5627
5549
  /** Logs */
5628
5550
  logs: string[];
5629
5551
  /**
@@ -8509,6 +8431,14 @@ export interface components {
8509
8431
  */
8510
8432
  new_version: string;
8511
8433
  };
8434
+ /** Response */
8435
+ tool__search_tool_invocations__Response: {
8436
+ /**
8437
+ * Tool Invocations
8438
+ * @description The list of tool invocations.
8439
+ */
8440
+ tool_invocations: components["schemas"]["ToolInvocationInstance"][];
8441
+ };
8512
8442
  /** Request */
8513
8443
  user__create_invited_user__Request: {
8514
8444
  /** @description The first name of the user. */
@@ -17091,10 +17021,10 @@ export interface operations {
17091
17021
  query?: {
17092
17022
  /** @description The ID of the tool to get invocations for. */
17093
17023
  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)[];
17024
+ /** @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. */
17025
+ version?: string[];
17096
17026
  /** @description The source of the invocation */
17097
- invocation_source_type?: components["schemas"]["InvocationSource-Input"][];
17027
+ invocation_source_type?: ("regular-conversation" | "simulation-conversation")[];
17098
17028
  /** @description The conversation ID associated with the invocation if it's of invocation source `regular-conversation` */
17099
17029
  conversation_id?: string[];
17100
17030
  /** @description The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation` */
@@ -17263,4 +17193,87 @@ export interface operations {
17263
17193
  };
17264
17194
  };
17265
17195
  };
17196
+ "search-tool-invocations": {
17197
+ parameters: {
17198
+ query: {
17199
+ /** @description The search query. */
17200
+ query: string;
17201
+ /** @description The fields to query against. By default, all supported fields are queried against. */
17202
+ query_against: ("invocation_status.exception_message" | "invocation_status.exception_type" | "invocation_status.exception_stack_trace" | "invocation_status.output")[];
17203
+ /** @description The ID of the tool to get invocations for. */
17204
+ tool_id?: string[];
17205
+ /** @description The source of the invocation */
17206
+ invocation_source_type?: ("regular-conversation" | "simulation-conversation")[];
17207
+ /** @description The conversation ID associated with the invocation if it's of invocation source `regular-conversation` */
17208
+ conversation_id?: string[];
17209
+ /** @description The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation` */
17210
+ simulation_unit_test_set_run_id?: string[];
17211
+ /** @description Whether the invocation succeeded */
17212
+ succeeded?: boolean | null;
17213
+ };
17214
+ header?: {
17215
+ /** @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. */
17216
+ "x-mongo-cluster-name"?: string | null;
17217
+ "Sec-WebSocket-Protocol"?: string[];
17218
+ };
17219
+ path: {
17220
+ organization: string;
17221
+ };
17222
+ cookie?: never;
17223
+ };
17224
+ requestBody?: never;
17225
+ responses: {
17226
+ /** @description Succeeded. */
17227
+ 200: {
17228
+ headers: {
17229
+ [name: string]: unknown;
17230
+ };
17231
+ content: {
17232
+ "application/json": components["schemas"]["tool__search_tool_invocations__Response"];
17233
+ };
17234
+ };
17235
+ /** @description Invalid authorization credentials. */
17236
+ 401: {
17237
+ headers: {
17238
+ [name: string]: unknown;
17239
+ };
17240
+ content?: never;
17241
+ };
17242
+ /** @description Missing required permissions. */
17243
+ 403: {
17244
+ headers: {
17245
+ [name: string]: unknown;
17246
+ };
17247
+ content?: never;
17248
+ };
17249
+ /** @description The organization is not found. */
17250
+ 404: {
17251
+ headers: {
17252
+ [name: string]: unknown;
17253
+ };
17254
+ content?: never;
17255
+ };
17256
+ /** @description Invalid request path parameter or request query parameter failed validation. */
17257
+ 422: {
17258
+ headers: {
17259
+ [name: string]: unknown;
17260
+ };
17261
+ content?: never;
17262
+ };
17263
+ /** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
17264
+ 429: {
17265
+ headers: {
17266
+ [name: string]: unknown;
17267
+ };
17268
+ content?: never;
17269
+ };
17270
+ /** @description The service is going through temporary maintenance. */
17271
+ 503: {
17272
+ headers: {
17273
+ [name: string]: unknown;
17274
+ };
17275
+ content?: never;
17276
+ };
17277
+ };
17278
+ };
17266
17279
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/sdk",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"