@aws-sdk/client-bedrock-agent-runtime 3.799.0 → 3.803.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
@@ -209,9 +209,11 @@ __export(index_exports, {
209
209
  OptimizedPromptStream: () => OptimizedPromptStream,
210
210
  OptimizedPromptStreamFilterSensitiveLog: () => OptimizedPromptStreamFilterSensitiveLog,
211
211
  OrchestrationConfigurationFilterSensitiveLog: () => OrchestrationConfigurationFilterSensitiveLog,
212
+ OrchestrationExecutor: () => OrchestrationExecutor,
212
213
  OrchestrationModelInvocationOutputFilterSensitiveLog: () => OrchestrationModelInvocationOutputFilterSensitiveLog,
213
214
  OrchestrationTrace: () => OrchestrationTrace,
214
215
  OrchestrationTraceFilterSensitiveLog: () => OrchestrationTraceFilterSensitiveLog,
216
+ OrchestrationType: () => OrchestrationType,
215
217
  OutputFileFilterSensitiveLog: () => OutputFileFilterSensitiveLog,
216
218
  ParameterType: () => ParameterType,
217
219
  PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
@@ -1159,6 +1161,17 @@ var PromptState = {
1159
1161
  DISABLED: "DISABLED",
1160
1162
  ENABLED: "ENABLED"
1161
1163
  };
1164
+ var OrchestrationExecutor;
1165
+ ((OrchestrationExecutor3) => {
1166
+ OrchestrationExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
1167
+ if (value.lambda !== void 0) return visitor.lambda(value.lambda);
1168
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1169
+ }, "visit");
1170
+ })(OrchestrationExecutor || (OrchestrationExecutor = {}));
1171
+ var OrchestrationType = {
1172
+ CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
1173
+ DEFAULT: "DEFAULT"
1174
+ };
1162
1175
  var InlineAgentResponseStream;
1163
1176
  ((InlineAgentResponseStream3) => {
1164
1177
  InlineAgentResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1884,7 +1897,9 @@ var InlineAgentReturnControlPayloadFilterSensitiveLog = /* @__PURE__ */ __name((
1884
1897
  }), "InlineAgentReturnControlPayloadFilterSensitiveLog");
1885
1898
  var InlineAgentTracePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1886
1899
  ...obj,
1887
- ...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING }
1900
+ ...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING },
1901
+ ...obj.callerChain && { callerChain: obj.callerChain.map((item) => item) },
1902
+ ...obj.collaboratorName && { collaboratorName: import_smithy_client.SENSITIVE_STRING }
1888
1903
  }), "InlineAgentTracePartFilterSensitiveLog");
1889
1904
  var InlineAgentResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1890
1905
  if (obj.chunk !== void 0) return { chunk: import_smithy_client.SENSITIVE_STRING };
@@ -2249,9 +2264,11 @@ var InvokeInlineAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
2249
2264
  (item) => CollaboratorConfigurationFilterSensitiveLog(item)
2250
2265
  )
2251
2266
  },
2267
+ ...obj.agentName && { agentName: import_smithy_client.SENSITIVE_STRING },
2252
2268
  ...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING },
2253
2269
  ...obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) },
2254
- ...obj.collaborators && { collaborators: obj.collaborators.map((item) => CollaboratorFilterSensitiveLog(item)) }
2270
+ ...obj.collaborators && { collaborators: obj.collaborators.map((item) => CollaboratorFilterSensitiveLog(item)) },
2271
+ ...obj.customOrchestration && { customOrchestration: obj.customOrchestration }
2255
2272
  }), "InvokeInlineAgentRequestFilterSensitiveLog");
2256
2273
 
2257
2274
  // src/protocols/Aws_restJson1.ts
@@ -2436,9 +2453,11 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
2436
2453
  (0, import_smithy_client.take)(input, {
2437
2454
  actionGroups: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actionGroups"),
2438
2455
  agentCollaboration: [],
2456
+ agentName: [],
2439
2457
  bedrockModelConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "bedrockModelConfigurations"),
2440
2458
  collaboratorConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "collaboratorConfigurations"),
2441
2459
  collaborators: /* @__PURE__ */ __name((_) => se_Collaborators(_, context), "collaborators"),
2460
+ customOrchestration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customOrchestration"),
2442
2461
  customerEncryptionKeyArn: [],
2443
2462
  enableTrace: [],
2444
2463
  endSession: [],
@@ -2449,6 +2468,7 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
2449
2468
  inputText: [],
2450
2469
  instruction: [],
2451
2470
  knowledgeBases: /* @__PURE__ */ __name((_) => se_KnowledgeBases(_, context), "knowledgeBases"),
2471
+ orchestrationType: [],
2452
2472
  promptOverrideConfiguration: /* @__PURE__ */ __name((_) => se_PromptOverrideConfiguration(_, context), "promptOverrideConfiguration"),
2453
2473
  streamingConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "streamingConfigurations")
2454
2474
  })
@@ -4453,6 +4473,9 @@ var de_InlineAgentPayloadPart = /* @__PURE__ */ __name((output, context) => {
4453
4473
  }, "de_InlineAgentPayloadPart");
4454
4474
  var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
4455
4475
  return (0, import_smithy_client.take)(output, {
4476
+ callerChain: import_smithy_client._json,
4477
+ collaboratorName: import_smithy_client.expectString,
4478
+ eventTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "eventTime"),
4456
4479
  sessionId: import_smithy_client.expectString,
4457
4480
  trace: /* @__PURE__ */ __name((_) => de_Trace((0, import_core2.awsExpectUnion)(_), context), "trace")
4458
4481
  });
@@ -5464,6 +5487,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
5464
5487
  ResponseStream,
5465
5488
  RelayConversationHistory,
5466
5489
  PromptState,
5490
+ OrchestrationExecutor,
5491
+ OrchestrationType,
5467
5492
  InlineAgentResponseStream,
5468
5493
  MemoryType,
5469
5494
  Memory,
@@ -651,6 +651,18 @@ export const PromptState = {
651
651
  DISABLED: "DISABLED",
652
652
  ENABLED: "ENABLED",
653
653
  };
654
+ export var OrchestrationExecutor;
655
+ (function (OrchestrationExecutor) {
656
+ OrchestrationExecutor.visit = (value, visitor) => {
657
+ if (value.lambda !== undefined)
658
+ return visitor.lambda(value.lambda);
659
+ return visitor._(value.$unknown[0], value.$unknown[1]);
660
+ };
661
+ })(OrchestrationExecutor || (OrchestrationExecutor = {}));
662
+ export const OrchestrationType = {
663
+ CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
664
+ DEFAULT: "DEFAULT",
665
+ };
654
666
  export var InlineAgentResponseStream;
655
667
  (function (InlineAgentResponseStream) {
656
668
  InlineAgentResponseStream.visit = (value, visitor) => {
@@ -1470,6 +1482,8 @@ export const InlineAgentReturnControlPayloadFilterSensitiveLog = (obj) => ({
1470
1482
  export const InlineAgentTracePartFilterSensitiveLog = (obj) => ({
1471
1483
  ...obj,
1472
1484
  ...(obj.trace && { trace: SENSITIVE_STRING }),
1485
+ ...(obj.callerChain && { callerChain: obj.callerChain.map((item) => item) }),
1486
+ ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
1473
1487
  });
1474
1488
  export const InlineAgentResponseStreamFilterSensitiveLog = (obj) => {
1475
1489
  if (obj.chunk !== undefined)
@@ -175,7 +175,9 @@ export const InvokeInlineAgentRequestFilterSensitiveLog = (obj) => ({
175
175
  ...(obj.collaboratorConfigurations && {
176
176
  collaboratorConfigurations: obj.collaboratorConfigurations.map((item) => CollaboratorConfigurationFilterSensitiveLog(item)),
177
177
  }),
178
+ ...(obj.agentName && { agentName: SENSITIVE_STRING }),
178
179
  ...(obj.inputText && { inputText: SENSITIVE_STRING }),
179
180
  ...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }),
180
181
  ...(obj.collaborators && { collaborators: obj.collaborators.map((item) => CollaboratorFilterSensitiveLog(item)) }),
182
+ ...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
181
183
  });
@@ -172,9 +172,11 @@ export const se_InvokeInlineAgentCommand = async (input, context) => {
172
172
  body = JSON.stringify(take(input, {
173
173
  actionGroups: (_) => _json(_),
174
174
  agentCollaboration: [],
175
+ agentName: [],
175
176
  bedrockModelConfigurations: (_) => _json(_),
176
177
  collaboratorConfigurations: (_) => _json(_),
177
178
  collaborators: (_) => se_Collaborators(_, context),
179
+ customOrchestration: (_) => _json(_),
178
180
  customerEncryptionKeyArn: [],
179
181
  enableTrace: [],
180
182
  endSession: [],
@@ -185,6 +187,7 @@ export const se_InvokeInlineAgentCommand = async (input, context) => {
185
187
  inputText: [],
186
188
  instruction: [],
187
189
  knowledgeBases: (_) => se_KnowledgeBases(_, context),
190
+ orchestrationType: [],
188
191
  promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
189
192
  streamingConfigurations: (_) => _json(_),
190
193
  }));
@@ -2162,6 +2165,9 @@ const de_InlineAgentPayloadPart = (output, context) => {
2162
2165
  };
2163
2166
  const de_InlineAgentTracePart = (output, context) => {
2164
2167
  return take(output, {
2168
+ callerChain: _json,
2169
+ collaboratorName: __expectString,
2170
+ eventTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2165
2171
  sessionId: __expectString,
2166
2172
  trace: (_) => de_Trace(__expectUnion(_), context),
2167
2173
  });
@@ -27,26 +27,7 @@ declare const CreateInvocationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from
31
- * a conversation. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
32
- * <p>Related APIs</p>
33
- * <ul>
34
- * <li>
35
- * <p>
36
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListInvocations</a>
37
- * </p>
38
- * </li>
39
- * <li>
40
- * <p>
41
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListSessions.html">ListSessions</a>
42
- * </p>
43
- * </li>
44
- * <li>
45
- * <p>
46
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html">GetSession</a>
47
- * </p>
48
- * </li>
49
- * </ul>
30
+ * <p>Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from a conversation. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p> <p>Related APIs</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListInvocations</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListSessions.html">ListSessions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html">GetSession</a> </p> </li> </ul>
50
31
  * @example
51
32
  * Use a bare-bones client and the command you need to make an API call.
52
33
  * ```javascript
@@ -27,42 +27,7 @@ declare const CreateSessionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a session to temporarily store conversations for generative AI (GenAI) applications built with open-source
31
- * frameworks such as LangGraph and LlamaIndex. Sessions enable you to save the state of
32
- * conversations at checkpoints, with the added security and infrastructure of Amazon Web Services. For more information, see
33
- * <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
34
- * <p>By default, Amazon Bedrock uses Amazon Web Services-managed keys for session encryption, including session metadata,
35
- * or you can use your own KMS key. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/session-encryption.html">Amazon Bedrock session encryption</a>.</p>
36
- * <note>
37
- * <p>
38
- * You use a session to store state and conversation history for generative AI applications built with open-source frameworks.
39
- * For Amazon Bedrock Agents, the service automatically manages conversation context and associates them with the agent-specific sessionId you specify in the
40
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> API operation.
41
- * </p>
42
- * </note>
43
- * <p>Related APIs:</p>
44
- * <ul>
45
- * <li>
46
- * <p>
47
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListSessions.html">ListSessions</a>
48
- * </p>
49
- * </li>
50
- * <li>
51
- * <p>
52
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html">GetSession</a>
53
- * </p>
54
- * </li>
55
- * <li>
56
- * <p>
57
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_EndSession.html">EndSession</a>
58
- * </p>
59
- * </li>
60
- * <li>
61
- * <p>
62
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_DeleteSession.html">DeleteSession</a>
63
- * </p>
64
- * </li>
65
- * </ul>
30
+ * <p>Creates a session to temporarily store conversations for generative AI (GenAI) applications built with open-source frameworks such as LangGraph and LlamaIndex. Sessions enable you to save the state of conversations at checkpoints, with the added security and infrastructure of Amazon Web Services. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p> <p>By default, Amazon Bedrock uses Amazon Web Services-managed keys for session encryption, including session metadata, or you can use your own KMS key. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/session-encryption.html">Amazon Bedrock session encryption</a>.</p> <note> <p> You use a session to store state and conversation history for generative AI applications built with open-source frameworks. For Amazon Bedrock Agents, the service automatically manages conversation context and associates them with the agent-specific sessionId you specify in the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> API operation. </p> </note> <p>Related APIs:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListSessions.html">ListSessions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html">GetSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_EndSession.html">EndSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_DeleteSession.html">DeleteSession</a> </p> </li> </ul>
66
31
  * @example
67
32
  * Use a bare-bones client and the command you need to make an API call.
68
33
  * ```javascript
@@ -27,9 +27,7 @@ declare const DeleteSessionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a session that you ended. You can't delete a session with an <code>ACTIVE</code> status. To delete an active session, you must first end it with the
31
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_EndSession.html">EndSession</a> API operation.
32
- * For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
30
+ * <p>Deletes a session that you ended. You can't delete a session with an <code>ACTIVE</code> status. To delete an active session, you must first end it with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_EndSession.html">EndSession</a> API operation. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -27,9 +27,7 @@ declare const EndSessionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Ends the session.
31
- * After you end a session, you can still access its content but you can’t add to it. To delete the session and it's content, you use the DeleteSession API operation.
32
- * For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
30
+ * <p>Ends the session. After you end a session, you can still access its content but you can’t add to it. To delete the session and it's content, you use the DeleteSession API operation. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -28,39 +28,7 @@ declare const InvokeAgentCommand_base: {
28
28
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
29
  };
30
30
  /**
31
- * <note>
32
- * </note>
33
- * <p>Sends a prompt for the agent to process and respond to. Note the following fields for the request:</p>
34
- * <ul>
35
- * <li>
36
- * <p>To continue the same conversation with an agent, use the same <code>sessionId</code> value in the request.</p>
37
- * </li>
38
- * <li>
39
- * <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>
40
- * </li>
41
- * <li>
42
- * <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p>
43
- * </li>
44
- * <li>
45
- * <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>
46
- * </li>
47
- * </ul>
48
- * <p>The response contains both <b>chunk</b> and <b>trace</b> attributes.</p>
49
- * <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>
50
- * <ul>
51
- * <li>
52
- * <p>The <code>attribution</code> object contains citations for parts of the response.</p>
53
- * </li>
54
- * <li>
55
- * <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>
56
- * </li>
57
- * <li>
58
- * <p>If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the <code>returnControl</code> field.</p>
59
- * </li>
60
- * <li>
61
- * <p>Errors are also surfaced in the response.</p>
62
- * </li>
63
- * </ul>
31
+ * <note> </note> <p>Sends a prompt for the agent to process and respond to. Note the following fields for the request:</p> <ul> <li> <p>To continue the same conversation with an agent, use the same <code>sessionId</code> value in the request.</p> </li> <li> <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> </li> <li> <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p> </li> <li> <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> </li> </ul> <p>The response contains both <b>chunk</b> and <b>trace</b> attributes.</p> <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> <ul> <li> <p>The <code>attribution</code> object contains citations for parts of the response.</p> </li> <li> <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> </li> <li> <p>If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the <code>returnControl</code> field.</p> </li> <li> <p>Errors are also surfaced in the response.</p> </li> </ul>
64
32
  * @example
65
33
  * Use a bare-bones client and the command you need to make an API call.
66
34
  * ```javascript
@@ -1055,9 +1023,6 @@ declare const InvokeAgentCommand_base: {
1055
1023
  * // },
1056
1024
  * // },
1057
1025
  * // },
1058
- * // agentId: "STRING_VALUE",
1059
- * // agentAliasId: "STRING_VALUE",
1060
- * // agentVersion: "STRING_VALUE",
1061
1026
  * // callerChain: [ // CallerChain
1062
1027
  * // { // Caller Union: only one key present
1063
1028
  * // agentAliasArn: "STRING_VALUE",
@@ -1065,6 +1030,9 @@ declare const InvokeAgentCommand_base: {
1065
1030
  * // ],
1066
1031
  * // eventTime: new Date("TIMESTAMP"),
1067
1032
  * // collaboratorName: "STRING_VALUE",
1033
+ * // agentId: "STRING_VALUE",
1034
+ * // agentAliasId: "STRING_VALUE",
1035
+ * // agentVersion: "STRING_VALUE",
1068
1036
  * // },
1069
1037
  * // returnControl: {
1070
1038
  * // invocationInputs: [
@@ -1183,12 +1151,7 @@ declare const InvokeAgentCommand_base: {
1183
1151
  * <p>An internal server error occurred. Retry your request.</p>
1184
1152
  *
1185
1153
  * @throws {@link ModelNotReadyException} (client fault)
1186
- * <p>
1187
- * The model specified in the request is not ready to serve inference requests. The AWS SDK
1188
- * will automatically retry the operation up to 5 times. For information about configuring
1189
- * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
1190
- * reference guide.
1191
- * </p>
1154
+ * <p> The model specified in the request is not ready to serve inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i> reference guide. </p>
1192
1155
  *
1193
1156
  * @throws {@link ResourceNotFoundException} (client fault)
1194
1157
  * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
@@ -27,10 +27,7 @@ declare const InvokeFlowCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html">Test a flow in Amazon Bedrock</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
31
- * <note>
32
- * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeFlow</code>.</p>
33
- * </note>
30
+ * <p>Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html">Test a flow in Amazon Bedrock</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p> <note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeFlow</code>.</p> </note>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -28,31 +28,7 @@ declare const InvokeInlineAgentCommand_base: {
28
28
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
29
  };
30
30
  /**
31
- * <p>
32
- * Invokes an inline Amazon Bedrock agent using the configurations you provide with the request.
33
- * </p>
34
- * <ul>
35
- * <li>
36
- * <p>Specify the following fields for security purposes.</p>
37
- * <ul>
38
- * <li>
39
- * <p>(Optional) <code>customerEncryptionKeyArn</code> – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.</p>
40
- * </li>
41
- * <li>
42
- * <p>(Optional) <code>idleSessionTTLinSeconds</code> – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent <code>InvokeInlineAgent</code> request begins a new session.</p>
43
- * </li>
44
- * </ul>
45
- * </li>
46
- * <li>
47
- * <p>To override the default prompt behavior for agent orchestration and to use advanced prompts, include a <code>promptOverrideConfiguration</code> object.
48
- * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p>
49
- * </li>
50
- * <li>
51
- * <p>The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.</p>
52
- * </li>
53
- * </ul>
54
- * <note>
55
- * </note>
31
+ * <p> Invokes an inline Amazon Bedrock agent using the configurations you provide with the request. </p> <ul> <li> <p>Specify the following fields for security purposes.</p> <ul> <li> <p>(Optional) <code>customerEncryptionKeyArn</code> – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.</p> </li> <li> <p>(Optional) <code>idleSessionTTLinSeconds</code> – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent <code>InvokeInlineAgent</code> request begins a new session.</p> </li> </ul> </li> <li> <p>To override the default prompt behavior for agent orchestration and to use advanced prompts, include a <code>promptOverrideConfiguration</code> object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p> </li> <li> <p>The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.</p> </li> </ul> <note> </note>
56
32
  * @example
57
33
  * Use a bare-bones client and the command you need to make an API call.
58
34
  * ```javascript
@@ -238,6 +214,7 @@ declare const InvokeInlineAgentCommand_base: {
238
214
  * relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
239
215
  * },
240
216
  * ],
217
+ * agentName: "STRING_VALUE",
241
218
  * sessionId: "STRING_VALUE", // required
242
219
  * endSession: true || false,
243
220
  * enableTrace: true || false,
@@ -466,6 +443,12 @@ declare const InvokeInlineAgentCommand_base: {
466
443
  * latency: "standard" || "optimized",
467
444
  * },
468
445
  * },
446
+ * orchestrationType: "DEFAULT" || "CUSTOM_ORCHESTRATION",
447
+ * customOrchestration: { // CustomOrchestration
448
+ * executor: { // OrchestrationExecutor Union: only one key present
449
+ * lambda: "STRING_VALUE",
450
+ * },
451
+ * },
469
452
  * };
470
453
  * const command = new InvokeInlineAgentCommand(input);
471
454
  * const response = await client.send(command);
@@ -1253,6 +1236,13 @@ declare const InvokeInlineAgentCommand_base: {
1253
1236
  * // },
1254
1237
  * // },
1255
1238
  * // },
1239
+ * // callerChain: [ // CallerChain
1240
+ * // { // Caller Union: only one key present
1241
+ * // agentAliasArn: "STRING_VALUE",
1242
+ * // },
1243
+ * // ],
1244
+ * // eventTime: new Date("TIMESTAMP"),
1245
+ * // collaboratorName: "STRING_VALUE",
1256
1246
  * // },
1257
1247
  * // returnControl: { // InlineAgentReturnControlPayload
1258
1248
  * // invocationInputs: [
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { ListSessionsRequest, ListSessionsResponse } from "../models/models_0";
4
+ import { ListSessionsRequest } from "../models/models_0";
5
+ import { ListSessionsResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -24,6 +25,7 @@ export interface ListSessionsCommandOutput extends ListSessionsResponse, __Metad
24
25
  declare const ListSessionsCommand_base: {
25
26
  new (input: ListSessionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
27
  new (...[input]: [] | [ListSessionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
28
+ /** @internal type navigation helper, not in runtime. */
27
29
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
30
  };
29
31
  /**
@@ -27,30 +27,7 @@ declare const PutInvocationStepCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints, including text and images, for each interaction. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p>
31
- * <p>Related APIs:</p>
32
- * <ul>
33
- * <li>
34
- * <p>
35
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetInvocationStep.html">GetInvocationStep</a>
36
- * </p>
37
- * </li>
38
- * <li>
39
- * <p>
40
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocationSteps.html">ListInvocationSteps</a>
41
- * </p>
42
- * </li>
43
- * <li>
44
- * <p>
45
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListInvocations</a>
46
- * </p>
47
- * </li>
48
- * <li>
49
- * <p>
50
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListSessions</a>
51
- * </p>
52
- * </li>
53
- * </ul>
30
+ * <p>Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints, including text and images, for each interaction. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p> <p>Related APIs:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetInvocationStep.html">GetInvocationStep</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocationSteps.html">ListInvocationSteps</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListInvocations</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListSessions</a> </p> </li> </ul>
54
31
  * @example
55
32
  * Use a bare-bones client and the command you need to make an API call.
56
33
  * ```javascript
@@ -28,11 +28,7 @@ declare const RetrieveAndGenerateStreamCommand_base: {
28
28
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
29
  };
30
30
  /**
31
- * <p>Queries a knowledge base and generates responses based on the retrieved results, with output in streaming format.</p>
32
- * <note>
33
- * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p>
34
- * </note>
35
- * <p>This operation requires permission for the <code> bedrock:RetrieveAndGenerate</code> action.</p>
31
+ * <p>Queries a knowledge base and generates responses based on the retrieved results, with output in streaming format.</p> <note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p> </note> <p>This operation requires permission for the <code> bedrock:RetrieveAndGenerate</code> action.</p>
36
32
  * @example
37
33
  * Use a bare-bones client and the command you need to make an API call.
38
34
  * ```javascript
@@ -27,7 +27,7 @@ declare const TagResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Associate tags with a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the Amazon Bedrock User Guide.</p>
30
+ * <p>Associate tags with a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the Amazon Bedrock User Guide.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { UpdateSessionRequest } from "../models/models_0";
5
- import { UpdateSessionResponse } from "../models/models_1";
4
+ import { UpdateSessionRequest, UpdateSessionResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */