@aws-sdk/client-bedrock-agent-runtime 3.696.0 → 3.699.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.
@@ -4,6 +4,8 @@ import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from ".
4
4
  import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "../commands/GetAgentMemoryCommand";
5
5
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "../commands/InvokeAgentCommand";
6
6
  import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "../commands/InvokeFlowCommand";
7
+ import { InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput } from "../commands/InvokeInlineAgentCommand";
8
+ import { OptimizePromptCommandInput, OptimizePromptCommandOutput } from "../commands/OptimizePromptCommand";
7
9
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "../commands/RetrieveAndGenerateCommand";
8
10
  import { RetrieveCommandInput, RetrieveCommandOutput } from "../commands/RetrieveCommand";
9
11
  /**
@@ -22,6 +24,14 @@ export declare const se_InvokeAgentCommand: (input: InvokeAgentCommandInput, con
22
24
  * serializeAws_restJson1InvokeFlowCommand
23
25
  */
24
26
  export declare const se_InvokeFlowCommand: (input: InvokeFlowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
+ /**
28
+ * serializeAws_restJson1InvokeInlineAgentCommand
29
+ */
30
+ export declare const se_InvokeInlineAgentCommand: (input: InvokeInlineAgentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
+ /**
32
+ * serializeAws_restJson1OptimizePromptCommand
33
+ */
34
+ export declare const se_OptimizePromptCommand: (input: OptimizePromptCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
25
35
  /**
26
36
  * serializeAws_restJson1RetrieveCommand
27
37
  */
@@ -46,6 +56,14 @@ export declare const de_InvokeAgentCommand: (output: __HttpResponse, context: __
46
56
  * deserializeAws_restJson1InvokeFlowCommand
47
57
  */
48
58
  export declare const de_InvokeFlowCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<InvokeFlowCommandOutput>;
59
+ /**
60
+ * deserializeAws_restJson1InvokeInlineAgentCommand
61
+ */
62
+ export declare const de_InvokeInlineAgentCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<InvokeInlineAgentCommandOutput>;
63
+ /**
64
+ * deserializeAws_restJson1OptimizePromptCommand
65
+ */
66
+ export declare const de_OptimizePromptCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<OptimizePromptCommandOutput>;
49
67
  /**
50
68
  * deserializeAws_restJson1RetrieveCommand
51
69
  */
@@ -16,6 +16,14 @@ import {
16
16
  InvokeFlowCommandInput,
17
17
  InvokeFlowCommandOutput,
18
18
  } from "./commands/InvokeFlowCommand";
19
+ import {
20
+ InvokeInlineAgentCommandInput,
21
+ InvokeInlineAgentCommandOutput,
22
+ } from "./commands/InvokeInlineAgentCommand";
23
+ import {
24
+ OptimizePromptCommandInput,
25
+ OptimizePromptCommandOutput,
26
+ } from "./commands/OptimizePromptCommand";
19
27
  import {
20
28
  RetrieveAndGenerateCommandInput,
21
29
  RetrieveAndGenerateCommandOutput,
@@ -77,6 +85,32 @@ export interface BedrockAgentRuntime {
77
85
  options: __HttpHandlerOptions,
78
86
  cb: (err: any, data?: InvokeFlowCommandOutput) => void
79
87
  ): void;
88
+ invokeInlineAgent(
89
+ args: InvokeInlineAgentCommandInput,
90
+ options?: __HttpHandlerOptions
91
+ ): Promise<InvokeInlineAgentCommandOutput>;
92
+ invokeInlineAgent(
93
+ args: InvokeInlineAgentCommandInput,
94
+ cb: (err: any, data?: InvokeInlineAgentCommandOutput) => void
95
+ ): void;
96
+ invokeInlineAgent(
97
+ args: InvokeInlineAgentCommandInput,
98
+ options: __HttpHandlerOptions,
99
+ cb: (err: any, data?: InvokeInlineAgentCommandOutput) => void
100
+ ): void;
101
+ optimizePrompt(
102
+ args: OptimizePromptCommandInput,
103
+ options?: __HttpHandlerOptions
104
+ ): Promise<OptimizePromptCommandOutput>;
105
+ optimizePrompt(
106
+ args: OptimizePromptCommandInput,
107
+ cb: (err: any, data?: OptimizePromptCommandOutput) => void
108
+ ): void;
109
+ optimizePrompt(
110
+ args: OptimizePromptCommandInput,
111
+ options: __HttpHandlerOptions,
112
+ cb: (err: any, data?: OptimizePromptCommandOutput) => void
113
+ ): void;
80
114
  retrieve(
81
115
  args: RetrieveCommandInput,
82
116
  options?: __HttpHandlerOptions
@@ -66,6 +66,14 @@ import {
66
66
  InvokeFlowCommandInput,
67
67
  InvokeFlowCommandOutput,
68
68
  } from "./commands/InvokeFlowCommand";
69
+ import {
70
+ InvokeInlineAgentCommandInput,
71
+ InvokeInlineAgentCommandOutput,
72
+ } from "./commands/InvokeInlineAgentCommand";
73
+ import {
74
+ OptimizePromptCommandInput,
75
+ OptimizePromptCommandOutput,
76
+ } from "./commands/OptimizePromptCommand";
69
77
  import {
70
78
  RetrieveAndGenerateCommandInput,
71
79
  RetrieveAndGenerateCommandOutput,
@@ -86,6 +94,8 @@ export type ServiceInputTypes =
86
94
  | GetAgentMemoryCommandInput
87
95
  | InvokeAgentCommandInput
88
96
  | InvokeFlowCommandInput
97
+ | InvokeInlineAgentCommandInput
98
+ | OptimizePromptCommandInput
89
99
  | RetrieveAndGenerateCommandInput
90
100
  | RetrieveCommandInput;
91
101
  export type ServiceOutputTypes =
@@ -93,6 +103,8 @@ export type ServiceOutputTypes =
93
103
  | GetAgentMemoryCommandOutput
94
104
  | InvokeAgentCommandOutput
95
105
  | InvokeFlowCommandOutput
106
+ | InvokeInlineAgentCommandOutput
107
+ | OptimizePromptCommandOutput
96
108
  | RetrieveAndGenerateCommandOutput
97
109
  | RetrieveCommandOutput;
98
110
  export interface ClientDefaults
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockAgentRuntimeClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockAgentRuntimeClient";
8
+ import {
9
+ InvokeInlineAgentRequest,
10
+ InvokeInlineAgentResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface InvokeInlineAgentCommandInput
15
+ extends InvokeInlineAgentRequest {}
16
+ export interface InvokeInlineAgentCommandOutput
17
+ extends InvokeInlineAgentResponse,
18
+ __MetadataBearer {}
19
+ declare const InvokeInlineAgentCommand_base: {
20
+ new (
21
+ input: InvokeInlineAgentCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ InvokeInlineAgentCommandInput,
24
+ InvokeInlineAgentCommandOutput,
25
+ BedrockAgentRuntimeClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: InvokeInlineAgentCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ InvokeInlineAgentCommandInput,
33
+ InvokeInlineAgentCommandOutput,
34
+ BedrockAgentRuntimeClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class InvokeInlineAgentCommand extends InvokeInlineAgentCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: InvokeInlineAgentRequest;
44
+ output: InvokeInlineAgentResponse;
45
+ };
46
+ sdk: {
47
+ input: InvokeInlineAgentCommandInput;
48
+ output: InvokeInlineAgentCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockAgentRuntimeClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockAgentRuntimeClient";
8
+ import {
9
+ OptimizePromptRequest,
10
+ OptimizePromptResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface OptimizePromptCommandInput extends OptimizePromptRequest {}
15
+ export interface OptimizePromptCommandOutput
16
+ extends OptimizePromptResponse,
17
+ __MetadataBearer {}
18
+ declare const OptimizePromptCommand_base: {
19
+ new (
20
+ input: OptimizePromptCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ OptimizePromptCommandInput,
23
+ OptimizePromptCommandOutput,
24
+ BedrockAgentRuntimeClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: OptimizePromptCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ OptimizePromptCommandInput,
32
+ OptimizePromptCommandOutput,
33
+ BedrockAgentRuntimeClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class OptimizePromptCommand extends OptimizePromptCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: OptimizePromptRequest;
43
+ output: OptimizePromptResponse;
44
+ };
45
+ sdk: {
46
+ input: OptimizePromptCommandInput;
47
+ output: OptimizePromptCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -2,5 +2,7 @@ export * from "./DeleteAgentMemoryCommand";
2
2
  export * from "./GetAgentMemoryCommand";
3
3
  export * from "./InvokeAgentCommand";
4
4
  export * from "./InvokeFlowCommand";
5
+ export * from "./InvokeInlineAgentCommand";
6
+ export * from "./OptimizePromptCommand";
5
7
  export * from "./RetrieveAndGenerateCommand";
6
8
  export * from "./RetrieveCommand";