aws-sdk-bedrockagentcore 1.56.0 → 1.58.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 +63 -3
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +32 -0
- data/lib/aws-sdk-bedrockagentcore/event_streams.rb +5 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +148 -7
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +11 -2
- data/sig/types.rbs +33 -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: 330e5b287a6debd1f0295bb8a4492d69cc59a54f865010889d6ffecbc9e3d1db
|
|
4
|
+
data.tar.gz: 76a2dd331bc84aeb0866b0c586d8474feeb8f356969a32ac2c5749eeb99ad31a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec68d5f9e08dfe1435c77807afaf29a4620ca31d2306291c77b5d2cfc90955ef86fca46c2295f09b751b860f818385739e60b68fcbff80e2849c860988220910
|
|
7
|
+
data.tar.gz: 41d2432ee157100ddf20d841266ae440a30cc1e4566005478e71365f9ebbc5fc6f467c4fb357cae5fe2bc1c9443a8e875307ff4b2bdc2095c1726ef7eeb58f58
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.58.0 (2026-10-12)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - AgentCore Memory now supports Long-Term Memory Time-to-Live on Batch APIs.
|
|
8
|
+
|
|
9
|
+
1.57.0 (2026-09-21)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* 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.
|
|
13
|
+
|
|
4
14
|
1.56.0 (2026-09-17)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.58.0
|
|
@@ -502,6 +502,15 @@ module Aws::BedrockAgentCore
|
|
|
502
502
|
# **A suitable default value is auto-generated.** You should normally
|
|
503
503
|
# not need to pass this option.**
|
|
504
504
|
#
|
|
505
|
+
# @option params [Types::RecordExpirySpecification] :record_expiry_specification
|
|
506
|
+
# The record expiry (long-term memory time-to-live) applied to every
|
|
507
|
+
# record created by this request. Set `recordExpiryDurationDays` to the
|
|
508
|
+
# number of days after which the records expire. Only the expiry
|
|
509
|
+
# provided here is applied; the records' strategy association has no
|
|
510
|
+
# effect on their expiry. If you do not provide this value, the records
|
|
511
|
+
# do not expire. The `REMOVE` action does not apply when creating
|
|
512
|
+
# records.
|
|
513
|
+
#
|
|
505
514
|
# @return [Types::BatchCreateMemoryRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
506
515
|
#
|
|
507
516
|
# * {Types::BatchCreateMemoryRecordsOutput#successful_records #successful_records} => Array<Types::MemoryRecordOutput>
|
|
@@ -531,6 +540,10 @@ module Aws::BedrockAgentCore
|
|
|
531
540
|
# },
|
|
532
541
|
# ],
|
|
533
542
|
# client_token: "String",
|
|
543
|
+
# record_expiry_specification: {
|
|
544
|
+
# record_expiry_duration_days: 1,
|
|
545
|
+
# action: "REMOVE", # accepts REMOVE
|
|
546
|
+
# },
|
|
534
547
|
# })
|
|
535
548
|
#
|
|
536
549
|
# @example Response structure
|
|
@@ -618,6 +631,28 @@ module Aws::BedrockAgentCore
|
|
|
618
631
|
# A list of memory record update inputs to be processed in the batch
|
|
619
632
|
# operation.
|
|
620
633
|
#
|
|
634
|
+
# @option params [Types::RecordExpirySpecification] :record_expiry_specification
|
|
635
|
+
# The record expiry (long-term memory time-to-live) applied to every
|
|
636
|
+
# record updated by this request. Set `recordExpiryDurationDays` to
|
|
637
|
+
# configure or overwrite the number of days after which the records
|
|
638
|
+
# expire, or set `action` to `REMOVE` to clear a previously configured
|
|
639
|
+
# expiry so that the records no longer expire.
|
|
640
|
+
#
|
|
641
|
+
# When you do not provide this value, the service determines each
|
|
642
|
+
# record's expiry from its current state:
|
|
643
|
+
#
|
|
644
|
+
# * If the record already has an expiry configured, the service resets
|
|
645
|
+
# and reapplies the expiry based on the last applied
|
|
646
|
+
# `recordExpiryDurationDays`.
|
|
647
|
+
#
|
|
648
|
+
# * If the record does not have an expiry configured, no expiry is
|
|
649
|
+
# applied and the record remains non-expiring. This is the outcome
|
|
650
|
+
# regardless of whether the record's strategy configures an expiry.
|
|
651
|
+
#
|
|
652
|
+
# Providing an explicit `recordExpiryDurationDays` always takes
|
|
653
|
+
# precedence: it overwrites an existing expiry, or sets one on a record
|
|
654
|
+
# that previously had none.
|
|
655
|
+
#
|
|
621
656
|
# @return [Types::BatchUpdateMemoryRecordsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
622
657
|
#
|
|
623
658
|
# * {Types::BatchUpdateMemoryRecordsOutput#successful_records #successful_records} => Array<Types::MemoryRecordOutput>
|
|
@@ -647,6 +682,10 @@ module Aws::BedrockAgentCore
|
|
|
647
682
|
# },
|
|
648
683
|
# },
|
|
649
684
|
# ],
|
|
685
|
+
# record_expiry_specification: {
|
|
686
|
+
# record_expiry_duration_days: 1,
|
|
687
|
+
# action: "REMOVE", # accepts REMOVE
|
|
688
|
+
# },
|
|
650
689
|
# })
|
|
651
690
|
#
|
|
652
691
|
# @example Response structure
|
|
@@ -2107,12 +2146,14 @@ module Aws::BedrockAgentCore
|
|
|
2107
2146
|
# resp.memory_record.namespaces #=> Array
|
|
2108
2147
|
# resp.memory_record.namespaces[0] #=> String
|
|
2109
2148
|
# resp.memory_record.created_at #=> Time
|
|
2149
|
+
# resp.memory_record.timestamp #=> Time
|
|
2110
2150
|
# resp.memory_record.metadata #=> Hash
|
|
2111
2151
|
# resp.memory_record.metadata["MetadataKey"].string_value #=> String
|
|
2112
2152
|
# resp.memory_record.metadata["MetadataKey"].string_list_value #=> Array
|
|
2113
2153
|
# resp.memory_record.metadata["MetadataKey"].string_list_value[0] #=> String
|
|
2114
2154
|
# resp.memory_record.metadata["MetadataKey"].number_value #=> Float
|
|
2115
2155
|
# resp.memory_record.metadata["MetadataKey"].date_time_value #=> Time
|
|
2156
|
+
# resp.memory_record.expires_at #=> Time
|
|
2116
2157
|
#
|
|
2117
2158
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetMemoryRecord AWS API Documentation
|
|
2118
2159
|
#
|
|
@@ -3851,6 +3892,9 @@ module Aws::BedrockAgentCore
|
|
|
3851
3892
|
# handler.on_runtime_client_error_event do |event|
|
|
3852
3893
|
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
3853
3894
|
# end
|
|
3895
|
+
# handler.on_hook_event_event do |event|
|
|
3896
|
+
# event # => Aws::BedrockAgentCore::Types::hookEvent
|
|
3897
|
+
# end
|
|
3854
3898
|
#
|
|
3855
3899
|
# client.invoke_harness(
|
|
3856
3900
|
# # params inputs
|
|
@@ -3887,6 +3931,9 @@ module Aws::BedrockAgentCore
|
|
|
3887
3931
|
# stream.on_runtime_client_error_event do |event|
|
|
3888
3932
|
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
3889
3933
|
# end
|
|
3934
|
+
# stream.on_hook_event_event do |event|
|
|
3935
|
+
# event # => Aws::BedrockAgentCore::Types::hookEvent
|
|
3936
|
+
# end
|
|
3890
3937
|
# end
|
|
3891
3938
|
#
|
|
3892
3939
|
# client.invoke_harness(
|
|
@@ -3923,6 +3970,9 @@ module Aws::BedrockAgentCore
|
|
|
3923
3970
|
# handler.on_runtime_client_error_event do |event|
|
|
3924
3971
|
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
3925
3972
|
# end
|
|
3973
|
+
# handler.on_hook_event_event do |event|
|
|
3974
|
+
# event # => Aws::BedrockAgentCore::Types::hookEvent
|
|
3975
|
+
# end
|
|
3926
3976
|
#
|
|
3927
3977
|
# client.invoke_harness(
|
|
3928
3978
|
# # params input
|
|
@@ -4004,6 +4054,7 @@ module Aws::BedrockAgentCore
|
|
|
4004
4054
|
# open_ai_model_config: {
|
|
4005
4055
|
# model_id: "ModelId", # required
|
|
4006
4056
|
# api_key_arn: "ApiKeyArn", # required
|
|
4057
|
+
# api_base: "HarnessOpenAiApiBase",
|
|
4007
4058
|
# max_tokens: 1,
|
|
4008
4059
|
# temperature: 1.0,
|
|
4009
4060
|
# top_p: 1.0,
|
|
@@ -4110,7 +4161,7 @@ module Aws::BedrockAgentCore
|
|
|
4110
4161
|
#
|
|
4111
4162
|
# # All events are available at resp.stream:
|
|
4112
4163
|
# resp.stream #=> Enumerator
|
|
4113
|
-
# 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]
|
|
4164
|
+
# 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]
|
|
4114
4165
|
#
|
|
4115
4166
|
# # For :message_start event available at #on_message_start_event callback and response eventstream enumerator:
|
|
4116
4167
|
# event.role #=> String, one of "user", "assistant"
|
|
@@ -4139,7 +4190,7 @@ module Aws::BedrockAgentCore
|
|
|
4139
4190
|
# event.content_block_index #=> Integer
|
|
4140
4191
|
#
|
|
4141
4192
|
# # For :message_stop event available at #on_message_stop_event callback and response eventstream enumerator:
|
|
4142
|
-
# 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"
|
|
4193
|
+
# 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"
|
|
4143
4194
|
#
|
|
4144
4195
|
# # For :metadata event available at #on_metadata_event callback and response eventstream enumerator:
|
|
4145
4196
|
# event.usage.input_tokens #=> Integer
|
|
@@ -4162,6 +4213,13 @@ module Aws::BedrockAgentCore
|
|
|
4162
4213
|
# # For :runtime_client_error event available at #on_runtime_client_error_event callback and response eventstream enumerator:
|
|
4163
4214
|
# event.message #=> String
|
|
4164
4215
|
#
|
|
4216
|
+
# # For :hook_event event available at #on_hook_event_event callback and response eventstream enumerator:
|
|
4217
|
+
# event.hook_event_id #=> String
|
|
4218
|
+
# event.name #=> String
|
|
4219
|
+
# event.type #=> String, one of "before_tool_call", "after_tool_call", "before_invocation", "after_invocation"
|
|
4220
|
+
# event.decision #=> String, one of "allow", "deny"
|
|
4221
|
+
# event.reason #=> String
|
|
4222
|
+
#
|
|
4165
4223
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeHarness AWS API Documentation
|
|
4166
4224
|
#
|
|
4167
4225
|
# @overload invoke_harness(params = {})
|
|
@@ -4758,6 +4816,7 @@ module Aws::BedrockAgentCore
|
|
|
4758
4816
|
# resp.memory_record_summaries[0].namespaces[0] #=> String
|
|
4759
4817
|
# resp.memory_record_summaries[0].created_at #=> Time
|
|
4760
4818
|
# resp.memory_record_summaries[0].score #=> Float
|
|
4819
|
+
# resp.memory_record_summaries[0].timestamp #=> Time
|
|
4761
4820
|
# resp.memory_record_summaries[0].metadata #=> Hash
|
|
4762
4821
|
# resp.memory_record_summaries[0].metadata["MetadataKey"].string_value #=> String
|
|
4763
4822
|
# resp.memory_record_summaries[0].metadata["MetadataKey"].string_list_value #=> Array
|
|
@@ -5185,6 +5244,7 @@ module Aws::BedrockAgentCore
|
|
|
5185
5244
|
# resp.memory_record_summaries[0].namespaces[0] #=> String
|
|
5186
5245
|
# resp.memory_record_summaries[0].created_at #=> Time
|
|
5187
5246
|
# resp.memory_record_summaries[0].score #=> Float
|
|
5247
|
+
# resp.memory_record_summaries[0].timestamp #=> Time
|
|
5188
5248
|
# resp.memory_record_summaries[0].metadata #=> Hash
|
|
5189
5249
|
# resp.memory_record_summaries[0].metadata["MetadataKey"].string_value #=> String
|
|
5190
5250
|
# resp.memory_record_summaries[0].metadata["MetadataKey"].string_list_value #=> Array
|
|
@@ -6566,7 +6626,7 @@ module Aws::BedrockAgentCore
|
|
|
6566
6626
|
tracer: tracer
|
|
6567
6627
|
)
|
|
6568
6628
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
|
6569
|
-
context[:gem_version] = '1.
|
|
6629
|
+
context[:gem_version] = '1.58.0'
|
|
6570
6630
|
Seahorse::Client::Request.new(handlers, context)
|
|
6571
6631
|
end
|
|
6572
6632
|
|
|
@@ -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')
|
|
@@ -626,6 +633,9 @@ module Aws::BedrockAgentCore
|
|
|
626
633
|
RecommendationSummaryList = Shapes::ListShape.new(name: 'RecommendationSummaryList')
|
|
627
634
|
RecommendationToolName = Shapes::StringShape.new(name: 'RecommendationToolName')
|
|
628
635
|
RecommendationType = Shapes::StringShape.new(name: 'RecommendationType')
|
|
636
|
+
RecordExpiryAction = Shapes::StringShape.new(name: 'RecordExpiryAction')
|
|
637
|
+
RecordExpiryDurationDays = Shapes::IntegerShape.new(name: 'RecordExpiryDurationDays')
|
|
638
|
+
RecordExpirySpecification = Shapes::UnionShape.new(name: 'RecordExpirySpecification')
|
|
629
639
|
RegistryArn = Shapes::StringShape.new(name: 'RegistryArn')
|
|
630
640
|
RegistryIdentifier = Shapes::StringShape.new(name: 'RegistryIdentifier')
|
|
631
641
|
RegistryRecordArn = Shapes::StringShape.new(name: 'RegistryRecordArn')
|
|
@@ -922,6 +932,7 @@ module Aws::BedrockAgentCore
|
|
|
922
932
|
BatchCreateMemoryRecordsInput.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, required: true, location: "uri", location_name: "memoryId"))
|
|
923
933
|
BatchCreateMemoryRecordsInput.add_member(:records, Shapes::ShapeRef.new(shape: MemoryRecordsCreateInputList, required: true, location_name: "records"))
|
|
924
934
|
BatchCreateMemoryRecordsInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
935
|
+
BatchCreateMemoryRecordsInput.add_member(:record_expiry_specification, Shapes::ShapeRef.new(shape: RecordExpirySpecification, location_name: "recordExpirySpecification"))
|
|
925
936
|
BatchCreateMemoryRecordsInput.struct_class = Types::BatchCreateMemoryRecordsInput
|
|
926
937
|
|
|
927
938
|
BatchCreateMemoryRecordsOutput.add_member(:successful_records, Shapes::ShapeRef.new(shape: MemoryRecordsOutputList, required: true, location_name: "successfulRecords"))
|
|
@@ -957,6 +968,7 @@ module Aws::BedrockAgentCore
|
|
|
957
968
|
|
|
958
969
|
BatchUpdateMemoryRecordsInput.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, required: true, location: "uri", location_name: "memoryId"))
|
|
959
970
|
BatchUpdateMemoryRecordsInput.add_member(:records, Shapes::ShapeRef.new(shape: MemoryRecordsUpdateInputList, required: true, location_name: "records"))
|
|
971
|
+
BatchUpdateMemoryRecordsInput.add_member(:record_expiry_specification, Shapes::ShapeRef.new(shape: RecordExpirySpecification, location_name: "recordExpirySpecification"))
|
|
960
972
|
BatchUpdateMemoryRecordsInput.struct_class = Types::BatchUpdateMemoryRecordsInput
|
|
961
973
|
|
|
962
974
|
BatchUpdateMemoryRecordsOutput.add_member(:successful_records, Shapes::ShapeRef.new(shape: MemoryRecordsOutputList, required: true, location_name: "successfulRecords"))
|
|
@@ -1905,6 +1917,13 @@ module Aws::BedrockAgentCore
|
|
|
1905
1917
|
HarnessGeminiModelConfig.add_member(:additional_params, Shapes::ShapeRef.new(shape: Document, location_name: "additionalParams"))
|
|
1906
1918
|
HarnessGeminiModelConfig.struct_class = Types::HarnessGeminiModelConfig
|
|
1907
1919
|
|
|
1920
|
+
HarnessHookEvent.add_member(:hook_event_id, Shapes::ShapeRef.new(shape: HarnessHookEventId, required: true, location_name: "hookEventId"))
|
|
1921
|
+
HarnessHookEvent.add_member(:name, Shapes::ShapeRef.new(shape: HarnessHookName, required: true, location_name: "name"))
|
|
1922
|
+
HarnessHookEvent.add_member(:type, Shapes::ShapeRef.new(shape: HarnessHookEventType, required: true, location_name: "type"))
|
|
1923
|
+
HarnessHookEvent.add_member(:decision, Shapes::ShapeRef.new(shape: HarnessHookDecision, location_name: "decision"))
|
|
1924
|
+
HarnessHookEvent.add_member(:reason, Shapes::ShapeRef.new(shape: HarnessHookEventReasonString, location_name: "reason"))
|
|
1925
|
+
HarnessHookEvent.struct_class = Types::HarnessHookEvent
|
|
1926
|
+
|
|
1908
1927
|
HarnessInlineFunctionConfig.add_member(:description, Shapes::ShapeRef.new(shape: HarnessInlineFunctionDescription, required: true, location_name: "description"))
|
|
1909
1928
|
HarnessInlineFunctionConfig.add_member(:input_schema, Shapes::ShapeRef.new(shape: SensitiveJson, required: true, location_name: "inputSchema"))
|
|
1910
1929
|
HarnessInlineFunctionConfig.struct_class = Types::HarnessInlineFunctionConfig
|
|
@@ -1948,6 +1967,7 @@ module Aws::BedrockAgentCore
|
|
|
1948
1967
|
|
|
1949
1968
|
HarnessOpenAiModelConfig.add_member(:model_id, Shapes::ShapeRef.new(shape: ModelId, required: true, location_name: "modelId"))
|
|
1950
1969
|
HarnessOpenAiModelConfig.add_member(:api_key_arn, Shapes::ShapeRef.new(shape: ApiKeyArn, required: true, location_name: "apiKeyArn"))
|
|
1970
|
+
HarnessOpenAiModelConfig.add_member(:api_base, Shapes::ShapeRef.new(shape: HarnessOpenAiApiBase, location_name: "apiBase"))
|
|
1951
1971
|
HarnessOpenAiModelConfig.add_member(:max_tokens, Shapes::ShapeRef.new(shape: MaxTokens, location_name: "maxTokens"))
|
|
1952
1972
|
HarnessOpenAiModelConfig.add_member(:temperature, Shapes::ShapeRef.new(shape: Temperature, location_name: "temperature"))
|
|
1953
1973
|
HarnessOpenAiModelConfig.add_member(:top_p, Shapes::ShapeRef.new(shape: TopP, location_name: "topP"))
|
|
@@ -2293,6 +2313,7 @@ module Aws::BedrockAgentCore
|
|
|
2293
2313
|
InvokeHarnessStreamOutput.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
|
|
2294
2314
|
InvokeHarnessStreamOutput.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
|
|
2295
2315
|
InvokeHarnessStreamOutput.add_member(:runtime_client_error, Shapes::ShapeRef.new(shape: RuntimeClientError, location_name: "runtimeClientError"))
|
|
2316
|
+
InvokeHarnessStreamOutput.add_member(:hook_event, Shapes::ShapeRef.new(shape: HarnessHookEvent, event: true, location_name: "hookEvent"))
|
|
2296
2317
|
InvokeHarnessStreamOutput.struct_class = Types::InvokeHarnessStreamOutput
|
|
2297
2318
|
|
|
2298
2319
|
KeyList.member = Shapes::ShapeRef.new(shape: String)
|
|
@@ -2515,7 +2536,9 @@ module Aws::BedrockAgentCore
|
|
|
2515
2536
|
MemoryRecord.add_member(:memory_strategy_id, Shapes::ShapeRef.new(shape: MemoryStrategyId, required: true, location_name: "memoryStrategyId"))
|
|
2516
2537
|
MemoryRecord.add_member(:namespaces, Shapes::ShapeRef.new(shape: NamespacesList, required: true, location_name: "namespaces"))
|
|
2517
2538
|
MemoryRecord.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
|
2539
|
+
MemoryRecord.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
|
|
2518
2540
|
MemoryRecord.add_member(:metadata, Shapes::ShapeRef.new(shape: MemoryRecordMetadataMap, location_name: "metadata"))
|
|
2541
|
+
MemoryRecord.add_member(:expires_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "expiresAt"))
|
|
2519
2542
|
MemoryRecord.struct_class = Types::MemoryRecord
|
|
2520
2543
|
|
|
2521
2544
|
MemoryRecordCreateInput.add_member(:request_identifier, Shapes::ShapeRef.new(shape: RequestIdentifier, required: true, location_name: "requestIdentifier"))
|
|
@@ -2570,6 +2593,7 @@ module Aws::BedrockAgentCore
|
|
|
2570
2593
|
MemoryRecordSummary.add_member(:namespaces, Shapes::ShapeRef.new(shape: NamespacesList, required: true, location_name: "namespaces"))
|
|
2571
2594
|
MemoryRecordSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
|
2572
2595
|
MemoryRecordSummary.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
|
|
2596
|
+
MemoryRecordSummary.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
|
|
2573
2597
|
MemoryRecordSummary.add_member(:metadata, Shapes::ShapeRef.new(shape: MemoryRecordMetadataMap, location_name: "metadata"))
|
|
2574
2598
|
MemoryRecordSummary.struct_class = Types::MemoryRecordSummary
|
|
2575
2599
|
|
|
@@ -2875,6 +2899,14 @@ module Aws::BedrockAgentCore
|
|
|
2875
2899
|
|
|
2876
2900
|
RecommendationSummaryList.member = Shapes::ShapeRef.new(shape: RecommendationSummary)
|
|
2877
2901
|
|
|
2902
|
+
RecordExpirySpecification.add_member(:record_expiry_duration_days, Shapes::ShapeRef.new(shape: RecordExpiryDurationDays, location_name: "recordExpiryDurationDays"))
|
|
2903
|
+
RecordExpirySpecification.add_member(:action, Shapes::ShapeRef.new(shape: RecordExpiryAction, location_name: "action"))
|
|
2904
|
+
RecordExpirySpecification.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
2905
|
+
RecordExpirySpecification.add_member_subclass(:record_expiry_duration_days, Types::RecordExpirySpecification::RecordExpiryDurationDays)
|
|
2906
|
+
RecordExpirySpecification.add_member_subclass(:action, Types::RecordExpirySpecification::Action)
|
|
2907
|
+
RecordExpirySpecification.add_member_subclass(:unknown, Types::RecordExpirySpecification::Unknown)
|
|
2908
|
+
RecordExpirySpecification.struct_class = Types::RecordExpirySpecification
|
|
2909
|
+
|
|
2878
2910
|
RegistryRecordSummary.add_member(:registry_arn, Shapes::ShapeRef.new(shape: RegistryArn, required: true, location_name: "registryArn"))
|
|
2879
2911
|
RegistryRecordSummary.add_member(:record_arn, Shapes::ShapeRef.new(shape: RegistryRecordArn, required: true, location_name: "recordArn"))
|
|
2880
2912
|
RegistryRecordSummary.add_member(:record_id, Shapes::ShapeRef.new(shape: RegistryRecordId, required: true, location_name: "recordId"))
|
|
@@ -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)
|
|
@@ -403,12 +403,23 @@ module Aws::BedrockAgentCore
|
|
|
403
403
|
# not need to pass this option.
|
|
404
404
|
# @return [String]
|
|
405
405
|
#
|
|
406
|
+
# @!attribute [rw] record_expiry_specification
|
|
407
|
+
# The record expiry (long-term memory time-to-live) applied to every
|
|
408
|
+
# record created by this request. Set `recordExpiryDurationDays` to
|
|
409
|
+
# the number of days after which the records expire. Only the expiry
|
|
410
|
+
# provided here is applied; the records' strategy association has no
|
|
411
|
+
# effect on their expiry. If you do not provide this value, the
|
|
412
|
+
# records do not expire. The `REMOVE` action does not apply when
|
|
413
|
+
# creating records.
|
|
414
|
+
# @return [Types::RecordExpirySpecification]
|
|
415
|
+
#
|
|
406
416
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchCreateMemoryRecordsInput AWS API Documentation
|
|
407
417
|
#
|
|
408
418
|
class BatchCreateMemoryRecordsInput < Struct.new(
|
|
409
419
|
:memory_id,
|
|
410
420
|
:records,
|
|
411
|
-
:client_token
|
|
421
|
+
:client_token,
|
|
422
|
+
:record_expiry_specification)
|
|
412
423
|
SENSITIVE = []
|
|
413
424
|
include Aws::Structure
|
|
414
425
|
end
|
|
@@ -563,11 +574,35 @@ module Aws::BedrockAgentCore
|
|
|
563
574
|
# operation.
|
|
564
575
|
# @return [Array<Types::MemoryRecordUpdateInput>]
|
|
565
576
|
#
|
|
577
|
+
# @!attribute [rw] record_expiry_specification
|
|
578
|
+
# The record expiry (long-term memory time-to-live) applied to every
|
|
579
|
+
# record updated by this request. Set `recordExpiryDurationDays` to
|
|
580
|
+
# configure or overwrite the number of days after which the records
|
|
581
|
+
# expire, or set `action` to `REMOVE` to clear a previously configured
|
|
582
|
+
# expiry so that the records no longer expire.
|
|
583
|
+
#
|
|
584
|
+
# When you do not provide this value, the service determines each
|
|
585
|
+
# record's expiry from its current state:
|
|
586
|
+
#
|
|
587
|
+
# * If the record already has an expiry configured, the service resets
|
|
588
|
+
# and reapplies the expiry based on the last applied
|
|
589
|
+
# `recordExpiryDurationDays`.
|
|
590
|
+
#
|
|
591
|
+
# * If the record does not have an expiry configured, no expiry is
|
|
592
|
+
# applied and the record remains non-expiring. This is the outcome
|
|
593
|
+
# regardless of whether the record's strategy configures an expiry.
|
|
594
|
+
#
|
|
595
|
+
# Providing an explicit `recordExpiryDurationDays` always takes
|
|
596
|
+
# precedence: it overwrites an existing expiry, or sets one on a
|
|
597
|
+
# record that previously had none.
|
|
598
|
+
# @return [Types::RecordExpirySpecification]
|
|
599
|
+
#
|
|
566
600
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchUpdateMemoryRecordsInput AWS API Documentation
|
|
567
601
|
#
|
|
568
602
|
class BatchUpdateMemoryRecordsInput < Struct.new(
|
|
569
603
|
:memory_id,
|
|
570
|
-
:records
|
|
604
|
+
:records,
|
|
605
|
+
:record_expiry_specification)
|
|
571
606
|
SENSITIVE = []
|
|
572
607
|
include Aws::Structure
|
|
573
608
|
end
|
|
@@ -4768,6 +4803,43 @@ module Aws::BedrockAgentCore
|
|
|
4768
4803
|
include Aws::Structure
|
|
4769
4804
|
end
|
|
4770
4805
|
|
|
4806
|
+
# A lifecycle hook event emitted in the invocation stream for visibility
|
|
4807
|
+
# into hook decisions.
|
|
4808
|
+
#
|
|
4809
|
+
# @!attribute [rw] hook_event_id
|
|
4810
|
+
# The unique identifier for this hook event.
|
|
4811
|
+
# @return [String]
|
|
4812
|
+
#
|
|
4813
|
+
# @!attribute [rw] name
|
|
4814
|
+
# The name of the hook that ran.
|
|
4815
|
+
# @return [String]
|
|
4816
|
+
#
|
|
4817
|
+
# @!attribute [rw] type
|
|
4818
|
+
# The type of lifecycle hook event.
|
|
4819
|
+
# @return [String]
|
|
4820
|
+
#
|
|
4821
|
+
# @!attribute [rw] decision
|
|
4822
|
+
# The decision applied to the hook event. This field is present only
|
|
4823
|
+
# for blocking Lambda targets.
|
|
4824
|
+
# @return [String]
|
|
4825
|
+
#
|
|
4826
|
+
# @!attribute [rw] reason
|
|
4827
|
+
# The optional reason for the applied decision.
|
|
4828
|
+
# @return [String]
|
|
4829
|
+
#
|
|
4830
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/HarnessHookEvent AWS API Documentation
|
|
4831
|
+
#
|
|
4832
|
+
class HarnessHookEvent < Struct.new(
|
|
4833
|
+
:hook_event_id,
|
|
4834
|
+
:name,
|
|
4835
|
+
:type,
|
|
4836
|
+
:decision,
|
|
4837
|
+
:reason,
|
|
4838
|
+
:event_type)
|
|
4839
|
+
SENSITIVE = []
|
|
4840
|
+
include Aws::Structure
|
|
4841
|
+
end
|
|
4842
|
+
|
|
4771
4843
|
# Configuration for an inline function tool. When the agent calls this
|
|
4772
4844
|
# tool, the tool call is returned to the caller for external execution.
|
|
4773
4845
|
#
|
|
@@ -4956,6 +5028,10 @@ module Aws::BedrockAgentCore
|
|
|
4956
5028
|
# The ARN of your OpenAI API key on AgentCore Identity.
|
|
4957
5029
|
# @return [String]
|
|
4958
5030
|
#
|
|
5031
|
+
# @!attribute [rw] api_base
|
|
5032
|
+
# Optional custom endpoint URL for an OpenAI-compatible endpoint.
|
|
5033
|
+
# @return [String]
|
|
5034
|
+
#
|
|
4959
5035
|
# @!attribute [rw] max_tokens
|
|
4960
5036
|
# The maximum number of tokens to allow in the generated response per
|
|
4961
5037
|
# iteration.
|
|
@@ -4983,12 +5059,13 @@ module Aws::BedrockAgentCore
|
|
|
4983
5059
|
class HarnessOpenAiModelConfig < Struct.new(
|
|
4984
5060
|
:model_id,
|
|
4985
5061
|
:api_key_arn,
|
|
5062
|
+
:api_base,
|
|
4986
5063
|
:max_tokens,
|
|
4987
5064
|
:temperature,
|
|
4988
5065
|
:top_p,
|
|
4989
5066
|
:api_format,
|
|
4990
5067
|
:additional_params)
|
|
4991
|
-
SENSITIVE = []
|
|
5068
|
+
SENSITIVE = [:api_base]
|
|
4992
5069
|
include Aws::Structure
|
|
4993
5070
|
end
|
|
4994
5071
|
|
|
@@ -5107,7 +5184,8 @@ module Aws::BedrockAgentCore
|
|
|
5107
5184
|
# @return [Types::HarnessSkillGitSource]
|
|
5108
5185
|
#
|
|
5109
5186
|
# @!attribute [rw] aws_skills
|
|
5110
|
-
#
|
|
5187
|
+
# Amazon Web Services Skills baked into the Harness's underlying
|
|
5188
|
+
# Runtime.
|
|
5111
5189
|
# @return [Types::HarnessSkillAwsSkillsSource]
|
|
5112
5190
|
#
|
|
5113
5191
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/HarnessSkill AWS API Documentation
|
|
@@ -5129,7 +5207,7 @@ module Aws::BedrockAgentCore
|
|
|
5129
5207
|
class Unknown < HarnessSkill; end
|
|
5130
5208
|
end
|
|
5131
5209
|
|
|
5132
|
-
# Passed to show that
|
|
5210
|
+
# Passed to show that Amazon Web Services Skills should be included.
|
|
5133
5211
|
#
|
|
5134
5212
|
# @!attribute [rw] paths
|
|
5135
5213
|
# Optionally filter allowed skills with glob syntax, e.g.,
|
|
@@ -7393,10 +7471,27 @@ module Aws::BedrockAgentCore
|
|
|
7393
7471
|
# The timestamp when the memory record was created.
|
|
7394
7472
|
# @return [Time]
|
|
7395
7473
|
#
|
|
7474
|
+
# @!attribute [rw] timestamp
|
|
7475
|
+
# The timestamp based on which the memory record was ingested. This
|
|
7476
|
+
# reflects the time of the source content that the record was derived
|
|
7477
|
+
# from, which can differ from `createdAt`, the time the record itself
|
|
7478
|
+
# was written.
|
|
7479
|
+
# @return [Time]
|
|
7480
|
+
#
|
|
7396
7481
|
# @!attribute [rw] metadata
|
|
7397
7482
|
# A map of metadata key-value pairs associated with a memory record.
|
|
7398
7483
|
# @return [Hash<String,Types::MemoryRecordMetadataValue>]
|
|
7399
7484
|
#
|
|
7485
|
+
# @!attribute [rw] expires_at
|
|
7486
|
+
# The timestamp at which the memory record expires and becomes
|
|
7487
|
+
# eligible for deletion. This value is set when a record expiry
|
|
7488
|
+
# (long-term memory time-to-live) applies to the record, either from
|
|
7489
|
+
# the strategy the record belongs to or from a record expiry provided
|
|
7490
|
+
# on the batch request that created or updated it. If the record has
|
|
7491
|
+
# no expiry configured, this value is not present and the record does
|
|
7492
|
+
# not expire.
|
|
7493
|
+
# @return [Time]
|
|
7494
|
+
#
|
|
7400
7495
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/MemoryRecord AWS API Documentation
|
|
7401
7496
|
#
|
|
7402
7497
|
class MemoryRecord < Struct.new(
|
|
@@ -7405,7 +7500,9 @@ module Aws::BedrockAgentCore
|
|
|
7405
7500
|
:memory_strategy_id,
|
|
7406
7501
|
:namespaces,
|
|
7407
7502
|
:created_at,
|
|
7408
|
-
:
|
|
7503
|
+
:timestamp,
|
|
7504
|
+
:metadata,
|
|
7505
|
+
:expires_at)
|
|
7409
7506
|
SENSITIVE = []
|
|
7410
7507
|
include Aws::Structure
|
|
7411
7508
|
end
|
|
@@ -7620,6 +7717,13 @@ module Aws::BedrockAgentCore
|
|
|
7620
7717
|
# search query.
|
|
7621
7718
|
# @return [Float]
|
|
7622
7719
|
#
|
|
7720
|
+
# @!attribute [rw] timestamp
|
|
7721
|
+
# The timestamp based on which the memory record was ingested. This
|
|
7722
|
+
# reflects the time of the source content that the record was derived
|
|
7723
|
+
# from, which can differ from `createdAt`, the time the record itself
|
|
7724
|
+
# was written.
|
|
7725
|
+
# @return [Time]
|
|
7726
|
+
#
|
|
7623
7727
|
# @!attribute [rw] metadata
|
|
7624
7728
|
# A map of metadata key-value pairs associated with a memory record.
|
|
7625
7729
|
# @return [Hash<String,Types::MemoryRecordMetadataValue>]
|
|
@@ -7633,6 +7737,7 @@ module Aws::BedrockAgentCore
|
|
|
7633
7737
|
:namespaces,
|
|
7634
7738
|
:created_at,
|
|
7635
7739
|
:score,
|
|
7740
|
+
:timestamp,
|
|
7636
7741
|
:metadata)
|
|
7637
7742
|
SENSITIVE = []
|
|
7638
7743
|
include Aws::Structure
|
|
@@ -8864,6 +8969,41 @@ module Aws::BedrockAgentCore
|
|
|
8864
8969
|
include Aws::Structure
|
|
8865
8970
|
end
|
|
8866
8971
|
|
|
8972
|
+
# Specifies the record expiry (long-term memory time-to-live) applied to
|
|
8973
|
+
# the records in a batch request. Provide exactly one of
|
|
8974
|
+
# `recordExpiryDurationDays` or `action`. Set `recordExpiryDurationDays`
|
|
8975
|
+
# to configure or update the expiry, or set `action` to `REMOVE` to
|
|
8976
|
+
# remove a previously configured expiry.
|
|
8977
|
+
#
|
|
8978
|
+
# @note RecordExpirySpecification is a union - when making an API calls you must set exactly one of the members.
|
|
8979
|
+
#
|
|
8980
|
+
# @!attribute [rw] record_expiry_duration_days
|
|
8981
|
+
# The duration, in days, after which the records in this request
|
|
8982
|
+
# expire. The minimum is 31 days.
|
|
8983
|
+
# @return [Integer]
|
|
8984
|
+
#
|
|
8985
|
+
# @!attribute [rw] action
|
|
8986
|
+
# The action to apply to the existing record expiry configuration. Set
|
|
8987
|
+
# to `REMOVE` to remove a previously configured expiry so that the
|
|
8988
|
+
# records no longer expire. This value does not apply when creating
|
|
8989
|
+
# records.
|
|
8990
|
+
# @return [String]
|
|
8991
|
+
#
|
|
8992
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/RecordExpirySpecification AWS API Documentation
|
|
8993
|
+
#
|
|
8994
|
+
class RecordExpirySpecification < Struct.new(
|
|
8995
|
+
:record_expiry_duration_days,
|
|
8996
|
+
:action,
|
|
8997
|
+
:unknown)
|
|
8998
|
+
SENSITIVE = []
|
|
8999
|
+
include Aws::Structure
|
|
9000
|
+
include Aws::Structure::Union
|
|
9001
|
+
|
|
9002
|
+
class RecordExpiryDurationDays < RecordExpirySpecification; end
|
|
9003
|
+
class Action < RecordExpirySpecification; end
|
|
9004
|
+
class Unknown < RecordExpirySpecification; end
|
|
9005
|
+
end
|
|
9006
|
+
|
|
8867
9007
|
# Summary information about a registry record.
|
|
8868
9008
|
#
|
|
8869
9009
|
# @!attribute [rw] registry_arn
|
|
@@ -11631,7 +11771,8 @@ module Aws::BedrockAgentCore
|
|
|
11631
11771
|
:metadata,
|
|
11632
11772
|
:internal_server_exception,
|
|
11633
11773
|
:validation_exception,
|
|
11634
|
-
:runtime_client_error
|
|
11774
|
+
:runtime_client_error,
|
|
11775
|
+
:hook_event
|
|
11635
11776
|
]
|
|
11636
11777
|
end
|
|
11637
11778
|
|
data/sig/client.rbs
CHANGED
|
@@ -106,7 +106,11 @@ module Aws
|
|
|
106
106
|
}]?
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
|
-
?client_token: ::String
|
|
109
|
+
?client_token: ::String,
|
|
110
|
+
?record_expiry_specification: {
|
|
111
|
+
record_expiry_duration_days: ::Integer?,
|
|
112
|
+
action: ("REMOVE")?
|
|
113
|
+
}
|
|
110
114
|
) -> _BatchCreateMemoryRecordsResponseSuccess
|
|
111
115
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchCreateMemoryRecordsResponseSuccess
|
|
112
116
|
|
|
@@ -152,7 +156,11 @@ module Aws
|
|
|
152
156
|
date_time_value: ::Time?
|
|
153
157
|
}]?
|
|
154
158
|
}
|
|
155
|
-
]
|
|
159
|
+
],
|
|
160
|
+
?record_expiry_specification: {
|
|
161
|
+
record_expiry_duration_days: ::Integer?,
|
|
162
|
+
action: ("REMOVE")?
|
|
163
|
+
}
|
|
156
164
|
) -> _BatchUpdateMemoryRecordsResponseSuccess
|
|
157
165
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchUpdateMemoryRecordsResponseSuccess
|
|
158
166
|
|
|
@@ -1016,6 +1024,7 @@ module Aws
|
|
|
1016
1024
|
open_ai_model_config: {
|
|
1017
1025
|
model_id: ::String,
|
|
1018
1026
|
api_key_arn: ::String,
|
|
1027
|
+
api_base: ::String?,
|
|
1019
1028
|
max_tokens: ::Integer?,
|
|
1020
1029
|
temperature: ::Float?,
|
|
1021
1030
|
top_p: ::Float?,
|
data/sig/types.rbs
CHANGED
|
@@ -130,6 +130,7 @@ module Aws::BedrockAgentCore
|
|
|
130
130
|
attr_accessor memory_id: ::String
|
|
131
131
|
attr_accessor records: ::Array[Types::MemoryRecordCreateInput]
|
|
132
132
|
attr_accessor client_token: ::String
|
|
133
|
+
attr_accessor record_expiry_specification: Types::RecordExpirySpecification
|
|
133
134
|
SENSITIVE: []
|
|
134
135
|
end
|
|
135
136
|
|
|
@@ -175,6 +176,7 @@ module Aws::BedrockAgentCore
|
|
|
175
176
|
class BatchUpdateMemoryRecordsInput
|
|
176
177
|
attr_accessor memory_id: ::String
|
|
177
178
|
attr_accessor records: ::Array[Types::MemoryRecordUpdateInput]
|
|
179
|
+
attr_accessor record_expiry_specification: Types::RecordExpirySpecification
|
|
178
180
|
SENSITIVE: []
|
|
179
181
|
end
|
|
180
182
|
|
|
@@ -1431,6 +1433,16 @@ module Aws::BedrockAgentCore
|
|
|
1431
1433
|
SENSITIVE: []
|
|
1432
1434
|
end
|
|
1433
1435
|
|
|
1436
|
+
class HarnessHookEvent
|
|
1437
|
+
attr_accessor hook_event_id: ::String
|
|
1438
|
+
attr_accessor name: ::String
|
|
1439
|
+
attr_accessor type: ("before_tool_call" | "after_tool_call" | "before_invocation" | "after_invocation")
|
|
1440
|
+
attr_accessor decision: ("allow" | "deny")
|
|
1441
|
+
attr_accessor reason: ::String
|
|
1442
|
+
attr_accessor event_type: untyped
|
|
1443
|
+
SENSITIVE: []
|
|
1444
|
+
end
|
|
1445
|
+
|
|
1434
1446
|
class HarnessInlineFunctionConfig
|
|
1435
1447
|
attr_accessor description: ::String
|
|
1436
1448
|
attr_accessor input_schema: untyped
|
|
@@ -1461,7 +1473,7 @@ module Aws::BedrockAgentCore
|
|
|
1461
1473
|
end
|
|
1462
1474
|
|
|
1463
1475
|
class HarnessMessageStopEvent
|
|
1464
|
-
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")
|
|
1476
|
+
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")
|
|
1465
1477
|
attr_accessor event_type: untyped
|
|
1466
1478
|
SENSITIVE: []
|
|
1467
1479
|
end
|
|
@@ -1496,12 +1508,13 @@ module Aws::BedrockAgentCore
|
|
|
1496
1508
|
class HarnessOpenAiModelConfig
|
|
1497
1509
|
attr_accessor model_id: ::String
|
|
1498
1510
|
attr_accessor api_key_arn: ::String
|
|
1511
|
+
attr_accessor api_base: ::String
|
|
1499
1512
|
attr_accessor max_tokens: ::Integer
|
|
1500
1513
|
attr_accessor temperature: ::Float
|
|
1501
1514
|
attr_accessor top_p: ::Float
|
|
1502
1515
|
attr_accessor api_format: ("chat_completions" | "responses")
|
|
1503
1516
|
attr_accessor additional_params: untyped
|
|
1504
|
-
SENSITIVE: []
|
|
1517
|
+
SENSITIVE: [:api_base]
|
|
1505
1518
|
end
|
|
1506
1519
|
|
|
1507
1520
|
class HarnessReasoningContentBlock
|
|
@@ -2226,7 +2239,9 @@ module Aws::BedrockAgentCore
|
|
|
2226
2239
|
attr_accessor memory_strategy_id: ::String
|
|
2227
2240
|
attr_accessor namespaces: ::Array[::String]
|
|
2228
2241
|
attr_accessor created_at: ::Time
|
|
2242
|
+
attr_accessor timestamp: ::Time
|
|
2229
2243
|
attr_accessor metadata: ::Hash[::String, Types::MemoryRecordMetadataValue]
|
|
2244
|
+
attr_accessor expires_at: ::Time
|
|
2230
2245
|
SENSITIVE: []
|
|
2231
2246
|
end
|
|
2232
2247
|
|
|
@@ -2304,6 +2319,7 @@ module Aws::BedrockAgentCore
|
|
|
2304
2319
|
attr_accessor namespaces: ::Array[::String]
|
|
2305
2320
|
attr_accessor created_at: ::Time
|
|
2306
2321
|
attr_accessor score: ::Float
|
|
2322
|
+
attr_accessor timestamp: ::Time
|
|
2307
2323
|
attr_accessor metadata: ::Hash[::String, Types::MemoryRecordMetadataValue]
|
|
2308
2324
|
SENSITIVE: []
|
|
2309
2325
|
end
|
|
@@ -2697,6 +2713,20 @@ module Aws::BedrockAgentCore
|
|
|
2697
2713
|
SENSITIVE: []
|
|
2698
2714
|
end
|
|
2699
2715
|
|
|
2716
|
+
class RecordExpirySpecification
|
|
2717
|
+
attr_accessor record_expiry_duration_days: ::Integer
|
|
2718
|
+
attr_accessor action: ("REMOVE")
|
|
2719
|
+
attr_accessor unknown: untyped
|
|
2720
|
+
SENSITIVE: []
|
|
2721
|
+
|
|
2722
|
+
class RecordExpiryDurationDays < RecordExpirySpecification
|
|
2723
|
+
end
|
|
2724
|
+
class Action < RecordExpirySpecification
|
|
2725
|
+
end
|
|
2726
|
+
class Unknown < RecordExpirySpecification
|
|
2727
|
+
end
|
|
2728
|
+
end
|
|
2729
|
+
|
|
2700
2730
|
class RegistryRecordSummary
|
|
2701
2731
|
attr_accessor registry_arn: ::String
|
|
2702
2732
|
attr_accessor record_arn: ::String
|
|
@@ -3449,7 +3479,7 @@ module Aws::BedrockAgentCore
|
|
|
3449
3479
|
end
|
|
3450
3480
|
|
|
3451
3481
|
class InvokeHarnessStreamOutput < Enumerator[untyped, untyped]
|
|
3452
|
-
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]
|
|
3482
|
+
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]
|
|
3453
3483
|
end
|
|
3454
3484
|
end
|
|
3455
3485
|
end
|