@aws-sdk/client-bedrock-agentcore 3.1033.0 → 3.1035.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.
@@ -22,6 +22,7 @@ import { InvokeAgentRuntimeCommand, } from "./commands/InvokeAgentRuntimeCommand
22
22
  import { InvokeAgentRuntimeCommandCommand, } from "./commands/InvokeAgentRuntimeCommandCommand";
23
23
  import { InvokeBrowserCommand, } from "./commands/InvokeBrowserCommand";
24
24
  import { InvokeCodeInterpreterCommand, } from "./commands/InvokeCodeInterpreterCommand";
25
+ import { InvokeHarnessCommand, } from "./commands/InvokeHarnessCommand";
25
26
  import { ListActorsCommand, } from "./commands/ListActorsCommand";
26
27
  import { ListBrowserSessionsCommand, } from "./commands/ListBrowserSessionsCommand";
27
28
  import { ListCodeInterpreterSessionsCommand, } from "./commands/ListCodeInterpreterSessionsCommand";
@@ -68,6 +69,7 @@ const commands = {
68
69
  InvokeAgentRuntimeCommandCommand,
69
70
  InvokeBrowserCommand,
70
71
  InvokeCodeInterpreterCommand,
72
+ InvokeHarnessCommand,
71
73
  ListActorsCommand,
72
74
  ListBrowserSessionsCommand,
73
75
  ListCodeInterpreterSessionsCommand,
@@ -0,0 +1,20 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { InvokeHarness$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class InvokeHarnessCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonBedrockAgentCore", "InvokeHarness", {
13
+ eventStream: {
14
+ output: true,
15
+ },
16
+ })
17
+ .n("BedrockAgentCoreClient", "InvokeHarnessCommand")
18
+ .sc(InvokeHarness$)
19
+ .build() {
20
+ }
@@ -20,6 +20,7 @@ export * from "./InvokeAgentRuntimeCommand";
20
20
  export * from "./InvokeAgentRuntimeCommandCommand";
21
21
  export * from "./InvokeBrowserCommand";
22
22
  export * from "./InvokeCodeInterpreterCommand";
23
+ export * from "./InvokeHarnessCommand";
23
24
  export * from "./ListActorsCommand";
24
25
  export * from "./ListBrowserSessionsCommand";
25
26
  export * from "./ListCodeInterpreterSessionsCommand";
@@ -83,6 +83,46 @@ export const TaskStatus = {
83
83
  SUBMITTED: "submitted",
84
84
  WORKING: "working",
85
85
  };
86
+ export const HarnessToolUseStatus = {
87
+ ERROR: "error",
88
+ SUCCESS: "success",
89
+ };
90
+ export const HarnessToolUseType = {
91
+ MCP_TOOL_USE: "mcp_tool_use",
92
+ SERVER_TOOL_USE: "server_tool_use",
93
+ TOOL_USE: "tool_use",
94
+ };
95
+ export const HarnessConversationRole = {
96
+ ASSISTANT: "assistant",
97
+ USER: "user",
98
+ };
99
+ export const OAuthGrantType = {
100
+ AUTHORIZATION_CODE: "AUTHORIZATION_CODE",
101
+ CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS",
102
+ };
103
+ export const HarnessToolType = {
104
+ AGENTCORE_BROWSER: "agentcore_browser",
105
+ AGENTCORE_CODE_INTERPRETER: "agentcore_code_interpreter",
106
+ AGENTCORE_GATEWAY: "agentcore_gateway",
107
+ INLINE_FUNCTION: "inline_function",
108
+ REMOTE_MCP: "remote_mcp",
109
+ };
110
+ export const HarnessStopReason = {
111
+ CONTENT_FILTERED: "content_filtered",
112
+ END_TURN: "end_turn",
113
+ INTERRUPTED: "interrupted",
114
+ MALFORMED_MODEL_OUTPUT: "malformed_model_output",
115
+ MALFORMED_TOOL_USE: "malformed_tool_use",
116
+ MAX_ITERATIONS_EXCEEDED: "max_iterations_exceeded",
117
+ MAX_OUTPUT_TOKENS_EXCEEDED: "max_output_tokens_exceeded",
118
+ MAX_TOKENS: "max_tokens",
119
+ MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded",
120
+ PARTIAL_TURN: "partial_turn",
121
+ STOP_SEQUENCE: "stop_sequence",
122
+ TIMEOUT_EXCEEDED: "timeout_exceeded",
123
+ TOOL_RESULT: "tool_result",
124
+ TOOL_USE: "tool_use",
125
+ };
86
126
  export const MemoryRecordStatus = {
87
127
  FAILED: "FAILED",
88
128
  SUCCEEDED: "SUCCEEDED",