@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.
@@ -5,7 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockAgentRuntimeClient";
8
- import { ListSessionsRequest, ListSessionsResponse } from "../models/models_0";
8
+ import { ListSessionsRequest } from "../models/models_0";
9
+ import { ListSessionsResponse } from "../models/models_1";
9
10
  export { __MetadataBearer };
10
11
  export { $Command };
11
12
  export interface ListSessionsCommandInput extends ListSessionsRequest {}
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockAgentRuntimeClient";
8
- import { UpdateSessionRequest } from "../models/models_0";
9
- import { UpdateSessionResponse } from "../models/models_1";
8
+ import {
9
+ UpdateSessionRequest,
10
+ UpdateSessionResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface UpdateSessionCommandInput extends UpdateSessionRequest {}
@@ -1858,12 +1858,12 @@ export declare namespace Trace {
1858
1858
  export interface TracePart {
1859
1859
  sessionId?: string | undefined;
1860
1860
  trace?: Trace | undefined;
1861
- agentId?: string | undefined;
1862
- agentAliasId?: string | undefined;
1863
- agentVersion?: string | undefined;
1864
1861
  callerChain?: Caller[] | undefined;
1865
1862
  eventTime?: Date | undefined;
1866
1863
  collaboratorName?: string | undefined;
1864
+ agentId?: string | undefined;
1865
+ agentAliasId?: string | undefined;
1866
+ agentVersion?: string | undefined;
1867
1867
  }
1868
1868
  export type ResponseStream =
1869
1869
  | ResponseStream.AccessDeniedExceptionMember
@@ -2200,6 +2200,27 @@ export interface PromptOverrideConfiguration {
2200
2200
  promptConfigurations: PromptConfiguration[] | undefined;
2201
2201
  overrideLambda?: string | undefined;
2202
2202
  }
2203
+ export type OrchestrationExecutor =
2204
+ | OrchestrationExecutor.LambdaMember
2205
+ | OrchestrationExecutor.$UnknownMember;
2206
+ export declare namespace OrchestrationExecutor {
2207
+ interface LambdaMember {
2208
+ lambda: string;
2209
+ $unknown?: never;
2210
+ }
2211
+ interface $UnknownMember {
2212
+ lambda?: never;
2213
+ $unknown: [string, any];
2214
+ }
2215
+ interface Visitor<T> {
2216
+ lambda: (value: string) => T;
2217
+ _: (name: string, value: any) => T;
2218
+ }
2219
+ const visit: <T>(value: OrchestrationExecutor, visitor: Visitor<T>) => T;
2220
+ }
2221
+ export interface CustomOrchestration {
2222
+ executor?: OrchestrationExecutor | undefined;
2223
+ }
2203
2224
  export interface InlineSessionState {
2204
2225
  sessionAttributes?: Record<string, string> | undefined;
2205
2226
  promptSessionAttributes?: Record<string, string> | undefined;
@@ -2208,6 +2229,12 @@ export interface InlineSessionState {
2208
2229
  files?: InputFile[] | undefined;
2209
2230
  conversationHistory?: ConversationHistory | undefined;
2210
2231
  }
2232
+ export declare const OrchestrationType: {
2233
+ readonly CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION";
2234
+ readonly DEFAULT: "DEFAULT";
2235
+ };
2236
+ export type OrchestrationType =
2237
+ (typeof OrchestrationType)[keyof typeof OrchestrationType];
2211
2238
  export interface InlineAgentPayloadPart {
2212
2239
  bytes?: Uint8Array | undefined;
2213
2240
  attribution?: Attribution | undefined;
@@ -2222,6 +2249,9 @@ export interface InlineAgentReturnControlPayload {
2222
2249
  export interface InlineAgentTracePart {
2223
2250
  sessionId?: string | undefined;
2224
2251
  trace?: Trace | undefined;
2252
+ callerChain?: Caller[] | undefined;
2253
+ eventTime?: Date | undefined;
2254
+ collaboratorName?: string | undefined;
2225
2255
  }
2226
2256
  export type InlineAgentResponseStream =
2227
2257
  | InlineAgentResponseStream.AccessDeniedExceptionMember
@@ -3324,21 +3354,6 @@ export interface ListSessionsRequest {
3324
3354
  maxResults?: number | undefined;
3325
3355
  nextToken?: string | undefined;
3326
3356
  }
3327
- export interface SessionSummary {
3328
- sessionId: string | undefined;
3329
- sessionArn: string | undefined;
3330
- sessionStatus: SessionStatus | undefined;
3331
- createdAt: Date | undefined;
3332
- lastUpdatedAt: Date | undefined;
3333
- }
3334
- export interface ListSessionsResponse {
3335
- sessionSummaries: SessionSummary[] | undefined;
3336
- nextToken?: string | undefined;
3337
- }
3338
- export interface UpdateSessionRequest {
3339
- sessionMetadata?: Record<string, string> | undefined;
3340
- sessionIdentifier: string | undefined;
3341
- }
3342
3357
  export declare const ActionGroupInvocationInputFilterSensitiveLog: (
3343
3358
  obj: ActionGroupInvocationInput
3344
3359
  ) => any;
@@ -4,6 +4,7 @@ import {
4
4
  BedrockModelConfigurations,
5
5
  CollaboratorConfiguration,
6
6
  ConversationHistory,
7
+ CustomOrchestration,
7
8
  ExternalSourcesRetrieveAndGenerateConfiguration,
8
9
  FilterAttribute,
9
10
  GenerationConfiguration,
@@ -16,6 +17,7 @@ import {
16
17
  InvocationResultMember,
17
18
  KnowledgeBaseQuery,
18
19
  OrchestrationConfiguration,
20
+ OrchestrationType,
19
21
  PromptOverrideConfiguration,
20
22
  RetrieveAndGenerateInput,
21
23
  RetrieveAndGenerateSessionConfiguration,
@@ -25,6 +27,21 @@ import {
25
27
  StreamingConfigurations,
26
28
  VectorSearchRerankingConfiguration,
27
29
  } from "./models_0";
30
+ export interface SessionSummary {
31
+ sessionId: string | undefined;
32
+ sessionArn: string | undefined;
33
+ sessionStatus: SessionStatus | undefined;
34
+ createdAt: Date | undefined;
35
+ lastUpdatedAt: Date | undefined;
36
+ }
37
+ export interface ListSessionsResponse {
38
+ sessionSummaries: SessionSummary[] | undefined;
39
+ nextToken?: string | undefined;
40
+ }
41
+ export interface UpdateSessionRequest {
42
+ sessionMetadata?: Record<string, string> | undefined;
43
+ sessionIdentifier: string | undefined;
44
+ }
28
45
  export interface UpdateSessionResponse {
29
46
  sessionId: string | undefined;
30
47
  sessionArn: string | undefined;
@@ -410,6 +427,7 @@ export interface InvokeInlineAgentRequest {
410
427
  promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
411
428
  agentCollaboration?: AgentCollaboration | undefined;
412
429
  collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
430
+ agentName?: string | undefined;
413
431
  sessionId: string | undefined;
414
432
  endSession?: boolean | undefined;
415
433
  enableTrace?: boolean | undefined;
@@ -418,6 +436,8 @@ export interface InvokeInlineAgentRequest {
418
436
  inlineSessionState?: InlineSessionState | undefined;
419
437
  collaborators?: Collaborator[] | undefined;
420
438
  bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
439
+ orchestrationType?: OrchestrationType | undefined;
440
+ customOrchestration?: CustomOrchestration | undefined;
421
441
  }
422
442
  export declare const RetrievalFilterFilterSensitiveLog: (
423
443
  obj: RetrievalFilter
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.799.0",
4
+ "version": "3.803.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/core": "3.799.0",
24
- "@aws-sdk/credential-provider-node": "3.799.0",
24
+ "@aws-sdk/credential-provider-node": "3.803.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
@@ -41,7 +41,7 @@
41
41
  "@smithy/invalid-dependency": "^4.0.2",
42
42
  "@smithy/middleware-content-length": "^4.0.2",
43
43
  "@smithy/middleware-endpoint": "^4.1.1",
44
- "@smithy/middleware-retry": "^4.1.1",
44
+ "@smithy/middleware-retry": "^4.1.2",
45
45
  "@smithy/middleware-serde": "^4.0.3",
46
46
  "@smithy/middleware-stack": "^4.0.2",
47
47
  "@smithy/node-config-provider": "^4.0.2",
@@ -57,7 +57,7 @@
57
57
  "@smithy/util-defaults-mode-node": "^4.0.9",
58
58
  "@smithy/util-endpoints": "^3.0.2",
59
59
  "@smithy/util-middleware": "^4.0.2",
60
- "@smithy/util-retry": "^4.0.2",
60
+ "@smithy/util-retry": "^4.0.3",
61
61
  "@smithy/util-utf8": "^4.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },