@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 CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript BedrockAgentRuntime Client for Node.js, Browser and React Native.
8
8
 
9
- Amazon Bedrock Agent
9
+ <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
10
10
 
11
11
  ## Installing
12
12
 
@@ -25,7 +25,7 @@ export interface BedrockAgentRuntime {
25
25
  }
26
26
  /**
27
27
  * @public
28
- * Amazon Bedrock Agent
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
- * Amazon Bedrock Agent
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
- * Invokes the specified Bedrock model to run inference using the input provided in the request body.
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: "BLOB_VALUE",
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
- * This exception is thrown when a request is denied per access permissions
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
- * This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource
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
- * This exception is thrown when there is a conflict performing an operation
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
- * This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to a customer fault (i.e. bad configuration)
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
- * This exception is thrown if there was an unexpected error during processing of request
316
+ * <p>An internal server error occurred. Retry your request.</p>
288
317
  *
289
318
  * @throws {@link ResourceNotFoundException} (client fault)
290
- * This exception is thrown when a resource referenced by the operation does not exist
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
- * This exception is thrown when a request is made beyond the service quota
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
- * This exception is thrown when the number of requests exceeds the limit
325
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
297
326
  *
298
327
  * @throws {@link ValidationException} (client fault)
299
- * This exception is thrown when the request's input validation fails
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
- * RetrieveAndGenerate API
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
- * This exception is thrown when a request is denied per access permissions
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
- * This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource
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
- * This exception is thrown when there is a conflict performing an operation
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
- * This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to a customer fault (i.e. bad configuration)
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
- * This exception is thrown if there was an unexpected error during processing of request
117
+ * <p>An internal server error occurred. Retry your request.</p>
115
118
  *
116
119
  * @throws {@link ResourceNotFoundException} (client fault)
117
- * This exception is thrown when a resource referenced by the operation does not exist
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
- * This exception is thrown when a request is made beyond the service quota
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
- * This exception is thrown when the number of requests exceeds the limit
126
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
124
127
  *
125
128
  * @throws {@link ValidationException} (client fault)
126
- * This exception is thrown when the request's input validation fails
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
- * Retrieve from knowledge base.
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
- * This exception is thrown when a request is denied per access permissions
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
- * This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource
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
- * This exception is thrown when there is a conflict performing an operation
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
- * This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to a customer fault (i.e. bad configuration)
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
- * This exception is thrown if there was an unexpected error during processing of request
90
+ * <p>An internal server error occurred. Retry your request.</p>
91
91
  *
92
92
  * @throws {@link ResourceNotFoundException} (client fault)
93
- * This exception is thrown when a resource referenced by the operation does not exist
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
- * This exception is thrown when a request is made beyond the service quota
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
- * This exception is thrown when the number of requests exceeds the limit
99
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
100
100
  *
101
101
  * @throws {@link ValidationException} (client fault)
102
- * This exception is thrown when the request's input validation fails
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>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Amazon Bedrock Agent
2
+ * <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
3
3
  *
4
4
  * @packageDocumentation
5
5
  */