aws-sdk-bedrockagentcore 1.73.0 → 1.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentcore/client.rb +18 -1
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +6 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +29 -1
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +3 -0
- data/sig/types.rbs +6 -0
- 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: 436e9a287d2c3fd986f5d9bc84a186e055ea2c7a6d15cbdddfd54c900caaa26b
|
|
4
|
+
data.tar.gz: 0de49dcb9c8b3c36d5ad400c451fc1d1ec56b6a945d776f400ab9097d9a6abdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e58c2333390a3e5b34a8331343ebc2987b4ce5dfe765cdc10f12ec0c25fcefd049385cd0526afd8ecee26f70c2e0dfe718c1a7dd2a110224b863636e44289c32
|
|
7
|
+
data.tar.gz: 485a455973c4ae0b86b954fa638d5b590c1b57560a67316456f7772ad3d6c75518715634b839febd5a8c47406bf24cacd2060e37bf69f161ec7d8eb4f2aa899d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.74.0 (2026-11-24)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds the optional userLocation parameter to InvokeWebSearch. Specify a two-letter ISO 3166-1 alpha-2 country code to refine web search results for that country. InvokeWebSearch also accepts search queries in languages other than English.
|
|
8
|
+
|
|
4
9
|
1.73.0 (2026-11-19)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.74.0
|
|
@@ -4567,6 +4567,17 @@ module Aws::BedrockAgentCore
|
|
|
4567
4567
|
# @option params [Types::WebSearchFilters] :filters
|
|
4568
4568
|
# The filters to apply to the search results.
|
|
4569
4569
|
#
|
|
4570
|
+
# @option params [Types::WebSearchUserLocation] :user_location
|
|
4571
|
+
# `userLocation` may allow for Web Search results to be refined for that
|
|
4572
|
+
# location. This is done by supplying a `country`. The field is
|
|
4573
|
+
# optional.
|
|
4574
|
+
#
|
|
4575
|
+
# The value is checked against assigned ISO 3166-1 alpha-2 codes, so
|
|
4576
|
+
# unassigned and user-assigned codes such as `UK` and `XK`, empty or
|
|
4577
|
+
# whitespace-only values are rejected. An omitted value is treated as
|
|
4578
|
+
# absent. Without location, as a fallback Web Search may use your query
|
|
4579
|
+
# to localize results or default to `en_US`.
|
|
4580
|
+
#
|
|
4570
4581
|
# @return [Types::InvokeWebSearchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4571
4582
|
#
|
|
4572
4583
|
# * {Types::InvokeWebSearchOutput#results #results} => Array<Types::WebSearchResult>
|
|
@@ -4587,6 +4598,9 @@ module Aws::BedrockAgentCore
|
|
|
4587
4598
|
# },
|
|
4588
4599
|
# max_results: 1,
|
|
4589
4600
|
# search_query: "Amazon Bedrock AgentCore web search",
|
|
4601
|
+
# user_location: {
|
|
4602
|
+
# country: "US",
|
|
4603
|
+
# },
|
|
4590
4604
|
# web_search_id: "web-search.v1",
|
|
4591
4605
|
# })
|
|
4592
4606
|
#
|
|
@@ -4618,6 +4632,9 @@ module Aws::BedrockAgentCore
|
|
|
4618
4632
|
# published_before: Time.now,
|
|
4619
4633
|
# },
|
|
4620
4634
|
# },
|
|
4635
|
+
# user_location: {
|
|
4636
|
+
# country: "WebSearchCountryCode",
|
|
4637
|
+
# },
|
|
4621
4638
|
# })
|
|
4622
4639
|
#
|
|
4623
4640
|
# @example Response structure
|
|
@@ -7397,7 +7414,7 @@ module Aws::BedrockAgentCore
|
|
|
7397
7414
|
tracer: tracer
|
|
7398
7415
|
)
|
|
7399
7416
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
|
7400
|
-
context[:gem_version] = '1.
|
|
7417
|
+
context[:gem_version] = '1.74.0'
|
|
7401
7418
|
Seahorse::Client::Request.new(handlers, context)
|
|
7402
7419
|
end
|
|
7403
7420
|
|
|
@@ -977,10 +977,12 @@ module Aws::BedrockAgentCore
|
|
|
977
977
|
ViewPort = Shapes::StructureShape.new(name: 'ViewPort')
|
|
978
978
|
ViewPortHeight = Shapes::IntegerShape.new(name: 'ViewPortHeight')
|
|
979
979
|
ViewPortWidth = Shapes::IntegerShape.new(name: 'ViewPortWidth')
|
|
980
|
+
WebSearchCountryCode = Shapes::StringShape.new(name: 'WebSearchCountryCode')
|
|
980
981
|
WebSearchFilters = Shapes::StructureShape.new(name: 'WebSearchFilters')
|
|
981
982
|
WebSearchId = Shapes::StringShape.new(name: 'WebSearchId')
|
|
982
983
|
WebSearchResult = Shapes::StructureShape.new(name: 'WebSearchResult')
|
|
983
984
|
WebSearchResultList = Shapes::ListShape.new(name: 'WebSearchResultList')
|
|
985
|
+
WebSearchUserLocation = Shapes::StructureShape.new(name: 'WebSearchUserLocation')
|
|
984
986
|
WorkloadIdentityNameType = Shapes::StringShape.new(name: 'WorkloadIdentityNameType')
|
|
985
987
|
WorkloadIdentityTokenType = Shapes::StringShape.new(name: 'WorkloadIdentityTokenType')
|
|
986
988
|
WwwAuthenticateHeader = Shapes::StringShape.new(name: 'WwwAuthenticateHeader')
|
|
@@ -2760,6 +2762,7 @@ module Aws::BedrockAgentCore
|
|
|
2760
2762
|
InvokeWebSearchInput.add_member(:search_query, Shapes::ShapeRef.new(shape: InvokeWebSearchInputSearchQueryString, required: true, location_name: "searchQuery"))
|
|
2761
2763
|
InvokeWebSearchInput.add_member(:max_results, Shapes::ShapeRef.new(shape: InvokeWebSearchInputMaxResultsInteger, location_name: "maxResults"))
|
|
2762
2764
|
InvokeWebSearchInput.add_member(:filters, Shapes::ShapeRef.new(shape: WebSearchFilters, location_name: "filters"))
|
|
2765
|
+
InvokeWebSearchInput.add_member(:user_location, Shapes::ShapeRef.new(shape: WebSearchUserLocation, location_name: "userLocation"))
|
|
2763
2766
|
InvokeWebSearchInput.struct_class = Types::InvokeWebSearchInput
|
|
2764
2767
|
|
|
2765
2768
|
InvokeWebSearchOutput.add_member(:results, Shapes::ShapeRef.new(shape: WebSearchResultList, required: true, location_name: "results"))
|
|
@@ -4071,6 +4074,9 @@ module Aws::BedrockAgentCore
|
|
|
4071
4074
|
|
|
4072
4075
|
WebSearchResultList.member = Shapes::ShapeRef.new(shape: WebSearchResult)
|
|
4073
4076
|
|
|
4077
|
+
WebSearchUserLocation.add_member(:country, Shapes::ShapeRef.new(shape: WebSearchCountryCode, location_name: "country"))
|
|
4078
|
+
WebSearchUserLocation.struct_class = Types::WebSearchUserLocation
|
|
4079
|
+
|
|
4074
4080
|
WwwAuthenticateHeaderList.member = Shapes::ShapeRef.new(shape: WwwAuthenticateHeader)
|
|
4075
4081
|
|
|
4076
4082
|
|
|
@@ -7825,13 +7825,26 @@ module Aws::BedrockAgentCore
|
|
|
7825
7825
|
# The filters to apply to the search results.
|
|
7826
7826
|
# @return [Types::WebSearchFilters]
|
|
7827
7827
|
#
|
|
7828
|
+
# @!attribute [rw] user_location
|
|
7829
|
+
# `userLocation` may allow for Web Search results to be refined for
|
|
7830
|
+
# that location. This is done by supplying a `country`. The field is
|
|
7831
|
+
# optional.
|
|
7832
|
+
#
|
|
7833
|
+
# The value is checked against assigned ISO 3166-1 alpha-2 codes, so
|
|
7834
|
+
# unassigned and user-assigned codes such as `UK` and `XK`, empty or
|
|
7835
|
+
# whitespace-only values are rejected. An omitted value is treated as
|
|
7836
|
+
# absent. Without location, as a fallback Web Search may use your
|
|
7837
|
+
# query to localize results or default to `en_US`.
|
|
7838
|
+
# @return [Types::WebSearchUserLocation]
|
|
7839
|
+
#
|
|
7828
7840
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeWebSearchInput AWS API Documentation
|
|
7829
7841
|
#
|
|
7830
7842
|
class InvokeWebSearchInput < Struct.new(
|
|
7831
7843
|
:web_search_id,
|
|
7832
7844
|
:search_query,
|
|
7833
7845
|
:max_results,
|
|
7834
|
-
:filters
|
|
7846
|
+
:filters,
|
|
7847
|
+
:user_location)
|
|
7835
7848
|
SENSITIVE = []
|
|
7836
7849
|
include Aws::Structure
|
|
7837
7850
|
end
|
|
@@ -13751,6 +13764,21 @@ module Aws::BedrockAgentCore
|
|
|
13751
13764
|
include Aws::Structure
|
|
13752
13765
|
end
|
|
13753
13766
|
|
|
13767
|
+
# The geographic location to use for the web search.
|
|
13768
|
+
#
|
|
13769
|
+
# @!attribute [rw] country
|
|
13770
|
+
# The two-letter ISO 3166-1 alpha-2 country code. The code is
|
|
13771
|
+
# case-insensitive.
|
|
13772
|
+
# @return [String]
|
|
13773
|
+
#
|
|
13774
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/WebSearchUserLocation AWS API Documentation
|
|
13775
|
+
#
|
|
13776
|
+
class WebSearchUserLocation < Struct.new(
|
|
13777
|
+
:country)
|
|
13778
|
+
SENSITIVE = []
|
|
13779
|
+
include Aws::Structure
|
|
13780
|
+
end
|
|
13781
|
+
|
|
13754
13782
|
# Contains output from a code interpreter stream.
|
|
13755
13783
|
#
|
|
13756
13784
|
# EventStream is an Enumerator of Events.
|
data/sig/client.rbs
CHANGED
|
@@ -1214,6 +1214,9 @@ module Aws
|
|
|
1214
1214
|
published_after: ::Time?,
|
|
1215
1215
|
published_before: ::Time?
|
|
1216
1216
|
}?
|
|
1217
|
+
},
|
|
1218
|
+
?user_location: {
|
|
1219
|
+
country: ::String?
|
|
1217
1220
|
}
|
|
1218
1221
|
) -> _InvokeWebSearchResponseSuccess
|
|
1219
1222
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeWebSearchResponseSuccess
|
data/sig/types.rbs
CHANGED
|
@@ -2306,6 +2306,7 @@ module Aws::BedrockAgentCore
|
|
|
2306
2306
|
attr_accessor search_query: ::String
|
|
2307
2307
|
attr_accessor max_results: ::Integer
|
|
2308
2308
|
attr_accessor filters: Types::WebSearchFilters
|
|
2309
|
+
attr_accessor user_location: Types::WebSearchUserLocation
|
|
2309
2310
|
SENSITIVE: []
|
|
2310
2311
|
end
|
|
2311
2312
|
|
|
@@ -4031,6 +4032,11 @@ module Aws::BedrockAgentCore
|
|
|
4031
4032
|
SENSITIVE: []
|
|
4032
4033
|
end
|
|
4033
4034
|
|
|
4035
|
+
class WebSearchUserLocation
|
|
4036
|
+
attr_accessor country: ::String
|
|
4037
|
+
SENSITIVE: []
|
|
4038
|
+
end
|
|
4039
|
+
|
|
4034
4040
|
class CodeInterpreterStreamOutput < Enumerator[untyped, untyped]
|
|
4035
4041
|
def event_types: () -> [:result, :access_denied_exception, :conflict_exception, :internal_server_exception, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :validation_exception]
|
|
4036
4042
|
end
|