aws-sdk-bedrockagentruntime 1.36.0 → 1.38.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-bedrockagentruntime/client.rb +208 -11
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +114 -1
- data/lib/aws-sdk-bedrockagentruntime/errors.rb +16 -0
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +5 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +335 -7
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +58 -2
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +97 -2
- metadata +2 -2
@@ -224,7 +224,7 @@ module Aws::BedrockAgentRuntime
|
|
224
224
|
#
|
225
225
|
#
|
226
226
|
#
|
227
|
-
# [1]: https://docs.aws.amazon.com/
|
227
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html
|
228
228
|
# @return [String]
|
229
229
|
#
|
230
230
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgentActionGroup AWS API Documentation
|
@@ -581,6 +581,20 @@ module Aws::BedrockAgentRuntime
|
|
581
581
|
include Aws::Structure
|
582
582
|
end
|
583
583
|
|
584
|
+
# Settings for a model called with InvokeAgent.
|
585
|
+
#
|
586
|
+
# @!attribute [rw] performance_config
|
587
|
+
# The performance configuration for the model.
|
588
|
+
# @return [Types::PerformanceConfiguration]
|
589
|
+
#
|
590
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/BedrockModelConfigurations AWS API Documentation
|
591
|
+
#
|
592
|
+
class BedrockModelConfigurations < Struct.new(
|
593
|
+
:performance_config)
|
594
|
+
SENSITIVE = []
|
595
|
+
include Aws::Structure
|
596
|
+
end
|
597
|
+
|
584
598
|
# Contains configurations for an Amazon Bedrock reranker model.
|
585
599
|
#
|
586
600
|
# @!attribute [rw] model_configuration
|
@@ -906,12 +920,17 @@ module Aws::BedrockAgentRuntime
|
|
906
920
|
# The unique identifier of the memory.
|
907
921
|
# @return [String]
|
908
922
|
#
|
923
|
+
# @!attribute [rw] session_id
|
924
|
+
# The unique session identifier of the memory.
|
925
|
+
# @return [String]
|
926
|
+
#
|
909
927
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/DeleteAgentMemoryRequest AWS API Documentation
|
910
928
|
#
|
911
929
|
class DeleteAgentMemoryRequest < Struct.new(
|
912
930
|
:agent_alias_id,
|
913
931
|
:agent_id,
|
914
|
-
:memory_id
|
932
|
+
:memory_id,
|
933
|
+
:session_id)
|
915
934
|
SENSITIVE = []
|
916
935
|
include Aws::Structure
|
917
936
|
end
|
@@ -986,6 +1005,10 @@ module Aws::BedrockAgentRuntime
|
|
986
1005
|
# to generate responses while using an external source.
|
987
1006
|
# @return [Types::InferenceConfig]
|
988
1007
|
#
|
1008
|
+
# @!attribute [rw] performance_config
|
1009
|
+
# The latency configuration for the model.
|
1010
|
+
# @return [Types::PerformanceConfiguration]
|
1011
|
+
#
|
989
1012
|
# @!attribute [rw] prompt_template
|
990
1013
|
# Contain the textPromptTemplate string for the external source
|
991
1014
|
# wrapper object.
|
@@ -997,6 +1020,7 @@ module Aws::BedrockAgentRuntime
|
|
997
1020
|
:additional_model_request_fields,
|
998
1021
|
:guardrail_configuration,
|
999
1022
|
:inference_config,
|
1023
|
+
:performance_config,
|
1000
1024
|
:prompt_template)
|
1001
1025
|
SENSITIVE = []
|
1002
1026
|
include Aws::Structure
|
@@ -1735,6 +1759,58 @@ module Aws::BedrockAgentRuntime
|
|
1735
1759
|
class Unknown < FunctionSchema; end
|
1736
1760
|
end
|
1737
1761
|
|
1762
|
+
# @!attribute [rw] query_generation_input
|
1763
|
+
# Specifies information about a natural language query to transform
|
1764
|
+
# into SQL.
|
1765
|
+
# @return [Types::QueryGenerationInput]
|
1766
|
+
#
|
1767
|
+
# @!attribute [rw] transformation_configuration
|
1768
|
+
# Specifies configurations for transforming the natural language query
|
1769
|
+
# into SQL.
|
1770
|
+
# @return [Types::TransformationConfiguration]
|
1771
|
+
#
|
1772
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GenerateQueryRequest AWS API Documentation
|
1773
|
+
#
|
1774
|
+
class GenerateQueryRequest < Struct.new(
|
1775
|
+
:query_generation_input,
|
1776
|
+
:transformation_configuration)
|
1777
|
+
SENSITIVE = [:query_generation_input]
|
1778
|
+
include Aws::Structure
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
# @!attribute [rw] queries
|
1782
|
+
# A list of objects, each of which defines a generated query that can
|
1783
|
+
# correspond to the natural language queries.
|
1784
|
+
# @return [Array<Types::GeneratedQuery>]
|
1785
|
+
#
|
1786
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GenerateQueryResponse AWS API Documentation
|
1787
|
+
#
|
1788
|
+
class GenerateQueryResponse < Struct.new(
|
1789
|
+
:queries)
|
1790
|
+
SENSITIVE = [:queries]
|
1791
|
+
include Aws::Structure
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
# Contains information about a query generated for a natural language
|
1795
|
+
# query.
|
1796
|
+
#
|
1797
|
+
# @!attribute [rw] sql
|
1798
|
+
# An SQL query that corresponds to the natural language query.
|
1799
|
+
# @return [String]
|
1800
|
+
#
|
1801
|
+
# @!attribute [rw] type
|
1802
|
+
# The type of transformed query.
|
1803
|
+
# @return [String]
|
1804
|
+
#
|
1805
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GeneratedQuery AWS API Documentation
|
1806
|
+
#
|
1807
|
+
class GeneratedQuery < Struct.new(
|
1808
|
+
:sql,
|
1809
|
+
:type)
|
1810
|
+
SENSITIVE = []
|
1811
|
+
include Aws::Structure
|
1812
|
+
end
|
1813
|
+
|
1738
1814
|
# Contains metadata about a part of the generated response that is
|
1739
1815
|
# accompanied by a citation.
|
1740
1816
|
#
|
@@ -1792,6 +1868,10 @@ module Aws::BedrockAgentRuntime
|
|
1792
1868
|
# to generate responses while using a knowledge base as a source.
|
1793
1869
|
# @return [Types::InferenceConfig]
|
1794
1870
|
#
|
1871
|
+
# @!attribute [rw] performance_config
|
1872
|
+
# The latency configuration for the model.
|
1873
|
+
# @return [Types::PerformanceConfiguration]
|
1874
|
+
#
|
1795
1875
|
# @!attribute [rw] prompt_template
|
1796
1876
|
# Contains the template for the prompt that's sent to the model for
|
1797
1877
|
# response generation. Generation prompts must include the
|
@@ -1809,6 +1889,7 @@ module Aws::BedrockAgentRuntime
|
|
1809
1889
|
:additional_model_request_fields,
|
1810
1890
|
:guardrail_configuration,
|
1811
1891
|
:inference_config,
|
1892
|
+
:performance_config,
|
1812
1893
|
:prompt_template)
|
1813
1894
|
SENSITIVE = []
|
1814
1895
|
include Aws::Structure
|
@@ -2397,6 +2478,20 @@ module Aws::BedrockAgentRuntime
|
|
2397
2478
|
include Aws::Structure
|
2398
2479
|
end
|
2399
2480
|
|
2481
|
+
# Settings for a model called with InvokeInlineAgent.
|
2482
|
+
#
|
2483
|
+
# @!attribute [rw] performance_config
|
2484
|
+
# The latency configuration for the model.
|
2485
|
+
# @return [Types::PerformanceConfiguration]
|
2486
|
+
#
|
2487
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InlineBedrockModelConfigurations AWS API Documentation
|
2488
|
+
#
|
2489
|
+
class InlineBedrockModelConfigurations < Struct.new(
|
2490
|
+
:performance_config)
|
2491
|
+
SENSITIVE = []
|
2492
|
+
include Aws::Structure
|
2493
|
+
end
|
2494
|
+
|
2400
2495
|
# Contains parameters that specify various attributes that persist
|
2401
2496
|
# across a session or prompt. You can define session state attributes as
|
2402
2497
|
# key-value pairs when writing a [Lambda function][1] for an action
|
@@ -2655,6 +2750,10 @@ module Aws::BedrockAgentRuntime
|
|
2655
2750
|
# The unique identifier of the agent to use.
|
2656
2751
|
# @return [String]
|
2657
2752
|
#
|
2753
|
+
# @!attribute [rw] bedrock_model_configurations
|
2754
|
+
# Model performance settings for the request.
|
2755
|
+
# @return [Types::BedrockModelConfigurations]
|
2756
|
+
#
|
2658
2757
|
# @!attribute [rw] enable_trace
|
2659
2758
|
# Specifies whether to turn on the trace or not to track the agent's
|
2660
2759
|
# reasoning process. For more information, see [Trace enablement][1].
|
@@ -2706,6 +2805,11 @@ module Aws::BedrockAgentRuntime
|
|
2706
2805
|
#
|
2707
2806
|
# @!attribute [rw] streaming_configurations
|
2708
2807
|
# Specifies the configurations for streaming.
|
2808
|
+
#
|
2809
|
+
# <note markdown="1"> To use agent streaming, you need permissions to perform the
|
2810
|
+
# `bedrock:InvokeModelWithResponseStream` action.
|
2811
|
+
#
|
2812
|
+
# </note>
|
2709
2813
|
# @return [Types::StreamingConfigurations]
|
2710
2814
|
#
|
2711
2815
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeAgentRequest AWS API Documentation
|
@@ -2713,6 +2817,7 @@ module Aws::BedrockAgentRuntime
|
|
2713
2817
|
class InvokeAgentRequest < Struct.new(
|
2714
2818
|
:agent_alias_id,
|
2715
2819
|
:agent_id,
|
2820
|
+
:bedrock_model_configurations,
|
2716
2821
|
:enable_trace,
|
2717
2822
|
:end_session,
|
2718
2823
|
:input_text,
|
@@ -2777,13 +2882,18 @@ module Aws::BedrockAgentRuntime
|
|
2777
2882
|
# the flow.
|
2778
2883
|
# @return [Array<Types::FlowInput>]
|
2779
2884
|
#
|
2885
|
+
# @!attribute [rw] model_performance_configuration
|
2886
|
+
# Model performance settings for the request.
|
2887
|
+
# @return [Types::ModelPerformanceConfiguration]
|
2888
|
+
#
|
2780
2889
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeFlowRequest AWS API Documentation
|
2781
2890
|
#
|
2782
2891
|
class InvokeFlowRequest < Struct.new(
|
2783
2892
|
:enable_trace,
|
2784
2893
|
:flow_alias_identifier,
|
2785
2894
|
:flow_identifier,
|
2786
|
-
:inputs
|
2895
|
+
:inputs,
|
2896
|
+
:model_performance_configuration)
|
2787
2897
|
SENSITIVE = []
|
2788
2898
|
include Aws::Structure
|
2789
2899
|
end
|
@@ -2806,6 +2916,10 @@ module Aws::BedrockAgentRuntime
|
|
2806
2916
|
# the inline agent needs to carry out.
|
2807
2917
|
# @return [Array<Types::AgentActionGroup>]
|
2808
2918
|
#
|
2919
|
+
# @!attribute [rw] bedrock_model_configurations
|
2920
|
+
# Model settings for the request.
|
2921
|
+
# @return [Types::InlineBedrockModelConfigurations]
|
2922
|
+
#
|
2809
2923
|
# @!attribute [rw] customer_encryption_key_arn
|
2810
2924
|
# The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to
|
2811
2925
|
# use to encrypt your inline agent.
|
@@ -2901,6 +3015,7 @@ module Aws::BedrockAgentRuntime
|
|
2901
3015
|
#
|
2902
3016
|
class InvokeInlineAgentRequest < Struct.new(
|
2903
3017
|
:action_groups,
|
3018
|
+
:bedrock_model_configurations,
|
2904
3019
|
:customer_encryption_key_arn,
|
2905
3020
|
:enable_trace,
|
2906
3021
|
:end_session,
|
@@ -3106,7 +3221,7 @@ module Aws::BedrockAgentRuntime
|
|
3106
3221
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax
|
3107
3222
|
#
|
3108
3223
|
# @!attribute [rw] content
|
3109
|
-
# Contains
|
3224
|
+
# Contains information about the content of the chunk.
|
3110
3225
|
# @return [Types::RetrievalResultContent]
|
3111
3226
|
#
|
3112
3227
|
# @!attribute [rw] location
|
@@ -3477,6 +3592,41 @@ module Aws::BedrockAgentRuntime
|
|
3477
3592
|
include Aws::Structure
|
3478
3593
|
end
|
3479
3594
|
|
3595
|
+
# The model specified in the request is not ready to serve inference
|
3596
|
+
# requests. The AWS SDK will automatically retry the operation up to 5
|
3597
|
+
# times. For information about configuring automatic retries, see [Retry
|
3598
|
+
# behavior][1] in the *AWS SDKs and Tools* reference guide.
|
3599
|
+
#
|
3600
|
+
#
|
3601
|
+
#
|
3602
|
+
# [1]: https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
|
3603
|
+
#
|
3604
|
+
# @!attribute [rw] message
|
3605
|
+
# @return [String]
|
3606
|
+
#
|
3607
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/ModelNotReadyException AWS API Documentation
|
3608
|
+
#
|
3609
|
+
class ModelNotReadyException < Struct.new(
|
3610
|
+
:message,
|
3611
|
+
:event_type)
|
3612
|
+
SENSITIVE = []
|
3613
|
+
include Aws::Structure
|
3614
|
+
end
|
3615
|
+
|
3616
|
+
# The performance configuration for a model called with InvokeFlow.
|
3617
|
+
#
|
3618
|
+
# @!attribute [rw] performance_config
|
3619
|
+
# The latency configuration for the model.
|
3620
|
+
# @return [Types::PerformanceConfiguration]
|
3621
|
+
#
|
3622
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/ModelPerformanceConfiguration AWS API Documentation
|
3623
|
+
#
|
3624
|
+
class ModelPerformanceConfiguration < Struct.new(
|
3625
|
+
:performance_config)
|
3626
|
+
SENSITIVE = []
|
3627
|
+
include Aws::Structure
|
3628
|
+
end
|
3629
|
+
|
3480
3630
|
# Contains the result or output of an action group or knowledge base, or
|
3481
3631
|
# the response to the user.
|
3482
3632
|
#
|
@@ -3626,6 +3776,10 @@ module Aws::BedrockAgentRuntime
|
|
3626
3776
|
# to generate responses while using a knowledge base as a source.
|
3627
3777
|
# @return [Types::InferenceConfig]
|
3628
3778
|
#
|
3779
|
+
# @!attribute [rw] performance_config
|
3780
|
+
# The latency configuration for the model.
|
3781
|
+
# @return [Types::PerformanceConfiguration]
|
3782
|
+
#
|
3629
3783
|
# @!attribute [rw] prompt_template
|
3630
3784
|
# Contains the template for the prompt that's sent to the model.
|
3631
3785
|
# Orchestration prompts must include the `$conversation_history$` and
|
@@ -3647,6 +3801,7 @@ module Aws::BedrockAgentRuntime
|
|
3647
3801
|
class OrchestrationConfiguration < Struct.new(
|
3648
3802
|
:additional_model_request_fields,
|
3649
3803
|
:inference_config,
|
3804
|
+
:performance_config,
|
3650
3805
|
:prompt_template,
|
3651
3806
|
:query_transformation_configuration)
|
3652
3807
|
SENSITIVE = []
|
@@ -3838,6 +3993,20 @@ module Aws::BedrockAgentRuntime
|
|
3838
3993
|
include Aws::Structure
|
3839
3994
|
end
|
3840
3995
|
|
3996
|
+
# Performance settings for a model.
|
3997
|
+
#
|
3998
|
+
# @!attribute [rw] latency
|
3999
|
+
# To use a latency-optimized version of the model, set to `optimized`.
|
4000
|
+
# @return [String]
|
4001
|
+
#
|
4002
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/PerformanceConfiguration AWS API Documentation
|
4003
|
+
#
|
4004
|
+
class PerformanceConfiguration < Struct.new(
|
4005
|
+
:latency)
|
4006
|
+
SENSITIVE = []
|
4007
|
+
include Aws::Structure
|
4008
|
+
end
|
4009
|
+
|
3841
4010
|
# The foundation model output from the post-processing step.
|
3842
4011
|
#
|
3843
4012
|
# @!attribute [rw] metadata
|
@@ -4196,6 +4365,26 @@ module Aws::BedrockAgentRuntime
|
|
4196
4365
|
include Aws::Structure
|
4197
4366
|
end
|
4198
4367
|
|
4368
|
+
# Contains information about a natural language query to transform into
|
4369
|
+
# SQL.
|
4370
|
+
#
|
4371
|
+
# @!attribute [rw] text
|
4372
|
+
# The text of the query.
|
4373
|
+
# @return [String]
|
4374
|
+
#
|
4375
|
+
# @!attribute [rw] type
|
4376
|
+
# The type of the query.
|
4377
|
+
# @return [String]
|
4378
|
+
#
|
4379
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/QueryGenerationInput AWS API Documentation
|
4380
|
+
#
|
4381
|
+
class QueryGenerationInput < Struct.new(
|
4382
|
+
:text,
|
4383
|
+
:type)
|
4384
|
+
SENSITIVE = []
|
4385
|
+
include Aws::Structure
|
4386
|
+
end
|
4387
|
+
|
4199
4388
|
# To split up the prompt and retrieve multiple sources, set the
|
4200
4389
|
# transformation type to `QUERY_DECOMPOSITION`.
|
4201
4390
|
#
|
@@ -4713,7 +4902,9 @@ module Aws::BedrockAgentRuntime
|
|
4713
4902
|
include Aws::Structure
|
4714
4903
|
end
|
4715
4904
|
|
4716
|
-
# Contains
|
4905
|
+
# Contains information about a chunk of text from a data source in the
|
4906
|
+
# knowledge base. If the result is from a structured data source, the
|
4907
|
+
# cell in the database and the type of the value is also identified.
|
4717
4908
|
#
|
4718
4909
|
# This data type is used in the following API operations:
|
4719
4910
|
#
|
@@ -4729,14 +4920,57 @@ module Aws::BedrockAgentRuntime
|
|
4729
4920
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax
|
4730
4921
|
# [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax
|
4731
4922
|
#
|
4923
|
+
# @!attribute [rw] byte_content
|
4924
|
+
# A data URI with base64-encoded content from the data source. The URI
|
4925
|
+
# is in the following format: returned in the following format:
|
4926
|
+
# `data:image/jpeg;base64,${base64-encoded string}`.
|
4927
|
+
# @return [String]
|
4928
|
+
#
|
4929
|
+
# @!attribute [rw] row
|
4930
|
+
# Specifies information about the rows with the cells to return in
|
4931
|
+
# retrieval.
|
4932
|
+
# @return [Array<Types::RetrievalResultContentColumn>]
|
4933
|
+
#
|
4732
4934
|
# @!attribute [rw] text
|
4733
4935
|
# The cited text from the data source.
|
4734
4936
|
# @return [String]
|
4735
4937
|
#
|
4938
|
+
# @!attribute [rw] type
|
4939
|
+
# The type of content in the retrieval result.
|
4940
|
+
# @return [String]
|
4941
|
+
#
|
4736
4942
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RetrievalResultContent AWS API Documentation
|
4737
4943
|
#
|
4738
4944
|
class RetrievalResultContent < Struct.new(
|
4739
|
-
:
|
4945
|
+
:byte_content,
|
4946
|
+
:row,
|
4947
|
+
:text,
|
4948
|
+
:type)
|
4949
|
+
SENSITIVE = [:row]
|
4950
|
+
include Aws::Structure
|
4951
|
+
end
|
4952
|
+
|
4953
|
+
# Contains information about a column with a cell to return in
|
4954
|
+
# retrieval.
|
4955
|
+
#
|
4956
|
+
# @!attribute [rw] column_name
|
4957
|
+
# The name of the column.
|
4958
|
+
# @return [String]
|
4959
|
+
#
|
4960
|
+
# @!attribute [rw] column_value
|
4961
|
+
# The value in the column.
|
4962
|
+
# @return [String]
|
4963
|
+
#
|
4964
|
+
# @!attribute [rw] type
|
4965
|
+
# The data type of the value.
|
4966
|
+
# @return [String]
|
4967
|
+
#
|
4968
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RetrievalResultContentColumn AWS API Documentation
|
4969
|
+
#
|
4970
|
+
class RetrievalResultContentColumn < Struct.new(
|
4971
|
+
:column_name,
|
4972
|
+
:column_value,
|
4973
|
+
:type)
|
4740
4974
|
SENSITIVE = []
|
4741
4975
|
include Aws::Structure
|
4742
4976
|
end
|
@@ -4756,6 +4990,20 @@ module Aws::BedrockAgentRuntime
|
|
4756
4990
|
include Aws::Structure
|
4757
4991
|
end
|
4758
4992
|
|
4993
|
+
# The location of a result in Amazon Kendra.
|
4994
|
+
#
|
4995
|
+
# @!attribute [rw] uri
|
4996
|
+
# The document's uri.
|
4997
|
+
# @return [String]
|
4998
|
+
#
|
4999
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RetrievalResultKendraDocumentLocation AWS API Documentation
|
5000
|
+
#
|
5001
|
+
class RetrievalResultKendraDocumentLocation < Struct.new(
|
5002
|
+
:uri)
|
5003
|
+
SENSITIVE = []
|
5004
|
+
include Aws::Structure
|
5005
|
+
end
|
5006
|
+
|
4759
5007
|
# Contains information about the data source location.
|
4760
5008
|
#
|
4761
5009
|
# This data type is used in the following API operations:
|
@@ -4764,7 +5012,7 @@ module Aws::BedrockAgentRuntime
|
|
4764
5012
|
#
|
4765
5013
|
# * [RetrieveAndGenerate response][2] – in the `location` field
|
4766
5014
|
#
|
4767
|
-
# * [InvokeAgent response][3] – in the `
|
5015
|
+
# * [InvokeAgent response][3] – in the `location` field
|
4768
5016
|
#
|
4769
5017
|
#
|
4770
5018
|
#
|
@@ -4780,6 +5028,10 @@ module Aws::BedrockAgentRuntime
|
|
4780
5028
|
# Specifies the location of a document in a custom data source.
|
4781
5029
|
# @return [Types::RetrievalResultCustomDocumentLocation]
|
4782
5030
|
#
|
5031
|
+
# @!attribute [rw] kendra_document_location
|
5032
|
+
# The location of a document in Amazon Kendra.
|
5033
|
+
# @return [Types::RetrievalResultKendraDocumentLocation]
|
5034
|
+
#
|
4783
5035
|
# @!attribute [rw] s3_location
|
4784
5036
|
# The S3 data source location.
|
4785
5037
|
# @return [Types::RetrievalResultS3Location]
|
@@ -4792,6 +5044,11 @@ module Aws::BedrockAgentRuntime
|
|
4792
5044
|
# The SharePoint data source location.
|
4793
5045
|
# @return [Types::RetrievalResultSharePointLocation]
|
4794
5046
|
#
|
5047
|
+
# @!attribute [rw] sql_location
|
5048
|
+
# Specifies information about the SQL query used to retrieve the
|
5049
|
+
# result.
|
5050
|
+
# @return [Types::RetrievalResultSqlLocation]
|
5051
|
+
#
|
4795
5052
|
# @!attribute [rw] type
|
4796
5053
|
# The type of data source location.
|
4797
5054
|
# @return [String]
|
@@ -4805,9 +5062,11 @@ module Aws::BedrockAgentRuntime
|
|
4805
5062
|
class RetrievalResultLocation < Struct.new(
|
4806
5063
|
:confluence_location,
|
4807
5064
|
:custom_document_location,
|
5065
|
+
:kendra_document_location,
|
4808
5066
|
:s3_location,
|
4809
5067
|
:salesforce_location,
|
4810
5068
|
:share_point_location,
|
5069
|
+
:sql_location,
|
4811
5070
|
:type,
|
4812
5071
|
:web_location)
|
4813
5072
|
SENSITIVE = []
|
@@ -4870,6 +5129,20 @@ module Aws::BedrockAgentRuntime
|
|
4870
5129
|
include Aws::Structure
|
4871
5130
|
end
|
4872
5131
|
|
5132
|
+
# Contains information about the SQL query used to retrieve the result.
|
5133
|
+
#
|
5134
|
+
# @!attribute [rw] query
|
5135
|
+
# The SQL query used to retrieve the result.
|
5136
|
+
# @return [String]
|
5137
|
+
#
|
5138
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RetrievalResultSqlLocation AWS API Documentation
|
5139
|
+
#
|
5140
|
+
class RetrievalResultSqlLocation < Struct.new(
|
5141
|
+
:query)
|
5142
|
+
SENSITIVE = []
|
5143
|
+
include Aws::Structure
|
5144
|
+
end
|
5145
|
+
|
4873
5146
|
# The web URL/URLs data source location.
|
4874
5147
|
#
|
4875
5148
|
# @!attribute [rw] url
|
@@ -5659,6 +5932,40 @@ module Aws::BedrockAgentRuntime
|
|
5659
5932
|
include Aws::Structure
|
5660
5933
|
end
|
5661
5934
|
|
5935
|
+
# Contains configurations for transforming text to SQL.
|
5936
|
+
#
|
5937
|
+
# @!attribute [rw] knowledge_base_configuration
|
5938
|
+
# Specifies configurations for a knowledge base to use in
|
5939
|
+
# transformation.
|
5940
|
+
# @return [Types::TextToSqlKnowledgeBaseConfiguration]
|
5941
|
+
#
|
5942
|
+
# @!attribute [rw] type
|
5943
|
+
# The type of resource to use in transformation.
|
5944
|
+
# @return [String]
|
5945
|
+
#
|
5946
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/TextToSqlConfiguration AWS API Documentation
|
5947
|
+
#
|
5948
|
+
class TextToSqlConfiguration < Struct.new(
|
5949
|
+
:knowledge_base_configuration,
|
5950
|
+
:type)
|
5951
|
+
SENSITIVE = []
|
5952
|
+
include Aws::Structure
|
5953
|
+
end
|
5954
|
+
|
5955
|
+
# Contains configurations for a knowledge base to use in transformation.
|
5956
|
+
#
|
5957
|
+
# @!attribute [rw] knowledge_base_arn
|
5958
|
+
# The ARN of the knowledge base
|
5959
|
+
# @return [String]
|
5960
|
+
#
|
5961
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/TextToSqlKnowledgeBaseConfiguration AWS API Documentation
|
5962
|
+
#
|
5963
|
+
class TextToSqlKnowledgeBaseConfiguration < Struct.new(
|
5964
|
+
:knowledge_base_arn)
|
5965
|
+
SENSITIVE = []
|
5966
|
+
include Aws::Structure
|
5967
|
+
end
|
5968
|
+
|
5662
5969
|
# The number of requests exceeds the limit. Resubmit your request later.
|
5663
5970
|
#
|
5664
5971
|
# @!attribute [rw] message
|
@@ -5803,6 +6110,26 @@ module Aws::BedrockAgentRuntime
|
|
5803
6110
|
include Aws::Structure
|
5804
6111
|
end
|
5805
6112
|
|
6113
|
+
# Contains configurations for transforming the natural language query
|
6114
|
+
# into SQL.
|
6115
|
+
#
|
6116
|
+
# @!attribute [rw] mode
|
6117
|
+
# The mode of the transformation.
|
6118
|
+
# @return [String]
|
6119
|
+
#
|
6120
|
+
# @!attribute [rw] text_to_sql_configuration
|
6121
|
+
# Specifies configurations for transforming text to SQL.
|
6122
|
+
# @return [Types::TextToSqlConfiguration]
|
6123
|
+
#
|
6124
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/TransformationConfiguration AWS API Documentation
|
6125
|
+
#
|
6126
|
+
class TransformationConfiguration < Struct.new(
|
6127
|
+
:mode,
|
6128
|
+
:text_to_sql_configuration)
|
6129
|
+
SENSITIVE = []
|
6130
|
+
include Aws::Structure
|
6131
|
+
end
|
6132
|
+
|
5806
6133
|
# Contains information of the usage of the foundation model.
|
5807
6134
|
#
|
5808
6135
|
# @!attribute [rw] input_tokens
|
@@ -6004,6 +6331,7 @@ module Aws::BedrockAgentRuntime
|
|
6004
6331
|
:dependency_failed_exception,
|
6005
6332
|
:files,
|
6006
6333
|
:internal_server_exception,
|
6334
|
+
:model_not_ready_exception,
|
6007
6335
|
:resource_not_found_exception,
|
6008
6336
|
:return_control,
|
6009
6337
|
:service_quota_exceeded_exception,
|