@aws-sdk/client-bedrock-agent-runtime 3.764.0 → 3.772.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 +601 -638
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +185 -5
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +48 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +56 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +121 -44
- package/dist-types/models/models_1.d.ts +58 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +35 -10
- package/dist-types/ts3.4/models/models_1.d.ts +10 -0
- package/package.json +3 -3
|
@@ -32,6 +32,9 @@ export const ExecutionType = {
|
|
|
32
32
|
export const ActionGroupSignature = {
|
|
33
33
|
AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
|
|
34
34
|
AMAZON_USERINPUT: "AMAZON.UserInput",
|
|
35
|
+
ANTHROPIC_BASH: "ANTHROPIC.Bash",
|
|
36
|
+
ANTHROPIC_COMPUTER: "ANTHROPIC.Computer",
|
|
37
|
+
ANTHROPIC_TEXTEDITOR: "ANTHROPIC.TextEditor",
|
|
35
38
|
};
|
|
36
39
|
export const ActionInvocationType = {
|
|
37
40
|
RESULT: "RESULT",
|
|
@@ -76,6 +79,20 @@ export const ConfirmationState = {
|
|
|
76
79
|
CONFIRM: "CONFIRM",
|
|
77
80
|
DENY: "DENY",
|
|
78
81
|
};
|
|
82
|
+
export const ImageInputFormat = {
|
|
83
|
+
GIF: "gif",
|
|
84
|
+
JPEG: "jpeg",
|
|
85
|
+
PNG: "png",
|
|
86
|
+
WEBP: "webp",
|
|
87
|
+
};
|
|
88
|
+
export var ImageInputSource;
|
|
89
|
+
(function (ImageInputSource) {
|
|
90
|
+
ImageInputSource.visit = (value, visitor) => {
|
|
91
|
+
if (value.bytes !== undefined)
|
|
92
|
+
return visitor.bytes(value.bytes);
|
|
93
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
94
|
+
};
|
|
95
|
+
})(ImageInputSource || (ImageInputSource = {}));
|
|
79
96
|
export const ResponseState = {
|
|
80
97
|
FAILURE: "FAILURE",
|
|
81
98
|
REPROMPT: "REPROMPT",
|
|
@@ -850,6 +867,9 @@ export const AgentActionGroupFilterSensitiveLog = (obj) => ({
|
|
|
850
867
|
export const ApiResultFilterSensitiveLog = (obj) => ({
|
|
851
868
|
...obj,
|
|
852
869
|
...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
|
|
870
|
+
...(obj.responseBody && {
|
|
871
|
+
responseBody: Object.entries(obj.responseBody).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
872
|
+
}),
|
|
853
873
|
});
|
|
854
874
|
export const InvocationResultMemberFilterSensitiveLog = (obj) => {
|
|
855
875
|
if (obj.apiResult !== undefined)
|
|
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
|
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { BedrockAgentRuntimeServiceException as __BaseException } from "../models/BedrockAgentRuntimeServiceException";
|
|
5
|
-
import { AccessDeniedException, BadGatewayException, BedrockSessionContentBlock, ConflictException, DependencyFailedException, FlowInputContent, ImageSource, InternalServerException, InvocationStepPayload, ModelNotReadyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, BadGatewayException, BedrockSessionContentBlock, ConflictException, DependencyFailedException, FlowInputContent, ImageInputSource, ImageSource, InternalServerException, InvocationResultMember, InvocationStepPayload, ModelNotReadyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { RetrievalFilter, } from "../models/models_1";
|
|
7
7
|
export const se_CreateInvocationCommand = async (input, context) => {
|
|
8
8
|
const b = rb(input, context);
|
|
@@ -1421,6 +1421,18 @@ const se_AdditionalModelRequestFields = (input, context) => {
|
|
|
1421
1421
|
const se_AdditionalModelRequestFieldsValue = (input, context) => {
|
|
1422
1422
|
return input;
|
|
1423
1423
|
};
|
|
1424
|
+
const se_ApiResult = (input, context) => {
|
|
1425
|
+
return take(input, {
|
|
1426
|
+
actionGroup: [],
|
|
1427
|
+
agentId: [],
|
|
1428
|
+
apiPath: [],
|
|
1429
|
+
confirmationState: [],
|
|
1430
|
+
httpMethod: [],
|
|
1431
|
+
httpStatusCode: [],
|
|
1432
|
+
responseBody: (_) => se_ResponseBody(_, context),
|
|
1433
|
+
responseState: [],
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1424
1436
|
const se_BedrockRerankingConfiguration = (input, context) => {
|
|
1425
1437
|
return take(input, {
|
|
1426
1438
|
modelConfiguration: (_) => se_BedrockRerankingModelConfiguration(_, context),
|
|
@@ -1482,6 +1494,12 @@ const se_Collaborators = (input, context) => {
|
|
|
1482
1494
|
return se_Collaborator(entry, context);
|
|
1483
1495
|
});
|
|
1484
1496
|
};
|
|
1497
|
+
const se_ContentBody = (input, context) => {
|
|
1498
|
+
return take(input, {
|
|
1499
|
+
body: [],
|
|
1500
|
+
images: (_) => se_ImageInputs(_, context),
|
|
1501
|
+
});
|
|
1502
|
+
};
|
|
1485
1503
|
const se_ExternalSource = (input, context) => {
|
|
1486
1504
|
return take(input, {
|
|
1487
1505
|
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
@@ -1549,6 +1567,16 @@ const se_FlowInputs = (input, context) => {
|
|
|
1549
1567
|
return se_FlowInput(entry, context);
|
|
1550
1568
|
});
|
|
1551
1569
|
};
|
|
1570
|
+
const se_FunctionResult = (input, context) => {
|
|
1571
|
+
return take(input, {
|
|
1572
|
+
actionGroup: [],
|
|
1573
|
+
agentId: [],
|
|
1574
|
+
confirmationState: [],
|
|
1575
|
+
function: [],
|
|
1576
|
+
responseBody: (_) => se_ResponseBody(_, context),
|
|
1577
|
+
responseState: [],
|
|
1578
|
+
});
|
|
1579
|
+
};
|
|
1552
1580
|
const se_GenerationConfiguration = (input, context) => {
|
|
1553
1581
|
return take(input, {
|
|
1554
1582
|
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
@@ -1564,6 +1592,25 @@ const se_ImageBlock = (input, context) => {
|
|
|
1564
1592
|
source: (_) => se_ImageSource(_, context),
|
|
1565
1593
|
});
|
|
1566
1594
|
};
|
|
1595
|
+
const se_ImageInput = (input, context) => {
|
|
1596
|
+
return take(input, {
|
|
1597
|
+
format: [],
|
|
1598
|
+
source: (_) => se_ImageInputSource(_, context),
|
|
1599
|
+
});
|
|
1600
|
+
};
|
|
1601
|
+
const se_ImageInputs = (input, context) => {
|
|
1602
|
+
return input
|
|
1603
|
+
.filter((e) => e != null)
|
|
1604
|
+
.map((entry) => {
|
|
1605
|
+
return se_ImageInput(entry, context);
|
|
1606
|
+
});
|
|
1607
|
+
};
|
|
1608
|
+
const se_ImageInputSource = (input, context) => {
|
|
1609
|
+
return ImageInputSource.visit(input, {
|
|
1610
|
+
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
1611
|
+
_: (name, value) => ({ [name]: value }),
|
|
1612
|
+
});
|
|
1613
|
+
};
|
|
1567
1614
|
const se_ImageSource = (input, context) => {
|
|
1568
1615
|
return ImageSource.visit(input, {
|
|
1569
1616
|
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
@@ -1591,7 +1638,7 @@ const se_InlineSessionState = (input, context) => {
|
|
|
1591
1638
|
files: (_) => se_InputFiles(_, context),
|
|
1592
1639
|
invocationId: [],
|
|
1593
1640
|
promptSessionAttributes: _json,
|
|
1594
|
-
returnControlInvocationResults:
|
|
1641
|
+
returnControlInvocationResults: (_) => se_ReturnControlInvocationResults(_, context),
|
|
1595
1642
|
sessionAttributes: _json,
|
|
1596
1643
|
});
|
|
1597
1644
|
};
|
|
@@ -1609,6 +1656,13 @@ const se_InputFiles = (input, context) => {
|
|
|
1609
1656
|
return se_InputFile(entry, context);
|
|
1610
1657
|
});
|
|
1611
1658
|
};
|
|
1659
|
+
const se_InvocationResultMember = (input, context) => {
|
|
1660
|
+
return InvocationResultMember.visit(input, {
|
|
1661
|
+
apiResult: (value) => ({ apiResult: se_ApiResult(value, context) }),
|
|
1662
|
+
functionResult: (value) => ({ functionResult: se_FunctionResult(value, context) }),
|
|
1663
|
+
_: (name, value) => ({ [name]: value }),
|
|
1664
|
+
});
|
|
1665
|
+
};
|
|
1612
1666
|
const se_InvocationStepPayload = (input, context) => {
|
|
1613
1667
|
return InvocationStepPayload.visit(input, {
|
|
1614
1668
|
contentBlocks: (value) => ({ contentBlocks: se_BedrockSessionContentBlocks(value, context) }),
|
|
@@ -1725,6 +1779,15 @@ const se_RerankSourcesList = (input, context) => {
|
|
|
1725
1779
|
return se_RerankSource(entry, context);
|
|
1726
1780
|
});
|
|
1727
1781
|
};
|
|
1782
|
+
const se_ResponseBody = (input, context) => {
|
|
1783
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1784
|
+
if (value === null) {
|
|
1785
|
+
return acc;
|
|
1786
|
+
}
|
|
1787
|
+
acc[key] = se_ContentBody(value, context);
|
|
1788
|
+
return acc;
|
|
1789
|
+
}, {});
|
|
1790
|
+
};
|
|
1728
1791
|
const se_RetrievalFilter = (input, context) => {
|
|
1729
1792
|
return RetrievalFilter.visit(input, {
|
|
1730
1793
|
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
@@ -1757,6 +1820,13 @@ const se_RetrieveAndGenerateConfiguration = (input, context) => {
|
|
|
1757
1820
|
type: [],
|
|
1758
1821
|
});
|
|
1759
1822
|
};
|
|
1823
|
+
const se_ReturnControlInvocationResults = (input, context) => {
|
|
1824
|
+
return input
|
|
1825
|
+
.filter((e) => e != null)
|
|
1826
|
+
.map((entry) => {
|
|
1827
|
+
return se_InvocationResultMember(entry, context);
|
|
1828
|
+
});
|
|
1829
|
+
};
|
|
1760
1830
|
const se_SessionState = (input, context) => {
|
|
1761
1831
|
return take(input, {
|
|
1762
1832
|
conversationHistory: _json,
|
|
@@ -1764,7 +1834,7 @@ const se_SessionState = (input, context) => {
|
|
|
1764
1834
|
invocationId: [],
|
|
1765
1835
|
knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
|
|
1766
1836
|
promptSessionAttributes: _json,
|
|
1767
|
-
returnControlInvocationResults:
|
|
1837
|
+
returnControlInvocationResults: (_) => se_ReturnControlInvocationResults(_, context),
|
|
1768
1838
|
sessionAttributes: _json,
|
|
1769
1839
|
});
|
|
1770
1840
|
};
|
|
@@ -1798,6 +1868,20 @@ const se_VectorSearchRerankingConfiguration = (input, context) => {
|
|
|
1798
1868
|
const se_Document = (input, context) => {
|
|
1799
1869
|
return input;
|
|
1800
1870
|
};
|
|
1871
|
+
const de_AgentCollaboratorInputPayload = (output, context) => {
|
|
1872
|
+
return take(output, {
|
|
1873
|
+
returnControlResults: (_) => de_ReturnControlResults(_, context),
|
|
1874
|
+
text: __expectString,
|
|
1875
|
+
type: __expectString,
|
|
1876
|
+
});
|
|
1877
|
+
};
|
|
1878
|
+
const de_AgentCollaboratorInvocationInput = (output, context) => {
|
|
1879
|
+
return take(output, {
|
|
1880
|
+
agentCollaboratorAliasArn: __expectString,
|
|
1881
|
+
agentCollaboratorName: __expectString,
|
|
1882
|
+
input: (_) => de_AgentCollaboratorInputPayload(_, context),
|
|
1883
|
+
});
|
|
1884
|
+
};
|
|
1801
1885
|
const de_AgentCollaboratorInvocationOutput = (output, context) => {
|
|
1802
1886
|
return take(output, {
|
|
1803
1887
|
agentCollaboratorAliasArn: __expectString,
|
|
@@ -1805,6 +1889,18 @@ const de_AgentCollaboratorInvocationOutput = (output, context) => {
|
|
|
1805
1889
|
output: _json,
|
|
1806
1890
|
});
|
|
1807
1891
|
};
|
|
1892
|
+
const de_ApiResult = (output, context) => {
|
|
1893
|
+
return take(output, {
|
|
1894
|
+
actionGroup: __expectString,
|
|
1895
|
+
agentId: __expectString,
|
|
1896
|
+
apiPath: __expectString,
|
|
1897
|
+
confirmationState: __expectString,
|
|
1898
|
+
httpMethod: __expectString,
|
|
1899
|
+
httpStatusCode: __expectInt32,
|
|
1900
|
+
responseBody: (_) => de_ResponseBody(_, context),
|
|
1901
|
+
responseState: __expectString,
|
|
1902
|
+
});
|
|
1903
|
+
};
|
|
1808
1904
|
const de_Attribution = (output, context) => {
|
|
1809
1905
|
return take(output, {
|
|
1810
1906
|
citations: (_) => de_Citations(_, context),
|
|
@@ -1850,6 +1946,12 @@ const de_Citations = (output, context) => {
|
|
|
1850
1946
|
});
|
|
1851
1947
|
return retVal;
|
|
1852
1948
|
};
|
|
1949
|
+
const de_ContentBody = (output, context) => {
|
|
1950
|
+
return take(output, {
|
|
1951
|
+
body: __expectString,
|
|
1952
|
+
images: (_) => de_ImageInputs(_, context),
|
|
1953
|
+
});
|
|
1954
|
+
};
|
|
1853
1955
|
const de_FilePart = (output, context) => {
|
|
1854
1956
|
return take(output, {
|
|
1855
1957
|
files: (_) => de_OutputFiles(_, context),
|
|
@@ -1973,12 +2075,44 @@ const de_FlowTraceNodeOutputFields = (output, context) => {
|
|
|
1973
2075
|
});
|
|
1974
2076
|
return retVal;
|
|
1975
2077
|
};
|
|
2078
|
+
const de_FunctionResult = (output, context) => {
|
|
2079
|
+
return take(output, {
|
|
2080
|
+
actionGroup: __expectString,
|
|
2081
|
+
agentId: __expectString,
|
|
2082
|
+
confirmationState: __expectString,
|
|
2083
|
+
function: __expectString,
|
|
2084
|
+
responseBody: (_) => de_ResponseBody(_, context),
|
|
2085
|
+
responseState: __expectString,
|
|
2086
|
+
});
|
|
2087
|
+
};
|
|
1976
2088
|
const de_ImageBlock = (output, context) => {
|
|
1977
2089
|
return take(output, {
|
|
1978
2090
|
format: __expectString,
|
|
1979
2091
|
source: (_) => de_ImageSource(__expectUnion(_), context),
|
|
1980
2092
|
});
|
|
1981
2093
|
};
|
|
2094
|
+
const de_ImageInput = (output, context) => {
|
|
2095
|
+
return take(output, {
|
|
2096
|
+
format: __expectString,
|
|
2097
|
+
source: (_) => de_ImageInputSource(__expectUnion(_), context),
|
|
2098
|
+
});
|
|
2099
|
+
};
|
|
2100
|
+
const de_ImageInputs = (output, context) => {
|
|
2101
|
+
const retVal = (output || [])
|
|
2102
|
+
.filter((e) => e != null)
|
|
2103
|
+
.map((entry) => {
|
|
2104
|
+
return de_ImageInput(entry, context);
|
|
2105
|
+
});
|
|
2106
|
+
return retVal;
|
|
2107
|
+
};
|
|
2108
|
+
const de_ImageInputSource = (output, context) => {
|
|
2109
|
+
if (output.bytes != null) {
|
|
2110
|
+
return {
|
|
2111
|
+
bytes: context.base64Decoder(output.bytes),
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2114
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2115
|
+
};
|
|
1982
2116
|
const de_ImageSource = (output, context) => {
|
|
1983
2117
|
if (output.bytes != null) {
|
|
1984
2118
|
return {
|
|
@@ -2018,6 +2152,29 @@ const de_InlineAgentTracePart = (output, context) => {
|
|
|
2018
2152
|
trace: (_) => de_Trace(__expectUnion(_), context),
|
|
2019
2153
|
});
|
|
2020
2154
|
};
|
|
2155
|
+
const de_InvocationInput = (output, context) => {
|
|
2156
|
+
return take(output, {
|
|
2157
|
+
actionGroupInvocationInput: _json,
|
|
2158
|
+
agentCollaboratorInvocationInput: (_) => de_AgentCollaboratorInvocationInput(_, context),
|
|
2159
|
+
codeInterpreterInvocationInput: _json,
|
|
2160
|
+
invocationType: __expectString,
|
|
2161
|
+
knowledgeBaseLookupInput: _json,
|
|
2162
|
+
traceId: __expectString,
|
|
2163
|
+
});
|
|
2164
|
+
};
|
|
2165
|
+
const de_InvocationResultMember = (output, context) => {
|
|
2166
|
+
if (output.apiResult != null) {
|
|
2167
|
+
return {
|
|
2168
|
+
apiResult: de_ApiResult(output.apiResult, context),
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
if (output.functionResult != null) {
|
|
2172
|
+
return {
|
|
2173
|
+
functionResult: de_FunctionResult(output.functionResult, context),
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2176
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2177
|
+
};
|
|
2021
2178
|
const de_InvocationStep = (output, context) => {
|
|
2022
2179
|
return take(output, {
|
|
2023
2180
|
invocationId: __expectString,
|
|
@@ -2147,7 +2304,7 @@ const de_OrchestrationModelInvocationOutput = (output, context) => {
|
|
|
2147
2304
|
const de_OrchestrationTrace = (output, context) => {
|
|
2148
2305
|
if (output.invocationInput != null) {
|
|
2149
2306
|
return {
|
|
2150
|
-
invocationInput:
|
|
2307
|
+
invocationInput: de_InvocationInput(output.invocationInput, context),
|
|
2151
2308
|
};
|
|
2152
2309
|
}
|
|
2153
2310
|
if (output.modelInvocationInput != null) {
|
|
@@ -2272,6 +2429,15 @@ const de_RerankResultsList = (output, context) => {
|
|
|
2272
2429
|
});
|
|
2273
2430
|
return retVal;
|
|
2274
2431
|
};
|
|
2432
|
+
const de_ResponseBody = (output, context) => {
|
|
2433
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2434
|
+
if (value === null) {
|
|
2435
|
+
return acc;
|
|
2436
|
+
}
|
|
2437
|
+
acc[key] = de_ContentBody(value, context);
|
|
2438
|
+
return acc;
|
|
2439
|
+
}, {});
|
|
2440
|
+
};
|
|
2275
2441
|
const de_RetrievalResultMetadata = (output, context) => {
|
|
2276
2442
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2277
2443
|
if (value === null) {
|
|
@@ -2299,10 +2465,24 @@ const de_RetrievedReferences = (output, context) => {
|
|
|
2299
2465
|
});
|
|
2300
2466
|
return retVal;
|
|
2301
2467
|
};
|
|
2468
|
+
const de_ReturnControlInvocationResults = (output, context) => {
|
|
2469
|
+
const retVal = (output || [])
|
|
2470
|
+
.filter((e) => e != null)
|
|
2471
|
+
.map((entry) => {
|
|
2472
|
+
return de_InvocationResultMember(__expectUnion(entry), context);
|
|
2473
|
+
});
|
|
2474
|
+
return retVal;
|
|
2475
|
+
};
|
|
2476
|
+
const de_ReturnControlResults = (output, context) => {
|
|
2477
|
+
return take(output, {
|
|
2478
|
+
invocationId: __expectString,
|
|
2479
|
+
returnControlInvocationResults: (_) => de_ReturnControlInvocationResults(_, context),
|
|
2480
|
+
});
|
|
2481
|
+
};
|
|
2302
2482
|
const de_RoutingClassifierTrace = (output, context) => {
|
|
2303
2483
|
if (output.invocationInput != null) {
|
|
2304
2484
|
return {
|
|
2305
|
-
invocationInput:
|
|
2485
|
+
invocationInput: de_InvocationInput(output.invocationInput, context),
|
|
2306
2486
|
};
|
|
2307
2487
|
}
|
|
2308
2488
|
if (output.modelInvocationInput != null) {
|
|
@@ -37,7 +37,7 @@ declare const CreateSessionCommand_base: {
|
|
|
37
37
|
* <p>
|
|
38
38
|
* You use a session to store state and conversation history for generative AI applications built with open-source frameworks.
|
|
39
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/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> API operation.
|
|
40
|
+
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> API operation.
|
|
41
41
|
* </p>
|
|
42
42
|
* </note>
|
|
43
43
|
* <p>Related APIs:</p>
|
|
@@ -106,6 +106,14 @@ declare const InvokeAgentCommand_base: {
|
|
|
106
106
|
* responseBody: { // ResponseBody
|
|
107
107
|
* "<keys>": { // ContentBody
|
|
108
108
|
* body: "STRING_VALUE",
|
|
109
|
+
* images: [ // ImageInputs
|
|
110
|
+
* { // ImageInput
|
|
111
|
+
* format: "png" || "jpeg" || "gif" || "webp", // required
|
|
112
|
+
* source: { // ImageInputSource Union: only one key present
|
|
113
|
+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
114
|
+
* },
|
|
115
|
+
* },
|
|
116
|
+
* ],
|
|
109
117
|
* },
|
|
110
118
|
* },
|
|
111
119
|
* agentId: "STRING_VALUE",
|
|
@@ -117,6 +125,14 @@ declare const InvokeAgentCommand_base: {
|
|
|
117
125
|
* responseBody: {
|
|
118
126
|
* "<keys>": {
|
|
119
127
|
* body: "STRING_VALUE",
|
|
128
|
+
* images: [
|
|
129
|
+
* {
|
|
130
|
+
* format: "png" || "jpeg" || "gif" || "webp", // required
|
|
131
|
+
* source: {// Union: only one key present
|
|
132
|
+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
133
|
+
* },
|
|
134
|
+
* },
|
|
135
|
+
* ],
|
|
120
136
|
* },
|
|
121
137
|
* },
|
|
122
138
|
* responseState: "FAILURE" || "REPROMPT",
|
|
@@ -562,6 +578,14 @@ declare const InvokeAgentCommand_base: {
|
|
|
562
578
|
* // responseBody: { // ResponseBody
|
|
563
579
|
* // "<keys>": { // ContentBody
|
|
564
580
|
* // body: "STRING_VALUE",
|
|
581
|
+
* // images: [ // ImageInputs
|
|
582
|
+
* // { // ImageInput
|
|
583
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
584
|
+
* // source: { // ImageInputSource Union: only one key present
|
|
585
|
+
* // bytes: new Uint8Array(),
|
|
586
|
+
* // },
|
|
587
|
+
* // },
|
|
588
|
+
* // ],
|
|
565
589
|
* // },
|
|
566
590
|
* // },
|
|
567
591
|
* // agentId: "STRING_VALUE",
|
|
@@ -573,6 +597,14 @@ declare const InvokeAgentCommand_base: {
|
|
|
573
597
|
* // responseBody: {
|
|
574
598
|
* // "<keys>": {
|
|
575
599
|
* // body: "STRING_VALUE",
|
|
600
|
+
* // images: [
|
|
601
|
+
* // {
|
|
602
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
603
|
+
* // source: {// Union: only one key present
|
|
604
|
+
* // bytes: new Uint8Array(),
|
|
605
|
+
* // },
|
|
606
|
+
* // },
|
|
607
|
+
* // ],
|
|
576
608
|
* // },
|
|
577
609
|
* // },
|
|
578
610
|
* // responseState: "FAILURE" || "REPROMPT",
|
|
@@ -839,6 +871,14 @@ declare const InvokeAgentCommand_base: {
|
|
|
839
871
|
* // responseBody: {
|
|
840
872
|
* // "<keys>": {
|
|
841
873
|
* // body: "STRING_VALUE",
|
|
874
|
+
* // images: [
|
|
875
|
+
* // {
|
|
876
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
877
|
+
* // source: {// Union: only one key present
|
|
878
|
+
* // bytes: new Uint8Array(),
|
|
879
|
+
* // },
|
|
880
|
+
* // },
|
|
881
|
+
* // ],
|
|
842
882
|
* // },
|
|
843
883
|
* // },
|
|
844
884
|
* // agentId: "STRING_VALUE",
|
|
@@ -850,6 +890,14 @@ declare const InvokeAgentCommand_base: {
|
|
|
850
890
|
* // responseBody: {
|
|
851
891
|
* // "<keys>": {
|
|
852
892
|
* // body: "STRING_VALUE",
|
|
893
|
+
* // images: [
|
|
894
|
+
* // {
|
|
895
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
896
|
+
* // source: {// Union: only one key present
|
|
897
|
+
* // bytes: new Uint8Array(),
|
|
898
|
+
* // },
|
|
899
|
+
* // },
|
|
900
|
+
* // ],
|
|
853
901
|
* // },
|
|
854
902
|
* // },
|
|
855
903
|
* // responseState: "FAILURE" || "REPROMPT",
|
|
@@ -68,7 +68,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
68
68
|
* { // AgentActionGroup
|
|
69
69
|
* actionGroupName: "STRING_VALUE", // required
|
|
70
70
|
* description: "STRING_VALUE",
|
|
71
|
-
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
|
|
71
|
+
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter" || "ANTHROPIC.Computer" || "ANTHROPIC.Bash" || "ANTHROPIC.TextEditor",
|
|
72
72
|
* actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
|
|
73
73
|
* lambda: "STRING_VALUE",
|
|
74
74
|
* customControl: "RETURN_CONTROL",
|
|
@@ -96,6 +96,9 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
96
96
|
* },
|
|
97
97
|
* ],
|
|
98
98
|
* },
|
|
99
|
+
* parentActionGroupSignatureParams: { // ActionGroupSignatureParams
|
|
100
|
+
* "<keys>": "STRING_VALUE",
|
|
101
|
+
* },
|
|
99
102
|
* },
|
|
100
103
|
* ],
|
|
101
104
|
* knowledgeBases: [ // KnowledgeBases
|
|
@@ -262,6 +265,14 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
262
265
|
* responseBody: { // ResponseBody
|
|
263
266
|
* "<keys>": { // ContentBody
|
|
264
267
|
* body: "STRING_VALUE",
|
|
268
|
+
* images: [ // ImageInputs
|
|
269
|
+
* { // ImageInput
|
|
270
|
+
* format: "png" || "jpeg" || "gif" || "webp", // required
|
|
271
|
+
* source: { // ImageInputSource Union: only one key present
|
|
272
|
+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
273
|
+
* },
|
|
274
|
+
* },
|
|
275
|
+
* ],
|
|
265
276
|
* },
|
|
266
277
|
* },
|
|
267
278
|
* agentId: "STRING_VALUE",
|
|
@@ -273,6 +284,14 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
273
284
|
* responseBody: {
|
|
274
285
|
* "<keys>": {
|
|
275
286
|
* body: "STRING_VALUE",
|
|
287
|
+
* images: [
|
|
288
|
+
* {
|
|
289
|
+
* format: "png" || "jpeg" || "gif" || "webp", // required
|
|
290
|
+
* source: {// Union: only one key present
|
|
291
|
+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
292
|
+
* },
|
|
293
|
+
* },
|
|
294
|
+
* ],
|
|
276
295
|
* },
|
|
277
296
|
* },
|
|
278
297
|
* responseState: "FAILURE" || "REPROMPT",
|
|
@@ -320,7 +339,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
320
339
|
* {
|
|
321
340
|
* actionGroupName: "STRING_VALUE", // required
|
|
322
341
|
* description: "STRING_VALUE",
|
|
323
|
-
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
|
|
342
|
+
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter" || "ANTHROPIC.Computer" || "ANTHROPIC.Bash" || "ANTHROPIC.TextEditor",
|
|
324
343
|
* actionGroupExecutor: {// Union: only one key present
|
|
325
344
|
* lambda: "STRING_VALUE",
|
|
326
345
|
* customControl: "RETURN_CONTROL",
|
|
@@ -348,6 +367,9 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
348
367
|
* },
|
|
349
368
|
* ],
|
|
350
369
|
* },
|
|
370
|
+
* parentActionGroupSignatureParams: {
|
|
371
|
+
* "<keys>": "STRING_VALUE",
|
|
372
|
+
* },
|
|
351
373
|
* },
|
|
352
374
|
* ],
|
|
353
375
|
* knowledgeBases: [
|
|
@@ -735,6 +757,14 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
735
757
|
* // responseBody: { // ResponseBody
|
|
736
758
|
* // "<keys>": { // ContentBody
|
|
737
759
|
* // body: "STRING_VALUE",
|
|
760
|
+
* // images: [ // ImageInputs
|
|
761
|
+
* // { // ImageInput
|
|
762
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
763
|
+
* // source: { // ImageInputSource Union: only one key present
|
|
764
|
+
* // bytes: new Uint8Array(),
|
|
765
|
+
* // },
|
|
766
|
+
* // },
|
|
767
|
+
* // ],
|
|
738
768
|
* // },
|
|
739
769
|
* // },
|
|
740
770
|
* // agentId: "STRING_VALUE",
|
|
@@ -746,6 +776,14 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
746
776
|
* // responseBody: {
|
|
747
777
|
* // "<keys>": {
|
|
748
778
|
* // body: "STRING_VALUE",
|
|
779
|
+
* // images: [
|
|
780
|
+
* // {
|
|
781
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
782
|
+
* // source: {// Union: only one key present
|
|
783
|
+
* // bytes: new Uint8Array(),
|
|
784
|
+
* // },
|
|
785
|
+
* // },
|
|
786
|
+
* // ],
|
|
749
787
|
* // },
|
|
750
788
|
* // },
|
|
751
789
|
* // responseState: "FAILURE" || "REPROMPT",
|
|
@@ -1012,6 +1050,14 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1012
1050
|
* // responseBody: {
|
|
1013
1051
|
* // "<keys>": {
|
|
1014
1052
|
* // body: "STRING_VALUE",
|
|
1053
|
+
* // images: [
|
|
1054
|
+
* // {
|
|
1055
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
1056
|
+
* // source: {// Union: only one key present
|
|
1057
|
+
* // bytes: new Uint8Array(),
|
|
1058
|
+
* // },
|
|
1059
|
+
* // },
|
|
1060
|
+
* // ],
|
|
1015
1061
|
* // },
|
|
1016
1062
|
* // },
|
|
1017
1063
|
* // agentId: "STRING_VALUE",
|
|
@@ -1023,6 +1069,14 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1023
1069
|
* // responseBody: {
|
|
1024
1070
|
* // "<keys>": {
|
|
1025
1071
|
* // body: "STRING_VALUE",
|
|
1072
|
+
* // images: [
|
|
1073
|
+
* // {
|
|
1074
|
+
* // format: "png" || "jpeg" || "gif" || "webp", // required
|
|
1075
|
+
* // source: {// Union: only one key present
|
|
1076
|
+
* // bytes: new Uint8Array(),
|
|
1077
|
+
* // },
|
|
1078
|
+
* // },
|
|
1079
|
+
* // ],
|
|
1026
1080
|
* // },
|
|
1027
1081
|
* // },
|
|
1028
1082
|
* // responseState: "FAILURE" || "REPROMPT",
|
|
@@ -1,7 +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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -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 { TagResourceRequest } from "../models/
|
|
5
|
-
import { TagResourceResponse } from "../models/models_1";
|
|
4
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|