@aws-sdk/client-bedrock-agent-runtime 3.726.0 → 3.729.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/dist-cjs/index.js CHANGED
@@ -2378,7 +2378,8 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
2378
2378
  inputText: [],
2379
2379
  instruction: [],
2380
2380
  knowledgeBases: (_) => se_KnowledgeBases(_, context),
2381
- promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
2381
+ promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
2382
+ streamingConfigurations: (_) => (0, import_smithy_client._json)(_)
2382
2383
  })
2383
2384
  );
2384
2385
  b.m("POST").h(headers).b(body);
@@ -109,6 +109,7 @@ export const se_InvokeInlineAgentCommand = async (input, context) => {
109
109
  instruction: [],
110
110
  knowledgeBases: (_) => se_KnowledgeBases(_, context),
111
111
  promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
112
+ streamingConfigurations: (_) => _json(_),
112
113
  }));
113
114
  b.m("POST").h(headers).b(body);
114
115
  return b.build();
@@ -28,8 +28,7 @@ declare const InvokeAgentCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <note>
31
- * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeAgent</code>.</p>
32
- * </note>
31
+ * </note>
33
32
  * <p>Sends a prompt for the agent to process and respond to. Note the following fields for the request:</p>
34
33
  * <ul>
35
34
  * <li>
@@ -64,7 +63,8 @@ declare const InvokeAgentCommand_base: {
64
63
  * <p>In the <code>sessionState</code> object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group.</p>
65
64
  * </li>
66
65
  * </ul>
67
- * <p>The response is returned in the <code>bytes</code> field of the <code>chunk</code> object.</p>
66
+ * <p>The response contains both <b>chunk</b> and <b>trace</b> attributes.</p>
67
+ * <p>The final response is returned in the <code>bytes</code> field of the <code>chunk</code> object. The <code>InvokeAgent</code> returns one chunk for the entire interaction.</p>
68
68
  * <ul>
69
69
  * <li>
70
70
  * <p>The <code>attribution</code> object contains citations for parts of the response.</p>
@@ -51,8 +51,7 @@ declare const InvokeInlineAgentCommand_base: {
51
51
  * </li>
52
52
  * </ul>
53
53
  * <note>
54
- * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeInlineAgent</code>.</p>
55
- * </note>
54
+ * </note>
56
55
  * @example
57
56
  * Use a bare-bones client and the command you need to make an API call.
58
57
  * ```javascript
@@ -288,6 +287,10 @@ declare const InvokeInlineAgentCommand_base: {
288
287
  * latency: "standard" || "optimized",
289
288
  * },
290
289
  * },
290
+ * streamingConfigurations: { // StreamingConfigurations
291
+ * streamFinalResponse: true || false,
292
+ * applyGuardrailInterval: Number("int"),
293
+ * },
291
294
  * };
292
295
  * const command = new InvokeInlineAgentCommand(input);
293
296
  * const response = await client.send(command);
@@ -7448,6 +7448,16 @@ export interface InvokeInlineAgentRequest {
7448
7448
  * @public
7449
7449
  */
7450
7450
  bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
7451
+ /**
7452
+ * <p>
7453
+ * Specifies the configurations for streaming.
7454
+ * </p>
7455
+ * <note>
7456
+ * <p>To use agent streaming, you need permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>
7457
+ * </note>
7458
+ * @public
7459
+ */
7460
+ streamingConfigurations?: StreamingConfigurations | undefined;
7451
7461
  }
7452
7462
  /**
7453
7463
  * @public
@@ -3268,6 +3268,7 @@ export interface InvokeInlineAgentRequest {
3268
3268
  guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
3269
3269
  promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
3270
3270
  bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
3271
+ streamingConfigurations?: StreamingConfigurations | undefined;
3271
3272
  }
3272
3273
  export interface RetrieveAndGenerateRequest {
3273
3274
  sessionId?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.726.0",
4
+ "version": "3.729.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/client-sso-oidc": "3.726.0",
24
- "@aws-sdk/client-sts": "3.726.0",
24
+ "@aws-sdk/client-sts": "3.726.1",
25
25
  "@aws-sdk/core": "3.723.0",
26
26
  "@aws-sdk/credential-provider-node": "3.726.0",
27
27
  "@aws-sdk/middleware-host-header": "3.723.0",