@aws-sdk/client-bedrock-agent-runtime 3.697.0 → 3.699.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/README.md +8 -0
- package/dist-cjs/index.js +483 -1
- package/dist-es/BedrockAgentRuntime.js +2 -0
- package/dist-es/commands/InvokeInlineAgentCommand.js +27 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +197 -0
- package/dist-es/protocols/Aws_restJson1.js +204 -0
- package/dist-types/BedrockAgentRuntime.d.ts +7 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +3 -2
- package/dist-types/commands/InvokeAgentCommand.d.ts +6 -6
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +755 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1120 -33
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +492 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +4 -4
|
@@ -8,6 +8,38 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
8
8
|
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
+
export declare const CustomControlMethod: {
|
|
12
|
+
readonly RETURN_CONTROL: "RETURN_CONTROL";
|
|
13
|
+
};
|
|
14
|
+
export type CustomControlMethod =
|
|
15
|
+
(typeof CustomControlMethod)[keyof typeof CustomControlMethod];
|
|
16
|
+
export type ActionGroupExecutor =
|
|
17
|
+
| ActionGroupExecutor.CustomControlMember
|
|
18
|
+
| ActionGroupExecutor.LambdaMember
|
|
19
|
+
| ActionGroupExecutor.$UnknownMember;
|
|
20
|
+
export declare namespace ActionGroupExecutor {
|
|
21
|
+
interface LambdaMember {
|
|
22
|
+
lambda: string;
|
|
23
|
+
customControl?: never;
|
|
24
|
+
$unknown?: never;
|
|
25
|
+
}
|
|
26
|
+
interface CustomControlMember {
|
|
27
|
+
lambda?: never;
|
|
28
|
+
customControl: CustomControlMethod;
|
|
29
|
+
$unknown?: never;
|
|
30
|
+
}
|
|
31
|
+
interface $UnknownMember {
|
|
32
|
+
lambda?: never;
|
|
33
|
+
customControl?: never;
|
|
34
|
+
$unknown: [string, any];
|
|
35
|
+
}
|
|
36
|
+
interface Visitor<T> {
|
|
37
|
+
lambda: (value: string) => T;
|
|
38
|
+
customControl: (value: CustomControlMethod) => T;
|
|
39
|
+
_: (name: string, value: any) => T;
|
|
40
|
+
}
|
|
41
|
+
const visit: <T>(value: ActionGroupExecutor, visitor: Visitor<T>) => T;
|
|
42
|
+
}
|
|
11
43
|
export declare const ExecutionType: {
|
|
12
44
|
readonly LAMBDA: "LAMBDA";
|
|
13
45
|
readonly RETURN_CONTROL: "RETURN_CONTROL";
|
|
@@ -34,6 +66,12 @@ export interface ActionGroupInvocationInput {
|
|
|
34
66
|
export interface ActionGroupInvocationOutput {
|
|
35
67
|
text?: string | undefined;
|
|
36
68
|
}
|
|
69
|
+
export declare const ActionGroupSignature: {
|
|
70
|
+
readonly AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter";
|
|
71
|
+
readonly AMAZON_USERINPUT: "AMAZON.UserInput";
|
|
72
|
+
};
|
|
73
|
+
export type ActionGroupSignature =
|
|
74
|
+
(typeof ActionGroupSignature)[keyof typeof ActionGroupSignature];
|
|
37
75
|
export declare const ActionInvocationType: {
|
|
38
76
|
readonly RESULT: "RESULT";
|
|
39
77
|
readonly USER_CONFIRMATION: "USER_CONFIRMATION";
|
|
@@ -41,6 +79,88 @@ export declare const ActionInvocationType: {
|
|
|
41
79
|
};
|
|
42
80
|
export type ActionInvocationType =
|
|
43
81
|
(typeof ActionInvocationType)[keyof typeof ActionInvocationType];
|
|
82
|
+
export interface S3Identifier {
|
|
83
|
+
s3BucketName?: string | undefined;
|
|
84
|
+
s3ObjectKey?: string | undefined;
|
|
85
|
+
}
|
|
86
|
+
export type APISchema =
|
|
87
|
+
| APISchema.PayloadMember
|
|
88
|
+
| APISchema.S3Member
|
|
89
|
+
| APISchema.$UnknownMember;
|
|
90
|
+
export declare namespace APISchema {
|
|
91
|
+
interface S3Member {
|
|
92
|
+
s3: S3Identifier;
|
|
93
|
+
payload?: never;
|
|
94
|
+
$unknown?: never;
|
|
95
|
+
}
|
|
96
|
+
interface PayloadMember {
|
|
97
|
+
s3?: never;
|
|
98
|
+
payload: string;
|
|
99
|
+
$unknown?: never;
|
|
100
|
+
}
|
|
101
|
+
interface $UnknownMember {
|
|
102
|
+
s3?: never;
|
|
103
|
+
payload?: never;
|
|
104
|
+
$unknown: [string, any];
|
|
105
|
+
}
|
|
106
|
+
interface Visitor<T> {
|
|
107
|
+
s3: (value: S3Identifier) => T;
|
|
108
|
+
payload: (value: string) => T;
|
|
109
|
+
_: (name: string, value: any) => T;
|
|
110
|
+
}
|
|
111
|
+
const visit: <T>(value: APISchema, visitor: Visitor<T>) => T;
|
|
112
|
+
}
|
|
113
|
+
export declare const ParameterType: {
|
|
114
|
+
readonly ARRAY: "array";
|
|
115
|
+
readonly BOOLEAN: "boolean";
|
|
116
|
+
readonly INTEGER: "integer";
|
|
117
|
+
readonly NUMBER: "number";
|
|
118
|
+
readonly STRING: "string";
|
|
119
|
+
};
|
|
120
|
+
export type ParameterType = (typeof ParameterType)[keyof typeof ParameterType];
|
|
121
|
+
export interface ParameterDetail {
|
|
122
|
+
description?: string | undefined;
|
|
123
|
+
type: ParameterType | undefined;
|
|
124
|
+
required?: boolean | undefined;
|
|
125
|
+
}
|
|
126
|
+
export declare const RequireConfirmation: {
|
|
127
|
+
readonly DISABLED: "DISABLED";
|
|
128
|
+
readonly ENABLED: "ENABLED";
|
|
129
|
+
};
|
|
130
|
+
export type RequireConfirmation =
|
|
131
|
+
(typeof RequireConfirmation)[keyof typeof RequireConfirmation];
|
|
132
|
+
export interface FunctionDefinition {
|
|
133
|
+
name: string | undefined;
|
|
134
|
+
description?: string | undefined;
|
|
135
|
+
parameters?: Record<string, ParameterDetail> | undefined;
|
|
136
|
+
requireConfirmation?: RequireConfirmation | undefined;
|
|
137
|
+
}
|
|
138
|
+
export type FunctionSchema =
|
|
139
|
+
| FunctionSchema.FunctionsMember
|
|
140
|
+
| FunctionSchema.$UnknownMember;
|
|
141
|
+
export declare namespace FunctionSchema {
|
|
142
|
+
interface FunctionsMember {
|
|
143
|
+
functions: FunctionDefinition[];
|
|
144
|
+
$unknown?: never;
|
|
145
|
+
}
|
|
146
|
+
interface $UnknownMember {
|
|
147
|
+
functions?: never;
|
|
148
|
+
$unknown: [string, any];
|
|
149
|
+
}
|
|
150
|
+
interface Visitor<T> {
|
|
151
|
+
functions: (value: FunctionDefinition[]) => T;
|
|
152
|
+
_: (name: string, value: any) => T;
|
|
153
|
+
}
|
|
154
|
+
const visit: <T>(value: FunctionSchema, visitor: Visitor<T>) => T;
|
|
155
|
+
}
|
|
156
|
+
export interface AgentActionGroup {
|
|
157
|
+
actionGroupName: string | undefined;
|
|
158
|
+
description?: string | undefined;
|
|
159
|
+
parentActionGroupSignature?: ActionGroupSignature | undefined;
|
|
160
|
+
actionGroupExecutor?: ActionGroupExecutor | undefined;
|
|
161
|
+
apiSchema?: APISchema | undefined;
|
|
162
|
+
functionSchema?: FunctionSchema | undefined;
|
|
163
|
+
}
|
|
44
164
|
export declare class BadGatewayException extends __BaseException {
|
|
45
165
|
readonly name: "BadGatewayException";
|
|
46
166
|
readonly $fault: "server";
|
|
@@ -917,6 +1037,7 @@ export declare const PromptType: {
|
|
|
917
1037
|
readonly ORCHESTRATION: "ORCHESTRATION";
|
|
918
1038
|
readonly POST_PROCESSING: "POST_PROCESSING";
|
|
919
1039
|
readonly PRE_PROCESSING: "PRE_PROCESSING";
|
|
1040
|
+
readonly ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER";
|
|
920
1041
|
};
|
|
921
1042
|
export type PromptType = (typeof PromptType)[keyof typeof PromptType];
|
|
922
1043
|
export interface ModelInvocationInput {
|
|
@@ -1192,11 +1313,11 @@ export declare namespace Trace {
|
|
|
1192
1313
|
const visit: <T>(value: Trace, visitor: Visitor<T>) => T;
|
|
1193
1314
|
}
|
|
1194
1315
|
export interface TracePart {
|
|
1316
|
+
sessionId?: string | undefined;
|
|
1317
|
+
trace?: Trace | undefined;
|
|
1195
1318
|
agentId?: string | undefined;
|
|
1196
1319
|
agentAliasId?: string | undefined;
|
|
1197
|
-
sessionId?: string | undefined;
|
|
1198
1320
|
agentVersion?: string | undefined;
|
|
1199
|
-
trace?: Trace | undefined;
|
|
1200
1321
|
}
|
|
1201
1322
|
export type ResponseStream =
|
|
1202
1323
|
| ResponseStream.AccessDeniedExceptionMember
|
|
@@ -1462,6 +1583,312 @@ export interface InvokeAgentResponse {
|
|
|
1462
1583
|
sessionId: string | undefined;
|
|
1463
1584
|
memoryId?: string | undefined;
|
|
1464
1585
|
}
|
|
1586
|
+
export interface GuardrailConfigurationWithArn {
|
|
1587
|
+
guardrailIdentifier: string | undefined;
|
|
1588
|
+
guardrailVersion: string | undefined;
|
|
1589
|
+
}
|
|
1590
|
+
export interface InlineSessionState {
|
|
1591
|
+
sessionAttributes?: Record<string, string> | undefined;
|
|
1592
|
+
promptSessionAttributes?: Record<string, string> | undefined;
|
|
1593
|
+
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
1594
|
+
invocationId?: string | undefined;
|
|
1595
|
+
files?: InputFile[] | undefined;
|
|
1596
|
+
}
|
|
1597
|
+
export declare const PromptState: {
|
|
1598
|
+
readonly DISABLED: "DISABLED";
|
|
1599
|
+
readonly ENABLED: "ENABLED";
|
|
1600
|
+
};
|
|
1601
|
+
export type PromptState = (typeof PromptState)[keyof typeof PromptState];
|
|
1602
|
+
export interface PromptConfiguration {
|
|
1603
|
+
promptType?: PromptType | undefined;
|
|
1604
|
+
promptCreationMode?: CreationMode | undefined;
|
|
1605
|
+
promptState?: PromptState | undefined;
|
|
1606
|
+
basePromptTemplate?: string | undefined;
|
|
1607
|
+
inferenceConfiguration?: InferenceConfiguration | undefined;
|
|
1608
|
+
parserMode?: CreationMode | undefined;
|
|
1609
|
+
}
|
|
1610
|
+
export interface PromptOverrideConfiguration {
|
|
1611
|
+
promptConfigurations: PromptConfiguration[] | undefined;
|
|
1612
|
+
overrideLambda?: string | undefined;
|
|
1613
|
+
}
|
|
1614
|
+
export interface InlineAgentPayloadPart {
|
|
1615
|
+
bytes?: Uint8Array | undefined;
|
|
1616
|
+
attribution?: Attribution | undefined;
|
|
1617
|
+
}
|
|
1618
|
+
export interface InlineAgentFilePart {
|
|
1619
|
+
files?: OutputFile[] | undefined;
|
|
1620
|
+
}
|
|
1621
|
+
export interface InlineAgentReturnControlPayload {
|
|
1622
|
+
invocationInputs?: InvocationInputMember[] | undefined;
|
|
1623
|
+
invocationId?: string | undefined;
|
|
1624
|
+
}
|
|
1625
|
+
export interface InlineAgentTracePart {
|
|
1626
|
+
sessionId?: string | undefined;
|
|
1627
|
+
trace?: Trace | undefined;
|
|
1628
|
+
}
|
|
1629
|
+
export type InlineAgentResponseStream =
|
|
1630
|
+
| InlineAgentResponseStream.AccessDeniedExceptionMember
|
|
1631
|
+
| InlineAgentResponseStream.BadGatewayExceptionMember
|
|
1632
|
+
| InlineAgentResponseStream.ChunkMember
|
|
1633
|
+
| InlineAgentResponseStream.ConflictExceptionMember
|
|
1634
|
+
| InlineAgentResponseStream.DependencyFailedExceptionMember
|
|
1635
|
+
| InlineAgentResponseStream.FilesMember
|
|
1636
|
+
| InlineAgentResponseStream.InternalServerExceptionMember
|
|
1637
|
+
| InlineAgentResponseStream.ResourceNotFoundExceptionMember
|
|
1638
|
+
| InlineAgentResponseStream.ReturnControlMember
|
|
1639
|
+
| InlineAgentResponseStream.ServiceQuotaExceededExceptionMember
|
|
1640
|
+
| InlineAgentResponseStream.ThrottlingExceptionMember
|
|
1641
|
+
| InlineAgentResponseStream.TraceMember
|
|
1642
|
+
| InlineAgentResponseStream.ValidationExceptionMember
|
|
1643
|
+
| InlineAgentResponseStream.$UnknownMember;
|
|
1644
|
+
export declare namespace InlineAgentResponseStream {
|
|
1645
|
+
interface ChunkMember {
|
|
1646
|
+
chunk: InlineAgentPayloadPart;
|
|
1647
|
+
trace?: never;
|
|
1648
|
+
returnControl?: never;
|
|
1649
|
+
internalServerException?: never;
|
|
1650
|
+
validationException?: never;
|
|
1651
|
+
resourceNotFoundException?: never;
|
|
1652
|
+
serviceQuotaExceededException?: never;
|
|
1653
|
+
throttlingException?: never;
|
|
1654
|
+
accessDeniedException?: never;
|
|
1655
|
+
conflictException?: never;
|
|
1656
|
+
dependencyFailedException?: never;
|
|
1657
|
+
badGatewayException?: never;
|
|
1658
|
+
files?: never;
|
|
1659
|
+
$unknown?: never;
|
|
1660
|
+
}
|
|
1661
|
+
interface TraceMember {
|
|
1662
|
+
chunk?: never;
|
|
1663
|
+
trace: InlineAgentTracePart;
|
|
1664
|
+
returnControl?: never;
|
|
1665
|
+
internalServerException?: never;
|
|
1666
|
+
validationException?: never;
|
|
1667
|
+
resourceNotFoundException?: never;
|
|
1668
|
+
serviceQuotaExceededException?: never;
|
|
1669
|
+
throttlingException?: never;
|
|
1670
|
+
accessDeniedException?: never;
|
|
1671
|
+
conflictException?: never;
|
|
1672
|
+
dependencyFailedException?: never;
|
|
1673
|
+
badGatewayException?: never;
|
|
1674
|
+
files?: never;
|
|
1675
|
+
$unknown?: never;
|
|
1676
|
+
}
|
|
1677
|
+
interface ReturnControlMember {
|
|
1678
|
+
chunk?: never;
|
|
1679
|
+
trace?: never;
|
|
1680
|
+
returnControl: InlineAgentReturnControlPayload;
|
|
1681
|
+
internalServerException?: never;
|
|
1682
|
+
validationException?: never;
|
|
1683
|
+
resourceNotFoundException?: never;
|
|
1684
|
+
serviceQuotaExceededException?: never;
|
|
1685
|
+
throttlingException?: never;
|
|
1686
|
+
accessDeniedException?: never;
|
|
1687
|
+
conflictException?: never;
|
|
1688
|
+
dependencyFailedException?: never;
|
|
1689
|
+
badGatewayException?: never;
|
|
1690
|
+
files?: never;
|
|
1691
|
+
$unknown?: never;
|
|
1692
|
+
}
|
|
1693
|
+
interface InternalServerExceptionMember {
|
|
1694
|
+
chunk?: never;
|
|
1695
|
+
trace?: never;
|
|
1696
|
+
returnControl?: never;
|
|
1697
|
+
internalServerException: InternalServerException;
|
|
1698
|
+
validationException?: never;
|
|
1699
|
+
resourceNotFoundException?: never;
|
|
1700
|
+
serviceQuotaExceededException?: never;
|
|
1701
|
+
throttlingException?: never;
|
|
1702
|
+
accessDeniedException?: never;
|
|
1703
|
+
conflictException?: never;
|
|
1704
|
+
dependencyFailedException?: never;
|
|
1705
|
+
badGatewayException?: never;
|
|
1706
|
+
files?: never;
|
|
1707
|
+
$unknown?: never;
|
|
1708
|
+
}
|
|
1709
|
+
interface ValidationExceptionMember {
|
|
1710
|
+
chunk?: never;
|
|
1711
|
+
trace?: never;
|
|
1712
|
+
returnControl?: never;
|
|
1713
|
+
internalServerException?: never;
|
|
1714
|
+
validationException: ValidationException;
|
|
1715
|
+
resourceNotFoundException?: never;
|
|
1716
|
+
serviceQuotaExceededException?: never;
|
|
1717
|
+
throttlingException?: never;
|
|
1718
|
+
accessDeniedException?: never;
|
|
1719
|
+
conflictException?: never;
|
|
1720
|
+
dependencyFailedException?: never;
|
|
1721
|
+
badGatewayException?: never;
|
|
1722
|
+
files?: never;
|
|
1723
|
+
$unknown?: never;
|
|
1724
|
+
}
|
|
1725
|
+
interface ResourceNotFoundExceptionMember {
|
|
1726
|
+
chunk?: never;
|
|
1727
|
+
trace?: never;
|
|
1728
|
+
returnControl?: never;
|
|
1729
|
+
internalServerException?: never;
|
|
1730
|
+
validationException?: never;
|
|
1731
|
+
resourceNotFoundException: ResourceNotFoundException;
|
|
1732
|
+
serviceQuotaExceededException?: never;
|
|
1733
|
+
throttlingException?: never;
|
|
1734
|
+
accessDeniedException?: never;
|
|
1735
|
+
conflictException?: never;
|
|
1736
|
+
dependencyFailedException?: never;
|
|
1737
|
+
badGatewayException?: never;
|
|
1738
|
+
files?: never;
|
|
1739
|
+
$unknown?: never;
|
|
1740
|
+
}
|
|
1741
|
+
interface ServiceQuotaExceededExceptionMember {
|
|
1742
|
+
chunk?: never;
|
|
1743
|
+
trace?: never;
|
|
1744
|
+
returnControl?: never;
|
|
1745
|
+
internalServerException?: never;
|
|
1746
|
+
validationException?: never;
|
|
1747
|
+
resourceNotFoundException?: never;
|
|
1748
|
+
serviceQuotaExceededException: ServiceQuotaExceededException;
|
|
1749
|
+
throttlingException?: never;
|
|
1750
|
+
accessDeniedException?: never;
|
|
1751
|
+
conflictException?: never;
|
|
1752
|
+
dependencyFailedException?: never;
|
|
1753
|
+
badGatewayException?: never;
|
|
1754
|
+
files?: never;
|
|
1755
|
+
$unknown?: never;
|
|
1756
|
+
}
|
|
1757
|
+
interface ThrottlingExceptionMember {
|
|
1758
|
+
chunk?: never;
|
|
1759
|
+
trace?: never;
|
|
1760
|
+
returnControl?: never;
|
|
1761
|
+
internalServerException?: never;
|
|
1762
|
+
validationException?: never;
|
|
1763
|
+
resourceNotFoundException?: never;
|
|
1764
|
+
serviceQuotaExceededException?: never;
|
|
1765
|
+
throttlingException: ThrottlingException;
|
|
1766
|
+
accessDeniedException?: never;
|
|
1767
|
+
conflictException?: never;
|
|
1768
|
+
dependencyFailedException?: never;
|
|
1769
|
+
badGatewayException?: never;
|
|
1770
|
+
files?: never;
|
|
1771
|
+
$unknown?: never;
|
|
1772
|
+
}
|
|
1773
|
+
interface AccessDeniedExceptionMember {
|
|
1774
|
+
chunk?: never;
|
|
1775
|
+
trace?: never;
|
|
1776
|
+
returnControl?: never;
|
|
1777
|
+
internalServerException?: never;
|
|
1778
|
+
validationException?: never;
|
|
1779
|
+
resourceNotFoundException?: never;
|
|
1780
|
+
serviceQuotaExceededException?: never;
|
|
1781
|
+
throttlingException?: never;
|
|
1782
|
+
accessDeniedException: AccessDeniedException;
|
|
1783
|
+
conflictException?: never;
|
|
1784
|
+
dependencyFailedException?: never;
|
|
1785
|
+
badGatewayException?: never;
|
|
1786
|
+
files?: never;
|
|
1787
|
+
$unknown?: never;
|
|
1788
|
+
}
|
|
1789
|
+
interface ConflictExceptionMember {
|
|
1790
|
+
chunk?: never;
|
|
1791
|
+
trace?: never;
|
|
1792
|
+
returnControl?: never;
|
|
1793
|
+
internalServerException?: never;
|
|
1794
|
+
validationException?: never;
|
|
1795
|
+
resourceNotFoundException?: never;
|
|
1796
|
+
serviceQuotaExceededException?: never;
|
|
1797
|
+
throttlingException?: never;
|
|
1798
|
+
accessDeniedException?: never;
|
|
1799
|
+
conflictException: ConflictException;
|
|
1800
|
+
dependencyFailedException?: never;
|
|
1801
|
+
badGatewayException?: never;
|
|
1802
|
+
files?: never;
|
|
1803
|
+
$unknown?: never;
|
|
1804
|
+
}
|
|
1805
|
+
interface DependencyFailedExceptionMember {
|
|
1806
|
+
chunk?: never;
|
|
1807
|
+
trace?: never;
|
|
1808
|
+
returnControl?: never;
|
|
1809
|
+
internalServerException?: never;
|
|
1810
|
+
validationException?: never;
|
|
1811
|
+
resourceNotFoundException?: never;
|
|
1812
|
+
serviceQuotaExceededException?: never;
|
|
1813
|
+
throttlingException?: never;
|
|
1814
|
+
accessDeniedException?: never;
|
|
1815
|
+
conflictException?: never;
|
|
1816
|
+
dependencyFailedException: DependencyFailedException;
|
|
1817
|
+
badGatewayException?: never;
|
|
1818
|
+
files?: never;
|
|
1819
|
+
$unknown?: never;
|
|
1820
|
+
}
|
|
1821
|
+
interface BadGatewayExceptionMember {
|
|
1822
|
+
chunk?: never;
|
|
1823
|
+
trace?: never;
|
|
1824
|
+
returnControl?: never;
|
|
1825
|
+
internalServerException?: never;
|
|
1826
|
+
validationException?: never;
|
|
1827
|
+
resourceNotFoundException?: never;
|
|
1828
|
+
serviceQuotaExceededException?: never;
|
|
1829
|
+
throttlingException?: never;
|
|
1830
|
+
accessDeniedException?: never;
|
|
1831
|
+
conflictException?: never;
|
|
1832
|
+
dependencyFailedException?: never;
|
|
1833
|
+
badGatewayException: BadGatewayException;
|
|
1834
|
+
files?: never;
|
|
1835
|
+
$unknown?: never;
|
|
1836
|
+
}
|
|
1837
|
+
interface FilesMember {
|
|
1838
|
+
chunk?: never;
|
|
1839
|
+
trace?: never;
|
|
1840
|
+
returnControl?: never;
|
|
1841
|
+
internalServerException?: never;
|
|
1842
|
+
validationException?: never;
|
|
1843
|
+
resourceNotFoundException?: never;
|
|
1844
|
+
serviceQuotaExceededException?: never;
|
|
1845
|
+
throttlingException?: never;
|
|
1846
|
+
accessDeniedException?: never;
|
|
1847
|
+
conflictException?: never;
|
|
1848
|
+
dependencyFailedException?: never;
|
|
1849
|
+
badGatewayException?: never;
|
|
1850
|
+
files: InlineAgentFilePart;
|
|
1851
|
+
$unknown?: never;
|
|
1852
|
+
}
|
|
1853
|
+
interface $UnknownMember {
|
|
1854
|
+
chunk?: never;
|
|
1855
|
+
trace?: never;
|
|
1856
|
+
returnControl?: never;
|
|
1857
|
+
internalServerException?: never;
|
|
1858
|
+
validationException?: never;
|
|
1859
|
+
resourceNotFoundException?: never;
|
|
1860
|
+
serviceQuotaExceededException?: never;
|
|
1861
|
+
throttlingException?: never;
|
|
1862
|
+
accessDeniedException?: never;
|
|
1863
|
+
conflictException?: never;
|
|
1864
|
+
dependencyFailedException?: never;
|
|
1865
|
+
badGatewayException?: never;
|
|
1866
|
+
files?: never;
|
|
1867
|
+
$unknown: [string, any];
|
|
1868
|
+
}
|
|
1869
|
+
interface Visitor<T> {
|
|
1870
|
+
chunk: (value: InlineAgentPayloadPart) => T;
|
|
1871
|
+
trace: (value: InlineAgentTracePart) => T;
|
|
1872
|
+
returnControl: (value: InlineAgentReturnControlPayload) => T;
|
|
1873
|
+
internalServerException: (value: InternalServerException) => T;
|
|
1874
|
+
validationException: (value: ValidationException) => T;
|
|
1875
|
+
resourceNotFoundException: (value: ResourceNotFoundException) => T;
|
|
1876
|
+
serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
|
|
1877
|
+
throttlingException: (value: ThrottlingException) => T;
|
|
1878
|
+
accessDeniedException: (value: AccessDeniedException) => T;
|
|
1879
|
+
conflictException: (value: ConflictException) => T;
|
|
1880
|
+
dependencyFailedException: (value: DependencyFailedException) => T;
|
|
1881
|
+
badGatewayException: (value: BadGatewayException) => T;
|
|
1882
|
+
files: (value: InlineAgentFilePart) => T;
|
|
1883
|
+
_: (name: string, value: any) => T;
|
|
1884
|
+
}
|
|
1885
|
+
const visit: <T>(value: InlineAgentResponseStream, visitor: Visitor<T>) => T;
|
|
1886
|
+
}
|
|
1887
|
+
export interface InvokeInlineAgentResponse {
|
|
1888
|
+
completion: AsyncIterable<InlineAgentResponseStream> | undefined;
|
|
1889
|
+
contentType: string | undefined;
|
|
1890
|
+
sessionId: string | undefined;
|
|
1891
|
+
}
|
|
1465
1892
|
export interface DeleteAgentMemoryRequest {
|
|
1466
1893
|
agentId: string | undefined;
|
|
1467
1894
|
agentAliasId: string | undefined;
|
|
@@ -2056,6 +2483,11 @@ export interface KnowledgeBaseVectorSearchConfiguration {
|
|
|
2056
2483
|
export interface KnowledgeBaseRetrievalConfiguration {
|
|
2057
2484
|
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
2058
2485
|
}
|
|
2486
|
+
export interface KnowledgeBase {
|
|
2487
|
+
knowledgeBaseId: string | undefined;
|
|
2488
|
+
description: string | undefined;
|
|
2489
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
2490
|
+
}
|
|
2059
2491
|
export interface KnowledgeBaseConfiguration {
|
|
2060
2492
|
knowledgeBaseId: string | undefined;
|
|
2061
2493
|
retrievalConfiguration: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
@@ -2082,6 +2514,21 @@ export interface RetrieveAndGenerateConfiguration {
|
|
|
2082
2514
|
| ExternalSourcesRetrieveAndGenerateConfiguration
|
|
2083
2515
|
| undefined;
|
|
2084
2516
|
}
|
|
2517
|
+
export interface InvokeInlineAgentRequest {
|
|
2518
|
+
sessionId: string | undefined;
|
|
2519
|
+
customerEncryptionKeyArn?: string | undefined;
|
|
2520
|
+
endSession?: boolean | undefined;
|
|
2521
|
+
enableTrace?: boolean | undefined;
|
|
2522
|
+
inputText?: string | undefined;
|
|
2523
|
+
inlineSessionState?: InlineSessionState | undefined;
|
|
2524
|
+
foundationModel: string | undefined;
|
|
2525
|
+
instruction: string | undefined;
|
|
2526
|
+
idleSessionTTLInSeconds?: number | undefined;
|
|
2527
|
+
actionGroups?: AgentActionGroup[] | undefined;
|
|
2528
|
+
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
2529
|
+
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
2530
|
+
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
2531
|
+
}
|
|
2085
2532
|
export interface RetrieveAndGenerateRequest {
|
|
2086
2533
|
sessionId?: string | undefined;
|
|
2087
2534
|
input: RetrieveAndGenerateInput | undefined;
|
|
@@ -2114,6 +2561,16 @@ export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
|
2114
2561
|
export declare const ActionGroupInvocationOutputFilterSensitiveLog: (
|
|
2115
2562
|
obj: ActionGroupInvocationOutput
|
|
2116
2563
|
) => any;
|
|
2564
|
+
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
2565
|
+
export declare const FunctionDefinitionFilterSensitiveLog: (
|
|
2566
|
+
obj: FunctionDefinition
|
|
2567
|
+
) => any;
|
|
2568
|
+
export declare const FunctionSchemaFilterSensitiveLog: (
|
|
2569
|
+
obj: FunctionSchema
|
|
2570
|
+
) => any;
|
|
2571
|
+
export declare const AgentActionGroupFilterSensitiveLog: (
|
|
2572
|
+
obj: AgentActionGroup
|
|
2573
|
+
) => any;
|
|
2117
2574
|
export declare const FlowInputContentFilterSensitiveLog: (
|
|
2118
2575
|
obj: FlowInputContent
|
|
2119
2576
|
) => any;
|
|
@@ -2288,6 +2745,33 @@ export declare const ResponseStreamFilterSensitiveLog: (
|
|
|
2288
2745
|
export declare const InvokeAgentResponseFilterSensitiveLog: (
|
|
2289
2746
|
obj: InvokeAgentResponse
|
|
2290
2747
|
) => any;
|
|
2748
|
+
export declare const InlineSessionStateFilterSensitiveLog: (
|
|
2749
|
+
obj: InlineSessionState
|
|
2750
|
+
) => any;
|
|
2751
|
+
export declare const PromptConfigurationFilterSensitiveLog: (
|
|
2752
|
+
obj: PromptConfiguration
|
|
2753
|
+
) => any;
|
|
2754
|
+
export declare const PromptOverrideConfigurationFilterSensitiveLog: (
|
|
2755
|
+
obj: PromptOverrideConfiguration
|
|
2756
|
+
) => any;
|
|
2757
|
+
export declare const InlineAgentPayloadPartFilterSensitiveLog: (
|
|
2758
|
+
obj: InlineAgentPayloadPart
|
|
2759
|
+
) => any;
|
|
2760
|
+
export declare const InlineAgentFilePartFilterSensitiveLog: (
|
|
2761
|
+
obj: InlineAgentFilePart
|
|
2762
|
+
) => any;
|
|
2763
|
+
export declare const InlineAgentReturnControlPayloadFilterSensitiveLog: (
|
|
2764
|
+
obj: InlineAgentReturnControlPayload
|
|
2765
|
+
) => any;
|
|
2766
|
+
export declare const InlineAgentTracePartFilterSensitiveLog: (
|
|
2767
|
+
obj: InlineAgentTracePart
|
|
2768
|
+
) => any;
|
|
2769
|
+
export declare const InlineAgentResponseStreamFilterSensitiveLog: (
|
|
2770
|
+
obj: InlineAgentResponseStream
|
|
2771
|
+
) => any;
|
|
2772
|
+
export declare const InvokeInlineAgentResponseFilterSensitiveLog: (
|
|
2773
|
+
obj: InvokeInlineAgentResponse
|
|
2774
|
+
) => any;
|
|
2291
2775
|
export declare const TextPromptFilterSensitiveLog: (obj: TextPrompt) => any;
|
|
2292
2776
|
export declare const InputPromptFilterSensitiveLog: (obj: InputPrompt) => any;
|
|
2293
2777
|
export declare const OptimizePromptRequestFilterSensitiveLog: (
|
|
@@ -2356,6 +2840,9 @@ export declare const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: (
|
|
|
2356
2840
|
export declare const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: (
|
|
2357
2841
|
obj: KnowledgeBaseRetrievalConfiguration
|
|
2358
2842
|
) => any;
|
|
2843
|
+
export declare const KnowledgeBaseFilterSensitiveLog: (
|
|
2844
|
+
obj: KnowledgeBase
|
|
2845
|
+
) => any;
|
|
2359
2846
|
export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
|
|
2360
2847
|
obj: KnowledgeBaseConfiguration
|
|
2361
2848
|
) => any;
|
|
@@ -2368,6 +2855,9 @@ export declare const RetrieveRequestFilterSensitiveLog: (
|
|
|
2368
2855
|
export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
2369
2856
|
obj: RetrieveAndGenerateConfiguration
|
|
2370
2857
|
) => any;
|
|
2858
|
+
export declare const InvokeInlineAgentRequestFilterSensitiveLog: (
|
|
2859
|
+
obj: InvokeInlineAgentRequest
|
|
2860
|
+
) => any;
|
|
2371
2861
|
export declare const RetrieveAndGenerateRequestFilterSensitiveLog: (
|
|
2372
2862
|
obj: RetrieveAndGenerateRequest
|
|
2373
2863
|
) => any;
|
|
@@ -22,6 +22,10 @@ import {
|
|
|
22
22
|
InvokeFlowCommandInput,
|
|
23
23
|
InvokeFlowCommandOutput,
|
|
24
24
|
} from "../commands/InvokeFlowCommand";
|
|
25
|
+
import {
|
|
26
|
+
InvokeInlineAgentCommandInput,
|
|
27
|
+
InvokeInlineAgentCommandOutput,
|
|
28
|
+
} from "../commands/InvokeInlineAgentCommand";
|
|
25
29
|
import {
|
|
26
30
|
OptimizePromptCommandInput,
|
|
27
31
|
OptimizePromptCommandOutput,
|
|
@@ -50,6 +54,10 @@ export declare const se_InvokeFlowCommand: (
|
|
|
50
54
|
input: InvokeFlowCommandInput,
|
|
51
55
|
context: __SerdeContext
|
|
52
56
|
) => Promise<__HttpRequest>;
|
|
57
|
+
export declare const se_InvokeInlineAgentCommand: (
|
|
58
|
+
input: InvokeInlineAgentCommandInput,
|
|
59
|
+
context: __SerdeContext
|
|
60
|
+
) => Promise<__HttpRequest>;
|
|
53
61
|
export declare const se_OptimizePromptCommand: (
|
|
54
62
|
input: OptimizePromptCommandInput,
|
|
55
63
|
context: __SerdeContext
|
|
@@ -78,6 +86,10 @@ export declare const de_InvokeFlowCommand: (
|
|
|
78
86
|
output: __HttpResponse,
|
|
79
87
|
context: __SerdeContext & __EventStreamSerdeContext
|
|
80
88
|
) => Promise<InvokeFlowCommandOutput>;
|
|
89
|
+
export declare const de_InvokeInlineAgentCommand: (
|
|
90
|
+
output: __HttpResponse,
|
|
91
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
92
|
+
) => Promise<InvokeInlineAgentCommandOutput>;
|
|
81
93
|
export declare const de_OptimizePromptCommand: (
|
|
82
94
|
output: __HttpResponse,
|
|
83
95
|
context: __SerdeContext & __EventStreamSerdeContext
|
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.699.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",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.699.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.699.0",
|
|
25
25
|
"@aws-sdk/core": "3.696.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.699.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.696.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.696.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.696.0",
|