@aws-sdk/client-bedrock-agent-runtime 3.751.0 → 3.758.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.
Files changed (92) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/index.js +1009 -55
  3. package/dist-es/BedrockAgentRuntime.js +28 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +22 -0
  5. package/dist-es/commands/CreateSessionCommand.js +22 -0
  6. package/dist-es/commands/DeleteSessionCommand.js +22 -0
  7. package/dist-es/commands/EndSessionCommand.js +22 -0
  8. package/dist-es/commands/GetInvocationStepCommand.js +23 -0
  9. package/dist-es/commands/GetSessionCommand.js +22 -0
  10. package/dist-es/commands/InvokeAgentCommand.js +2 -1
  11. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
  12. package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
  13. package/dist-es/commands/ListInvocationsCommand.js +22 -0
  14. package/dist-es/commands/ListSessionsCommand.js +22 -0
  15. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  16. package/dist-es/commands/PutInvocationStepCommand.js +23 -0
  17. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
  18. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
  19. package/dist-es/commands/RetrieveCommand.js +2 -1
  20. package/dist-es/commands/TagResourceCommand.js +22 -0
  21. package/dist-es/commands/UntagResourceCommand.js +22 -0
  22. package/dist-es/commands/UpdateSessionCommand.js +22 -0
  23. package/dist-es/commands/index.js +14 -0
  24. package/dist-es/models/index.js +1 -0
  25. package/dist-es/models/models_0.js +78 -151
  26. package/dist-es/models/models_1.js +164 -0
  27. package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
  28. package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
  29. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +3 -0
  31. package/dist-es/protocols/Aws_restJson1.js +574 -11
  32. package/dist-types/BedrockAgentRuntime.d.ts +100 -0
  33. package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
  34. package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
  35. package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
  36. package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
  37. package/dist-types/commands/EndSessionCommand.d.ts +93 -0
  38. package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
  39. package/dist-types/commands/GetSessionCommand.d.ts +94 -0
  40. package/dist-types/commands/InvokeAgentCommand.d.ts +23 -1
  41. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +23 -1
  42. package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
  43. package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
  44. package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  46. package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
  47. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
  48. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
  49. package/dist-types/commands/RetrieveCommand.d.ts +2 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +90 -0
  51. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  52. package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
  53. package/dist-types/commands/index.d.ts +14 -0
  54. package/dist-types/models/index.d.ts +1 -0
  55. package/dist-types/models/models_0.d.ts +582 -635
  56. package/dist-types/models/models_1.d.ts +919 -0
  57. package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/index.d.ts +3 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  62. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
  63. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
  64. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
  67. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  70. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
  71. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
  74. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
  79. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  82. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/models/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +262 -365
  86. package/dist-types/ts3.4/models/models_1.d.ts +416 -0
  87. package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  92. package/package.json +12 -12
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListInvocationStepsCommandInput, ListInvocationStepsCommandOutput } from "../commands/ListInvocationStepsCommand";
3
+ import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListInvocationSteps: (config: BedrockAgentRuntimePaginationConfiguration, input: ListInvocationStepsCommandInput, ...rest: any[]) => Paginator<ListInvocationStepsCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListInvocationsCommandInput, ListInvocationsCommandOutput } from "../commands/ListInvocationsCommand";
3
+ import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListInvocations: (config: BedrockAgentRuntimePaginationConfiguration, input: ListInvocationsCommandInput, ...rest: any[]) => Paginator<ListInvocationsCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListSessionsCommandInput, ListSessionsCommandOutput } from "../commands/ListSessionsCommand";
3
+ import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListSessions: (config: BedrockAgentRuntimePaginationConfiguration, input: ListSessionsCommandInput, ...rest: any[]) => Paginator<ListSessionsCommandOutput>;
@@ -1,4 +1,7 @@
1
1
  export * from "./GetAgentMemoryPaginator";
2
2
  export * from "./Interfaces";
3
+ export * from "./ListInvocationStepsPaginator";
4
+ export * from "./ListInvocationsPaginator";
5
+ export * from "./ListSessionsPaginator";
3
6
  export * from "./RerankPaginator";
4
7
  export * from "./RetrievePaginator";
@@ -1,20 +1,50 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
2
  import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { CreateInvocationCommandInput, CreateInvocationCommandOutput } from "../commands/CreateInvocationCommand";
4
+ import { CreateSessionCommandInput, CreateSessionCommandOutput } from "../commands/CreateSessionCommand";
3
5
  import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "../commands/DeleteAgentMemoryCommand";
6
+ import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "../commands/DeleteSessionCommand";
7
+ import { EndSessionCommandInput, EndSessionCommandOutput } from "../commands/EndSessionCommand";
4
8
  import { GenerateQueryCommandInput, GenerateQueryCommandOutput } from "../commands/GenerateQueryCommand";
5
9
  import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "../commands/GetAgentMemoryCommand";
10
+ import { GetInvocationStepCommandInput, GetInvocationStepCommandOutput } from "../commands/GetInvocationStepCommand";
11
+ import { GetSessionCommandInput, GetSessionCommandOutput } from "../commands/GetSessionCommand";
6
12
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "../commands/InvokeAgentCommand";
7
13
  import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "../commands/InvokeFlowCommand";
8
14
  import { InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput } from "../commands/InvokeInlineAgentCommand";
15
+ import { ListInvocationsCommandInput, ListInvocationsCommandOutput } from "../commands/ListInvocationsCommand";
16
+ import { ListInvocationStepsCommandInput, ListInvocationStepsCommandOutput } from "../commands/ListInvocationStepsCommand";
17
+ import { ListSessionsCommandInput, ListSessionsCommandOutput } from "../commands/ListSessionsCommand";
18
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
9
19
  import { OptimizePromptCommandInput, OptimizePromptCommandOutput } from "../commands/OptimizePromptCommand";
20
+ import { PutInvocationStepCommandInput, PutInvocationStepCommandOutput } from "../commands/PutInvocationStepCommand";
10
21
  import { RerankCommandInput, RerankCommandOutput } from "../commands/RerankCommand";
11
22
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "../commands/RetrieveAndGenerateCommand";
12
23
  import { RetrieveAndGenerateStreamCommandInput, RetrieveAndGenerateStreamCommandOutput } from "../commands/RetrieveAndGenerateStreamCommand";
13
24
  import { RetrieveCommandInput, RetrieveCommandOutput } from "../commands/RetrieveCommand";
25
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
26
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
27
+ import { UpdateSessionCommandInput, UpdateSessionCommandOutput } from "../commands/UpdateSessionCommand";
28
+ /**
29
+ * serializeAws_restJson1CreateInvocationCommand
30
+ */
31
+ export declare const se_CreateInvocationCommand: (input: CreateInvocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
+ /**
33
+ * serializeAws_restJson1CreateSessionCommand
34
+ */
35
+ export declare const se_CreateSessionCommand: (input: CreateSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
36
  /**
15
37
  * serializeAws_restJson1DeleteAgentMemoryCommand
16
38
  */
17
39
  export declare const se_DeleteAgentMemoryCommand: (input: DeleteAgentMemoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
+ /**
41
+ * serializeAws_restJson1DeleteSessionCommand
42
+ */
43
+ export declare const se_DeleteSessionCommand: (input: DeleteSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
44
+ /**
45
+ * serializeAws_restJson1EndSessionCommand
46
+ */
47
+ export declare const se_EndSessionCommand: (input: EndSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
48
  /**
19
49
  * serializeAws_restJson1GenerateQueryCommand
20
50
  */
@@ -23,6 +53,14 @@ export declare const se_GenerateQueryCommand: (input: GenerateQueryCommandInput,
23
53
  * serializeAws_restJson1GetAgentMemoryCommand
24
54
  */
25
55
  export declare const se_GetAgentMemoryCommand: (input: GetAgentMemoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
+ /**
57
+ * serializeAws_restJson1GetInvocationStepCommand
58
+ */
59
+ export declare const se_GetInvocationStepCommand: (input: GetInvocationStepCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
60
+ /**
61
+ * serializeAws_restJson1GetSessionCommand
62
+ */
63
+ export declare const se_GetSessionCommand: (input: GetSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
26
64
  /**
27
65
  * serializeAws_restJson1InvokeAgentCommand
28
66
  */
@@ -35,10 +73,30 @@ export declare const se_InvokeFlowCommand: (input: InvokeFlowCommandInput, conte
35
73
  * serializeAws_restJson1InvokeInlineAgentCommand
36
74
  */
37
75
  export declare const se_InvokeInlineAgentCommand: (input: InvokeInlineAgentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
+ /**
77
+ * serializeAws_restJson1ListInvocationsCommand
78
+ */
79
+ export declare const se_ListInvocationsCommand: (input: ListInvocationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
+ /**
81
+ * serializeAws_restJson1ListInvocationStepsCommand
82
+ */
83
+ export declare const se_ListInvocationStepsCommand: (input: ListInvocationStepsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
84
+ /**
85
+ * serializeAws_restJson1ListSessionsCommand
86
+ */
87
+ export declare const se_ListSessionsCommand: (input: ListSessionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
88
+ /**
89
+ * serializeAws_restJson1ListTagsForResourceCommand
90
+ */
91
+ export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
92
  /**
39
93
  * serializeAws_restJson1OptimizePromptCommand
40
94
  */
41
95
  export declare const se_OptimizePromptCommand: (input: OptimizePromptCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
96
+ /**
97
+ * serializeAws_restJson1PutInvocationStepCommand
98
+ */
99
+ export declare const se_PutInvocationStepCommand: (input: PutInvocationStepCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
42
100
  /**
43
101
  * serializeAws_restJson1RerankCommand
44
102
  */
@@ -55,10 +113,38 @@ export declare const se_RetrieveAndGenerateCommand: (input: RetrieveAndGenerateC
55
113
  * serializeAws_restJson1RetrieveAndGenerateStreamCommand
56
114
  */
57
115
  export declare const se_RetrieveAndGenerateStreamCommand: (input: RetrieveAndGenerateStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
+ /**
117
+ * serializeAws_restJson1TagResourceCommand
118
+ */
119
+ export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
120
+ /**
121
+ * serializeAws_restJson1UntagResourceCommand
122
+ */
123
+ export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
124
+ /**
125
+ * serializeAws_restJson1UpdateSessionCommand
126
+ */
127
+ export declare const se_UpdateSessionCommand: (input: UpdateSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
128
+ /**
129
+ * deserializeAws_restJson1CreateInvocationCommand
130
+ */
131
+ export declare const de_CreateInvocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateInvocationCommandOutput>;
132
+ /**
133
+ * deserializeAws_restJson1CreateSessionCommand
134
+ */
135
+ export declare const de_CreateSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateSessionCommandOutput>;
58
136
  /**
59
137
  * deserializeAws_restJson1DeleteAgentMemoryCommand
60
138
  */
61
139
  export declare const de_DeleteAgentMemoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteAgentMemoryCommandOutput>;
140
+ /**
141
+ * deserializeAws_restJson1DeleteSessionCommand
142
+ */
143
+ export declare const de_DeleteSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteSessionCommandOutput>;
144
+ /**
145
+ * deserializeAws_restJson1EndSessionCommand
146
+ */
147
+ export declare const de_EndSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EndSessionCommandOutput>;
62
148
  /**
63
149
  * deserializeAws_restJson1GenerateQueryCommand
64
150
  */
@@ -67,6 +153,14 @@ export declare const de_GenerateQueryCommand: (output: __HttpResponse, context:
67
153
  * deserializeAws_restJson1GetAgentMemoryCommand
68
154
  */
69
155
  export declare const de_GetAgentMemoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAgentMemoryCommandOutput>;
156
+ /**
157
+ * deserializeAws_restJson1GetInvocationStepCommand
158
+ */
159
+ export declare const de_GetInvocationStepCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetInvocationStepCommandOutput>;
160
+ /**
161
+ * deserializeAws_restJson1GetSessionCommand
162
+ */
163
+ export declare const de_GetSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSessionCommandOutput>;
70
164
  /**
71
165
  * deserializeAws_restJson1InvokeAgentCommand
72
166
  */
@@ -79,10 +173,30 @@ export declare const de_InvokeFlowCommand: (output: __HttpResponse, context: __S
79
173
  * deserializeAws_restJson1InvokeInlineAgentCommand
80
174
  */
81
175
  export declare const de_InvokeInlineAgentCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<InvokeInlineAgentCommandOutput>;
176
+ /**
177
+ * deserializeAws_restJson1ListInvocationsCommand
178
+ */
179
+ export declare const de_ListInvocationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListInvocationsCommandOutput>;
180
+ /**
181
+ * deserializeAws_restJson1ListInvocationStepsCommand
182
+ */
183
+ export declare const de_ListInvocationStepsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListInvocationStepsCommandOutput>;
184
+ /**
185
+ * deserializeAws_restJson1ListSessionsCommand
186
+ */
187
+ export declare const de_ListSessionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSessionsCommandOutput>;
188
+ /**
189
+ * deserializeAws_restJson1ListTagsForResourceCommand
190
+ */
191
+ export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
82
192
  /**
83
193
  * deserializeAws_restJson1OptimizePromptCommand
84
194
  */
85
195
  export declare const de_OptimizePromptCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<OptimizePromptCommandOutput>;
196
+ /**
197
+ * deserializeAws_restJson1PutInvocationStepCommand
198
+ */
199
+ export declare const de_PutInvocationStepCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutInvocationStepCommandOutput>;
86
200
  /**
87
201
  * deserializeAws_restJson1RerankCommand
88
202
  */
@@ -99,3 +213,15 @@ export declare const de_RetrieveAndGenerateCommand: (output: __HttpResponse, con
99
213
  * deserializeAws_restJson1RetrieveAndGenerateStreamCommand
100
214
  */
101
215
  export declare const de_RetrieveAndGenerateStreamCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<RetrieveAndGenerateStreamCommandOutput>;
216
+ /**
217
+ * deserializeAws_restJson1TagResourceCommand
218
+ */
219
+ export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
220
+ /**
221
+ * deserializeAws_restJson1UntagResourceCommand
222
+ */
223
+ export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
224
+ /**
225
+ * deserializeAws_restJson1UpdateSessionCommand
226
+ */
227
+ export declare const de_UpdateSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSessionCommandOutput>;
@@ -1,9 +1,25 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
3
+ import {
4
+ CreateInvocationCommandInput,
5
+ CreateInvocationCommandOutput,
6
+ } from "./commands/CreateInvocationCommand";
7
+ import {
8
+ CreateSessionCommandInput,
9
+ CreateSessionCommandOutput,
10
+ } from "./commands/CreateSessionCommand";
3
11
  import {
4
12
  DeleteAgentMemoryCommandInput,
5
13
  DeleteAgentMemoryCommandOutput,
6
14
  } from "./commands/DeleteAgentMemoryCommand";
15
+ import {
16
+ DeleteSessionCommandInput,
17
+ DeleteSessionCommandOutput,
18
+ } from "./commands/DeleteSessionCommand";
19
+ import {
20
+ EndSessionCommandInput,
21
+ EndSessionCommandOutput,
22
+ } from "./commands/EndSessionCommand";
7
23
  import {
8
24
  GenerateQueryCommandInput,
9
25
  GenerateQueryCommandOutput,
@@ -12,6 +28,14 @@ import {
12
28
  GetAgentMemoryCommandInput,
13
29
  GetAgentMemoryCommandOutput,
14
30
  } from "./commands/GetAgentMemoryCommand";
31
+ import {
32
+ GetInvocationStepCommandInput,
33
+ GetInvocationStepCommandOutput,
34
+ } from "./commands/GetInvocationStepCommand";
35
+ import {
36
+ GetSessionCommandInput,
37
+ GetSessionCommandOutput,
38
+ } from "./commands/GetSessionCommand";
15
39
  import {
16
40
  InvokeAgentCommandInput,
17
41
  InvokeAgentCommandOutput,
@@ -24,10 +48,30 @@ import {
24
48
  InvokeInlineAgentCommandInput,
25
49
  InvokeInlineAgentCommandOutput,
26
50
  } from "./commands/InvokeInlineAgentCommand";
51
+ import {
52
+ ListInvocationsCommandInput,
53
+ ListInvocationsCommandOutput,
54
+ } from "./commands/ListInvocationsCommand";
55
+ import {
56
+ ListInvocationStepsCommandInput,
57
+ ListInvocationStepsCommandOutput,
58
+ } from "./commands/ListInvocationStepsCommand";
59
+ import {
60
+ ListSessionsCommandInput,
61
+ ListSessionsCommandOutput,
62
+ } from "./commands/ListSessionsCommand";
63
+ import {
64
+ ListTagsForResourceCommandInput,
65
+ ListTagsForResourceCommandOutput,
66
+ } from "./commands/ListTagsForResourceCommand";
27
67
  import {
28
68
  OptimizePromptCommandInput,
29
69
  OptimizePromptCommandOutput,
30
70
  } from "./commands/OptimizePromptCommand";
71
+ import {
72
+ PutInvocationStepCommandInput,
73
+ PutInvocationStepCommandOutput,
74
+ } from "./commands/PutInvocationStepCommand";
31
75
  import {
32
76
  RerankCommandInput,
33
77
  RerankCommandOutput,
@@ -44,7 +88,46 @@ import {
44
88
  RetrieveCommandInput,
45
89
  RetrieveCommandOutput,
46
90
  } from "./commands/RetrieveCommand";
91
+ import {
92
+ TagResourceCommandInput,
93
+ TagResourceCommandOutput,
94
+ } from "./commands/TagResourceCommand";
95
+ import {
96
+ UntagResourceCommandInput,
97
+ UntagResourceCommandOutput,
98
+ } from "./commands/UntagResourceCommand";
99
+ import {
100
+ UpdateSessionCommandInput,
101
+ UpdateSessionCommandOutput,
102
+ } from "./commands/UpdateSessionCommand";
47
103
  export interface BedrockAgentRuntime {
104
+ createInvocation(
105
+ args: CreateInvocationCommandInput,
106
+ options?: __HttpHandlerOptions
107
+ ): Promise<CreateInvocationCommandOutput>;
108
+ createInvocation(
109
+ args: CreateInvocationCommandInput,
110
+ cb: (err: any, data?: CreateInvocationCommandOutput) => void
111
+ ): void;
112
+ createInvocation(
113
+ args: CreateInvocationCommandInput,
114
+ options: __HttpHandlerOptions,
115
+ cb: (err: any, data?: CreateInvocationCommandOutput) => void
116
+ ): void;
117
+ createSession(): Promise<CreateSessionCommandOutput>;
118
+ createSession(
119
+ args: CreateSessionCommandInput,
120
+ options?: __HttpHandlerOptions
121
+ ): Promise<CreateSessionCommandOutput>;
122
+ createSession(
123
+ args: CreateSessionCommandInput,
124
+ cb: (err: any, data?: CreateSessionCommandOutput) => void
125
+ ): void;
126
+ createSession(
127
+ args: CreateSessionCommandInput,
128
+ options: __HttpHandlerOptions,
129
+ cb: (err: any, data?: CreateSessionCommandOutput) => void
130
+ ): void;
48
131
  deleteAgentMemory(
49
132
  args: DeleteAgentMemoryCommandInput,
50
133
  options?: __HttpHandlerOptions
@@ -58,6 +141,32 @@ export interface BedrockAgentRuntime {
58
141
  options: __HttpHandlerOptions,
59
142
  cb: (err: any, data?: DeleteAgentMemoryCommandOutput) => void
60
143
  ): void;
144
+ deleteSession(
145
+ args: DeleteSessionCommandInput,
146
+ options?: __HttpHandlerOptions
147
+ ): Promise<DeleteSessionCommandOutput>;
148
+ deleteSession(
149
+ args: DeleteSessionCommandInput,
150
+ cb: (err: any, data?: DeleteSessionCommandOutput) => void
151
+ ): void;
152
+ deleteSession(
153
+ args: DeleteSessionCommandInput,
154
+ options: __HttpHandlerOptions,
155
+ cb: (err: any, data?: DeleteSessionCommandOutput) => void
156
+ ): void;
157
+ endSession(
158
+ args: EndSessionCommandInput,
159
+ options?: __HttpHandlerOptions
160
+ ): Promise<EndSessionCommandOutput>;
161
+ endSession(
162
+ args: EndSessionCommandInput,
163
+ cb: (err: any, data?: EndSessionCommandOutput) => void
164
+ ): void;
165
+ endSession(
166
+ args: EndSessionCommandInput,
167
+ options: __HttpHandlerOptions,
168
+ cb: (err: any, data?: EndSessionCommandOutput) => void
169
+ ): void;
61
170
  generateQuery(
62
171
  args: GenerateQueryCommandInput,
63
172
  options?: __HttpHandlerOptions
@@ -84,6 +193,32 @@ export interface BedrockAgentRuntime {
84
193
  options: __HttpHandlerOptions,
85
194
  cb: (err: any, data?: GetAgentMemoryCommandOutput) => void
86
195
  ): void;
196
+ getInvocationStep(
197
+ args: GetInvocationStepCommandInput,
198
+ options?: __HttpHandlerOptions
199
+ ): Promise<GetInvocationStepCommandOutput>;
200
+ getInvocationStep(
201
+ args: GetInvocationStepCommandInput,
202
+ cb: (err: any, data?: GetInvocationStepCommandOutput) => void
203
+ ): void;
204
+ getInvocationStep(
205
+ args: GetInvocationStepCommandInput,
206
+ options: __HttpHandlerOptions,
207
+ cb: (err: any, data?: GetInvocationStepCommandOutput) => void
208
+ ): void;
209
+ getSession(
210
+ args: GetSessionCommandInput,
211
+ options?: __HttpHandlerOptions
212
+ ): Promise<GetSessionCommandOutput>;
213
+ getSession(
214
+ args: GetSessionCommandInput,
215
+ cb: (err: any, data?: GetSessionCommandOutput) => void
216
+ ): void;
217
+ getSession(
218
+ args: GetSessionCommandInput,
219
+ options: __HttpHandlerOptions,
220
+ cb: (err: any, data?: GetSessionCommandOutput) => void
221
+ ): void;
87
222
  invokeAgent(
88
223
  args: InvokeAgentCommandInput,
89
224
  options?: __HttpHandlerOptions
@@ -123,6 +258,59 @@ export interface BedrockAgentRuntime {
123
258
  options: __HttpHandlerOptions,
124
259
  cb: (err: any, data?: InvokeInlineAgentCommandOutput) => void
125
260
  ): void;
261
+ listInvocations(
262
+ args: ListInvocationsCommandInput,
263
+ options?: __HttpHandlerOptions
264
+ ): Promise<ListInvocationsCommandOutput>;
265
+ listInvocations(
266
+ args: ListInvocationsCommandInput,
267
+ cb: (err: any, data?: ListInvocationsCommandOutput) => void
268
+ ): void;
269
+ listInvocations(
270
+ args: ListInvocationsCommandInput,
271
+ options: __HttpHandlerOptions,
272
+ cb: (err: any, data?: ListInvocationsCommandOutput) => void
273
+ ): void;
274
+ listInvocationSteps(
275
+ args: ListInvocationStepsCommandInput,
276
+ options?: __HttpHandlerOptions
277
+ ): Promise<ListInvocationStepsCommandOutput>;
278
+ listInvocationSteps(
279
+ args: ListInvocationStepsCommandInput,
280
+ cb: (err: any, data?: ListInvocationStepsCommandOutput) => void
281
+ ): void;
282
+ listInvocationSteps(
283
+ args: ListInvocationStepsCommandInput,
284
+ options: __HttpHandlerOptions,
285
+ cb: (err: any, data?: ListInvocationStepsCommandOutput) => void
286
+ ): void;
287
+ listSessions(): Promise<ListSessionsCommandOutput>;
288
+ listSessions(
289
+ args: ListSessionsCommandInput,
290
+ options?: __HttpHandlerOptions
291
+ ): Promise<ListSessionsCommandOutput>;
292
+ listSessions(
293
+ args: ListSessionsCommandInput,
294
+ cb: (err: any, data?: ListSessionsCommandOutput) => void
295
+ ): void;
296
+ listSessions(
297
+ args: ListSessionsCommandInput,
298
+ options: __HttpHandlerOptions,
299
+ cb: (err: any, data?: ListSessionsCommandOutput) => void
300
+ ): void;
301
+ listTagsForResource(
302
+ args: ListTagsForResourceCommandInput,
303
+ options?: __HttpHandlerOptions
304
+ ): Promise<ListTagsForResourceCommandOutput>;
305
+ listTagsForResource(
306
+ args: ListTagsForResourceCommandInput,
307
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
308
+ ): void;
309
+ listTagsForResource(
310
+ args: ListTagsForResourceCommandInput,
311
+ options: __HttpHandlerOptions,
312
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
313
+ ): void;
126
314
  optimizePrompt(
127
315
  args: OptimizePromptCommandInput,
128
316
  options?: __HttpHandlerOptions
@@ -136,6 +324,19 @@ export interface BedrockAgentRuntime {
136
324
  options: __HttpHandlerOptions,
137
325
  cb: (err: any, data?: OptimizePromptCommandOutput) => void
138
326
  ): void;
327
+ putInvocationStep(
328
+ args: PutInvocationStepCommandInput,
329
+ options?: __HttpHandlerOptions
330
+ ): Promise<PutInvocationStepCommandOutput>;
331
+ putInvocationStep(
332
+ args: PutInvocationStepCommandInput,
333
+ cb: (err: any, data?: PutInvocationStepCommandOutput) => void
334
+ ): void;
335
+ putInvocationStep(
336
+ args: PutInvocationStepCommandInput,
337
+ options: __HttpHandlerOptions,
338
+ cb: (err: any, data?: PutInvocationStepCommandOutput) => void
339
+ ): void;
139
340
  rerank(
140
341
  args: RerankCommandInput,
141
342
  options?: __HttpHandlerOptions
@@ -188,6 +389,45 @@ export interface BedrockAgentRuntime {
188
389
  options: __HttpHandlerOptions,
189
390
  cb: (err: any, data?: RetrieveAndGenerateStreamCommandOutput) => void
190
391
  ): void;
392
+ tagResource(
393
+ args: TagResourceCommandInput,
394
+ options?: __HttpHandlerOptions
395
+ ): Promise<TagResourceCommandOutput>;
396
+ tagResource(
397
+ args: TagResourceCommandInput,
398
+ cb: (err: any, data?: TagResourceCommandOutput) => void
399
+ ): void;
400
+ tagResource(
401
+ args: TagResourceCommandInput,
402
+ options: __HttpHandlerOptions,
403
+ cb: (err: any, data?: TagResourceCommandOutput) => void
404
+ ): void;
405
+ untagResource(
406
+ args: UntagResourceCommandInput,
407
+ options?: __HttpHandlerOptions
408
+ ): Promise<UntagResourceCommandOutput>;
409
+ untagResource(
410
+ args: UntagResourceCommandInput,
411
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
412
+ ): void;
413
+ untagResource(
414
+ args: UntagResourceCommandInput,
415
+ options: __HttpHandlerOptions,
416
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
417
+ ): void;
418
+ updateSession(
419
+ args: UpdateSessionCommandInput,
420
+ options?: __HttpHandlerOptions
421
+ ): Promise<UpdateSessionCommandOutput>;
422
+ updateSession(
423
+ args: UpdateSessionCommandInput,
424
+ cb: (err: any, data?: UpdateSessionCommandOutput) => void
425
+ ): void;
426
+ updateSession(
427
+ args: UpdateSessionCommandInput,
428
+ options: __HttpHandlerOptions,
429
+ cb: (err: any, data?: UpdateSessionCommandOutput) => void
430
+ ): void;
191
431
  }
192
432
  export declare class BedrockAgentRuntime
193
433
  extends BedrockAgentRuntimeClient
@@ -50,10 +50,26 @@ import {
50
50
  HttpAuthSchemeInputConfig,
51
51
  HttpAuthSchemeResolvedConfig,
52
52
  } from "./auth/httpAuthSchemeProvider";
53
+ import {
54
+ CreateInvocationCommandInput,
55
+ CreateInvocationCommandOutput,
56
+ } from "./commands/CreateInvocationCommand";
57
+ import {
58
+ CreateSessionCommandInput,
59
+ CreateSessionCommandOutput,
60
+ } from "./commands/CreateSessionCommand";
53
61
  import {
54
62
  DeleteAgentMemoryCommandInput,
55
63
  DeleteAgentMemoryCommandOutput,
56
64
  } from "./commands/DeleteAgentMemoryCommand";
65
+ import {
66
+ DeleteSessionCommandInput,
67
+ DeleteSessionCommandOutput,
68
+ } from "./commands/DeleteSessionCommand";
69
+ import {
70
+ EndSessionCommandInput,
71
+ EndSessionCommandOutput,
72
+ } from "./commands/EndSessionCommand";
57
73
  import {
58
74
  GenerateQueryCommandInput,
59
75
  GenerateQueryCommandOutput,
@@ -62,6 +78,14 @@ import {
62
78
  GetAgentMemoryCommandInput,
63
79
  GetAgentMemoryCommandOutput,
64
80
  } from "./commands/GetAgentMemoryCommand";
81
+ import {
82
+ GetInvocationStepCommandInput,
83
+ GetInvocationStepCommandOutput,
84
+ } from "./commands/GetInvocationStepCommand";
85
+ import {
86
+ GetSessionCommandInput,
87
+ GetSessionCommandOutput,
88
+ } from "./commands/GetSessionCommand";
65
89
  import {
66
90
  InvokeAgentCommandInput,
67
91
  InvokeAgentCommandOutput,
@@ -74,10 +98,30 @@ import {
74
98
  InvokeInlineAgentCommandInput,
75
99
  InvokeInlineAgentCommandOutput,
76
100
  } from "./commands/InvokeInlineAgentCommand";
101
+ import {
102
+ ListInvocationsCommandInput,
103
+ ListInvocationsCommandOutput,
104
+ } from "./commands/ListInvocationsCommand";
105
+ import {
106
+ ListInvocationStepsCommandInput,
107
+ ListInvocationStepsCommandOutput,
108
+ } from "./commands/ListInvocationStepsCommand";
109
+ import {
110
+ ListSessionsCommandInput,
111
+ ListSessionsCommandOutput,
112
+ } from "./commands/ListSessionsCommand";
113
+ import {
114
+ ListTagsForResourceCommandInput,
115
+ ListTagsForResourceCommandOutput,
116
+ } from "./commands/ListTagsForResourceCommand";
77
117
  import {
78
118
  OptimizePromptCommandInput,
79
119
  OptimizePromptCommandOutput,
80
120
  } from "./commands/OptimizePromptCommand";
121
+ import {
122
+ PutInvocationStepCommandInput,
123
+ PutInvocationStepCommandOutput,
124
+ } from "./commands/PutInvocationStepCommand";
81
125
  import {
82
126
  RerankCommandInput,
83
127
  RerankCommandOutput,
@@ -94,6 +138,18 @@ import {
94
138
  RetrieveCommandInput,
95
139
  RetrieveCommandOutput,
96
140
  } from "./commands/RetrieveCommand";
141
+ import {
142
+ TagResourceCommandInput,
143
+ TagResourceCommandOutput,
144
+ } from "./commands/TagResourceCommand";
145
+ import {
146
+ UntagResourceCommandInput,
147
+ UntagResourceCommandOutput,
148
+ } from "./commands/UntagResourceCommand";
149
+ import {
150
+ UpdateSessionCommandInput,
151
+ UpdateSessionCommandOutput,
152
+ } from "./commands/UpdateSessionCommand";
97
153
  import {
98
154
  ClientInputEndpointParameters,
99
155
  ClientResolvedEndpointParameters,
@@ -102,29 +158,57 @@ import {
102
158
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
103
159
  export { __Client };
104
160
  export type ServiceInputTypes =
161
+ | CreateInvocationCommandInput
162
+ | CreateSessionCommandInput
105
163
  | DeleteAgentMemoryCommandInput
164
+ | DeleteSessionCommandInput
165
+ | EndSessionCommandInput
106
166
  | GenerateQueryCommandInput
107
167
  | GetAgentMemoryCommandInput
168
+ | GetInvocationStepCommandInput
169
+ | GetSessionCommandInput
108
170
  | InvokeAgentCommandInput
109
171
  | InvokeFlowCommandInput
110
172
  | InvokeInlineAgentCommandInput
173
+ | ListInvocationStepsCommandInput
174
+ | ListInvocationsCommandInput
175
+ | ListSessionsCommandInput
176
+ | ListTagsForResourceCommandInput
111
177
  | OptimizePromptCommandInput
178
+ | PutInvocationStepCommandInput
112
179
  | RerankCommandInput
113
180
  | RetrieveAndGenerateCommandInput
114
181
  | RetrieveAndGenerateStreamCommandInput
115
- | RetrieveCommandInput;
182
+ | RetrieveCommandInput
183
+ | TagResourceCommandInput
184
+ | UntagResourceCommandInput
185
+ | UpdateSessionCommandInput;
116
186
  export type ServiceOutputTypes =
187
+ | CreateInvocationCommandOutput
188
+ | CreateSessionCommandOutput
117
189
  | DeleteAgentMemoryCommandOutput
190
+ | DeleteSessionCommandOutput
191
+ | EndSessionCommandOutput
118
192
  | GenerateQueryCommandOutput
119
193
  | GetAgentMemoryCommandOutput
194
+ | GetInvocationStepCommandOutput
195
+ | GetSessionCommandOutput
120
196
  | InvokeAgentCommandOutput
121
197
  | InvokeFlowCommandOutput
122
198
  | InvokeInlineAgentCommandOutput
199
+ | ListInvocationStepsCommandOutput
200
+ | ListInvocationsCommandOutput
201
+ | ListSessionsCommandOutput
202
+ | ListTagsForResourceCommandOutput
123
203
  | OptimizePromptCommandOutput
204
+ | PutInvocationStepCommandOutput
124
205
  | RerankCommandOutput
125
206
  | RetrieveAndGenerateCommandOutput
126
207
  | RetrieveAndGenerateStreamCommandOutput
127
- | RetrieveCommandOutput;
208
+ | RetrieveCommandOutput
209
+ | TagResourceCommandOutput
210
+ | UntagResourceCommandOutput
211
+ | UpdateSessionCommandOutput;
128
212
  export interface ClientDefaults
129
213
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
130
214
  requestHandler?: __HttpHandlerUserInput;