aws-sdk-bedrockagentcore 1.23.0 → 1.24.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentcore/client.rb +59 -8
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +35 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +164 -30
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +23 -1
- data/sig/types.rbs +27 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7fbd0e6064c53f5e26eff13492921fcbb8182e4135ce7c0cc5cef94c1d6b8ddf
|
|
4
|
+
data.tar.gz: a8c0106364f09c61de750950108d47802b564b8621235349661495deaaa4b53c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd6c43ce3f32d13b124e221874c327d43c69e926fffb3faed6471427d69c366b919382a1489e5256604d0f1cdeda6d94c3ec808e5774299ae35cee204e421609
|
|
7
|
+
data.tar.gz: 7d2310016f1b016148e1ad849008819ca7102996106916ecdd5a8120900af1d2f284b5af2bcb8f2b220fa27b418e8114a30016e991861550b1c81046b7bfd885
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.24.0
|
|
@@ -900,6 +900,14 @@ module Aws::BedrockAgentCore
|
|
|
900
900
|
# calls, single request-response interactions (traces), or entire
|
|
901
901
|
# conversation sessions.
|
|
902
902
|
#
|
|
903
|
+
# @option params [Array<Types::EvaluationReferenceInput>] :evaluation_reference_inputs
|
|
904
|
+
# Ground truth data to compare against agent responses during
|
|
905
|
+
# evaluation. Allows to provide expected responses, assertions, and
|
|
906
|
+
# expected tool trajectories at different evaluation levels.
|
|
907
|
+
# Session-level reference inputs apply to the entire conversation, while
|
|
908
|
+
# trace-level reference inputs target specific request-response
|
|
909
|
+
# interactions identified by trace ID.
|
|
910
|
+
#
|
|
903
911
|
# @return [Types::EvaluateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
904
912
|
#
|
|
905
913
|
# * {Types::EvaluateResponse#evaluation_results #evaluation_results} => Array<Types::EvaluationResultContent>
|
|
@@ -918,6 +926,28 @@ module Aws::BedrockAgentCore
|
|
|
918
926
|
# span_ids: ["SpanId"],
|
|
919
927
|
# trace_ids: ["TraceId"],
|
|
920
928
|
# },
|
|
929
|
+
# evaluation_reference_inputs: [
|
|
930
|
+
# {
|
|
931
|
+
# context: { # required
|
|
932
|
+
# span_context: {
|
|
933
|
+
# session_id: "String", # required
|
|
934
|
+
# trace_id: "String",
|
|
935
|
+
# span_id: "String",
|
|
936
|
+
# },
|
|
937
|
+
# },
|
|
938
|
+
# expected_response: {
|
|
939
|
+
# text: "EvaluationContentTextString",
|
|
940
|
+
# },
|
|
941
|
+
# assertions: [
|
|
942
|
+
# {
|
|
943
|
+
# text: "EvaluationContentTextString",
|
|
944
|
+
# },
|
|
945
|
+
# ],
|
|
946
|
+
# expected_trajectory: {
|
|
947
|
+
# tool_names: ["EvaluationToolName"],
|
|
948
|
+
# },
|
|
949
|
+
# },
|
|
950
|
+
# ],
|
|
921
951
|
# })
|
|
922
952
|
#
|
|
923
953
|
# @example Response structure
|
|
@@ -937,6 +967,8 @@ module Aws::BedrockAgentCore
|
|
|
937
967
|
# resp.evaluation_results[0].token_usage.total_tokens #=> Integer
|
|
938
968
|
# resp.evaluation_results[0].error_message #=> String
|
|
939
969
|
# resp.evaluation_results[0].error_code #=> String
|
|
970
|
+
# resp.evaluation_results[0].ignored_reference_input_fields #=> Array
|
|
971
|
+
# resp.evaluation_results[0].ignored_reference_input_fields[0] #=> String
|
|
940
972
|
#
|
|
941
973
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/Evaluate AWS API Documentation
|
|
942
974
|
#
|
|
@@ -1611,8 +1643,18 @@ module Aws::BedrockAgentCore
|
|
|
1611
1643
|
req.send_request(options, &block)
|
|
1612
1644
|
end
|
|
1613
1645
|
|
|
1614
|
-
# Executes a command in a runtime session container
|
|
1615
|
-
# output
|
|
1646
|
+
# Executes a command in a runtime session container and streams the
|
|
1647
|
+
# output back to the caller. This operation allows you to run shell
|
|
1648
|
+
# commands within the agent runtime environment and receive real-time
|
|
1649
|
+
# streaming responses including standard output and standard error.
|
|
1650
|
+
#
|
|
1651
|
+
# To invoke a command, you must specify the agent runtime ARN and a
|
|
1652
|
+
# runtime session ID. The command execution supports streaming
|
|
1653
|
+
# responses, allowing you to receive output as it becomes available
|
|
1654
|
+
# through `contentStart`, `contentDelta`, and `contentStop` events.
|
|
1655
|
+
#
|
|
1656
|
+
# To use this operation, you must have the
|
|
1657
|
+
# `bedrock-agentcore:InvokeAgentRuntimeCommand` permission.
|
|
1616
1658
|
#
|
|
1617
1659
|
# @option params [String] :content_type
|
|
1618
1660
|
# The MIME type of the input data in the request payload. This tells the
|
|
@@ -1625,7 +1667,9 @@ module Aws::BedrockAgentCore
|
|
|
1625
1667
|
# Common values include application/json for JSON data.
|
|
1626
1668
|
#
|
|
1627
1669
|
# @option params [String] :runtime_session_id
|
|
1628
|
-
#
|
|
1670
|
+
# The unique identifier of the runtime session in which to execute the
|
|
1671
|
+
# command. This session ID is used to maintain state and context across
|
|
1672
|
+
# multiple command invocations.
|
|
1629
1673
|
#
|
|
1630
1674
|
# **A suitable default value is auto-generated.** You should normally
|
|
1631
1675
|
# not need to pass this option.**
|
|
@@ -1643,16 +1687,23 @@ module Aws::BedrockAgentCore
|
|
|
1643
1687
|
# Additional context information for distributed tracing.
|
|
1644
1688
|
#
|
|
1645
1689
|
# @option params [required, String] :agent_runtime_arn
|
|
1646
|
-
# ARN of the agent runtime
|
|
1690
|
+
# The Amazon Resource Name (ARN) of the agent runtime on which to
|
|
1691
|
+
# execute the command. This identifies the specific agent runtime
|
|
1692
|
+
# environment where the command will run.
|
|
1647
1693
|
#
|
|
1648
1694
|
# @option params [String] :qualifier
|
|
1649
|
-
#
|
|
1695
|
+
# The qualifier to use for the agent runtime. This is an endpoint name
|
|
1696
|
+
# that points to a specific version. If not specified, Amazon Bedrock
|
|
1697
|
+
# AgentCore uses the default endpoint of the agent runtime.
|
|
1650
1698
|
#
|
|
1651
1699
|
# @option params [String] :account_id
|
|
1652
|
-
#
|
|
1700
|
+
# The identifier of the Amazon Web Services account for the agent
|
|
1701
|
+
# runtime resource. This parameter is required when you specify an agent
|
|
1702
|
+
# ID instead of the full ARN for `agentRuntimeArn`.
|
|
1653
1703
|
#
|
|
1654
1704
|
# @option params [required, Types::InvokeAgentRuntimeCommandRequestBody] :body
|
|
1655
|
-
#
|
|
1705
|
+
# The request body containing the command to execute and optional
|
|
1706
|
+
# configuration parameters such as timeout settings.
|
|
1656
1707
|
#
|
|
1657
1708
|
# @return [Types::InvokeAgentRuntimeCommandResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1658
1709
|
#
|
|
@@ -3493,7 +3544,7 @@ module Aws::BedrockAgentCore
|
|
|
3493
3544
|
tracer: tracer
|
|
3494
3545
|
)
|
|
3495
3546
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
|
3496
|
-
context[:gem_version] = '1.
|
|
3547
|
+
context[:gem_version] = '1.24.0'
|
|
3497
3548
|
Seahorse::Client::Request.new(handlers, context)
|
|
3498
3549
|
end
|
|
3499
3550
|
|
|
@@ -95,13 +95,21 @@ module Aws::BedrockAgentCore
|
|
|
95
95
|
DuplicateIdException = Shapes::StructureShape.new(name: 'DuplicateIdException')
|
|
96
96
|
EvaluateRequest = Shapes::StructureShape.new(name: 'EvaluateRequest')
|
|
97
97
|
EvaluateResponse = Shapes::StructureShape.new(name: 'EvaluateResponse')
|
|
98
|
+
EvaluationContent = Shapes::UnionShape.new(name: 'EvaluationContent')
|
|
99
|
+
EvaluationContentList = Shapes::ListShape.new(name: 'EvaluationContentList')
|
|
100
|
+
EvaluationContentTextString = Shapes::StringShape.new(name: 'EvaluationContentTextString')
|
|
98
101
|
EvaluationErrorCode = Shapes::StringShape.new(name: 'EvaluationErrorCode')
|
|
99
102
|
EvaluationErrorMessage = Shapes::StringShape.new(name: 'EvaluationErrorMessage')
|
|
103
|
+
EvaluationExpectedTrajectory = Shapes::StructureShape.new(name: 'EvaluationExpectedTrajectory')
|
|
100
104
|
EvaluationExplanation = Shapes::StringShape.new(name: 'EvaluationExplanation')
|
|
101
105
|
EvaluationInput = Shapes::UnionShape.new(name: 'EvaluationInput')
|
|
106
|
+
EvaluationReferenceInput = Shapes::StructureShape.new(name: 'EvaluationReferenceInput')
|
|
107
|
+
EvaluationReferenceInputs = Shapes::ListShape.new(name: 'EvaluationReferenceInputs')
|
|
102
108
|
EvaluationResultContent = Shapes::StructureShape.new(name: 'EvaluationResultContent')
|
|
103
109
|
EvaluationResults = Shapes::ListShape.new(name: 'EvaluationResults')
|
|
104
110
|
EvaluationTarget = Shapes::UnionShape.new(name: 'EvaluationTarget')
|
|
111
|
+
EvaluationToolName = Shapes::StringShape.new(name: 'EvaluationToolName')
|
|
112
|
+
EvaluationToolNames = Shapes::ListShape.new(name: 'EvaluationToolNames')
|
|
105
113
|
EvaluatorArn = Shapes::StringShape.new(name: 'EvaluatorArn')
|
|
106
114
|
EvaluatorId = Shapes::StringShape.new(name: 'EvaluatorId')
|
|
107
115
|
EvaluatorName = Shapes::StringShape.new(name: 'EvaluatorName')
|
|
@@ -141,6 +149,8 @@ module Aws::BedrockAgentCore
|
|
|
141
149
|
GetWorkloadAccessTokenResponse = Shapes::StructureShape.new(name: 'GetWorkloadAccessTokenResponse')
|
|
142
150
|
HostName = Shapes::StringShape.new(name: 'HostName')
|
|
143
151
|
HttpResponseCode = Shapes::IntegerShape.new(name: 'HttpResponseCode')
|
|
152
|
+
IgnoredReferenceInputField = Shapes::StringShape.new(name: 'IgnoredReferenceInputField')
|
|
153
|
+
IgnoredReferenceInputFields = Shapes::ListShape.new(name: 'IgnoredReferenceInputFields')
|
|
144
154
|
InputContentBlock = Shapes::StructureShape.new(name: 'InputContentBlock')
|
|
145
155
|
InputContentBlockList = Shapes::ListShape.new(name: 'InputContentBlockList')
|
|
146
156
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
|
@@ -526,17 +536,37 @@ module Aws::BedrockAgentCore
|
|
|
526
536
|
EvaluateRequest.add_member(:evaluator_id, Shapes::ShapeRef.new(shape: EvaluatorId, required: true, location: "uri", location_name: "evaluatorId"))
|
|
527
537
|
EvaluateRequest.add_member(:evaluation_input, Shapes::ShapeRef.new(shape: EvaluationInput, required: true, location_name: "evaluationInput"))
|
|
528
538
|
EvaluateRequest.add_member(:evaluation_target, Shapes::ShapeRef.new(shape: EvaluationTarget, location_name: "evaluationTarget"))
|
|
539
|
+
EvaluateRequest.add_member(:evaluation_reference_inputs, Shapes::ShapeRef.new(shape: EvaluationReferenceInputs, location_name: "evaluationReferenceInputs"))
|
|
529
540
|
EvaluateRequest.struct_class = Types::EvaluateRequest
|
|
530
541
|
|
|
531
542
|
EvaluateResponse.add_member(:evaluation_results, Shapes::ShapeRef.new(shape: EvaluationResults, required: true, location_name: "evaluationResults"))
|
|
532
543
|
EvaluateResponse.struct_class = Types::EvaluateResponse
|
|
533
544
|
|
|
545
|
+
EvaluationContent.add_member(:text, Shapes::ShapeRef.new(shape: EvaluationContentTextString, location_name: "text"))
|
|
546
|
+
EvaluationContent.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
547
|
+
EvaluationContent.add_member_subclass(:text, Types::EvaluationContent::Text)
|
|
548
|
+
EvaluationContent.add_member_subclass(:unknown, Types::EvaluationContent::Unknown)
|
|
549
|
+
EvaluationContent.struct_class = Types::EvaluationContent
|
|
550
|
+
|
|
551
|
+
EvaluationContentList.member = Shapes::ShapeRef.new(shape: EvaluationContent)
|
|
552
|
+
|
|
553
|
+
EvaluationExpectedTrajectory.add_member(:tool_names, Shapes::ShapeRef.new(shape: EvaluationToolNames, location_name: "toolNames"))
|
|
554
|
+
EvaluationExpectedTrajectory.struct_class = Types::EvaluationExpectedTrajectory
|
|
555
|
+
|
|
534
556
|
EvaluationInput.add_member(:session_spans, Shapes::ShapeRef.new(shape: Spans, location_name: "sessionSpans"))
|
|
535
557
|
EvaluationInput.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
536
558
|
EvaluationInput.add_member_subclass(:session_spans, Types::EvaluationInput::SessionSpans)
|
|
537
559
|
EvaluationInput.add_member_subclass(:unknown, Types::EvaluationInput::Unknown)
|
|
538
560
|
EvaluationInput.struct_class = Types::EvaluationInput
|
|
539
561
|
|
|
562
|
+
EvaluationReferenceInput.add_member(:context, Shapes::ShapeRef.new(shape: Context, required: true, location_name: "context"))
|
|
563
|
+
EvaluationReferenceInput.add_member(:expected_response, Shapes::ShapeRef.new(shape: EvaluationContent, location_name: "expectedResponse"))
|
|
564
|
+
EvaluationReferenceInput.add_member(:assertions, Shapes::ShapeRef.new(shape: EvaluationContentList, location_name: "assertions"))
|
|
565
|
+
EvaluationReferenceInput.add_member(:expected_trajectory, Shapes::ShapeRef.new(shape: EvaluationExpectedTrajectory, location_name: "expectedTrajectory"))
|
|
566
|
+
EvaluationReferenceInput.struct_class = Types::EvaluationReferenceInput
|
|
567
|
+
|
|
568
|
+
EvaluationReferenceInputs.member = Shapes::ShapeRef.new(shape: EvaluationReferenceInput)
|
|
569
|
+
|
|
540
570
|
EvaluationResultContent.add_member(:evaluator_arn, Shapes::ShapeRef.new(shape: EvaluatorArn, required: true, location_name: "evaluatorArn"))
|
|
541
571
|
EvaluationResultContent.add_member(:evaluator_id, Shapes::ShapeRef.new(shape: EvaluatorId, required: true, location_name: "evaluatorId"))
|
|
542
572
|
EvaluationResultContent.add_member(:evaluator_name, Shapes::ShapeRef.new(shape: EvaluatorName, required: true, location_name: "evaluatorName"))
|
|
@@ -547,6 +577,7 @@ module Aws::BedrockAgentCore
|
|
|
547
577
|
EvaluationResultContent.add_member(:token_usage, Shapes::ShapeRef.new(shape: TokenUsage, location_name: "tokenUsage"))
|
|
548
578
|
EvaluationResultContent.add_member(:error_message, Shapes::ShapeRef.new(shape: EvaluationErrorMessage, location_name: "errorMessage"))
|
|
549
579
|
EvaluationResultContent.add_member(:error_code, Shapes::ShapeRef.new(shape: EvaluationErrorCode, location_name: "errorCode"))
|
|
580
|
+
EvaluationResultContent.add_member(:ignored_reference_input_fields, Shapes::ShapeRef.new(shape: IgnoredReferenceInputFields, location_name: "ignoredReferenceInputFields"))
|
|
550
581
|
EvaluationResultContent.struct_class = Types::EvaluationResultContent
|
|
551
582
|
|
|
552
583
|
EvaluationResults.member = Shapes::ShapeRef.new(shape: EvaluationResultContent)
|
|
@@ -559,6 +590,8 @@ module Aws::BedrockAgentCore
|
|
|
559
590
|
EvaluationTarget.add_member_subclass(:unknown, Types::EvaluationTarget::Unknown)
|
|
560
591
|
EvaluationTarget.struct_class = Types::EvaluationTarget
|
|
561
592
|
|
|
593
|
+
EvaluationToolNames.member = Shapes::ShapeRef.new(shape: EvaluationToolName)
|
|
594
|
+
|
|
562
595
|
Event.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, required: true, location_name: "memoryId"))
|
|
563
596
|
Event.add_member(:actor_id, Shapes::ShapeRef.new(shape: ActorId, required: true, location_name: "actorId"))
|
|
564
597
|
Event.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location_name: "sessionId"))
|
|
@@ -720,6 +753,8 @@ module Aws::BedrockAgentCore
|
|
|
720
753
|
GetWorkloadAccessTokenResponse.add_member(:workload_access_token, Shapes::ShapeRef.new(shape: WorkloadIdentityTokenType, required: true, location_name: "workloadAccessToken"))
|
|
721
754
|
GetWorkloadAccessTokenResponse.struct_class = Types::GetWorkloadAccessTokenResponse
|
|
722
755
|
|
|
756
|
+
IgnoredReferenceInputFields.member = Shapes::ShapeRef.new(shape: IgnoredReferenceInputField)
|
|
757
|
+
|
|
723
758
|
InputContentBlock.add_member(:path, Shapes::ShapeRef.new(shape: MaxLenString, required: true, location_name: "path"))
|
|
724
759
|
InputContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: MaxLenString, location_name: "text"))
|
|
725
760
|
InputContentBlock.add_member(:blob, Shapes::ShapeRef.new(shape: Body, location_name: "blob"))
|
|
@@ -643,14 +643,20 @@ module Aws::BedrockAgentCore
|
|
|
643
643
|
include Aws::Structure
|
|
644
644
|
end
|
|
645
645
|
|
|
646
|
-
#
|
|
646
|
+
# An event that contains incremental output from a command execution.
|
|
647
|
+
# This event streams standard output and standard error content as it
|
|
648
|
+
# becomes available during command execution.
|
|
647
649
|
#
|
|
648
650
|
# @!attribute [rw] stdout
|
|
649
|
-
#
|
|
651
|
+
# The standard output content from the command execution. This field
|
|
652
|
+
# contains the incremental output written to stdout by the executing
|
|
653
|
+
# command.
|
|
650
654
|
# @return [String]
|
|
651
655
|
#
|
|
652
656
|
# @!attribute [rw] stderr
|
|
653
|
-
#
|
|
657
|
+
# The standard error content from the command execution. This field
|
|
658
|
+
# contains the incremental output written to stderr by the executing
|
|
659
|
+
# command.
|
|
654
660
|
# @return [String]
|
|
655
661
|
#
|
|
656
662
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ContentDeltaEvent AWS API Documentation
|
|
@@ -662,20 +668,27 @@ module Aws::BedrockAgentCore
|
|
|
662
668
|
include Aws::Structure
|
|
663
669
|
end
|
|
664
670
|
|
|
665
|
-
#
|
|
671
|
+
# An event that signals the start of content streaming from a command
|
|
672
|
+
# execution. This event is sent when the command begins producing
|
|
673
|
+
# output.
|
|
666
674
|
#
|
|
667
675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ContentStartEvent AWS API Documentation
|
|
668
676
|
#
|
|
669
677
|
class ContentStartEvent < Aws::EmptyStructure; end
|
|
670
678
|
|
|
671
|
-
#
|
|
679
|
+
# An event that signals the completion of a command execution. This
|
|
680
|
+
# event contains the final status and exit code of the executed command.
|
|
672
681
|
#
|
|
673
682
|
# @!attribute [rw] exit_code
|
|
674
|
-
#
|
|
683
|
+
# The exit code returned by the executed command. An exit code of 0
|
|
684
|
+
# indicates successful execution, -1 indicates a platform error, and
|
|
685
|
+
# values greater than 0 indicate command-specific errors.
|
|
675
686
|
# @return [Integer]
|
|
676
687
|
#
|
|
677
688
|
# @!attribute [rw] status
|
|
678
|
-
#
|
|
689
|
+
# The final status of the command execution. Valid values are
|
|
690
|
+
# `COMPLETED` for successful completion or `TIMED_OUT` if the command
|
|
691
|
+
# exceeded the specified timeout.
|
|
679
692
|
# @return [String]
|
|
680
693
|
#
|
|
681
694
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ContentStopEvent AWS API Documentation
|
|
@@ -691,6 +704,8 @@ module Aws::BedrockAgentCore
|
|
|
691
704
|
# span context details that identify the specific traces and sessions
|
|
692
705
|
# being evaluated within the agent's execution flow.
|
|
693
706
|
#
|
|
707
|
+
# @note Context is a union - when making an API calls you must set exactly one of the members.
|
|
708
|
+
#
|
|
694
709
|
# @note Context is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Context corresponding to the set member.
|
|
695
710
|
#
|
|
696
711
|
# @!attribute [rw] span_context
|
|
@@ -909,13 +924,23 @@ module Aws::BedrockAgentCore
|
|
|
909
924
|
# conversation sessions.
|
|
910
925
|
# @return [Types::EvaluationTarget]
|
|
911
926
|
#
|
|
927
|
+
# @!attribute [rw] evaluation_reference_inputs
|
|
928
|
+
# Ground truth data to compare against agent responses during
|
|
929
|
+
# evaluation. Allows to provide expected responses, assertions, and
|
|
930
|
+
# expected tool trajectories at different evaluation levels.
|
|
931
|
+
# Session-level reference inputs apply to the entire conversation,
|
|
932
|
+
# while trace-level reference inputs target specific request-response
|
|
933
|
+
# interactions identified by trace ID.
|
|
934
|
+
# @return [Array<Types::EvaluationReferenceInput>]
|
|
935
|
+
#
|
|
912
936
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/EvaluateRequest AWS API Documentation
|
|
913
937
|
#
|
|
914
938
|
class EvaluateRequest < Struct.new(
|
|
915
939
|
:evaluator_id,
|
|
916
940
|
:evaluation_input,
|
|
917
|
-
:evaluation_target
|
|
918
|
-
|
|
941
|
+
:evaluation_target,
|
|
942
|
+
:evaluation_reference_inputs)
|
|
943
|
+
SENSITIVE = [:evaluation_reference_inputs]
|
|
919
944
|
include Aws::Structure
|
|
920
945
|
end
|
|
921
946
|
|
|
@@ -934,6 +959,43 @@ module Aws::BedrockAgentCore
|
|
|
934
959
|
include Aws::Structure
|
|
935
960
|
end
|
|
936
961
|
|
|
962
|
+
# A content block for ground truth data in evaluation reference inputs.
|
|
963
|
+
# Supports text content for expected responses and assertions.
|
|
964
|
+
#
|
|
965
|
+
# @note EvaluationContent is a union - when making an API calls you must set exactly one of the members.
|
|
966
|
+
#
|
|
967
|
+
# @!attribute [rw] text
|
|
968
|
+
# The text content of the ground truth data. Used for expected
|
|
969
|
+
# response text and assertion statements.
|
|
970
|
+
# @return [String]
|
|
971
|
+
#
|
|
972
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/EvaluationContent AWS API Documentation
|
|
973
|
+
#
|
|
974
|
+
class EvaluationContent < Struct.new(
|
|
975
|
+
:text,
|
|
976
|
+
:unknown)
|
|
977
|
+
SENSITIVE = []
|
|
978
|
+
include Aws::Structure
|
|
979
|
+
include Aws::Structure::Union
|
|
980
|
+
|
|
981
|
+
class Text < EvaluationContent; end
|
|
982
|
+
class Unknown < EvaluationContent; end
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
# The expected tool call trajectory for trajectory-based evaluation.
|
|
986
|
+
#
|
|
987
|
+
# @!attribute [rw] tool_names
|
|
988
|
+
# The list of tool names representing the expected tool call sequence.
|
|
989
|
+
# @return [Array<String>]
|
|
990
|
+
#
|
|
991
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/EvaluationExpectedTrajectory AWS API Documentation
|
|
992
|
+
#
|
|
993
|
+
class EvaluationExpectedTrajectory < Struct.new(
|
|
994
|
+
:tool_names)
|
|
995
|
+
SENSITIVE = []
|
|
996
|
+
include Aws::Structure
|
|
997
|
+
end
|
|
998
|
+
|
|
937
999
|
# The input data structure containing agent session spans in
|
|
938
1000
|
# OpenTelemetry format. Supports traces from frameworks like Strands
|
|
939
1001
|
# (AgentCore Runtime) and LangGraph with OpenInference instrumentation
|
|
@@ -961,6 +1023,47 @@ module Aws::BedrockAgentCore
|
|
|
961
1023
|
class Unknown < EvaluationInput; end
|
|
962
1024
|
end
|
|
963
1025
|
|
|
1026
|
+
# A reference input containing ground truth data for evaluation, scoped
|
|
1027
|
+
# to a specific context level (session or trace) through its span
|
|
1028
|
+
# context.
|
|
1029
|
+
#
|
|
1030
|
+
# @!attribute [rw] context
|
|
1031
|
+
# The contextual information associated with an evaluation, including
|
|
1032
|
+
# span context details that identify the specific traces and sessions
|
|
1033
|
+
# being evaluated within the agent's execution flow.
|
|
1034
|
+
# @return [Types::Context]
|
|
1035
|
+
#
|
|
1036
|
+
# @!attribute [rw] expected_response
|
|
1037
|
+
# The expected response for trace-level evaluation. Built-in
|
|
1038
|
+
# evaluators that support this field compare the agent's actual
|
|
1039
|
+
# response against this value for assessment. Custom evaluators can
|
|
1040
|
+
# access it through the `{expected_response}` placeholder in their
|
|
1041
|
+
# instructions.
|
|
1042
|
+
# @return [Types::EvaluationContent]
|
|
1043
|
+
#
|
|
1044
|
+
# @!attribute [rw] assertions
|
|
1045
|
+
# A list of assertion statements for session-level evaluation. Each
|
|
1046
|
+
# assertion describes an expected behavior or outcome the agent should
|
|
1047
|
+
# demonstrate during the session.
|
|
1048
|
+
# @return [Array<Types::EvaluationContent>]
|
|
1049
|
+
#
|
|
1050
|
+
# @!attribute [rw] expected_trajectory
|
|
1051
|
+
# The expected tool call sequence for session-level trajectory
|
|
1052
|
+
# evaluation. Contains a list of tool names representing the tools the
|
|
1053
|
+
# agent is expected to invoke.
|
|
1054
|
+
# @return [Types::EvaluationExpectedTrajectory]
|
|
1055
|
+
#
|
|
1056
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/EvaluationReferenceInput AWS API Documentation
|
|
1057
|
+
#
|
|
1058
|
+
class EvaluationReferenceInput < Struct.new(
|
|
1059
|
+
:context,
|
|
1060
|
+
:expected_response,
|
|
1061
|
+
:assertions,
|
|
1062
|
+
:expected_trajectory)
|
|
1063
|
+
SENSITIVE = []
|
|
1064
|
+
include Aws::Structure
|
|
1065
|
+
end
|
|
1066
|
+
|
|
964
1067
|
# The comprehensive result of an evaluation containing the score,
|
|
965
1068
|
# explanation, evaluator metadata, and execution details. Provides both
|
|
966
1069
|
# quantitative ratings and qualitative insights about agent performance.
|
|
@@ -1034,6 +1137,12 @@ module Aws::BedrockAgentCore
|
|
|
1034
1137
|
# categories of evaluation errors.
|
|
1035
1138
|
# @return [String]
|
|
1036
1139
|
#
|
|
1140
|
+
# @!attribute [rw] ignored_reference_input_fields
|
|
1141
|
+
# The list of reference input field names that were provided but not
|
|
1142
|
+
# used by the evaluator. Helps identify which ground truth data was
|
|
1143
|
+
# not consumed during evaluation.
|
|
1144
|
+
# @return [Array<String>]
|
|
1145
|
+
#
|
|
1037
1146
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/EvaluationResultContent AWS API Documentation
|
|
1038
1147
|
#
|
|
1039
1148
|
class EvaluationResultContent < Struct.new(
|
|
@@ -1046,7 +1155,8 @@ module Aws::BedrockAgentCore
|
|
|
1046
1155
|
:label,
|
|
1047
1156
|
:token_usage,
|
|
1048
1157
|
:error_message,
|
|
1049
|
-
:error_code
|
|
1158
|
+
:error_code,
|
|
1159
|
+
:ignored_reference_input_fields)
|
|
1050
1160
|
SENSITIVE = [:explanation]
|
|
1051
1161
|
include Aws::Structure
|
|
1052
1162
|
end
|
|
@@ -1892,7 +2002,7 @@ module Aws::BedrockAgentCore
|
|
|
1892
2002
|
include Aws::Structure
|
|
1893
2003
|
end
|
|
1894
2004
|
|
|
1895
|
-
# Request for InvokeAgentRuntimeCommand operation
|
|
2005
|
+
# Request for InvokeAgentRuntimeCommand operation.
|
|
1896
2006
|
#
|
|
1897
2007
|
# @!attribute [rw] content_type
|
|
1898
2008
|
# The MIME type of the input data in the request payload. This tells
|
|
@@ -1907,7 +2017,9 @@ module Aws::BedrockAgentCore
|
|
|
1907
2017
|
# @return [String]
|
|
1908
2018
|
#
|
|
1909
2019
|
# @!attribute [rw] runtime_session_id
|
|
1910
|
-
#
|
|
2020
|
+
# The unique identifier of the runtime session in which to execute the
|
|
2021
|
+
# command. This session ID is used to maintain state and context
|
|
2022
|
+
# across multiple command invocations.
|
|
1911
2023
|
#
|
|
1912
2024
|
# **A suitable default value is auto-generated.** You should normally
|
|
1913
2025
|
# not need to pass this option.
|
|
@@ -1930,19 +2042,26 @@ module Aws::BedrockAgentCore
|
|
|
1930
2042
|
# @return [String]
|
|
1931
2043
|
#
|
|
1932
2044
|
# @!attribute [rw] agent_runtime_arn
|
|
1933
|
-
# ARN of the agent runtime
|
|
2045
|
+
# The Amazon Resource Name (ARN) of the agent runtime on which to
|
|
2046
|
+
# execute the command. This identifies the specific agent runtime
|
|
2047
|
+
# environment where the command will run.
|
|
1934
2048
|
# @return [String]
|
|
1935
2049
|
#
|
|
1936
2050
|
# @!attribute [rw] qualifier
|
|
1937
|
-
#
|
|
2051
|
+
# The qualifier to use for the agent runtime. This is an endpoint name
|
|
2052
|
+
# that points to a specific version. If not specified, Amazon Bedrock
|
|
2053
|
+
# AgentCore uses the default endpoint of the agent runtime.
|
|
1938
2054
|
# @return [String]
|
|
1939
2055
|
#
|
|
1940
2056
|
# @!attribute [rw] account_id
|
|
1941
|
-
#
|
|
2057
|
+
# The identifier of the Amazon Web Services account for the agent
|
|
2058
|
+
# runtime resource. This parameter is required when you specify an
|
|
2059
|
+
# agent ID instead of the full ARN for `agentRuntimeArn`.
|
|
1942
2060
|
# @return [String]
|
|
1943
2061
|
#
|
|
1944
2062
|
# @!attribute [rw] body
|
|
1945
|
-
#
|
|
2063
|
+
# The request body containing the command to execute and optional
|
|
2064
|
+
# configuration parameters such as timeout settings.
|
|
1946
2065
|
# @return [Types::InvokeAgentRuntimeCommandRequestBody]
|
|
1947
2066
|
#
|
|
1948
2067
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeAgentRuntimeCommandRequest AWS API Documentation
|
|
@@ -1963,14 +2082,21 @@ module Aws::BedrockAgentCore
|
|
|
1963
2082
|
include Aws::Structure
|
|
1964
2083
|
end
|
|
1965
2084
|
|
|
1966
|
-
#
|
|
2085
|
+
# The request body structure for the `InvokeAgentRuntimeCommand`
|
|
2086
|
+
# operation, containing the command to execute and optional
|
|
2087
|
+
# configuration parameters.
|
|
1967
2088
|
#
|
|
1968
2089
|
# @!attribute [rw] command
|
|
1969
|
-
# The command to execute
|
|
2090
|
+
# The shell command to execute on the agent runtime. This command is
|
|
2091
|
+
# executed in the runtime environment and its output is streamed back
|
|
2092
|
+
# to the caller.
|
|
1970
2093
|
# @return [String]
|
|
1971
2094
|
#
|
|
1972
2095
|
# @!attribute [rw] timeout
|
|
1973
|
-
#
|
|
2096
|
+
# The maximum duration in seconds to wait for the command to complete.
|
|
2097
|
+
# If the command execution exceeds this timeout, it will be
|
|
2098
|
+
# terminated. Default is 300 seconds. Minimum is 1 second. Maximum is
|
|
2099
|
+
# 3600 seconds.
|
|
1974
2100
|
# @return [Integer]
|
|
1975
2101
|
#
|
|
1976
2102
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeAgentRuntimeCommandRequestBody AWS API Documentation
|
|
@@ -1982,10 +2108,11 @@ module Aws::BedrockAgentCore
|
|
|
1982
2108
|
include Aws::Structure
|
|
1983
2109
|
end
|
|
1984
2110
|
|
|
1985
|
-
# Response for InvokeAgentRuntimeCommand operation
|
|
2111
|
+
# Response for InvokeAgentRuntimeCommand operation.
|
|
1986
2112
|
#
|
|
1987
2113
|
# @!attribute [rw] runtime_session_id
|
|
1988
|
-
#
|
|
2114
|
+
# The unique identifier of the runtime session in which the command
|
|
2115
|
+
# was executed.
|
|
1989
2116
|
# @return [String]
|
|
1990
2117
|
#
|
|
1991
2118
|
# @!attribute [rw] trace_id
|
|
@@ -2017,7 +2144,9 @@ module Aws::BedrockAgentCore
|
|
|
2017
2144
|
# @return [Integer]
|
|
2018
2145
|
#
|
|
2019
2146
|
# @!attribute [rw] stream
|
|
2020
|
-
#
|
|
2147
|
+
# The streaming output from the command execution. This stream
|
|
2148
|
+
# contains events that provide real-time updates including standard
|
|
2149
|
+
# output, standard error, and completion status.
|
|
2021
2150
|
# @return [Types::InvokeAgentRuntimeCommandStreamOutput]
|
|
2022
2151
|
#
|
|
2023
2152
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeAgentRuntimeCommandResponse AWS API Documentation
|
|
@@ -3175,19 +3304,24 @@ module Aws::BedrockAgentCore
|
|
|
3175
3304
|
include Aws::Structure
|
|
3176
3305
|
end
|
|
3177
3306
|
|
|
3178
|
-
#
|
|
3179
|
-
# or
|
|
3307
|
+
# A structure representing a response chunk that contains exactly one of
|
|
3308
|
+
# the possible event types: `contentStart`, `contentDelta`, or
|
|
3309
|
+
# `contentStop`.
|
|
3180
3310
|
#
|
|
3181
3311
|
# @!attribute [rw] content_start
|
|
3182
|
-
#
|
|
3312
|
+
# An event indicating the start of content streaming from the command
|
|
3313
|
+
# execution. This is the first chunk received.
|
|
3183
3314
|
# @return [Types::ContentStartEvent]
|
|
3184
3315
|
#
|
|
3185
3316
|
# @!attribute [rw] content_delta
|
|
3186
|
-
#
|
|
3317
|
+
# An event containing incremental output (stdout or stderr) from the
|
|
3318
|
+
# command execution. These are the middle chunks.
|
|
3187
3319
|
# @return [Types::ContentDeltaEvent]
|
|
3188
3320
|
#
|
|
3189
3321
|
# @!attribute [rw] content_stop
|
|
3190
|
-
#
|
|
3322
|
+
# An event indicating the completion of the command execution,
|
|
3323
|
+
# including the exit code and final status. This is the last chunk
|
|
3324
|
+
# received.
|
|
3191
3325
|
# @return [Types::ContentStopEvent]
|
|
3192
3326
|
#
|
|
3193
3327
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ResponseChunk AWS API Documentation
|
|
@@ -4356,9 +4490,9 @@ module Aws::BedrockAgentCore
|
|
|
4356
4490
|
|
|
4357
4491
|
end
|
|
4358
4492
|
|
|
4359
|
-
#
|
|
4360
|
-
# typed events: contentStart (first),
|
|
4361
|
-
# (last)
|
|
4493
|
+
# The streaming output union for the `InvokeAgentRuntimeCommand`
|
|
4494
|
+
# operation. This union delivers typed events: `contentStart` (first),
|
|
4495
|
+
# `contentDelta` (middle), and `contentStop` (last).
|
|
4362
4496
|
#
|
|
4363
4497
|
# EventStream is an Enumerator of Events.
|
|
4364
4498
|
# #event_types #=> Array, returns all modeled event types in the stream
|
data/sig/client.rbs
CHANGED
|
@@ -228,7 +228,29 @@ module Aws
|
|
|
228
228
|
?evaluation_target: {
|
|
229
229
|
span_ids: Array[::String]?,
|
|
230
230
|
trace_ids: Array[::String]?
|
|
231
|
-
}
|
|
231
|
+
},
|
|
232
|
+
?evaluation_reference_inputs: Array[
|
|
233
|
+
{
|
|
234
|
+
context: {
|
|
235
|
+
span_context: {
|
|
236
|
+
session_id: ::String,
|
|
237
|
+
trace_id: ::String?,
|
|
238
|
+
span_id: ::String?
|
|
239
|
+
}?
|
|
240
|
+
},
|
|
241
|
+
expected_response: {
|
|
242
|
+
text: ::String?
|
|
243
|
+
}?,
|
|
244
|
+
assertions: Array[
|
|
245
|
+
{
|
|
246
|
+
text: ::String?
|
|
247
|
+
},
|
|
248
|
+
]?,
|
|
249
|
+
expected_trajectory: {
|
|
250
|
+
tool_names: Array[::String]?
|
|
251
|
+
}?
|
|
252
|
+
},
|
|
253
|
+
]
|
|
232
254
|
) -> _EvaluateResponseSuccess
|
|
233
255
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EvaluateResponseSuccess
|
|
234
256
|
|
data/sig/types.rbs
CHANGED
|
@@ -271,7 +271,8 @@ module Aws::BedrockAgentCore
|
|
|
271
271
|
attr_accessor evaluator_id: ::String
|
|
272
272
|
attr_accessor evaluation_input: Types::EvaluationInput
|
|
273
273
|
attr_accessor evaluation_target: Types::EvaluationTarget
|
|
274
|
-
|
|
274
|
+
attr_accessor evaluation_reference_inputs: ::Array[Types::EvaluationReferenceInput]
|
|
275
|
+
SENSITIVE: [:evaluation_reference_inputs]
|
|
275
276
|
end
|
|
276
277
|
|
|
277
278
|
class EvaluateResponse
|
|
@@ -279,6 +280,22 @@ module Aws::BedrockAgentCore
|
|
|
279
280
|
SENSITIVE: []
|
|
280
281
|
end
|
|
281
282
|
|
|
283
|
+
class EvaluationContent
|
|
284
|
+
attr_accessor text: ::String
|
|
285
|
+
attr_accessor unknown: untyped
|
|
286
|
+
SENSITIVE: []
|
|
287
|
+
|
|
288
|
+
class Text < EvaluationContent
|
|
289
|
+
end
|
|
290
|
+
class Unknown < EvaluationContent
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
class EvaluationExpectedTrajectory
|
|
295
|
+
attr_accessor tool_names: ::Array[::String]
|
|
296
|
+
SENSITIVE: []
|
|
297
|
+
end
|
|
298
|
+
|
|
282
299
|
class EvaluationInput
|
|
283
300
|
attr_accessor session_spans: ::Array[untyped]
|
|
284
301
|
attr_accessor unknown: untyped
|
|
@@ -290,6 +307,14 @@ module Aws::BedrockAgentCore
|
|
|
290
307
|
end
|
|
291
308
|
end
|
|
292
309
|
|
|
310
|
+
class EvaluationReferenceInput
|
|
311
|
+
attr_accessor context: Types::Context
|
|
312
|
+
attr_accessor expected_response: Types::EvaluationContent
|
|
313
|
+
attr_accessor assertions: ::Array[Types::EvaluationContent]
|
|
314
|
+
attr_accessor expected_trajectory: Types::EvaluationExpectedTrajectory
|
|
315
|
+
SENSITIVE: []
|
|
316
|
+
end
|
|
317
|
+
|
|
293
318
|
class EvaluationResultContent
|
|
294
319
|
attr_accessor evaluator_arn: ::String
|
|
295
320
|
attr_accessor evaluator_id: ::String
|
|
@@ -301,6 +326,7 @@ module Aws::BedrockAgentCore
|
|
|
301
326
|
attr_accessor token_usage: Types::TokenUsage
|
|
302
327
|
attr_accessor error_message: ::String
|
|
303
328
|
attr_accessor error_code: ::String
|
|
329
|
+
attr_accessor ignored_reference_input_fields: ::Array[::String]
|
|
304
330
|
SENSITIVE: [:explanation]
|
|
305
331
|
end
|
|
306
332
|
|