@aws-sdk/client-bedrock-agent-runtime 3.726.1 → 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 +2 -1
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +3 -3
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +5 -2
- package/dist-types/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +1 -1
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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.
|
|
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",
|