aws-sdk-bedrockagentcore 1.65.0 → 1.67.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 +93 -1
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +62 -0
- data/lib/aws-sdk-bedrockagentcore/errors.rb +25 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +160 -0
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +22 -0
- data/sig/errors.rbs +4 -0
- data/sig/types.rbs +48 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0509c7d41ba19c3fd73793b75583bf22bba65bf805be36e0c7da40ef92ad304
|
|
4
|
+
data.tar.gz: ae4f1edc0a8fe0f5abeee4986800cb55f9e0a38f2193c64cf01489bf7e5eb20c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e7183521de021fed3326c4a706e4199335583384b7fd29cf68617d2074180ec7f690658491ad2175a26e92612a8cf4afa0e55eca53aa905bf38600cd52ebd4e
|
|
7
|
+
data.tar.gz: 636bfe8107fbadcbb1061eab6112c62d361ff9dcba435099544fcbd9b2e7fd414c66b14f351d7a1e162d08b9ff755e85113bd4de2fbfac39dd5e314e4bab6fc5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.67.0 (2026-11-09)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds the InvokeWebSearch API, which searches the web using the AWS-managed web search and returns ranked results with a text extract from each page. Results can be filtered by domain and by publication time.
|
|
8
|
+
|
|
9
|
+
1.66.0 (2026-11-06)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.65.0 (2026-11-04)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.67.0
|
|
@@ -4288,6 +4288,98 @@ module Aws::BedrockAgentCore
|
|
|
4288
4288
|
req.send_request(options, &block)
|
|
4289
4289
|
end
|
|
4290
4290
|
|
|
4291
|
+
# Searches the web and returns a ranked list of results. Each result
|
|
4292
|
+
# includes a text extract from the page.
|
|
4293
|
+
#
|
|
4294
|
+
# You can filter the results by domain and by publication date.
|
|
4295
|
+
#
|
|
4296
|
+
# To use this operation, you must have the
|
|
4297
|
+
# `bedrock-agentcore:InvokeWebSearch` permission on the resource
|
|
4298
|
+
# `arn:${Partition}:bedrock-agentcore:${Region}:aws:tool/web-search.v1`.
|
|
4299
|
+
#
|
|
4300
|
+
# @option params [required, String] :web_search_id
|
|
4301
|
+
# The identifier of the web search tool to invoke. The Amazon Web
|
|
4302
|
+
# Services-managed web search tool is `web-search.v1`.
|
|
4303
|
+
#
|
|
4304
|
+
# @option params [required, String] :search_query
|
|
4305
|
+
# The text to search for.
|
|
4306
|
+
#
|
|
4307
|
+
# @option params [Integer] :max_results
|
|
4308
|
+
# The maximum number of results to return. Defaults to 25.
|
|
4309
|
+
#
|
|
4310
|
+
# @option params [Types::WebSearchFilters] :filters
|
|
4311
|
+
# The filters to apply to the search results.
|
|
4312
|
+
#
|
|
4313
|
+
# @return [Types::InvokeWebSearchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4314
|
+
#
|
|
4315
|
+
# * {Types::InvokeWebSearchOutput#results #results} => Array<Types::WebSearchResult>
|
|
4316
|
+
#
|
|
4317
|
+
#
|
|
4318
|
+
# @example Example: Search the web for recent pages from one domain
|
|
4319
|
+
#
|
|
4320
|
+
# resp = client.invoke_web_search({
|
|
4321
|
+
# filters: {
|
|
4322
|
+
# domain_filter: {
|
|
4323
|
+
# include: [
|
|
4324
|
+
# "example.com",
|
|
4325
|
+
# ],
|
|
4326
|
+
# },
|
|
4327
|
+
# published_date_filter: {
|
|
4328
|
+
# published_after: Time.parse("2026-01-01T00:00:00Z"),
|
|
4329
|
+
# },
|
|
4330
|
+
# },
|
|
4331
|
+
# max_results: 1,
|
|
4332
|
+
# search_query: "Amazon Bedrock AgentCore web search",
|
|
4333
|
+
# web_search_id: "web-search.v1",
|
|
4334
|
+
# })
|
|
4335
|
+
#
|
|
4336
|
+
# resp.to_h outputs the following:
|
|
4337
|
+
# {
|
|
4338
|
+
# results: [
|
|
4339
|
+
# {
|
|
4340
|
+
# published_at: Time.parse("2026-03-15T08:00:00Z"),
|
|
4341
|
+
# text: "Web search lets an agent find current information on the public web and cite its sources.",
|
|
4342
|
+
# title: "Getting started with web search",
|
|
4343
|
+
# url: "https://docs.example.com/web-search/getting-started",
|
|
4344
|
+
# },
|
|
4345
|
+
# ],
|
|
4346
|
+
# }
|
|
4347
|
+
#
|
|
4348
|
+
# @example Request syntax with placeholder values
|
|
4349
|
+
#
|
|
4350
|
+
# resp = client.invoke_web_search({
|
|
4351
|
+
# web_search_id: "WebSearchId", # required
|
|
4352
|
+
# search_query: "InvokeWebSearchInputSearchQueryString", # required
|
|
4353
|
+
# max_results: 1,
|
|
4354
|
+
# filters: {
|
|
4355
|
+
# domain_filter: {
|
|
4356
|
+
# include: ["DomainName"],
|
|
4357
|
+
# exclude: ["DomainName"],
|
|
4358
|
+
# },
|
|
4359
|
+
# published_date_filter: {
|
|
4360
|
+
# published_after: Time.now,
|
|
4361
|
+
# published_before: Time.now,
|
|
4362
|
+
# },
|
|
4363
|
+
# },
|
|
4364
|
+
# })
|
|
4365
|
+
#
|
|
4366
|
+
# @example Response structure
|
|
4367
|
+
#
|
|
4368
|
+
# resp.results #=> Array
|
|
4369
|
+
# resp.results[0].title #=> String
|
|
4370
|
+
# resp.results[0].url #=> String
|
|
4371
|
+
# resp.results[0].text #=> String
|
|
4372
|
+
# resp.results[0].published_at #=> Time
|
|
4373
|
+
#
|
|
4374
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeWebSearch AWS API Documentation
|
|
4375
|
+
#
|
|
4376
|
+
# @overload invoke_web_search(params = {})
|
|
4377
|
+
# @param [Hash] params ({})
|
|
4378
|
+
def invoke_web_search(params = {}, options = {})
|
|
4379
|
+
req = build_request(:invoke_web_search, params)
|
|
4380
|
+
req.send_request(options)
|
|
4381
|
+
end
|
|
4382
|
+
|
|
4291
4383
|
# Lists all A/B tests in the account.
|
|
4292
4384
|
#
|
|
4293
4385
|
# @option params [Integer] :max_results
|
|
@@ -6668,7 +6760,7 @@ module Aws::BedrockAgentCore
|
|
|
6668
6760
|
tracer: tracer
|
|
6669
6761
|
)
|
|
6670
6762
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
|
6671
|
-
context[:gem_version] = '1.
|
|
6763
|
+
context[:gem_version] = '1.67.0'
|
|
6672
6764
|
Seahorse::Client::Request.new(handlers, context)
|
|
6673
6765
|
end
|
|
6674
6766
|
|
|
@@ -180,6 +180,9 @@ module Aws::BedrockAgentCore
|
|
|
180
180
|
DescriptorType = Shapes::StringShape.new(name: 'DescriptorType')
|
|
181
181
|
Descriptors = Shapes::StructureShape.new(name: 'Descriptors')
|
|
182
182
|
Document = Shapes::DocumentShape.new(name: 'Document', document: true)
|
|
183
|
+
DomainFilter = Shapes::StructureShape.new(name: 'DomainFilter')
|
|
184
|
+
DomainList = Shapes::ListShape.new(name: 'DomainList')
|
|
185
|
+
DomainName = Shapes::StringShape.new(name: 'DomainName')
|
|
183
186
|
DomainPattern = Shapes::StringShape.new(name: 'DomainPattern')
|
|
184
187
|
DomainPatterns = Shapes::ListShape.new(name: 'DomainPatterns')
|
|
185
188
|
Double = Shapes::FloatShape.new(name: 'Double')
|
|
@@ -447,6 +450,10 @@ module Aws::BedrockAgentCore
|
|
|
447
450
|
InvokeHarnessRequestTraceStateString = Shapes::StringShape.new(name: 'InvokeHarnessRequestTraceStateString')
|
|
448
451
|
InvokeHarnessResponse = Shapes::StructureShape.new(name: 'InvokeHarnessResponse')
|
|
449
452
|
InvokeHarnessStreamOutput = Shapes::StructureShape.new(name: 'InvokeHarnessStreamOutput')
|
|
453
|
+
InvokeWebSearchInput = Shapes::StructureShape.new(name: 'InvokeWebSearchInput')
|
|
454
|
+
InvokeWebSearchInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'InvokeWebSearchInputMaxResultsInteger')
|
|
455
|
+
InvokeWebSearchInputSearchQueryString = Shapes::StringShape.new(name: 'InvokeWebSearchInputSearchQueryString')
|
|
456
|
+
InvokeWebSearchOutput = Shapes::StructureShape.new(name: 'InvokeWebSearchOutput')
|
|
450
457
|
JwtKeyId = Shapes::StringShape.new(name: 'JwtKeyId')
|
|
451
458
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
|
452
459
|
KeyPressArguments = Shapes::StructureShape.new(name: 'KeyPressArguments')
|
|
@@ -628,6 +635,7 @@ module Aws::BedrockAgentCore
|
|
|
628
635
|
ProxyConfiguration = Shapes::StructureShape.new(name: 'ProxyConfiguration')
|
|
629
636
|
ProxyConfigurationProxiesList = Shapes::ListShape.new(name: 'ProxyConfigurationProxiesList')
|
|
630
637
|
ProxyCredentials = Shapes::UnionShape.new(name: 'ProxyCredentials')
|
|
638
|
+
PublishedDateFilter = Shapes::StructureShape.new(name: 'PublishedDateFilter')
|
|
631
639
|
RecommendationArn = Shapes::StringShape.new(name: 'RecommendationArn')
|
|
632
640
|
RecommendationConfig = Shapes::UnionShape.new(name: 'RecommendationConfig')
|
|
633
641
|
RecommendationDescription = Shapes::StringShape.new(name: 'RecommendationDescription')
|
|
@@ -716,6 +724,7 @@ module Aws::BedrockAgentCore
|
|
|
716
724
|
ServiceName = Shapes::StringShape.new(name: 'ServiceName')
|
|
717
725
|
ServiceNameList = Shapes::ListShape.new(name: 'ServiceNameList')
|
|
718
726
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
727
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
|
719
728
|
SessionFilter = Shapes::StructureShape.new(name: 'SessionFilter')
|
|
720
729
|
SessionFilterConfig = Shapes::StructureShape.new(name: 'SessionFilterConfig')
|
|
721
730
|
SessionFinding = Shapes::StructureShape.new(name: 'SessionFinding')
|
|
@@ -860,6 +869,10 @@ module Aws::BedrockAgentCore
|
|
|
860
869
|
ViewPort = Shapes::StructureShape.new(name: 'ViewPort')
|
|
861
870
|
ViewPortHeight = Shapes::IntegerShape.new(name: 'ViewPortHeight')
|
|
862
871
|
ViewPortWidth = Shapes::IntegerShape.new(name: 'ViewPortWidth')
|
|
872
|
+
WebSearchFilters = Shapes::StructureShape.new(name: 'WebSearchFilters')
|
|
873
|
+
WebSearchId = Shapes::StringShape.new(name: 'WebSearchId')
|
|
874
|
+
WebSearchResult = Shapes::StructureShape.new(name: 'WebSearchResult')
|
|
875
|
+
WebSearchResultList = Shapes::ListShape.new(name: 'WebSearchResultList')
|
|
863
876
|
WorkloadIdentityNameType = Shapes::StringShape.new(name: 'WorkloadIdentityNameType')
|
|
864
877
|
WorkloadIdentityTokenType = Shapes::StringShape.new(name: 'WorkloadIdentityTokenType')
|
|
865
878
|
WwwAuthenticateHeader = Shapes::StringShape.new(name: 'WwwAuthenticateHeader')
|
|
@@ -1389,6 +1402,12 @@ module Aws::BedrockAgentCore
|
|
|
1389
1402
|
Descriptors.add_member(:agent_skills, Shapes::ShapeRef.new(shape: AgentSkillsDescriptor, location_name: "agentSkills"))
|
|
1390
1403
|
Descriptors.struct_class = Types::Descriptors
|
|
1391
1404
|
|
|
1405
|
+
DomainFilter.add_member(:include, Shapes::ShapeRef.new(shape: DomainList, location_name: "include"))
|
|
1406
|
+
DomainFilter.add_member(:exclude, Shapes::ShapeRef.new(shape: DomainList, location_name: "exclude"))
|
|
1407
|
+
DomainFilter.struct_class = Types::DomainFilter
|
|
1408
|
+
|
|
1409
|
+
DomainList.member = Shapes::ShapeRef.new(shape: DomainName)
|
|
1410
|
+
|
|
1392
1411
|
DomainPatterns.member = Shapes::ShapeRef.new(shape: DomainPattern)
|
|
1393
1412
|
|
|
1394
1413
|
DuplicateIdException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
@@ -2363,6 +2382,15 @@ module Aws::BedrockAgentCore
|
|
|
2363
2382
|
InvokeHarnessStreamOutput.add_member(:hook_event, Shapes::ShapeRef.new(shape: HarnessHookEvent, event: true, location_name: "hookEvent"))
|
|
2364
2383
|
InvokeHarnessStreamOutput.struct_class = Types::InvokeHarnessStreamOutput
|
|
2365
2384
|
|
|
2385
|
+
InvokeWebSearchInput.add_member(:web_search_id, Shapes::ShapeRef.new(shape: WebSearchId, required: true, location: "uri", location_name: "webSearchId"))
|
|
2386
|
+
InvokeWebSearchInput.add_member(:search_query, Shapes::ShapeRef.new(shape: InvokeWebSearchInputSearchQueryString, required: true, location_name: "searchQuery"))
|
|
2387
|
+
InvokeWebSearchInput.add_member(:max_results, Shapes::ShapeRef.new(shape: InvokeWebSearchInputMaxResultsInteger, location_name: "maxResults"))
|
|
2388
|
+
InvokeWebSearchInput.add_member(:filters, Shapes::ShapeRef.new(shape: WebSearchFilters, location_name: "filters"))
|
|
2389
|
+
InvokeWebSearchInput.struct_class = Types::InvokeWebSearchInput
|
|
2390
|
+
|
|
2391
|
+
InvokeWebSearchOutput.add_member(:results, Shapes::ShapeRef.new(shape: WebSearchResultList, required: true, location_name: "results"))
|
|
2392
|
+
InvokeWebSearchOutput.struct_class = Types::InvokeWebSearchOutput
|
|
2393
|
+
|
|
2366
2394
|
KeyList.member = Shapes::ShapeRef.new(shape: String)
|
|
2367
2395
|
|
|
2368
2396
|
KeyPressArguments.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "key"))
|
|
@@ -2906,6 +2934,10 @@ module Aws::BedrockAgentCore
|
|
|
2906
2934
|
ProxyCredentials.add_member_subclass(:unknown, Types::ProxyCredentials::Unknown)
|
|
2907
2935
|
ProxyCredentials.struct_class = Types::ProxyCredentials
|
|
2908
2936
|
|
|
2937
|
+
PublishedDateFilter.add_member(:published_after, Shapes::ShapeRef.new(shape: DateTimestamp, location_name: "publishedAfter"))
|
|
2938
|
+
PublishedDateFilter.add_member(:published_before, Shapes::ShapeRef.new(shape: DateTimestamp, location_name: "publishedBefore"))
|
|
2939
|
+
PublishedDateFilter.struct_class = Types::PublishedDateFilter
|
|
2940
|
+
|
|
2909
2941
|
RecommendationConfig.add_member(:system_prompt_recommendation_config, Shapes::ShapeRef.new(shape: SystemPromptRecommendationConfig, location_name: "systemPromptRecommendationConfig"))
|
|
2910
2942
|
RecommendationConfig.add_member(:tool_description_recommendation_config, Shapes::ShapeRef.new(shape: ToolDescriptionRecommendationConfig, location_name: "toolDescriptionRecommendationConfig"))
|
|
2911
2943
|
RecommendationConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
@@ -3097,6 +3129,10 @@ module Aws::BedrockAgentCore
|
|
|
3097
3129
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
3098
3130
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
3099
3131
|
|
|
3132
|
+
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
3133
|
+
ServiceUnavailableException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "retryAfterSeconds"))
|
|
3134
|
+
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
|
3135
|
+
|
|
3100
3136
|
SessionFilter.add_member(:event_filter, Shapes::ShapeRef.new(shape: EventFilterCondition, location_name: "eventFilter"))
|
|
3101
3137
|
SessionFilter.struct_class = Types::SessionFilter
|
|
3102
3138
|
|
|
@@ -3554,6 +3590,18 @@ module Aws::BedrockAgentCore
|
|
|
3554
3590
|
ViewPort.add_member(:height, Shapes::ShapeRef.new(shape: ViewPortHeight, required: true, location_name: "height"))
|
|
3555
3591
|
ViewPort.struct_class = Types::ViewPort
|
|
3556
3592
|
|
|
3593
|
+
WebSearchFilters.add_member(:domain_filter, Shapes::ShapeRef.new(shape: DomainFilter, location_name: "domainFilter"))
|
|
3594
|
+
WebSearchFilters.add_member(:published_date_filter, Shapes::ShapeRef.new(shape: PublishedDateFilter, location_name: "publishedDateFilter"))
|
|
3595
|
+
WebSearchFilters.struct_class = Types::WebSearchFilters
|
|
3596
|
+
|
|
3597
|
+
WebSearchResult.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "title"))
|
|
3598
|
+
WebSearchResult.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
|
|
3599
|
+
WebSearchResult.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "text"))
|
|
3600
|
+
WebSearchResult.add_member(:published_at, Shapes::ShapeRef.new(shape: DateTimestamp, location_name: "publishedAt"))
|
|
3601
|
+
WebSearchResult.struct_class = Types::WebSearchResult
|
|
3602
|
+
|
|
3603
|
+
WebSearchResultList.member = Shapes::ShapeRef.new(shape: WebSearchResult)
|
|
3604
|
+
|
|
3557
3605
|
WwwAuthenticateHeaderList.member = Shapes::ShapeRef.new(shape: WwwAuthenticateHeader)
|
|
3558
3606
|
|
|
3559
3607
|
|
|
@@ -4149,6 +4197,20 @@ module Aws::BedrockAgentCore
|
|
|
4149
4197
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4150
4198
|
end)
|
|
4151
4199
|
|
|
4200
|
+
api.add_operation(:invoke_web_search, Seahorse::Model::Operation.new.tap do |o|
|
|
4201
|
+
o.name = "InvokeWebSearch"
|
|
4202
|
+
o.http_method = "POST"
|
|
4203
|
+
o.http_request_uri = "/web-search/{webSearchId}/invoke"
|
|
4204
|
+
o.input = Shapes::ShapeRef.new(shape: InvokeWebSearchInput)
|
|
4205
|
+
o.output = Shapes::ShapeRef.new(shape: InvokeWebSearchOutput)
|
|
4206
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
4207
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4208
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4209
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
4210
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4211
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4212
|
+
end)
|
|
4213
|
+
|
|
4152
4214
|
api.add_operation(:list_ab_tests, Seahorse::Model::Operation.new.tap do |o|
|
|
4153
4215
|
o.name = "ListABTests"
|
|
4154
4216
|
o.http_method = "GET"
|
|
@@ -37,6 +37,7 @@ module Aws::BedrockAgentCore
|
|
|
37
37
|
# * {RuntimeClientError}
|
|
38
38
|
# * {ServiceException}
|
|
39
39
|
# * {ServiceQuotaExceededException}
|
|
40
|
+
# * {ServiceUnavailableException}
|
|
40
41
|
# * {SubscriptionRequiredException}
|
|
41
42
|
# * {ThrottledException}
|
|
42
43
|
# * {ThrottlingException}
|
|
@@ -203,6 +204,30 @@ module Aws::BedrockAgentCore
|
|
|
203
204
|
end
|
|
204
205
|
end
|
|
205
206
|
|
|
207
|
+
class ServiceUnavailableException < ServiceError
|
|
208
|
+
|
|
209
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
210
|
+
# @param [String] message
|
|
211
|
+
# @param [Aws::BedrockAgentCore::Types::ServiceUnavailableException] data
|
|
212
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
213
|
+
super(context, message, data)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# @return [String]
|
|
217
|
+
def message
|
|
218
|
+
@message || @data[:message]
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# @return [String]
|
|
222
|
+
def retry_after_seconds
|
|
223
|
+
@data[:retry_after_seconds]
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
def retryable?
|
|
227
|
+
true
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
206
231
|
class SubscriptionRequiredException < ServiceError
|
|
207
232
|
|
|
208
233
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -2364,6 +2364,28 @@ module Aws::BedrockAgentCore
|
|
|
2364
2364
|
include Aws::Structure
|
|
2365
2365
|
end
|
|
2366
2366
|
|
|
2367
|
+
# The domains to include in or exclude from the results. A root domain
|
|
2368
|
+
# also matches its subdomains. For example, `example.com` also matches
|
|
2369
|
+
# `docs.example.com`.
|
|
2370
|
+
#
|
|
2371
|
+
# @!attribute [rw] include
|
|
2372
|
+
# The domains to return results from. Results from other domains are
|
|
2373
|
+
# not returned.
|
|
2374
|
+
# @return [Array<String>]
|
|
2375
|
+
#
|
|
2376
|
+
# @!attribute [rw] exclude
|
|
2377
|
+
# The domains to never return results from.
|
|
2378
|
+
# @return [Array<String>]
|
|
2379
|
+
#
|
|
2380
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DomainFilter AWS API Documentation
|
|
2381
|
+
#
|
|
2382
|
+
class DomainFilter < Struct.new(
|
|
2383
|
+
:include,
|
|
2384
|
+
:exclude)
|
|
2385
|
+
SENSITIVE = []
|
|
2386
|
+
include Aws::Structure
|
|
2387
|
+
end
|
|
2388
|
+
|
|
2367
2389
|
# An exception thrown when attempting to create a resource with an
|
|
2368
2390
|
# identifier that already exists.
|
|
2369
2391
|
#
|
|
@@ -6556,6 +6578,50 @@ module Aws::BedrockAgentCore
|
|
|
6556
6578
|
include Aws::Structure
|
|
6557
6579
|
end
|
|
6558
6580
|
|
|
6581
|
+
# Request for the `InvokeWebSearch` operation.
|
|
6582
|
+
#
|
|
6583
|
+
# @!attribute [rw] web_search_id
|
|
6584
|
+
# The identifier of the web search tool to invoke. The Amazon Web
|
|
6585
|
+
# Services-managed web search tool is `web-search.v1`.
|
|
6586
|
+
# @return [String]
|
|
6587
|
+
#
|
|
6588
|
+
# @!attribute [rw] search_query
|
|
6589
|
+
# The text to search for.
|
|
6590
|
+
# @return [String]
|
|
6591
|
+
#
|
|
6592
|
+
# @!attribute [rw] max_results
|
|
6593
|
+
# The maximum number of results to return. Defaults to 25.
|
|
6594
|
+
# @return [Integer]
|
|
6595
|
+
#
|
|
6596
|
+
# @!attribute [rw] filters
|
|
6597
|
+
# The filters to apply to the search results.
|
|
6598
|
+
# @return [Types::WebSearchFilters]
|
|
6599
|
+
#
|
|
6600
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeWebSearchInput AWS API Documentation
|
|
6601
|
+
#
|
|
6602
|
+
class InvokeWebSearchInput < Struct.new(
|
|
6603
|
+
:web_search_id,
|
|
6604
|
+
:search_query,
|
|
6605
|
+
:max_results,
|
|
6606
|
+
:filters)
|
|
6607
|
+
SENSITIVE = []
|
|
6608
|
+
include Aws::Structure
|
|
6609
|
+
end
|
|
6610
|
+
|
|
6611
|
+
# Response for the `InvokeWebSearch` operation.
|
|
6612
|
+
#
|
|
6613
|
+
# @!attribute [rw] results
|
|
6614
|
+
# The search results, in ranked order.
|
|
6615
|
+
# @return [Array<Types::WebSearchResult>]
|
|
6616
|
+
#
|
|
6617
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeWebSearchOutput AWS API Documentation
|
|
6618
|
+
#
|
|
6619
|
+
class InvokeWebSearchOutput < Struct.new(
|
|
6620
|
+
:results)
|
|
6621
|
+
SENSITIVE = []
|
|
6622
|
+
include Aws::Structure
|
|
6623
|
+
end
|
|
6624
|
+
|
|
6559
6625
|
# Arguments for a key press action.
|
|
6560
6626
|
#
|
|
6561
6627
|
# @!attribute [rw] key
|
|
@@ -8940,6 +9006,30 @@ module Aws::BedrockAgentCore
|
|
|
8940
9006
|
class Unknown < ProxyCredentials; end
|
|
8941
9007
|
end
|
|
8942
9008
|
|
|
9009
|
+
# A publication time range for the results. Both bounds are optional,
|
|
9010
|
+
# and both are inclusive. If `publishedAfter` is later than
|
|
9011
|
+
# `publishedBefore`, the request fails with a `ValidationException`.
|
|
9012
|
+
#
|
|
9013
|
+
# @!attribute [rw] published_after
|
|
9014
|
+
# The earliest publication time of the results, inclusive.
|
|
9015
|
+
# @return [Time]
|
|
9016
|
+
#
|
|
9017
|
+
# @!attribute [rw] published_before
|
|
9018
|
+
# The latest publication time of the results, inclusive. A date
|
|
9019
|
+
# without a time, such as one passed to the AWS CLI, means midnight
|
|
9020
|
+
# UTC. To include a whole day, use the last second of that day, for
|
|
9021
|
+
# example `2026-01-31T23:59:59Z`.
|
|
9022
|
+
# @return [Time]
|
|
9023
|
+
#
|
|
9024
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/PublishedDateFilter AWS API Documentation
|
|
9025
|
+
#
|
|
9026
|
+
class PublishedDateFilter < Struct.new(
|
|
9027
|
+
:published_after,
|
|
9028
|
+
:published_before)
|
|
9029
|
+
SENSITIVE = []
|
|
9030
|
+
include Aws::Structure
|
|
9031
|
+
end
|
|
9032
|
+
|
|
8943
9033
|
# The configuration for a recommendation, varying by recommendation
|
|
8944
9034
|
# type.
|
|
8945
9035
|
#
|
|
@@ -9806,6 +9896,27 @@ module Aws::BedrockAgentCore
|
|
|
9806
9896
|
include Aws::Structure
|
|
9807
9897
|
end
|
|
9808
9898
|
|
|
9899
|
+
# The service can't handle the request right now. Retry the request. If
|
|
9900
|
+
# the response includes `retryAfterSeconds`, wait that many seconds
|
|
9901
|
+
# before you retry.
|
|
9902
|
+
#
|
|
9903
|
+
# @!attribute [rw] message
|
|
9904
|
+
# A message that describes the error.
|
|
9905
|
+
# @return [String]
|
|
9906
|
+
#
|
|
9907
|
+
# @!attribute [rw] retry_after_seconds
|
|
9908
|
+
# The number of seconds to wait before you retry the request.
|
|
9909
|
+
# @return [Integer]
|
|
9910
|
+
#
|
|
9911
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ServiceUnavailableException AWS API Documentation
|
|
9912
|
+
#
|
|
9913
|
+
class ServiceUnavailableException < Struct.new(
|
|
9914
|
+
:message,
|
|
9915
|
+
:retry_after_seconds)
|
|
9916
|
+
SENSITIVE = []
|
|
9917
|
+
include Aws::Structure
|
|
9918
|
+
end
|
|
9919
|
+
|
|
9809
9920
|
# Contains filter criteria for listing sessions.
|
|
9810
9921
|
#
|
|
9811
9922
|
# @!attribute [rw] event_filter
|
|
@@ -11889,6 +12000,55 @@ module Aws::BedrockAgentCore
|
|
|
11889
12000
|
include Aws::Structure
|
|
11890
12001
|
end
|
|
11891
12002
|
|
|
12003
|
+
# The filters to apply to a web search.
|
|
12004
|
+
#
|
|
12005
|
+
# @!attribute [rw] domain_filter
|
|
12006
|
+
# The domains to include in or exclude from the results.
|
|
12007
|
+
# @return [Types::DomainFilter]
|
|
12008
|
+
#
|
|
12009
|
+
# @!attribute [rw] published_date_filter
|
|
12010
|
+
# The publication time range of the results.
|
|
12011
|
+
# @return [Types::PublishedDateFilter]
|
|
12012
|
+
#
|
|
12013
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/WebSearchFilters AWS API Documentation
|
|
12014
|
+
#
|
|
12015
|
+
class WebSearchFilters < Struct.new(
|
|
12016
|
+
:domain_filter,
|
|
12017
|
+
:published_date_filter)
|
|
12018
|
+
SENSITIVE = []
|
|
12019
|
+
include Aws::Structure
|
|
12020
|
+
end
|
|
12021
|
+
|
|
12022
|
+
# A web search result.
|
|
12023
|
+
#
|
|
12024
|
+
# @!attribute [rw] title
|
|
12025
|
+
# The title of the page.
|
|
12026
|
+
# @return [String]
|
|
12027
|
+
#
|
|
12028
|
+
# @!attribute [rw] url
|
|
12029
|
+
# The URL of the page.
|
|
12030
|
+
# @return [String]
|
|
12031
|
+
#
|
|
12032
|
+
# @!attribute [rw] text
|
|
12033
|
+
# A text extract from the page.
|
|
12034
|
+
# @return [String]
|
|
12035
|
+
#
|
|
12036
|
+
# @!attribute [rw] published_at
|
|
12037
|
+
# The time the page was published. This field is absent when the
|
|
12038
|
+
# publication time is not known.
|
|
12039
|
+
# @return [Time]
|
|
12040
|
+
#
|
|
12041
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/WebSearchResult AWS API Documentation
|
|
12042
|
+
#
|
|
12043
|
+
class WebSearchResult < Struct.new(
|
|
12044
|
+
:title,
|
|
12045
|
+
:url,
|
|
12046
|
+
:text,
|
|
12047
|
+
:published_at)
|
|
12048
|
+
SENSITIVE = []
|
|
12049
|
+
include Aws::Structure
|
|
12050
|
+
end
|
|
12051
|
+
|
|
11892
12052
|
# Contains output from a code interpreter stream.
|
|
11893
12053
|
#
|
|
11894
12054
|
# EventStream is an Enumerator of Events.
|
data/sig/client.rbs
CHANGED
|
@@ -1127,6 +1127,28 @@ module Aws
|
|
|
1127
1127
|
) ?{ (*untyped) -> void } -> _InvokeHarnessResponseSuccess
|
|
1128
1128
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeHarnessResponseSuccess
|
|
1129
1129
|
|
|
1130
|
+
interface _InvokeWebSearchResponseSuccess
|
|
1131
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeWebSearchOutput]
|
|
1132
|
+
def results: () -> ::Array[Types::WebSearchResult]
|
|
1133
|
+
end
|
|
1134
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#invoke_web_search-instance_method
|
|
1135
|
+
def invoke_web_search: (
|
|
1136
|
+
web_search_id: ::String,
|
|
1137
|
+
search_query: ::String,
|
|
1138
|
+
?max_results: ::Integer,
|
|
1139
|
+
?filters: {
|
|
1140
|
+
domain_filter: {
|
|
1141
|
+
include: Array[::String]?,
|
|
1142
|
+
exclude: Array[::String]?
|
|
1143
|
+
}?,
|
|
1144
|
+
published_date_filter: {
|
|
1145
|
+
published_after: ::Time?,
|
|
1146
|
+
published_before: ::Time?
|
|
1147
|
+
}?
|
|
1148
|
+
}
|
|
1149
|
+
) -> _InvokeWebSearchResponseSuccess
|
|
1150
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeWebSearchResponseSuccess
|
|
1151
|
+
|
|
1130
1152
|
interface _ListABTestsResponseSuccess
|
|
1131
1153
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListABTestsResponse]
|
|
1132
1154
|
def ab_tests: () -> ::Array[Types::ABTestSummary]
|
data/sig/errors.rbs
CHANGED
|
@@ -41,6 +41,10 @@ module Aws
|
|
|
41
41
|
class ServiceQuotaExceededException < ServiceError
|
|
42
42
|
def message: () -> ::String
|
|
43
43
|
end
|
|
44
|
+
class ServiceUnavailableException < ServiceError
|
|
45
|
+
def message: () -> ::String
|
|
46
|
+
def retry_after_seconds: () -> ::String
|
|
47
|
+
end
|
|
44
48
|
class SubscriptionRequiredException < ServiceError
|
|
45
49
|
def message: () -> ::String
|
|
46
50
|
def subscription_url: () -> ::String
|
data/sig/types.rbs
CHANGED
|
@@ -706,6 +706,12 @@ module Aws::BedrockAgentCore
|
|
|
706
706
|
SENSITIVE: []
|
|
707
707
|
end
|
|
708
708
|
|
|
709
|
+
class DomainFilter
|
|
710
|
+
attr_accessor include: ::Array[::String]
|
|
711
|
+
attr_accessor exclude: ::Array[::String]
|
|
712
|
+
SENSITIVE: []
|
|
713
|
+
end
|
|
714
|
+
|
|
709
715
|
class DuplicateIdException
|
|
710
716
|
attr_accessor message: ::String
|
|
711
717
|
SENSITIVE: []
|
|
@@ -723,7 +729,7 @@ module Aws::BedrockAgentCore
|
|
|
723
729
|
attr_accessor linked_accounts: ::Array[Types::LinkedAccount]
|
|
724
730
|
attr_accessor wallet_address: ::String
|
|
725
731
|
attr_accessor redirect_url: ::String
|
|
726
|
-
SENSITIVE: []
|
|
732
|
+
SENSITIVE: [:linked_accounts]
|
|
727
733
|
end
|
|
728
734
|
|
|
729
735
|
class EvaluateRequest
|
|
@@ -1222,7 +1228,7 @@ module Aws::BedrockAgentCore
|
|
|
1222
1228
|
attr_accessor custom_state: ::String
|
|
1223
1229
|
attr_accessor resources: ::Array[::String]
|
|
1224
1230
|
attr_accessor audiences: ::Array[::String]
|
|
1225
|
-
SENSITIVE: [:workload_identity_token, :custom_state]
|
|
1231
|
+
SENSITIVE: [:workload_identity_token, :custom_parameters, :custom_state]
|
|
1226
1232
|
end
|
|
1227
1233
|
|
|
1228
1234
|
class GetResourceOauth2TokenResponse
|
|
@@ -1947,6 +1953,19 @@ module Aws::BedrockAgentCore
|
|
|
1947
1953
|
SENSITIVE: []
|
|
1948
1954
|
end
|
|
1949
1955
|
|
|
1956
|
+
class InvokeWebSearchInput
|
|
1957
|
+
attr_accessor web_search_id: ::String
|
|
1958
|
+
attr_accessor search_query: ::String
|
|
1959
|
+
attr_accessor max_results: ::Integer
|
|
1960
|
+
attr_accessor filters: Types::WebSearchFilters
|
|
1961
|
+
SENSITIVE: []
|
|
1962
|
+
end
|
|
1963
|
+
|
|
1964
|
+
class InvokeWebSearchOutput
|
|
1965
|
+
attr_accessor results: ::Array[Types::WebSearchResult]
|
|
1966
|
+
SENSITIVE: []
|
|
1967
|
+
end
|
|
1968
|
+
|
|
1950
1969
|
class KeyPressArguments
|
|
1951
1970
|
attr_accessor key: ::String
|
|
1952
1971
|
attr_accessor presses: ::Integer
|
|
@@ -2459,7 +2478,7 @@ module Aws::BedrockAgentCore
|
|
|
2459
2478
|
attr_accessor custom_parameters: ::Hash[::String, ::String]
|
|
2460
2479
|
attr_accessor grant_type: ("CLIENT_CREDENTIALS" | "AUTHORIZATION_CODE" | "TOKEN_EXCHANGE")
|
|
2461
2480
|
attr_accessor default_return_url: ::String
|
|
2462
|
-
SENSITIVE: []
|
|
2481
|
+
SENSITIVE: [:custom_parameters]
|
|
2463
2482
|
end
|
|
2464
2483
|
|
|
2465
2484
|
class OnlineEvaluationConfigSource
|
|
@@ -2681,6 +2700,12 @@ module Aws::BedrockAgentCore
|
|
|
2681
2700
|
end
|
|
2682
2701
|
end
|
|
2683
2702
|
|
|
2703
|
+
class PublishedDateFilter
|
|
2704
|
+
attr_accessor published_after: ::Time
|
|
2705
|
+
attr_accessor published_before: ::Time
|
|
2706
|
+
SENSITIVE: []
|
|
2707
|
+
end
|
|
2708
|
+
|
|
2684
2709
|
class RecommendationConfig
|
|
2685
2710
|
attr_accessor system_prompt_recommendation_config: Types::SystemPromptRecommendationConfig
|
|
2686
2711
|
attr_accessor tool_description_recommendation_config: Types::ToolDescriptionRecommendationConfig
|
|
@@ -2942,6 +2967,12 @@ module Aws::BedrockAgentCore
|
|
|
2942
2967
|
SENSITIVE: []
|
|
2943
2968
|
end
|
|
2944
2969
|
|
|
2970
|
+
class ServiceUnavailableException
|
|
2971
|
+
attr_accessor message: ::String
|
|
2972
|
+
attr_accessor retry_after_seconds: ::Integer
|
|
2973
|
+
SENSITIVE: []
|
|
2974
|
+
end
|
|
2975
|
+
|
|
2945
2976
|
class SessionFilter
|
|
2946
2977
|
attr_accessor event_filter: ("HAS_EVENTS")
|
|
2947
2978
|
SENSITIVE: []
|
|
@@ -3510,6 +3541,20 @@ module Aws::BedrockAgentCore
|
|
|
3510
3541
|
SENSITIVE: []
|
|
3511
3542
|
end
|
|
3512
3543
|
|
|
3544
|
+
class WebSearchFilters
|
|
3545
|
+
attr_accessor domain_filter: Types::DomainFilter
|
|
3546
|
+
attr_accessor published_date_filter: Types::PublishedDateFilter
|
|
3547
|
+
SENSITIVE: []
|
|
3548
|
+
end
|
|
3549
|
+
|
|
3550
|
+
class WebSearchResult
|
|
3551
|
+
attr_accessor title: ::String
|
|
3552
|
+
attr_accessor url: ::String
|
|
3553
|
+
attr_accessor text: ::String
|
|
3554
|
+
attr_accessor published_at: ::Time
|
|
3555
|
+
SENSITIVE: []
|
|
3556
|
+
end
|
|
3557
|
+
|
|
3513
3558
|
class CodeInterpreterStreamOutput < Enumerator[untyped, untyped]
|
|
3514
3559
|
def event_types: () -> [:result, :access_denied_exception, :conflict_exception, :internal_server_exception, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :validation_exception]
|
|
3515
3560
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-bedrockagentcore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.67.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.266.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.266.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|