Skip to content

Commit 4f44684

Browse files
author
awstools
committed
feat(client-bedrock-agent-runtime): Add support for computer use tools
1 parent 528d060 commit 4f44684

File tree

9 files changed

+707
-85
lines changed

9 files changed

+707
-85
lines changed

clients/client-bedrock-agent-runtime/src/commands/CreateSessionCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface CreateSessionCommandOutput extends CreateSessionResponse, __Met
4242
* <p>
4343
* You use a session to store state and conversation history for generative AI applications built with open-source frameworks.
4444
* For Amazon Bedrock Agents, the service automatically manages conversation context and associates them with the agent-specific sessionId you specify in the
45-
* <a href="https://docs.aws.amazon.com/bedrock/latest/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> API operation.
45+
* <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> API operation.
4646
* </p>
4747
* </note>
4848
* <p>Related APIs:</p>

clients/client-bedrock-agent-runtime/src/commands/InvokeAgentCommand.ts

+48
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
111111
* responseBody: { // ResponseBody
112112
* "<keys>": { // ContentBody
113113
* body: "STRING_VALUE",
114+
* images: [ // ImageInputs
115+
* { // ImageInput
116+
* format: "png" || "jpeg" || "gif" || "webp", // required
117+
* source: { // ImageInputSource Union: only one key present
118+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
119+
* },
120+
* },
121+
* ],
114122
* },
115123
* },
116124
* agentId: "STRING_VALUE",
@@ -122,6 +130,14 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
122130
* responseBody: {
123131
* "<keys>": {
124132
* body: "STRING_VALUE",
133+
* images: [
134+
* {
135+
* format: "png" || "jpeg" || "gif" || "webp", // required
136+
* source: {// Union: only one key present
137+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
138+
* },
139+
* },
140+
* ],
125141
* },
126142
* },
127143
* responseState: "FAILURE" || "REPROMPT",
@@ -567,6 +583,14 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
567583
* // responseBody: { // ResponseBody
568584
* // "<keys>": { // ContentBody
569585
* // body: "STRING_VALUE",
586+
* // images: [ // ImageInputs
587+
* // { // ImageInput
588+
* // format: "png" || "jpeg" || "gif" || "webp", // required
589+
* // source: { // ImageInputSource Union: only one key present
590+
* // bytes: new Uint8Array(),
591+
* // },
592+
* // },
593+
* // ],
570594
* // },
571595
* // },
572596
* // agentId: "STRING_VALUE",
@@ -578,6 +602,14 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
578602
* // responseBody: {
579603
* // "<keys>": {
580604
* // body: "STRING_VALUE",
605+
* // images: [
606+
* // {
607+
* // format: "png" || "jpeg" || "gif" || "webp", // required
608+
* // source: {// Union: only one key present
609+
* // bytes: new Uint8Array(),
610+
* // },
611+
* // },
612+
* // ],
581613
* // },
582614
* // },
583615
* // responseState: "FAILURE" || "REPROMPT",
@@ -844,6 +876,14 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
844876
* // responseBody: {
845877
* // "<keys>": {
846878
* // body: "STRING_VALUE",
879+
* // images: [
880+
* // {
881+
* // format: "png" || "jpeg" || "gif" || "webp", // required
882+
* // source: {// Union: only one key present
883+
* // bytes: new Uint8Array(),
884+
* // },
885+
* // },
886+
* // ],
847887
* // },
848888
* // },
849889
* // agentId: "STRING_VALUE",
@@ -855,6 +895,14 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
855895
* // responseBody: {
856896
* // "<keys>": {
857897
* // body: "STRING_VALUE",
898+
* // images: [
899+
* // {
900+
* // format: "png" || "jpeg" || "gif" || "webp", // required
901+
* // source: {// Union: only one key present
902+
* // bytes: new Uint8Array(),
903+
* // },
904+
* // },
905+
* // ],
858906
* // },
859907
* // },
860908
* // responseState: "FAILURE" || "REPROMPT",

clients/client-bedrock-agent-runtime/src/commands/InvokeInlineAgentCommand.ts

+56-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
7373
* { // AgentActionGroup
7474
* actionGroupName: "STRING_VALUE", // required
7575
* description: "STRING_VALUE",
76-
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
76+
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter" || "ANTHROPIC.Computer" || "ANTHROPIC.Bash" || "ANTHROPIC.TextEditor",
7777
* actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
7878
* lambda: "STRING_VALUE",
7979
* customControl: "RETURN_CONTROL",
@@ -101,6 +101,9 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
101101
* },
102102
* ],
103103
* },
104+
* parentActionGroupSignatureParams: { // ActionGroupSignatureParams
105+
* "<keys>": "STRING_VALUE",
106+
* },
104107
* },
105108
* ],
106109
* knowledgeBases: [ // KnowledgeBases
@@ -267,6 +270,14 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
267270
* responseBody: { // ResponseBody
268271
* "<keys>": { // ContentBody
269272
* body: "STRING_VALUE",
273+
* images: [ // ImageInputs
274+
* { // ImageInput
275+
* format: "png" || "jpeg" || "gif" || "webp", // required
276+
* source: { // ImageInputSource Union: only one key present
277+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
278+
* },
279+
* },
280+
* ],
270281
* },
271282
* },
272283
* agentId: "STRING_VALUE",
@@ -278,6 +289,14 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
278289
* responseBody: {
279290
* "<keys>": {
280291
* body: "STRING_VALUE",
292+
* images: [
293+
* {
294+
* format: "png" || "jpeg" || "gif" || "webp", // required
295+
* source: {// Union: only one key present
296+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
297+
* },
298+
* },
299+
* ],
281300
* },
282301
* },
283302
* responseState: "FAILURE" || "REPROMPT",
@@ -325,7 +344,7 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
325344
* {
326345
* actionGroupName: "STRING_VALUE", // required
327346
* description: "STRING_VALUE",
328-
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
347+
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter" || "ANTHROPIC.Computer" || "ANTHROPIC.Bash" || "ANTHROPIC.TextEditor",
329348
* actionGroupExecutor: {// Union: only one key present
330349
* lambda: "STRING_VALUE",
331350
* customControl: "RETURN_CONTROL",
@@ -353,6 +372,9 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
353372
* },
354373
* ],
355374
* },
375+
* parentActionGroupSignatureParams: {
376+
* "<keys>": "STRING_VALUE",
377+
* },
356378
* },
357379
* ],
358380
* knowledgeBases: [
@@ -740,6 +762,14 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
740762
* // responseBody: { // ResponseBody
741763
* // "<keys>": { // ContentBody
742764
* // body: "STRING_VALUE",
765+
* // images: [ // ImageInputs
766+
* // { // ImageInput
767+
* // format: "png" || "jpeg" || "gif" || "webp", // required
768+
* // source: { // ImageInputSource Union: only one key present
769+
* // bytes: new Uint8Array(),
770+
* // },
771+
* // },
772+
* // ],
743773
* // },
744774
* // },
745775
* // agentId: "STRING_VALUE",
@@ -751,6 +781,14 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
751781
* // responseBody: {
752782
* // "<keys>": {
753783
* // body: "STRING_VALUE",
784+
* // images: [
785+
* // {
786+
* // format: "png" || "jpeg" || "gif" || "webp", // required
787+
* // source: {// Union: only one key present
788+
* // bytes: new Uint8Array(),
789+
* // },
790+
* // },
791+
* // ],
754792
* // },
755793
* // },
756794
* // responseState: "FAILURE" || "REPROMPT",
@@ -1017,6 +1055,14 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
10171055
* // responseBody: {
10181056
* // "<keys>": {
10191057
* // body: "STRING_VALUE",
1058+
* // images: [
1059+
* // {
1060+
* // format: "png" || "jpeg" || "gif" || "webp", // required
1061+
* // source: {// Union: only one key present
1062+
* // bytes: new Uint8Array(),
1063+
* // },
1064+
* // },
1065+
* // ],
10201066
* // },
10211067
* // },
10221068
* // agentId: "STRING_VALUE",
@@ -1028,6 +1074,14 @@ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentRespons
10281074
* // responseBody: {
10291075
* // "<keys>": {
10301076
* // body: "STRING_VALUE",
1077+
* // images: [
1078+
* // {
1079+
* // format: "png" || "jpeg" || "gif" || "webp", // required
1080+
* // source: {// Union: only one key present
1081+
* // bytes: new Uint8Array(),
1082+
* // },
1083+
* // },
1084+
* // ],
10311085
* // },
10321086
* // },
10331087
* // responseState: "FAILURE" || "REPROMPT",

clients/client-bedrock-agent-runtime/src/commands/ListTagsForResourceCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
ServiceOutputTypes,
1111
} from "../BedrockAgentRuntimeClient";
1212
import { commonParams } from "../endpoint/EndpointParameters";
13-
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
13+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
1414
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
1515

1616
/**

clients/client-bedrock-agent-runtime/src/commands/TagResourceCommand.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import {
1010
ServiceOutputTypes,
1111
} from "../BedrockAgentRuntimeClient";
1212
import { commonParams } from "../endpoint/EndpointParameters";
13-
import { TagResourceRequest } from "../models/models_0";
14-
import { TagResourceResponse } from "../models/models_1";
13+
import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
1514
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
1615

1716
/**

0 commit comments

Comments
 (0)