@aws-sdk/client-bedrock-agent-runtime 3.799.0 → 3.800.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 +27 -2
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/models/models_1.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -0
- package/dist-types/commands/CreateInvocationCommand.d.ts +1 -20
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -36
- package/dist-types/commands/DeleteSessionCommand.d.ts +1 -3
- package/dist-types/commands/EndSessionCommand.d.ts +1 -3
- package/dist-types/commands/InvokeAgentCommand.d.ts +5 -42
- package/dist-types/commands/InvokeFlowCommand.d.ts +1 -4
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +15 -25
- package/dist-types/commands/ListSessionsCommand.d.ts +3 -1
- package/dist-types/commands/PutInvocationStepCommand.d.ts +1 -24
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +1 -5
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSessionCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +218 -824
- package/dist-types/models/models_1.d.ts +132 -274
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +33 -18
- package/dist-types/ts3.4/models/models_1.d.ts +20 -0
- package/package.json +1 -1
|
@@ -5,7 +5,8 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentRuntimeClient";
|
|
8
|
-
import { ListSessionsRequest
|
|
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 {
|
|
9
|
-
|
|
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.
|
|
4
|
+
"version": "3.800.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",
|