aws-sdk-bedrockagentcore 1.55.0 → 1.57.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentcore/client.rb +30 -3
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +28 -0
- data/lib/aws-sdk-bedrockagentcore/event_streams.rb +5 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +75 -3
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +8 -1
- data/sig/types.rbs +21 -3
- 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: 80eb8990a20e048a41ab853f5401b2b5f32d60f73c14c83676cdb308b21ca3f6
|
|
4
|
+
data.tar.gz: 36ff647c6656782b24e3f1f311d1b6a486e3e121debb20b384f418c08b5a390d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71bc461035b22c6181e84c8c721a7727f7c04aeec8c260ed445aeb93572a51cc0e60ae08ca3e0aa0f89cb901df3500f5934b5cf7a372fcfb798598a31fb6d1a5
|
|
7
|
+
data.tar.gz: 6c307e07d2804570e8ed7c969466d2572d8d51b388d1c3b8272c6d9f73c9dfbaca408a2bf68c9fdbfe6d21fb306b48f16ec65cb91d5883a4da1532d7cef17ed8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.57.0 (2026-09-21)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Bedrock AgentCore Harness now supports lifecycle hooks for invocations and tool calls, with Lambda, SNS, and EventBridge targets. This release also adds apiBase for custom OpenAI-compatible endpoints.
|
|
8
|
+
|
|
9
|
+
1.56.0 (2026-09-17)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Batch evaluation now supports evaluating specific traces within a session. Each session can specify up to 100 trace IDs to evaluate.
|
|
13
|
+
|
|
4
14
|
1.55.0 (2026-09-11)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.57.0
|
|
@@ -1753,6 +1753,10 @@ module Aws::BedrockAgentCore
|
|
|
1753
1753
|
# resp.data_source_config.cloud_watch_logs.filter_config.session_ids[0] #=> String
|
|
1754
1754
|
# resp.data_source_config.cloud_watch_logs.filter_config.time_range.start_time #=> Time
|
|
1755
1755
|
# resp.data_source_config.cloud_watch_logs.filter_config.time_range.end_time #=> Time
|
|
1756
|
+
# resp.data_source_config.cloud_watch_logs.filter_config.session_trace_ids #=> Array
|
|
1757
|
+
# resp.data_source_config.cloud_watch_logs.filter_config.session_trace_ids[0].session_id #=> String
|
|
1758
|
+
# resp.data_source_config.cloud_watch_logs.filter_config.session_trace_ids[0].trace_ids #=> Array
|
|
1759
|
+
# resp.data_source_config.cloud_watch_logs.filter_config.session_trace_ids[0].trace_ids[0] #=> String
|
|
1756
1760
|
# resp.data_source_config.online_evaluation_config_source.online_evaluation_config_arn #=> String
|
|
1757
1761
|
# resp.data_source_config.online_evaluation_config_source.time_range.start_time #=> Time
|
|
1758
1762
|
# resp.data_source_config.online_evaluation_config_source.time_range.end_time #=> Time
|
|
@@ -3847,6 +3851,9 @@ module Aws::BedrockAgentCore
|
|
|
3847
3851
|
# handler.on_runtime_client_error_event do |event|
|
|
3848
3852
|
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
3849
3853
|
# end
|
|
3854
|
+
# handler.on_hook_event_event do |event|
|
|
3855
|
+
# event # => Aws::BedrockAgentCore::Types::hookEvent
|
|
3856
|
+
# end
|
|
3850
3857
|
#
|
|
3851
3858
|
# client.invoke_harness(
|
|
3852
3859
|
# # params inputs
|
|
@@ -3883,6 +3890,9 @@ module Aws::BedrockAgentCore
|
|
|
3883
3890
|
# stream.on_runtime_client_error_event do |event|
|
|
3884
3891
|
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
3885
3892
|
# end
|
|
3893
|
+
# stream.on_hook_event_event do |event|
|
|
3894
|
+
# event # => Aws::BedrockAgentCore::Types::hookEvent
|
|
3895
|
+
# end
|
|
3886
3896
|
# end
|
|
3887
3897
|
#
|
|
3888
3898
|
# client.invoke_harness(
|
|
@@ -3919,6 +3929,9 @@ module Aws::BedrockAgentCore
|
|
|
3919
3929
|
# handler.on_runtime_client_error_event do |event|
|
|
3920
3930
|
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
3921
3931
|
# end
|
|
3932
|
+
# handler.on_hook_event_event do |event|
|
|
3933
|
+
# event # => Aws::BedrockAgentCore::Types::hookEvent
|
|
3934
|
+
# end
|
|
3922
3935
|
#
|
|
3923
3936
|
# client.invoke_harness(
|
|
3924
3937
|
# # params input
|
|
@@ -4000,6 +4013,7 @@ module Aws::BedrockAgentCore
|
|
|
4000
4013
|
# open_ai_model_config: {
|
|
4001
4014
|
# model_id: "ModelId", # required
|
|
4002
4015
|
# api_key_arn: "ApiKeyArn", # required
|
|
4016
|
+
# api_base: "HarnessOpenAiApiBase",
|
|
4003
4017
|
# max_tokens: 1,
|
|
4004
4018
|
# temperature: 1.0,
|
|
4005
4019
|
# top_p: 1.0,
|
|
@@ -4106,7 +4120,7 @@ module Aws::BedrockAgentCore
|
|
|
4106
4120
|
#
|
|
4107
4121
|
# # All events are available at resp.stream:
|
|
4108
4122
|
# resp.stream #=> Enumerator
|
|
4109
|
-
# resp.stream.event_types #=> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :validation_exception, :runtime_client_error]
|
|
4123
|
+
# resp.stream.event_types #=> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :validation_exception, :runtime_client_error, :hook_event]
|
|
4110
4124
|
#
|
|
4111
4125
|
# # For :message_start event available at #on_message_start_event callback and response eventstream enumerator:
|
|
4112
4126
|
# event.role #=> String, one of "user", "assistant"
|
|
@@ -4135,7 +4149,7 @@ module Aws::BedrockAgentCore
|
|
|
4135
4149
|
# event.content_block_index #=> Integer
|
|
4136
4150
|
#
|
|
4137
4151
|
# # For :message_stop event available at #on_message_stop_event callback and response eventstream enumerator:
|
|
4138
|
-
# event.stop_reason #=> String, one of "end_turn", "tool_use", "tool_result", "max_tokens", "stop_sequence", "content_filtered", "malformed_model_output", "malformed_tool_use", "interrupted", "partial_turn", "model_context_window_exceeded", "max_iterations_exceeded", "max_output_tokens_exceeded", "timeout_exceeded"
|
|
4152
|
+
# event.stop_reason #=> String, one of "end_turn", "tool_use", "tool_result", "max_tokens", "stop_sequence", "content_filtered", "malformed_model_output", "malformed_tool_use", "interrupted", "partial_turn", "model_context_window_exceeded", "max_iterations_exceeded", "max_output_tokens_exceeded", "timeout_exceeded", "hook_stopped"
|
|
4139
4153
|
#
|
|
4140
4154
|
# # For :metadata event available at #on_metadata_event callback and response eventstream enumerator:
|
|
4141
4155
|
# event.usage.input_tokens #=> Integer
|
|
@@ -4158,6 +4172,13 @@ module Aws::BedrockAgentCore
|
|
|
4158
4172
|
# # For :runtime_client_error event available at #on_runtime_client_error_event callback and response eventstream enumerator:
|
|
4159
4173
|
# event.message #=> String
|
|
4160
4174
|
#
|
|
4175
|
+
# # For :hook_event event available at #on_hook_event_event callback and response eventstream enumerator:
|
|
4176
|
+
# event.hook_event_id #=> String
|
|
4177
|
+
# event.name #=> String
|
|
4178
|
+
# event.type #=> String, one of "before_tool_call", "after_tool_call", "before_invocation", "after_invocation"
|
|
4179
|
+
# event.decision #=> String, one of "allow", "deny"
|
|
4180
|
+
# event.reason #=> String
|
|
4181
|
+
#
|
|
4161
4182
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeHarness AWS API Documentation
|
|
4162
4183
|
#
|
|
4163
4184
|
# @overload invoke_harness(params = {})
|
|
@@ -5452,6 +5473,12 @@ module Aws::BedrockAgentCore
|
|
|
5452
5473
|
# start_time: Time.now,
|
|
5453
5474
|
# end_time: Time.now,
|
|
5454
5475
|
# },
|
|
5476
|
+
# session_trace_ids: [
|
|
5477
|
+
# {
|
|
5478
|
+
# session_id: "String", # required
|
|
5479
|
+
# trace_ids: ["TraceId"], # required
|
|
5480
|
+
# },
|
|
5481
|
+
# ],
|
|
5455
5482
|
# },
|
|
5456
5483
|
# },
|
|
5457
5484
|
# online_evaluation_config_source: {
|
|
@@ -6556,7 +6583,7 @@ module Aws::BedrockAgentCore
|
|
|
6556
6583
|
tracer: tracer
|
|
6557
6584
|
)
|
|
6558
6585
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
|
6559
|
-
context[:gem_version] = '1.
|
|
6586
|
+
context[:gem_version] = '1.57.0'
|
|
6560
6587
|
Seahorse::Client::Request.new(handlers, context)
|
|
6561
6588
|
end
|
|
6562
6589
|
|
|
@@ -315,6 +315,12 @@ module Aws::BedrockAgentCore
|
|
|
315
315
|
HarnessEndpointName = Shapes::StringShape.new(name: 'HarnessEndpointName')
|
|
316
316
|
HarnessGatewayOutboundAuth = Shapes::UnionShape.new(name: 'HarnessGatewayOutboundAuth')
|
|
317
317
|
HarnessGeminiModelConfig = Shapes::StructureShape.new(name: 'HarnessGeminiModelConfig')
|
|
318
|
+
HarnessHookDecision = Shapes::StringShape.new(name: 'HarnessHookDecision')
|
|
319
|
+
HarnessHookEvent = Shapes::StructureShape.new(name: 'HarnessHookEvent')
|
|
320
|
+
HarnessHookEventId = Shapes::StringShape.new(name: 'HarnessHookEventId')
|
|
321
|
+
HarnessHookEventReasonString = Shapes::StringShape.new(name: 'HarnessHookEventReasonString')
|
|
322
|
+
HarnessHookEventType = Shapes::StringShape.new(name: 'HarnessHookEventType')
|
|
323
|
+
HarnessHookName = Shapes::StringShape.new(name: 'HarnessHookName')
|
|
318
324
|
HarnessInlineFunctionConfig = Shapes::StructureShape.new(name: 'HarnessInlineFunctionConfig')
|
|
319
325
|
HarnessInlineFunctionDescription = Shapes::StringShape.new(name: 'HarnessInlineFunctionDescription')
|
|
320
326
|
HarnessLiteLlmApiBase = Shapes::StringShape.new(name: 'HarnessLiteLlmApiBase')
|
|
@@ -325,6 +331,7 @@ module Aws::BedrockAgentCore
|
|
|
325
331
|
HarnessMessages = Shapes::ListShape.new(name: 'HarnessMessages')
|
|
326
332
|
HarnessMetadataEvent = Shapes::StructureShape.new(name: 'HarnessMetadataEvent')
|
|
327
333
|
HarnessModelConfiguration = Shapes::UnionShape.new(name: 'HarnessModelConfiguration')
|
|
334
|
+
HarnessOpenAiApiBase = Shapes::StringShape.new(name: 'HarnessOpenAiApiBase')
|
|
328
335
|
HarnessOpenAiApiFormat = Shapes::StringShape.new(name: 'HarnessOpenAiApiFormat')
|
|
329
336
|
HarnessOpenAiModelConfig = Shapes::StructureShape.new(name: 'HarnessOpenAiModelConfig')
|
|
330
337
|
HarnessReasoningContentBlock = Shapes::UnionShape.new(name: 'HarnessReasoningContentBlock')
|
|
@@ -699,6 +706,8 @@ module Aws::BedrockAgentCore
|
|
|
699
706
|
SessionStatus = Shapes::StringShape.new(name: 'SessionStatus')
|
|
700
707
|
SessionSummary = Shapes::StructureShape.new(name: 'SessionSummary')
|
|
701
708
|
SessionSummaryList = Shapes::ListShape.new(name: 'SessionSummaryList')
|
|
709
|
+
SessionTraceIds = Shapes::StructureShape.new(name: 'SessionTraceIds')
|
|
710
|
+
SessionTraceIdsList = Shapes::ListShape.new(name: 'SessionTraceIdsList')
|
|
702
711
|
SessionType = Shapes::StringShape.new(name: 'SessionType')
|
|
703
712
|
SkillDefinition = Shapes::StructureShape.new(name: 'SkillDefinition')
|
|
704
713
|
SkillMdDefinition = Shapes::StructureShape.new(name: 'SkillMdDefinition')
|
|
@@ -794,6 +803,7 @@ module Aws::BedrockAgentCore
|
|
|
794
803
|
TopK = Shapes::IntegerShape.new(name: 'TopK')
|
|
795
804
|
TopP = Shapes::FloatShape.new(name: 'TopP')
|
|
796
805
|
TraceId = Shapes::StringShape.new(name: 'TraceId')
|
|
806
|
+
TraceIdList = Shapes::ListShape.new(name: 'TraceIdList')
|
|
797
807
|
TraceIds = Shapes::ListShape.new(name: 'TraceIds')
|
|
798
808
|
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
|
799
809
|
Unit = Shapes::StructureShape.new(name: 'Unit')
|
|
@@ -1049,6 +1059,7 @@ module Aws::BedrockAgentCore
|
|
|
1049
1059
|
|
|
1050
1060
|
CloudWatchFilterConfig.add_member(:session_ids, Shapes::ShapeRef.new(shape: CloudWatchFilterConfigSessionIdsList, location_name: "sessionIds"))
|
|
1051
1061
|
CloudWatchFilterConfig.add_member(:time_range, Shapes::ShapeRef.new(shape: SessionFilterConfig, location_name: "timeRange"))
|
|
1062
|
+
CloudWatchFilterConfig.add_member(:session_trace_ids, Shapes::ShapeRef.new(shape: SessionTraceIdsList, location_name: "sessionTraceIds"))
|
|
1052
1063
|
CloudWatchFilterConfig.struct_class = Types::CloudWatchFilterConfig
|
|
1053
1064
|
|
|
1054
1065
|
CloudWatchFilterConfigSessionIdsList.member = Shapes::ShapeRef.new(shape: String)
|
|
@@ -1901,6 +1912,13 @@ module Aws::BedrockAgentCore
|
|
|
1901
1912
|
HarnessGeminiModelConfig.add_member(:additional_params, Shapes::ShapeRef.new(shape: Document, location_name: "additionalParams"))
|
|
1902
1913
|
HarnessGeminiModelConfig.struct_class = Types::HarnessGeminiModelConfig
|
|
1903
1914
|
|
|
1915
|
+
HarnessHookEvent.add_member(:hook_event_id, Shapes::ShapeRef.new(shape: HarnessHookEventId, required: true, location_name: "hookEventId"))
|
|
1916
|
+
HarnessHookEvent.add_member(:name, Shapes::ShapeRef.new(shape: HarnessHookName, required: true, location_name: "name"))
|
|
1917
|
+
HarnessHookEvent.add_member(:type, Shapes::ShapeRef.new(shape: HarnessHookEventType, required: true, location_name: "type"))
|
|
1918
|
+
HarnessHookEvent.add_member(:decision, Shapes::ShapeRef.new(shape: HarnessHookDecision, location_name: "decision"))
|
|
1919
|
+
HarnessHookEvent.add_member(:reason, Shapes::ShapeRef.new(shape: HarnessHookEventReasonString, location_name: "reason"))
|
|
1920
|
+
HarnessHookEvent.struct_class = Types::HarnessHookEvent
|
|
1921
|
+
|
|
1904
1922
|
HarnessInlineFunctionConfig.add_member(:description, Shapes::ShapeRef.new(shape: HarnessInlineFunctionDescription, required: true, location_name: "description"))
|
|
1905
1923
|
HarnessInlineFunctionConfig.add_member(:input_schema, Shapes::ShapeRef.new(shape: SensitiveJson, required: true, location_name: "inputSchema"))
|
|
1906
1924
|
HarnessInlineFunctionConfig.struct_class = Types::HarnessInlineFunctionConfig
|
|
@@ -1944,6 +1962,7 @@ module Aws::BedrockAgentCore
|
|
|
1944
1962
|
|
|
1945
1963
|
HarnessOpenAiModelConfig.add_member(:model_id, Shapes::ShapeRef.new(shape: ModelId, required: true, location_name: "modelId"))
|
|
1946
1964
|
HarnessOpenAiModelConfig.add_member(:api_key_arn, Shapes::ShapeRef.new(shape: ApiKeyArn, required: true, location_name: "apiKeyArn"))
|
|
1965
|
+
HarnessOpenAiModelConfig.add_member(:api_base, Shapes::ShapeRef.new(shape: HarnessOpenAiApiBase, location_name: "apiBase"))
|
|
1947
1966
|
HarnessOpenAiModelConfig.add_member(:max_tokens, Shapes::ShapeRef.new(shape: MaxTokens, location_name: "maxTokens"))
|
|
1948
1967
|
HarnessOpenAiModelConfig.add_member(:temperature, Shapes::ShapeRef.new(shape: Temperature, location_name: "temperature"))
|
|
1949
1968
|
HarnessOpenAiModelConfig.add_member(:top_p, Shapes::ShapeRef.new(shape: TopP, location_name: "topP"))
|
|
@@ -2289,6 +2308,7 @@ module Aws::BedrockAgentCore
|
|
|
2289
2308
|
InvokeHarnessStreamOutput.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
|
|
2290
2309
|
InvokeHarnessStreamOutput.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
|
|
2291
2310
|
InvokeHarnessStreamOutput.add_member(:runtime_client_error, Shapes::ShapeRef.new(shape: RuntimeClientError, location_name: "runtimeClientError"))
|
|
2311
|
+
InvokeHarnessStreamOutput.add_member(:hook_event, Shapes::ShapeRef.new(shape: HarnessHookEvent, event: true, location_name: "hookEvent"))
|
|
2292
2312
|
InvokeHarnessStreamOutput.struct_class = Types::InvokeHarnessStreamOutput
|
|
2293
2313
|
|
|
2294
2314
|
KeyList.member = Shapes::ShapeRef.new(shape: String)
|
|
@@ -3034,6 +3054,12 @@ module Aws::BedrockAgentCore
|
|
|
3034
3054
|
|
|
3035
3055
|
SessionSummaryList.member = Shapes::ShapeRef.new(shape: SessionSummary)
|
|
3036
3056
|
|
|
3057
|
+
SessionTraceIds.add_member(:session_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "sessionId"))
|
|
3058
|
+
SessionTraceIds.add_member(:trace_ids, Shapes::ShapeRef.new(shape: TraceIdList, required: true, location_name: "traceIds"))
|
|
3059
|
+
SessionTraceIds.struct_class = Types::SessionTraceIds
|
|
3060
|
+
|
|
3061
|
+
SessionTraceIdsList.member = Shapes::ShapeRef.new(shape: SessionTraceIds)
|
|
3062
|
+
|
|
3037
3063
|
SkillDefinition.add_member(:schema_version, Shapes::ShapeRef.new(shape: SchemaVersion, location_name: "schemaVersion"))
|
|
3038
3064
|
SkillDefinition.add_member(:inline_content, Shapes::ShapeRef.new(shape: InlineContent, location_name: "inlineContent"))
|
|
3039
3065
|
SkillDefinition.struct_class = Types::SkillDefinition
|
|
@@ -3346,6 +3372,8 @@ module Aws::BedrockAgentCore
|
|
|
3346
3372
|
|
|
3347
3373
|
ToolsFileSystemConfigurations.member = Shapes::ShapeRef.new(shape: ToolsFileSystemConfiguration)
|
|
3348
3374
|
|
|
3375
|
+
TraceIdList.member = Shapes::ShapeRef.new(shape: TraceId)
|
|
3376
|
+
|
|
3349
3377
|
TraceIds.member = Shapes::ShapeRef.new(shape: TraceId)
|
|
3350
3378
|
|
|
3351
3379
|
UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
@@ -189,6 +189,10 @@ module Aws::BedrockAgentCore
|
|
|
189
189
|
@event_emitter.on(:runtime_client_error, block) if block_given?
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
+
def on_hook_event_event(&block)
|
|
193
|
+
@event_emitter.on(:hook_event, block) if block_given?
|
|
194
|
+
end
|
|
195
|
+
|
|
192
196
|
def on_error_event(&block)
|
|
193
197
|
@event_emitter.on(:error, block) if block_given?
|
|
194
198
|
end
|
|
@@ -211,6 +215,7 @@ module Aws::BedrockAgentCore
|
|
|
211
215
|
on_internal_server_exception_event(&block)
|
|
212
216
|
on_validation_exception_event(&block)
|
|
213
217
|
on_runtime_client_error_event(&block)
|
|
218
|
+
on_hook_event_event(&block)
|
|
214
219
|
on_error_event(&block)
|
|
215
220
|
on_initial_response_event(&block)
|
|
216
221
|
on_unknown_event(&block)
|
|
@@ -940,11 +940,18 @@ module Aws::BedrockAgentCore
|
|
|
940
940
|
# The time range filter for selecting sessions to evaluate.
|
|
941
941
|
# @return [Types::SessionFilterConfig]
|
|
942
942
|
#
|
|
943
|
+
# @!attribute [rw] session_trace_ids
|
|
944
|
+
# A list of session and trace ID pairs that restrict evaluation to
|
|
945
|
+
# specific traces within a session. If specified, only the listed
|
|
946
|
+
# traces are evaluated instead of the entire session.
|
|
947
|
+
# @return [Array<Types::SessionTraceIds>]
|
|
948
|
+
#
|
|
943
949
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/CloudWatchFilterConfig AWS API Documentation
|
|
944
950
|
#
|
|
945
951
|
class CloudWatchFilterConfig < Struct.new(
|
|
946
952
|
:session_ids,
|
|
947
|
-
:time_range
|
|
953
|
+
:time_range,
|
|
954
|
+
:session_trace_ids)
|
|
948
955
|
SENSITIVE = []
|
|
949
956
|
include Aws::Structure
|
|
950
957
|
end
|
|
@@ -4761,6 +4768,43 @@ module Aws::BedrockAgentCore
|
|
|
4761
4768
|
include Aws::Structure
|
|
4762
4769
|
end
|
|
4763
4770
|
|
|
4771
|
+
# A lifecycle hook event emitted in the invocation stream for visibility
|
|
4772
|
+
# into hook decisions.
|
|
4773
|
+
#
|
|
4774
|
+
# @!attribute [rw] hook_event_id
|
|
4775
|
+
# The unique identifier for this hook event.
|
|
4776
|
+
# @return [String]
|
|
4777
|
+
#
|
|
4778
|
+
# @!attribute [rw] name
|
|
4779
|
+
# The name of the hook that ran.
|
|
4780
|
+
# @return [String]
|
|
4781
|
+
#
|
|
4782
|
+
# @!attribute [rw] type
|
|
4783
|
+
# The type of lifecycle hook event.
|
|
4784
|
+
# @return [String]
|
|
4785
|
+
#
|
|
4786
|
+
# @!attribute [rw] decision
|
|
4787
|
+
# The decision applied to the hook event. This field is present only
|
|
4788
|
+
# for blocking Lambda targets.
|
|
4789
|
+
# @return [String]
|
|
4790
|
+
#
|
|
4791
|
+
# @!attribute [rw] reason
|
|
4792
|
+
# The optional reason for the applied decision.
|
|
4793
|
+
# @return [String]
|
|
4794
|
+
#
|
|
4795
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/HarnessHookEvent AWS API Documentation
|
|
4796
|
+
#
|
|
4797
|
+
class HarnessHookEvent < Struct.new(
|
|
4798
|
+
:hook_event_id,
|
|
4799
|
+
:name,
|
|
4800
|
+
:type,
|
|
4801
|
+
:decision,
|
|
4802
|
+
:reason,
|
|
4803
|
+
:event_type)
|
|
4804
|
+
SENSITIVE = []
|
|
4805
|
+
include Aws::Structure
|
|
4806
|
+
end
|
|
4807
|
+
|
|
4764
4808
|
# Configuration for an inline function tool. When the agent calls this
|
|
4765
4809
|
# tool, the tool call is returned to the caller for external execution.
|
|
4766
4810
|
#
|
|
@@ -4949,6 +4993,10 @@ module Aws::BedrockAgentCore
|
|
|
4949
4993
|
# The ARN of your OpenAI API key on AgentCore Identity.
|
|
4950
4994
|
# @return [String]
|
|
4951
4995
|
#
|
|
4996
|
+
# @!attribute [rw] api_base
|
|
4997
|
+
# Optional custom endpoint URL for an OpenAI-compatible endpoint.
|
|
4998
|
+
# @return [String]
|
|
4999
|
+
#
|
|
4952
5000
|
# @!attribute [rw] max_tokens
|
|
4953
5001
|
# The maximum number of tokens to allow in the generated response per
|
|
4954
5002
|
# iteration.
|
|
@@ -4976,12 +5024,13 @@ module Aws::BedrockAgentCore
|
|
|
4976
5024
|
class HarnessOpenAiModelConfig < Struct.new(
|
|
4977
5025
|
:model_id,
|
|
4978
5026
|
:api_key_arn,
|
|
5027
|
+
:api_base,
|
|
4979
5028
|
:max_tokens,
|
|
4980
5029
|
:temperature,
|
|
4981
5030
|
:top_p,
|
|
4982
5031
|
:api_format,
|
|
4983
5032
|
:additional_params)
|
|
4984
|
-
SENSITIVE = []
|
|
5033
|
+
SENSITIVE = [:api_base]
|
|
4985
5034
|
include Aws::Structure
|
|
4986
5035
|
end
|
|
4987
5036
|
|
|
@@ -9615,6 +9664,28 @@ module Aws::BedrockAgentCore
|
|
|
9615
9664
|
include Aws::Structure
|
|
9616
9665
|
end
|
|
9617
9666
|
|
|
9667
|
+
# A pairing of a session with the specific trace IDs to evaluate within
|
|
9668
|
+
# that session. Use this to evaluate individual traces rather than an
|
|
9669
|
+
# entire session.
|
|
9670
|
+
#
|
|
9671
|
+
# @!attribute [rw] session_id
|
|
9672
|
+
# The unique identifier of the session that contains the traces to
|
|
9673
|
+
# evaluate.
|
|
9674
|
+
# @return [String]
|
|
9675
|
+
#
|
|
9676
|
+
# @!attribute [rw] trace_ids
|
|
9677
|
+
# The list of trace IDs within the session to evaluate.
|
|
9678
|
+
# @return [Array<String>]
|
|
9679
|
+
#
|
|
9680
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/SessionTraceIds AWS API Documentation
|
|
9681
|
+
#
|
|
9682
|
+
class SessionTraceIds < Struct.new(
|
|
9683
|
+
:session_id,
|
|
9684
|
+
:trace_ids)
|
|
9685
|
+
SENSITIVE = []
|
|
9686
|
+
include Aws::Structure
|
|
9687
|
+
end
|
|
9688
|
+
|
|
9618
9689
|
# The structured skill definition with a schema version and inline
|
|
9619
9690
|
# content.
|
|
9620
9691
|
#
|
|
@@ -11602,7 +11673,8 @@ module Aws::BedrockAgentCore
|
|
|
11602
11673
|
:metadata,
|
|
11603
11674
|
:internal_server_exception,
|
|
11604
11675
|
:validation_exception,
|
|
11605
|
-
:runtime_client_error
|
|
11676
|
+
:runtime_client_error,
|
|
11677
|
+
:hook_event
|
|
11606
11678
|
]
|
|
11607
11679
|
end
|
|
11608
11680
|
|
data/sig/client.rbs
CHANGED
|
@@ -1016,6 +1016,7 @@ module Aws
|
|
|
1016
1016
|
open_ai_model_config: {
|
|
1017
1017
|
model_id: ::String,
|
|
1018
1018
|
api_key_arn: ::String,
|
|
1019
|
+
api_base: ::String?,
|
|
1019
1020
|
max_tokens: ::Integer?,
|
|
1020
1021
|
temperature: ::Float?,
|
|
1021
1022
|
top_p: ::Float?,
|
|
@@ -1443,7 +1444,13 @@ module Aws
|
|
|
1443
1444
|
time_range: {
|
|
1444
1445
|
start_time: ::Time?,
|
|
1445
1446
|
end_time: ::Time?
|
|
1446
|
-
}
|
|
1447
|
+
}?,
|
|
1448
|
+
session_trace_ids: Array[
|
|
1449
|
+
{
|
|
1450
|
+
session_id: ::String,
|
|
1451
|
+
trace_ids: Array[::String]
|
|
1452
|
+
}
|
|
1453
|
+
]?
|
|
1447
1454
|
}?
|
|
1448
1455
|
}?,
|
|
1449
1456
|
online_evaluation_config_source: {
|
data/sig/types.rbs
CHANGED
|
@@ -311,6 +311,7 @@ module Aws::BedrockAgentCore
|
|
|
311
311
|
class CloudWatchFilterConfig
|
|
312
312
|
attr_accessor session_ids: ::Array[::String]
|
|
313
313
|
attr_accessor time_range: Types::SessionFilterConfig
|
|
314
|
+
attr_accessor session_trace_ids: ::Array[Types::SessionTraceIds]
|
|
314
315
|
SENSITIVE: []
|
|
315
316
|
end
|
|
316
317
|
|
|
@@ -1430,6 +1431,16 @@ module Aws::BedrockAgentCore
|
|
|
1430
1431
|
SENSITIVE: []
|
|
1431
1432
|
end
|
|
1432
1433
|
|
|
1434
|
+
class HarnessHookEvent
|
|
1435
|
+
attr_accessor hook_event_id: ::String
|
|
1436
|
+
attr_accessor name: ::String
|
|
1437
|
+
attr_accessor type: ("before_tool_call" | "after_tool_call" | "before_invocation" | "after_invocation")
|
|
1438
|
+
attr_accessor decision: ("allow" | "deny")
|
|
1439
|
+
attr_accessor reason: ::String
|
|
1440
|
+
attr_accessor event_type: untyped
|
|
1441
|
+
SENSITIVE: []
|
|
1442
|
+
end
|
|
1443
|
+
|
|
1433
1444
|
class HarnessInlineFunctionConfig
|
|
1434
1445
|
attr_accessor description: ::String
|
|
1435
1446
|
attr_accessor input_schema: untyped
|
|
@@ -1460,7 +1471,7 @@ module Aws::BedrockAgentCore
|
|
|
1460
1471
|
end
|
|
1461
1472
|
|
|
1462
1473
|
class HarnessMessageStopEvent
|
|
1463
|
-
attr_accessor stop_reason: ("end_turn" | "tool_use" | "tool_result" | "max_tokens" | "stop_sequence" | "content_filtered" | "malformed_model_output" | "malformed_tool_use" | "interrupted" | "partial_turn" | "model_context_window_exceeded" | "max_iterations_exceeded" | "max_output_tokens_exceeded" | "timeout_exceeded")
|
|
1474
|
+
attr_accessor stop_reason: ("end_turn" | "tool_use" | "tool_result" | "max_tokens" | "stop_sequence" | "content_filtered" | "malformed_model_output" | "malformed_tool_use" | "interrupted" | "partial_turn" | "model_context_window_exceeded" | "max_iterations_exceeded" | "max_output_tokens_exceeded" | "timeout_exceeded" | "hook_stopped")
|
|
1464
1475
|
attr_accessor event_type: untyped
|
|
1465
1476
|
SENSITIVE: []
|
|
1466
1477
|
end
|
|
@@ -1495,12 +1506,13 @@ module Aws::BedrockAgentCore
|
|
|
1495
1506
|
class HarnessOpenAiModelConfig
|
|
1496
1507
|
attr_accessor model_id: ::String
|
|
1497
1508
|
attr_accessor api_key_arn: ::String
|
|
1509
|
+
attr_accessor api_base: ::String
|
|
1498
1510
|
attr_accessor max_tokens: ::Integer
|
|
1499
1511
|
attr_accessor temperature: ::Float
|
|
1500
1512
|
attr_accessor top_p: ::Float
|
|
1501
1513
|
attr_accessor api_format: ("chat_completions" | "responses")
|
|
1502
1514
|
attr_accessor additional_params: untyped
|
|
1503
|
-
SENSITIVE: []
|
|
1515
|
+
SENSITIVE: [:api_base]
|
|
1504
1516
|
end
|
|
1505
1517
|
|
|
1506
1518
|
class HarnessReasoningContentBlock
|
|
@@ -2911,6 +2923,12 @@ module Aws::BedrockAgentCore
|
|
|
2911
2923
|
SENSITIVE: []
|
|
2912
2924
|
end
|
|
2913
2925
|
|
|
2926
|
+
class SessionTraceIds
|
|
2927
|
+
attr_accessor session_id: ::String
|
|
2928
|
+
attr_accessor trace_ids: ::Array[::String]
|
|
2929
|
+
SENSITIVE: []
|
|
2930
|
+
end
|
|
2931
|
+
|
|
2914
2932
|
class SkillDefinition
|
|
2915
2933
|
attr_accessor schema_version: ::String
|
|
2916
2934
|
attr_accessor inline_content: ::String
|
|
@@ -3442,7 +3460,7 @@ module Aws::BedrockAgentCore
|
|
|
3442
3460
|
end
|
|
3443
3461
|
|
|
3444
3462
|
class InvokeHarnessStreamOutput < Enumerator[untyped, untyped]
|
|
3445
|
-
def event_types: () -> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :validation_exception, :runtime_client_error]
|
|
3463
|
+
def event_types: () -> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :validation_exception, :runtime_client_error, :hook_event]
|
|
3446
3464
|
end
|
|
3447
3465
|
end
|
|
3448
3466
|
end
|