aws-sdk-bedrockagentruntime 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +21 -1
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +4 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +111 -29
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +20 -0
- data/sig/types.rbs +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eafb5d5d9bacf58fd8d264efaec83eabe788a5341183c0f78f835dbd71f9ae54
|
4
|
+
data.tar.gz: a572189dc142e6a0442f23e66defbca53d42ebe2b259db51ef0213d42c3477c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb7ca2f82b6fd279ef9d7740347f467075a6398fe825e5c5263f98ce55977784ea67405fb06d129a289adb400e06420d3e3453daa9a74a8af8e13f1fd5c288b3
|
7
|
+
data.tar.gz: 3a648ac1106a69c54cff4ecfc946c08c44b1ee26ab808e63587e74a2d0bcfa6211f905a9c1e3c1dae9232610117ac63e796308b1b7e3474105edaee5d5880df3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.10.0 (2024-05-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Updating Bedrock Knowledge Base Metadata & Filters feature with two new filters listContains and stringContains
|
8
|
+
|
4
9
|
1.9.0 (2024-05-13)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.10.0
|
@@ -989,6 +989,11 @@ module Aws::BedrockAgentRuntime
|
|
989
989
|
# value: { # required
|
990
990
|
# },
|
991
991
|
# },
|
992
|
+
# list_contains: {
|
993
|
+
# key: "FilterKey", # required
|
994
|
+
# value: { # required
|
995
|
+
# },
|
996
|
+
# },
|
992
997
|
# not_equals: {
|
993
998
|
# key: "FilterKey", # required
|
994
999
|
# value: { # required
|
@@ -1009,6 +1014,11 @@ module Aws::BedrockAgentRuntime
|
|
1009
1014
|
# value: { # required
|
1010
1015
|
# },
|
1011
1016
|
# },
|
1017
|
+
# string_contains: {
|
1018
|
+
# key: "FilterKey", # required
|
1019
|
+
# value: { # required
|
1020
|
+
# },
|
1021
|
+
# },
|
1012
1022
|
# },
|
1013
1023
|
# number_of_results: 1,
|
1014
1024
|
# override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
|
@@ -1173,6 +1183,11 @@ module Aws::BedrockAgentRuntime
|
|
1173
1183
|
# value: { # required
|
1174
1184
|
# },
|
1175
1185
|
# },
|
1186
|
+
# list_contains: {
|
1187
|
+
# key: "FilterKey", # required
|
1188
|
+
# value: { # required
|
1189
|
+
# },
|
1190
|
+
# },
|
1176
1191
|
# not_equals: {
|
1177
1192
|
# key: "FilterKey", # required
|
1178
1193
|
# value: { # required
|
@@ -1193,6 +1208,11 @@ module Aws::BedrockAgentRuntime
|
|
1193
1208
|
# value: { # required
|
1194
1209
|
# },
|
1195
1210
|
# },
|
1211
|
+
# string_contains: {
|
1212
|
+
# key: "FilterKey", # required
|
1213
|
+
# value: { # required
|
1214
|
+
# },
|
1215
|
+
# },
|
1196
1216
|
# },
|
1197
1217
|
# number_of_results: 1,
|
1198
1218
|
# override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
|
@@ -1244,7 +1264,7 @@ module Aws::BedrockAgentRuntime
|
|
1244
1264
|
params: params,
|
1245
1265
|
config: config)
|
1246
1266
|
context[:gem_name] = 'aws-sdk-bedrockagentruntime'
|
1247
|
-
context[:gem_version] = '1.
|
1267
|
+
context[:gem_version] = '1.10.0'
|
1248
1268
|
Seahorse::Client::Request.new(handlers, context)
|
1249
1269
|
end
|
1250
1270
|
|
@@ -525,10 +525,12 @@ module Aws::BedrockAgentRuntime
|
|
525
525
|
RetrievalFilter.add_member(:in, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "in"))
|
526
526
|
RetrievalFilter.add_member(:less_than, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "lessThan"))
|
527
527
|
RetrievalFilter.add_member(:less_than_or_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "lessThanOrEquals"))
|
528
|
+
RetrievalFilter.add_member(:list_contains, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "listContains"))
|
528
529
|
RetrievalFilter.add_member(:not_equals, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "notEquals"))
|
529
530
|
RetrievalFilter.add_member(:not_in, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "notIn"))
|
530
531
|
RetrievalFilter.add_member(:or_all, Shapes::ShapeRef.new(shape: RetrievalFilterList, location_name: "orAll"))
|
531
532
|
RetrievalFilter.add_member(:starts_with, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "startsWith"))
|
533
|
+
RetrievalFilter.add_member(:string_contains, Shapes::ShapeRef.new(shape: FilterAttribute, location_name: "stringContains"))
|
532
534
|
RetrievalFilter.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
533
535
|
RetrievalFilter.add_member_subclass(:and_all, Types::RetrievalFilter::AndAll)
|
534
536
|
RetrievalFilter.add_member_subclass(:equals, Types::RetrievalFilter::Equals)
|
@@ -537,10 +539,12 @@ module Aws::BedrockAgentRuntime
|
|
537
539
|
RetrievalFilter.add_member_subclass(:in, Types::RetrievalFilter::In)
|
538
540
|
RetrievalFilter.add_member_subclass(:less_than, Types::RetrievalFilter::LessThan)
|
539
541
|
RetrievalFilter.add_member_subclass(:less_than_or_equals, Types::RetrievalFilter::LessThanOrEquals)
|
542
|
+
RetrievalFilter.add_member_subclass(:list_contains, Types::RetrievalFilter::ListContains)
|
540
543
|
RetrievalFilter.add_member_subclass(:not_equals, Types::RetrievalFilter::NotEquals)
|
541
544
|
RetrievalFilter.add_member_subclass(:not_in, Types::RetrievalFilter::NotIn)
|
542
545
|
RetrievalFilter.add_member_subclass(:or_all, Types::RetrievalFilter::OrAll)
|
543
546
|
RetrievalFilter.add_member_subclass(:starts_with, Types::RetrievalFilter::StartsWith)
|
547
|
+
RetrievalFilter.add_member_subclass(:string_contains, Types::RetrievalFilter::StringContains)
|
544
548
|
RetrievalFilter.add_member_subclass(:unknown, Types::RetrievalFilter::Unknown)
|
545
549
|
RetrievalFilter.struct_class = Types::RetrievalFilter
|
546
550
|
|
@@ -1807,7 +1807,8 @@ module Aws::BedrockAgentRuntime
|
|
1807
1807
|
|
1808
1808
|
# Specifies the filters to use on the metadata attributes in the
|
1809
1809
|
# knowledge base data sources before returning results. For more
|
1810
|
-
# information, see [Query configurations][1].
|
1810
|
+
# information, see [Query configurations][1]. See the examples below to
|
1811
|
+
# see how to use these filters.
|
1811
1812
|
#
|
1812
1813
|
# This data type is used in the following API operations:
|
1813
1814
|
#
|
@@ -1824,68 +1825,145 @@ module Aws::BedrockAgentRuntime
|
|
1824
1825
|
# @note RetrievalFilter is a union - when making an API calls you must set exactly one of the members.
|
1825
1826
|
#
|
1826
1827
|
# @!attribute [rw] and_all
|
1827
|
-
# Knowledge base data sources
|
1828
|
-
# the filter conditions inside this list
|
1828
|
+
# Knowledge base data sources are returned if their metadata
|
1829
|
+
# attributes fulfill all the filter conditions inside this list.
|
1829
1830
|
# @return [Array<Types::RetrievalFilter>]
|
1830
1831
|
#
|
1831
1832
|
# @!attribute [rw] equals
|
1832
|
-
# Knowledge base data sources
|
1833
|
-
# name matches the `key` and whose value matches the
|
1834
|
-
#
|
1833
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1834
|
+
# attribute whose name matches the `key` and whose value matches the
|
1835
|
+
# `value` in this object.
|
1836
|
+
#
|
1837
|
+
# The following example would return data sources with an `animal`
|
1838
|
+
# attribute whose value is `cat`:
|
1839
|
+
#
|
1840
|
+
# `"equals": \{ "key": "animal", "value": "cat" \}`
|
1835
1841
|
# @return [Types::FilterAttribute]
|
1836
1842
|
#
|
1837
1843
|
# @!attribute [rw] greater_than
|
1838
|
-
# Knowledge base data sources
|
1839
|
-
# name matches the `key` and whose value is greater
|
1840
|
-
# in this object
|
1844
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1845
|
+
# attribute whose name matches the `key` and whose value is greater
|
1846
|
+
# than the `value` in this object.
|
1847
|
+
#
|
1848
|
+
# The following example would return data sources with an `year`
|
1849
|
+
# attribute whose value is greater than `1989`:
|
1850
|
+
#
|
1851
|
+
# `"greaterThan": \{ "key": "year", "value": 1989 \}`
|
1841
1852
|
# @return [Types::FilterAttribute]
|
1842
1853
|
#
|
1843
1854
|
# @!attribute [rw] greater_than_or_equals
|
1844
|
-
# Knowledge base data sources
|
1845
|
-
# name matches the `key` and whose value is greater
|
1846
|
-
# the `value` in this object
|
1855
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1856
|
+
# attribute whose name matches the `key` and whose value is greater
|
1857
|
+
# than or equal to the `value` in this object.
|
1858
|
+
#
|
1859
|
+
# The following example would return data sources with an `year`
|
1860
|
+
# attribute whose value is greater than or equal to `1989`:
|
1861
|
+
#
|
1862
|
+
# `"greaterThanOrEquals": \{ "key": "year", "value": 1989 \}`
|
1847
1863
|
# @return [Types::FilterAttribute]
|
1848
1864
|
#
|
1849
1865
|
# @!attribute [rw] in
|
1850
|
-
# Knowledge base data sources
|
1851
|
-
# name matches the `key` and whose value is in the
|
1852
|
-
# the `value` in this object
|
1866
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1867
|
+
# attribute whose name matches the `key` and whose value is in the
|
1868
|
+
# list specified in the `value` in this object.
|
1869
|
+
#
|
1870
|
+
# The following example would return data sources with an `animal`
|
1871
|
+
# attribute that is either `cat` or `dog`:
|
1872
|
+
#
|
1873
|
+
# `"in": \{ "key": "animal", "value": ["cat", "dog"] \}`
|
1853
1874
|
# @return [Types::FilterAttribute]
|
1854
1875
|
#
|
1855
1876
|
# @!attribute [rw] less_than
|
1856
|
-
# Knowledge base data sources
|
1857
|
-
# name matches the `key` and whose value is less than
|
1858
|
-
# this object
|
1877
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1878
|
+
# attribute whose name matches the `key` and whose value is less than
|
1879
|
+
# the `value` in this object.
|
1880
|
+
#
|
1881
|
+
# The following example would return data sources with an `year`
|
1882
|
+
# attribute whose value is less than to `1989`.
|
1883
|
+
#
|
1884
|
+
# `"lessThan": \{ "key": "year", "value": 1989 \}`
|
1859
1885
|
# @return [Types::FilterAttribute]
|
1860
1886
|
#
|
1861
1887
|
# @!attribute [rw] less_than_or_equals
|
1862
|
-
# Knowledge base data sources
|
1863
|
-
# name matches the `key` and whose value is less than
|
1864
|
-
# `value` in this object
|
1888
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1889
|
+
# attribute whose name matches the `key` and whose value is less than
|
1890
|
+
# or equal to the `value` in this object.
|
1891
|
+
#
|
1892
|
+
# The following example would return data sources with an `year`
|
1893
|
+
# attribute whose value is less than or equal to `1989`.
|
1894
|
+
#
|
1895
|
+
# `"lessThanOrEquals": \{ "key": "year", "value": 1989 \}`
|
1896
|
+
# @return [Types::FilterAttribute]
|
1897
|
+
#
|
1898
|
+
# @!attribute [rw] list_contains
|
1899
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1900
|
+
# attribute whose name matches the `key` and whose value is a list
|
1901
|
+
# that contains the `value` as one of its members.
|
1902
|
+
#
|
1903
|
+
# The following example would return data sources with an `animals`
|
1904
|
+
# attribute that is a list containing a `cat` member (for example
|
1905
|
+
# `["dog", "cat"]`).
|
1906
|
+
#
|
1907
|
+
# `"listContains": \{ "key": "animals", "value": "cat" \}`
|
1865
1908
|
# @return [Types::FilterAttribute]
|
1866
1909
|
#
|
1867
1910
|
# @!attribute [rw] not_equals
|
1868
1911
|
# Knowledge base data sources that contain a metadata attribute whose
|
1869
1912
|
# name matches the `key` and whose value doesn't match the `value` in
|
1870
1913
|
# this object are returned.
|
1914
|
+
#
|
1915
|
+
# The following example would return data sources that don't contain
|
1916
|
+
# an `animal` attribute whose value is `cat`.
|
1917
|
+
#
|
1918
|
+
# `"notEquals": \{ "key": "animal", "value": "cat" \}`
|
1871
1919
|
# @return [Types::FilterAttribute]
|
1872
1920
|
#
|
1873
1921
|
# @!attribute [rw] not_in
|
1874
|
-
# Knowledge base data sources
|
1875
|
-
# name matches the `key` and whose value isn't in the
|
1876
|
-
# in the `value` in this object
|
1922
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1923
|
+
# attribute whose name matches the `key` and whose value isn't in the
|
1924
|
+
# list specified in the `value` in this object.
|
1925
|
+
#
|
1926
|
+
# The following example would return data sources whose `animal`
|
1927
|
+
# attribute is neither `cat` nor `dog`.
|
1928
|
+
#
|
1929
|
+
# `"notIn": \{ "key": "animal", "value": ["cat", "dog"] \}`
|
1877
1930
|
# @return [Types::FilterAttribute]
|
1878
1931
|
#
|
1879
1932
|
# @!attribute [rw] or_all
|
1880
|
-
# Knowledge base data sources
|
1881
|
-
# least one of the filter conditions inside this
|
1933
|
+
# Knowledge base data sources are returned if their metadata
|
1934
|
+
# attributes fulfill at least one of the filter conditions inside this
|
1935
|
+
# list.
|
1882
1936
|
# @return [Array<Types::RetrievalFilter>]
|
1883
1937
|
#
|
1884
1938
|
# @!attribute [rw] starts_with
|
1885
|
-
# Knowledge base data sources
|
1886
|
-
# name matches the `key` and whose value starts with
|
1887
|
-
# this object
|
1939
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1940
|
+
# attribute whose name matches the `key` and whose value starts with
|
1941
|
+
# the `value` in this object. This filter is currently only supported
|
1888
1942
|
# for Amazon OpenSearch Serverless vector stores.
|
1943
|
+
#
|
1944
|
+
# The following example would return data sources with an `animal`
|
1945
|
+
# attribute starts with `ca` (for example, `cat` or `camel`).
|
1946
|
+
#
|
1947
|
+
# `"startsWith": \{ "key": "animal", "value": "ca" \}`
|
1948
|
+
# @return [Types::FilterAttribute]
|
1949
|
+
#
|
1950
|
+
# @!attribute [rw] string_contains
|
1951
|
+
# Knowledge base data sources are returned if they contain a metadata
|
1952
|
+
# attribute whose name matches the `key` and whose value is one of the
|
1953
|
+
# following:
|
1954
|
+
#
|
1955
|
+
# * A string that contains the `value` as a substring. The following
|
1956
|
+
# example would return data sources with an `animal` attribute that
|
1957
|
+
# contains the substring `at` (for example `cat`).
|
1958
|
+
#
|
1959
|
+
# `"stringContains": \{ "key": "animal", "value": "at" \}`
|
1960
|
+
#
|
1961
|
+
# * A list with a member that contains the `value` as a substring. The
|
1962
|
+
# following example would return data sources with an `animals`
|
1963
|
+
# attribute that is a list containing a member that contains the
|
1964
|
+
# substring `at` (for example `["dog", "cat"]`).
|
1965
|
+
#
|
1966
|
+
# `"stringContains": \{ "key": "animals", "value": "at" \}`
|
1889
1967
|
# @return [Types::FilterAttribute]
|
1890
1968
|
#
|
1891
1969
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RetrievalFilter AWS API Documentation
|
@@ -1898,10 +1976,12 @@ module Aws::BedrockAgentRuntime
|
|
1898
1976
|
:in,
|
1899
1977
|
:less_than,
|
1900
1978
|
:less_than_or_equals,
|
1979
|
+
:list_contains,
|
1901
1980
|
:not_equals,
|
1902
1981
|
:not_in,
|
1903
1982
|
:or_all,
|
1904
1983
|
:starts_with,
|
1984
|
+
:string_contains,
|
1905
1985
|
:unknown)
|
1906
1986
|
SENSITIVE = []
|
1907
1987
|
include Aws::Structure
|
@@ -1914,10 +1994,12 @@ module Aws::BedrockAgentRuntime
|
|
1914
1994
|
class In < RetrievalFilter; end
|
1915
1995
|
class LessThan < RetrievalFilter; end
|
1916
1996
|
class LessThanOrEquals < RetrievalFilter; end
|
1997
|
+
class ListContains < RetrievalFilter; end
|
1917
1998
|
class NotEquals < RetrievalFilter; end
|
1918
1999
|
class NotIn < RetrievalFilter; end
|
1919
2000
|
class OrAll < RetrievalFilter; end
|
1920
2001
|
class StartsWith < RetrievalFilter; end
|
2002
|
+
class StringContains < RetrievalFilter; end
|
1921
2003
|
class Unknown < RetrievalFilter; end
|
1922
2004
|
end
|
1923
2005
|
|
data/sig/client.rbs
CHANGED
@@ -164,6 +164,11 @@ module Aws
|
|
164
164
|
value: {
|
165
165
|
}
|
166
166
|
}?,
|
167
|
+
list_contains: {
|
168
|
+
key: ::String,
|
169
|
+
value: {
|
170
|
+
}
|
171
|
+
}?,
|
167
172
|
not_equals: {
|
168
173
|
key: ::String,
|
169
174
|
value: {
|
@@ -181,6 +186,11 @@ module Aws
|
|
181
186
|
key: ::String,
|
182
187
|
value: {
|
183
188
|
}
|
189
|
+
}?,
|
190
|
+
string_contains: {
|
191
|
+
key: ::String,
|
192
|
+
value: {
|
193
|
+
}
|
184
194
|
}?
|
185
195
|
}?,
|
186
196
|
number_of_results: ::Integer?,
|
@@ -299,6 +309,11 @@ module Aws
|
|
299
309
|
value: {
|
300
310
|
}
|
301
311
|
}?,
|
312
|
+
list_contains: {
|
313
|
+
key: ::String,
|
314
|
+
value: {
|
315
|
+
}
|
316
|
+
}?,
|
302
317
|
not_equals: {
|
303
318
|
key: ::String,
|
304
319
|
value: {
|
@@ -316,6 +331,11 @@ module Aws
|
|
316
331
|
key: ::String,
|
317
332
|
value: {
|
318
333
|
}
|
334
|
+
}?,
|
335
|
+
string_contains: {
|
336
|
+
key: ::String,
|
337
|
+
value: {
|
338
|
+
}
|
319
339
|
}?
|
320
340
|
}?,
|
321
341
|
number_of_results: ::Integer?,
|
data/sig/types.rbs
CHANGED
@@ -448,10 +448,12 @@ module Aws::BedrockAgentRuntime
|
|
448
448
|
attr_accessor in: Types::FilterAttribute
|
449
449
|
attr_accessor less_than: Types::FilterAttribute
|
450
450
|
attr_accessor less_than_or_equals: Types::FilterAttribute
|
451
|
+
attr_accessor list_contains: Types::FilterAttribute
|
451
452
|
attr_accessor not_equals: Types::FilterAttribute
|
452
453
|
attr_accessor not_in: Types::FilterAttribute
|
453
454
|
attr_accessor or_all: ::Array[Types::RetrievalFilter]
|
454
455
|
attr_accessor starts_with: Types::FilterAttribute
|
456
|
+
attr_accessor string_contains: Types::FilterAttribute
|
455
457
|
attr_accessor unknown: untyped
|
456
458
|
SENSITIVE: []
|
457
459
|
|
@@ -469,6 +471,8 @@ module Aws::BedrockAgentRuntime
|
|
469
471
|
end
|
470
472
|
class LessThanOrEquals < RetrievalFilter
|
471
473
|
end
|
474
|
+
class ListContains < RetrievalFilter
|
475
|
+
end
|
472
476
|
class NotEquals < RetrievalFilter
|
473
477
|
end
|
474
478
|
class NotIn < RetrievalFilter
|
@@ -477,6 +481,8 @@ module Aws::BedrockAgentRuntime
|
|
477
481
|
end
|
478
482
|
class StartsWith < RetrievalFilter
|
479
483
|
end
|
484
|
+
class StringContains < RetrievalFilter
|
485
|
+
end
|
480
486
|
class Unknown < RetrievalFilter
|
481
487
|
end
|
482
488
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockagentruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|