@aws-sdk/client-bedrock-agentcore 3.1034.0 → 3.1036.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 +7 -0
- package/dist-cjs/index.js +64 -0
- package/dist-cjs/schemas/schemas_0.js +383 -22
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/commands/InvokeHarnessCommand.js +20 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +40 -0
- package/dist-es/schemas/schemas_0.js +378 -18
- package/dist-types/BedrockAgentCore.d.ts +7 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
- package/dist-types/commands/InvokeHarnessCommand.d.ts +280 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +88 -0
- package/dist-types/models/models_0.d.ts +1412 -1
- package/dist-types/schemas/schemas_0.d.ts +41 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/InvokeHarnessCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +52 -0
- package/dist-types/ts3.4/models/models_0.d.ts +701 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +41 -0
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -335,6 +335,13 @@ InvokeCodeInterpreter
|
|
|
335
335
|
</details>
|
|
336
336
|
<details>
|
|
337
337
|
<summary>
|
|
338
|
+
InvokeHarness
|
|
339
|
+
</summary>
|
|
340
|
+
|
|
341
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/InvokeHarnessCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/InvokeHarnessCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/InvokeHarnessCommandOutput/)
|
|
342
|
+
</details>
|
|
343
|
+
<details>
|
|
344
|
+
<summary>
|
|
338
345
|
ListActors
|
|
339
346
|
</summary>
|
|
340
347
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -387,6 +387,22 @@ class InvokeCodeInterpreterCommand extends smithyClient.Command
|
|
|
387
387
|
.build() {
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
+
class InvokeHarnessCommand extends smithyClient.Command
|
|
391
|
+
.classBuilder()
|
|
392
|
+
.ep(commonParams)
|
|
393
|
+
.m(function (Command, cs, config, o) {
|
|
394
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
395
|
+
})
|
|
396
|
+
.s("AmazonBedrockAgentCore", "InvokeHarness", {
|
|
397
|
+
eventStream: {
|
|
398
|
+
output: true,
|
|
399
|
+
},
|
|
400
|
+
})
|
|
401
|
+
.n("BedrockAgentCoreClient", "InvokeHarnessCommand")
|
|
402
|
+
.sc(schemas_0.InvokeHarness$)
|
|
403
|
+
.build() {
|
|
404
|
+
}
|
|
405
|
+
|
|
390
406
|
class ListActorsCommand extends smithyClient.Command
|
|
391
407
|
.classBuilder()
|
|
392
408
|
.ep(commonParams)
|
|
@@ -626,6 +642,7 @@ const commands = {
|
|
|
626
642
|
InvokeAgentRuntimeCommandCommand,
|
|
627
643
|
InvokeBrowserCommand,
|
|
628
644
|
InvokeCodeInterpreterCommand,
|
|
645
|
+
InvokeHarnessCommand,
|
|
629
646
|
ListActorsCommand,
|
|
630
647
|
ListBrowserSessionsCommand,
|
|
631
648
|
ListCodeInterpreterSessionsCommand,
|
|
@@ -741,6 +758,46 @@ const TaskStatus = {
|
|
|
741
758
|
SUBMITTED: "submitted",
|
|
742
759
|
WORKING: "working",
|
|
743
760
|
};
|
|
761
|
+
const HarnessToolUseStatus = {
|
|
762
|
+
ERROR: "error",
|
|
763
|
+
SUCCESS: "success",
|
|
764
|
+
};
|
|
765
|
+
const HarnessToolUseType = {
|
|
766
|
+
MCP_TOOL_USE: "mcp_tool_use",
|
|
767
|
+
SERVER_TOOL_USE: "server_tool_use",
|
|
768
|
+
TOOL_USE: "tool_use",
|
|
769
|
+
};
|
|
770
|
+
const HarnessConversationRole = {
|
|
771
|
+
ASSISTANT: "assistant",
|
|
772
|
+
USER: "user",
|
|
773
|
+
};
|
|
774
|
+
const OAuthGrantType = {
|
|
775
|
+
AUTHORIZATION_CODE: "AUTHORIZATION_CODE",
|
|
776
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS",
|
|
777
|
+
};
|
|
778
|
+
const HarnessToolType = {
|
|
779
|
+
AGENTCORE_BROWSER: "agentcore_browser",
|
|
780
|
+
AGENTCORE_CODE_INTERPRETER: "agentcore_code_interpreter",
|
|
781
|
+
AGENTCORE_GATEWAY: "agentcore_gateway",
|
|
782
|
+
INLINE_FUNCTION: "inline_function",
|
|
783
|
+
REMOTE_MCP: "remote_mcp",
|
|
784
|
+
};
|
|
785
|
+
const HarnessStopReason = {
|
|
786
|
+
CONTENT_FILTERED: "content_filtered",
|
|
787
|
+
END_TURN: "end_turn",
|
|
788
|
+
INTERRUPTED: "interrupted",
|
|
789
|
+
MALFORMED_MODEL_OUTPUT: "malformed_model_output",
|
|
790
|
+
MALFORMED_TOOL_USE: "malformed_tool_use",
|
|
791
|
+
MAX_ITERATIONS_EXCEEDED: "max_iterations_exceeded",
|
|
792
|
+
MAX_OUTPUT_TOKENS_EXCEEDED: "max_output_tokens_exceeded",
|
|
793
|
+
MAX_TOKENS: "max_tokens",
|
|
794
|
+
MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded",
|
|
795
|
+
PARTIAL_TURN: "partial_turn",
|
|
796
|
+
STOP_SEQUENCE: "stop_sequence",
|
|
797
|
+
TIMEOUT_EXCEEDED: "timeout_exceeded",
|
|
798
|
+
TOOL_RESULT: "tool_result",
|
|
799
|
+
TOOL_USE: "tool_use",
|
|
800
|
+
};
|
|
744
801
|
const MemoryRecordStatus = {
|
|
745
802
|
FAILED: "FAILED",
|
|
746
803
|
SUCCEEDED: "SUCCEEDED",
|
|
@@ -809,10 +866,16 @@ exports.GetResourceOauth2TokenCommand = GetResourceOauth2TokenCommand;
|
|
|
809
866
|
exports.GetWorkloadAccessTokenCommand = GetWorkloadAccessTokenCommand;
|
|
810
867
|
exports.GetWorkloadAccessTokenForJWTCommand = GetWorkloadAccessTokenForJWTCommand;
|
|
811
868
|
exports.GetWorkloadAccessTokenForUserIdCommand = GetWorkloadAccessTokenForUserIdCommand;
|
|
869
|
+
exports.HarnessConversationRole = HarnessConversationRole;
|
|
870
|
+
exports.HarnessStopReason = HarnessStopReason;
|
|
871
|
+
exports.HarnessToolType = HarnessToolType;
|
|
872
|
+
exports.HarnessToolUseStatus = HarnessToolUseStatus;
|
|
873
|
+
exports.HarnessToolUseType = HarnessToolUseType;
|
|
812
874
|
exports.InvokeAgentRuntimeCommand = InvokeAgentRuntimeCommand;
|
|
813
875
|
exports.InvokeAgentRuntimeCommandCommand = InvokeAgentRuntimeCommandCommand;
|
|
814
876
|
exports.InvokeBrowserCommand = InvokeBrowserCommand;
|
|
815
877
|
exports.InvokeCodeInterpreterCommand = InvokeCodeInterpreterCommand;
|
|
878
|
+
exports.InvokeHarnessCommand = InvokeHarnessCommand;
|
|
816
879
|
exports.LanguageRuntime = LanguageRuntime;
|
|
817
880
|
exports.ListActorsCommand = ListActorsCommand;
|
|
818
881
|
exports.ListBrowserSessionsCommand = ListBrowserSessionsCommand;
|
|
@@ -823,6 +886,7 @@ exports.ListMemoryRecordsCommand = ListMemoryRecordsCommand;
|
|
|
823
886
|
exports.ListSessionsCommand = ListSessionsCommand;
|
|
824
887
|
exports.MemoryRecordStatus = MemoryRecordStatus;
|
|
825
888
|
exports.MouseButton = MouseButton;
|
|
889
|
+
exports.OAuthGrantType = OAuthGrantType;
|
|
826
890
|
exports.Oauth2FlowType = Oauth2FlowType;
|
|
827
891
|
exports.OperatorType = OperatorType;
|
|
828
892
|
exports.ProgrammingLanguage = ProgrammingLanguage;
|