@aws-sdk/client-bedrock-agent-runtime 3.529.1 → 3.533.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/README.md +1 -1
- package/dist-types/BedrockAgentRuntime.d.ts +1 -1
- package/dist-types/BedrockAgentRuntimeClient.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +40 -11
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +13 -10
- package/dist-types/commands/RetrieveCommand.d.ts +10 -10
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +269 -189
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/package.json +40 -40
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ export interface BedrockAgentRuntime {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* @public
|
|
28
|
-
*
|
|
28
|
+
* <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
|
|
29
29
|
*/
|
|
30
30
|
export declare class BedrockAgentRuntime extends BedrockAgentRuntimeClient implements BedrockAgentRuntime {
|
|
31
31
|
}
|
|
@@ -160,7 +160,7 @@ export interface BedrockAgentRuntimeClientResolvedConfig extends BedrockAgentRun
|
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* @public
|
|
163
|
-
*
|
|
163
|
+
* <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
|
|
164
164
|
*/
|
|
165
165
|
export declare class BedrockAgentRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BedrockAgentRuntimeClientResolvedConfig> {
|
|
166
166
|
/**
|
|
@@ -26,7 +26,36 @@ declare const InvokeAgentCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
*
|
|
29
|
+
* <p>Sends a prompt for the agent to process and respond to.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The CLI doesn't support <code>InvokeAgent</code>.</p>
|
|
32
|
+
* </note>
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>To continue the same conversation with an agent, use the same <code>sessionId</code> value in the request.</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>To activate trace enablement, turn <code>enableTrace</code> to <code>true</code>. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events">Trace enablement</a>.</p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>Include attributes for the session or prompt in the <code>sessionState</code> object.</p>
|
|
45
|
+
* </li>
|
|
46
|
+
* </ul>
|
|
47
|
+
* <p>The response is returned in the <code>bytes</code> field of the <code>chunk</code> object.</p>
|
|
48
|
+
* <ul>
|
|
49
|
+
* <li>
|
|
50
|
+
* <p>The <code>attribution</code> object contains citations for parts of the response.</p>
|
|
51
|
+
* </li>
|
|
52
|
+
* <li>
|
|
53
|
+
* <p>If you set <code>enableTrace</code> to <code>true</code> in the request, you can trace the agent's steps and reasoning process that led it to the response.</p>
|
|
54
|
+
* </li>
|
|
55
|
+
* <li>
|
|
56
|
+
* <p>Errors are also surfaced in the response.</p>
|
|
57
|
+
* </li>
|
|
58
|
+
* </ul>
|
|
30
59
|
* @example
|
|
31
60
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
61
|
* ```javascript
|
|
@@ -54,7 +83,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
54
83
|
* // { // InvokeAgentResponse
|
|
55
84
|
* // completion: { // ResponseStream Union: only one key present
|
|
56
85
|
* // chunk: { // PayloadPart
|
|
57
|
-
* // bytes:
|
|
86
|
+
* // bytes: new Uint8Array(),
|
|
58
87
|
* // attribution: { // Attribution
|
|
59
88
|
* // citations: [ // Citations
|
|
60
89
|
* // { // Citation
|
|
@@ -272,31 +301,31 @@ declare const InvokeAgentCommand_base: {
|
|
|
272
301
|
* @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
|
|
273
302
|
*
|
|
274
303
|
* @throws {@link AccessDeniedException} (client fault)
|
|
275
|
-
*
|
|
304
|
+
* <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
|
|
276
305
|
*
|
|
277
306
|
* @throws {@link BadGatewayException} (server fault)
|
|
278
|
-
*
|
|
307
|
+
* <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
|
|
279
308
|
*
|
|
280
309
|
* @throws {@link ConflictException} (client fault)
|
|
281
|
-
*
|
|
310
|
+
* <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
|
|
282
311
|
*
|
|
283
312
|
* @throws {@link DependencyFailedException} (client fault)
|
|
284
|
-
*
|
|
313
|
+
* <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p>
|
|
285
314
|
*
|
|
286
315
|
* @throws {@link InternalServerException} (server fault)
|
|
287
|
-
*
|
|
316
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
288
317
|
*
|
|
289
318
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
290
|
-
*
|
|
319
|
+
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
|
|
291
320
|
*
|
|
292
321
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
293
|
-
*
|
|
322
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
294
323
|
*
|
|
295
324
|
* @throws {@link ThrottlingException} (client fault)
|
|
296
|
-
*
|
|
325
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
297
326
|
*
|
|
298
327
|
* @throws {@link ValidationException} (client fault)
|
|
299
|
-
*
|
|
328
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
300
329
|
*
|
|
301
330
|
* @throws {@link BedrockAgentRuntimeServiceException}
|
|
302
331
|
* <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
|
|
@@ -26,7 +26,10 @@ declare const RetrieveAndGenerateCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
*
|
|
29
|
+
* <p>Queries a knowledge base and generates responses based on the retrieved results. The response cites up to five sources but only selects the ones that are relevant to the query.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The <code>numberOfResults</code> field is currently unsupported for <code>RetrieveAndGenerate</code>. Don't include it in the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_KnowledgeBaseVectorSearchConfiguration.html">vectorSearchConfiguration</a> object.</p>
|
|
32
|
+
* </note>
|
|
30
33
|
* @example
|
|
31
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
35
|
* ```javascript
|
|
@@ -99,31 +102,31 @@ declare const RetrieveAndGenerateCommand_base: {
|
|
|
99
102
|
* @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
|
|
100
103
|
*
|
|
101
104
|
* @throws {@link AccessDeniedException} (client fault)
|
|
102
|
-
*
|
|
105
|
+
* <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
|
|
103
106
|
*
|
|
104
107
|
* @throws {@link BadGatewayException} (server fault)
|
|
105
|
-
*
|
|
108
|
+
* <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
|
|
106
109
|
*
|
|
107
110
|
* @throws {@link ConflictException} (client fault)
|
|
108
|
-
*
|
|
111
|
+
* <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
|
|
109
112
|
*
|
|
110
113
|
* @throws {@link DependencyFailedException} (client fault)
|
|
111
|
-
*
|
|
114
|
+
* <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p>
|
|
112
115
|
*
|
|
113
116
|
* @throws {@link InternalServerException} (server fault)
|
|
114
|
-
*
|
|
117
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
115
118
|
*
|
|
116
119
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
117
|
-
*
|
|
120
|
+
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
|
|
118
121
|
*
|
|
119
122
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
120
|
-
*
|
|
123
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
121
124
|
*
|
|
122
125
|
* @throws {@link ThrottlingException} (client fault)
|
|
123
|
-
*
|
|
126
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
124
127
|
*
|
|
125
128
|
* @throws {@link ValidationException} (client fault)
|
|
126
|
-
*
|
|
129
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
127
130
|
*
|
|
128
131
|
* @throws {@link BedrockAgentRuntimeServiceException}
|
|
129
132
|
* <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
|
|
@@ -26,7 +26,7 @@ declare const RetrieveCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
*
|
|
29
|
+
* <p>Queries a knowledge base and retrieves information from it.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
32
|
* ```javascript
|
|
@@ -75,31 +75,31 @@ declare const RetrieveCommand_base: {
|
|
|
75
75
|
* @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link AccessDeniedException} (client fault)
|
|
78
|
-
*
|
|
78
|
+
* <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link BadGatewayException} (server fault)
|
|
81
|
-
*
|
|
81
|
+
* <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
|
|
82
82
|
*
|
|
83
83
|
* @throws {@link ConflictException} (client fault)
|
|
84
|
-
*
|
|
84
|
+
* <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
|
|
85
85
|
*
|
|
86
86
|
* @throws {@link DependencyFailedException} (client fault)
|
|
87
|
-
*
|
|
87
|
+
* <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p>
|
|
88
88
|
*
|
|
89
89
|
* @throws {@link InternalServerException} (server fault)
|
|
90
|
-
*
|
|
90
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
91
91
|
*
|
|
92
92
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
93
|
-
*
|
|
93
|
+
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
|
|
94
94
|
*
|
|
95
95
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
96
|
-
*
|
|
96
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
97
97
|
*
|
|
98
98
|
* @throws {@link ThrottlingException} (client fault)
|
|
99
|
-
*
|
|
99
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
100
100
|
*
|
|
101
101
|
* @throws {@link ValidationException} (client fault)
|
|
102
|
-
*
|
|
102
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
103
103
|
*
|
|
104
104
|
* @throws {@link BedrockAgentRuntimeServiceException}
|
|
105
105
|
* <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
|
package/dist-types/index.d.ts
CHANGED