Class: Aws::BedrockAgent::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::BedrockAgent::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-bedrockagent/client.rb
Overview
An API client for BedrockAgent. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::BedrockAgent::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_agent_knowledge_base(params = {}) ⇒ Types::AssociateAgentKnowledgeBaseResponse
Associates a knowledge base with an agent.
-
#create_agent(params = {}) ⇒ Types::CreateAgentResponse
Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.
-
#create_agent_action_group(params = {}) ⇒ Types::CreateAgentActionGroupResponse
Creates an action group for an agent.
-
#create_agent_alias(params = {}) ⇒ Types::CreateAgentAliasResponse
Creates an alias of an agent that can be used to deploy the agent.
-
#create_data_source(params = {}) ⇒ Types::CreateDataSourceResponse
Sets up a data source to be added to a knowledge base.
-
#create_knowledge_base(params = {}) ⇒ Types::CreateKnowledgeBaseResponse
Creates a knowledge base that contains data sources from which information can be queried and used by LLMs.
-
#delete_agent(params = {}) ⇒ Types::DeleteAgentResponse
Deletes an agent.
-
#delete_agent_action_group(params = {}) ⇒ Struct
Deletes an action group in an agent.
-
#delete_agent_alias(params = {}) ⇒ Types::DeleteAgentAliasResponse
Deletes an alias of an agent.
-
#delete_agent_version(params = {}) ⇒ Types::DeleteAgentVersionResponse
Deletes a version of an agent.
-
#delete_data_source(params = {}) ⇒ Types::DeleteDataSourceResponse
Deletes a data source from a knowledge base.
-
#delete_knowledge_base(params = {}) ⇒ Types::DeleteKnowledgeBaseResponse
Deletes a knowledge base.
-
#disassociate_agent_knowledge_base(params = {}) ⇒ Struct
Disassociates a knowledge base from an agent.
-
#get_agent(params = {}) ⇒ Types::GetAgentResponse
Gets information about an agent.
-
#get_agent_action_group(params = {}) ⇒ Types::GetAgentActionGroupResponse
Gets information about an action group for an agent.
-
#get_agent_alias(params = {}) ⇒ Types::GetAgentAliasResponse
Gets information about an alias of an agent.
-
#get_agent_knowledge_base(params = {}) ⇒ Types::GetAgentKnowledgeBaseResponse
Gets information about a knowledge base associated with an agent.
-
#get_agent_version(params = {}) ⇒ Types::GetAgentVersionResponse
Gets details about a version of an agent.
-
#get_data_source(params = {}) ⇒ Types::GetDataSourceResponse
Gets information about a data source.
-
#get_ingestion_job(params = {}) ⇒ Types::GetIngestionJobResponse
Gets information about a ingestion job, in which a data source is added to a knowledge base.
-
#get_knowledge_base(params = {}) ⇒ Types::GetKnowledgeBaseResponse
Gets information about a knoweldge base.
-
#list_agent_action_groups(params = {}) ⇒ Types::ListAgentActionGroupsResponse
Lists the action groups for an agent and information about each one.
-
#list_agent_aliases(params = {}) ⇒ Types::ListAgentAliasesResponse
Lists the aliases of an agent and information about each one.
-
#list_agent_knowledge_bases(params = {}) ⇒ Types::ListAgentKnowledgeBasesResponse
Lists knowledge bases associated with an agent and information about each one.
-
#list_agent_versions(params = {}) ⇒ Types::ListAgentVersionsResponse
Lists the versions of an agent and information about each version.
-
#list_agents(params = {}) ⇒ Types::ListAgentsResponse
Lists the agents belonging to an account and information about each agent.
-
#list_data_sources(params = {}) ⇒ Types::ListDataSourcesResponse
Lists the data sources in a knowledge base and information about each one.
-
#list_ingestion_jobs(params = {}) ⇒ Types::ListIngestionJobsResponse
Lists the ingestion jobs for a data source and information about each of them.
-
#list_knowledge_bases(params = {}) ⇒ Types::ListKnowledgeBasesResponse
Lists the knowledge bases in an account and information about each of them.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all the tags for the resource you specify.
-
#prepare_agent(params = {}) ⇒ Types::PrepareAgentResponse
Creates a ‘DRAFT` version of the agent that can be used for internal testing.
-
#start_ingestion_job(params = {}) ⇒ Types::StartIngestionJobResponse
Begins an ingestion job, in which a data source is added to a knowledge base.
-
#tag_resource(params = {}) ⇒ Struct
Associate tags with a resource.
-
#untag_resource(params = {}) ⇒ Struct
Remove tags from a resource.
-
#update_agent(params = {}) ⇒ Types::UpdateAgentResponse
Updates the configuration of an agent.
-
#update_agent_action_group(params = {}) ⇒ Types::UpdateAgentActionGroupResponse
Updates the configuration for an action group for an agent.
-
#update_agent_alias(params = {}) ⇒ Types::UpdateAgentAliasResponse
Updates configurations for an alias of an agent.
-
#update_agent_knowledge_base(params = {}) ⇒ Types::UpdateAgentKnowledgeBaseResponse
Updates the configuration for a knowledge base that has been associated with an agent.
-
#update_data_source(params = {}) ⇒ Types::UpdateDataSourceResponse
Updates configurations for a data source.
-
#update_knowledge_base(params = {}) ⇒ Types::UpdateKnowledgeBaseResponse
Updates the configuration of a knowledge base with the fields that you specify.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
410 411 412 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 410 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3292 3293 3294 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3292 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3295 3296 3297 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3295 def errors_module Errors end |
Instance Method Details
#associate_agent_knowledge_base(params = {}) ⇒ Types::AssociateAgentKnowledgeBaseResponse
Associates a knowledge base with an agent. If a knowledge base is associated and its ‘indexState` is set to `Enabled`, the agent queries the knowledge base for information to augment its response to the user.
472 473 474 475 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 472 def associate_agent_knowledge_base(params = {}, = {}) req = build_request(:associate_agent_knowledge_base, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3270 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-bedrockagent' context[:gem_version] = '1.13.0' Seahorse::Client::Request.new(handlers, context) end |
#create_agent(params = {}) ⇒ Types::CreateAgentResponse
Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.
-
Specify the following fields for security purposes.
-
‘agentResourceRoleArn` – The Amazon Resource Name (ARN) of the role with permissions to invoke API operations on an agent.
-
(Optional) ‘customerEncryptionKeyArn` – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.
-
(Optional) ‘idleSessionTTLinSeconds` – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent `InvokeAgent` request begins a new session.
-
-
To override the default prompt behavior for agent orchestration and to use advanced prompts, include a ‘promptOverrideConfiguration` object. For more information, see [Advanced prompts].
-
If you agent fails to be created, the response returns a list of ‘failureReasons` alongside a list of `recommendedActions` for you to troubleshoot.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html
648 649 650 651 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 648 def create_agent(params = {}, = {}) req = build_request(:create_agent, params) req.send_request() end |
#create_agent_action_group(params = {}) ⇒ Types::CreateAgentActionGroupResponse
Creates an action group for an agent. An action group represents the actions that an agent can carry out for the customer by defining the APIs that an agent can call and the logic for calling them.
To allow your agent to request the user for additional information when trying to complete a task, add an action group with the ‘parentActionGroupSignature` field set to `AMAZON.UserInput`. You must leave the `description`, `apiSchema`, and `actionGroupExecutor` fields blank for this action group. During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn’t have enough information to complete the API request, it will invoke this action group instead and return an [Observation] reprompting the user for more information.
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html
811 812 813 814 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 811 def create_agent_action_group(params = {}, = {}) req = build_request(:create_agent_action_group, params) req.send_request() end |
#create_agent_alias(params = {}) ⇒ Types::CreateAgentAliasResponse
Creates an alias of an agent that can be used to deploy the agent.
895 896 897 898 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 895 def create_agent_alias(params = {}, = {}) req = build_request(:create_agent_alias, params) req.send_request() end |
#create_data_source(params = {}) ⇒ Types::CreateDataSourceResponse
Sets up a data source to be added to a knowledge base.
You can’t change the ‘chunkingConfiguration` after you create the data source.
1000 1001 1002 1003 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1000 def create_data_source(params = {}, = {}) req = build_request(:create_data_source, params) req.send_request() end |
#create_knowledge_base(params = {}) ⇒ Types::CreateKnowledgeBaseResponse
Creates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see [Set up your data for ingestion].
<note markdown=“1”> If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see [Create a knowledge base].
</note>
-
Provide the ‘name` and an optional `description`.
-
Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the ‘roleArn` field.
-
Provide the embedding model to use in the ‘embeddingModelArn` field in the `knowledgeBaseConfiguration` object.
-
Provide the configuration for your vector store in the ‘storageConfiguration` object.
-
For an Amazon OpenSearch Service database, use the ‘opensearchServerlessConfiguration` object. For more information, see [Create a vector store in Amazon OpenSearch Service].
-
For an Amazon Aurora database, use the ‘RdsConfiguration` object. For more information, see [Create a vector store in Amazon Aurora].
-
For a Pinecone database, use the ‘pineconeConfiguration` object. For more information, see [Create a vector store in Pinecone].
-
For a Redis Enterprise Cloud database, use the ‘redisEnterpriseCloudConfiguration` object. For more information, see [Create a vector store in Redis Enterprise Cloud].
-
[1]: docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-create [3]: docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html [4]: docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html [5]: docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-pinecone.html [6]: docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-redis.html
1224 1225 1226 1227 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1224 def create_knowledge_base(params = {}, = {}) req = build_request(:create_knowledge_base, params) req.send_request() end |
#delete_agent(params = {}) ⇒ Types::DeleteAgentResponse
Deletes an agent.
1260 1261 1262 1263 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1260 def delete_agent(params = {}, = {}) req = build_request(:delete_agent, params) req.send_request() end |
#delete_agent_action_group(params = {}) ⇒ Struct
Deletes an action group in an agent.
1296 1297 1298 1299 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1296 def delete_agent_action_group(params = {}, = {}) req = build_request(:delete_agent_action_group, params) req.send_request() end |
#delete_agent_alias(params = {}) ⇒ Types::DeleteAgentAliasResponse
Deletes an alias of an agent.
1332 1333 1334 1335 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1332 def delete_agent_alias(params = {}, = {}) req = build_request(:delete_agent_alias, params) req.send_request() end |
#delete_agent_version(params = {}) ⇒ Types::DeleteAgentVersionResponse
Deletes a version of an agent.
1374 1375 1376 1377 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1374 def delete_agent_version(params = {}, = {}) req = build_request(:delete_agent_version, params) req.send_request() end |
#delete_data_source(params = {}) ⇒ Types::DeleteDataSourceResponse
Deletes a data source from a knowledge base.
1411 1412 1413 1414 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1411 def delete_data_source(params = {}, = {}) req = build_request(:delete_data_source, params) req.send_request() end |
#delete_knowledge_base(params = {}) ⇒ Types::DeleteKnowledgeBaseResponse
Deletes a knowledge base. Before deleting a knowledge base, you should disassociate the knowledge base from any agents that it is associated with by making a [DisassociateAgentKnowledgeBase] request.
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DisassociateAgentKnowledgeBase.html
1447 1448 1449 1450 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1447 def delete_knowledge_base(params = {}, = {}) req = build_request(:delete_knowledge_base, params) req.send_request() end |
#disassociate_agent_knowledge_base(params = {}) ⇒ Struct
Disassociates a knowledge base from an agent.
1479 1480 1481 1482 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1479 def disassociate_agent_knowledge_base(params = {}, = {}) req = build_request(:disassociate_agent_knowledge_base, params) req.send_request() end |
#get_agent(params = {}) ⇒ Types::GetAgentResponse
Gets information about an agent.
1540 1541 1542 1543 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1540 def get_agent(params = {}, = {}) req = build_request(:get_agent, params) req.send_request() end |
#get_agent_action_group(params = {}) ⇒ Types::GetAgentActionGroupResponse
Gets information about an action group for an agent.
1598 1599 1600 1601 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1598 def get_agent_action_group(params = {}, = {}) req = build_request(:get_agent_action_group, params) req.send_request() end |
#get_agent_alias(params = {}) ⇒ Types::GetAgentAliasResponse
Gets information about an alias of an agent.
1650 1651 1652 1653 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1650 def get_agent_alias(params = {}, = {}) req = build_request(:get_agent_alias, params) req.send_request() end |
#get_agent_knowledge_base(params = {}) ⇒ Types::GetAgentKnowledgeBaseResponse
Gets information about a knowledge base associated with an agent.
1693 1694 1695 1696 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1693 def get_agent_knowledge_base(params = {}, = {}) req = build_request(:get_agent_knowledge_base, params) req.send_request() end |
#get_agent_version(params = {}) ⇒ Types::GetAgentVersionResponse
Gets details about a version of an agent.
1756 1757 1758 1759 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1756 def get_agent_version(params = {}, = {}) req = build_request(:get_agent_version, params) req.send_request() end |
#get_data_source(params = {}) ⇒ Types::GetDataSourceResponse
Gets information about a data source.
1807 1808 1809 1810 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1807 def get_data_source(params = {}, = {}) req = build_request(:get_data_source, params) req.send_request() end |
#get_ingestion_job(params = {}) ⇒ Types::GetIngestionJobResponse
Gets information about a ingestion job, in which a data source is added to a knowledge base.
1860 1861 1862 1863 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1860 def get_ingestion_job(params = {}, = {}) req = build_request(:get_ingestion_job, params) req.send_request() end |
#get_knowledge_base(params = {}) ⇒ Types::GetKnowledgeBaseResponse
Gets information about a knoweldge base.
1935 1936 1937 1938 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1935 def get_knowledge_base(params = {}, = {}) req = build_request(:get_knowledge_base, params) req.send_request() end |
#list_agent_action_groups(params = {}) ⇒ Types::ListAgentActionGroupsResponse
Lists the action groups for an agent and information about each one.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1990 1991 1992 1993 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1990 def list_agent_action_groups(params = {}, = {}) req = build_request(:list_agent_action_groups, params) req.send_request() end |
#list_agent_aliases(params = {}) ⇒ Types::ListAgentAliasesResponse
Lists the aliases of an agent and information about each one.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2045 2046 2047 2048 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2045 def list_agent_aliases(params = {}, = {}) req = build_request(:list_agent_aliases, params) req.send_request() end |
#list_agent_knowledge_bases(params = {}) ⇒ Types::ListAgentKnowledgeBasesResponse
Lists knowledge bases associated with an agent and information about each one.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2102 2103 2104 2105 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2102 def list_agent_knowledge_bases(params = {}, = {}) req = build_request(:list_agent_knowledge_bases, params) req.send_request() end |
#list_agent_versions(params = {}) ⇒ Types::ListAgentVersionsResponse
Lists the versions of an agent and information about each version.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2156 2157 2158 2159 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2156 def list_agent_versions(params = {}, = {}) req = build_request(:list_agent_versions, params) req.send_request() end |
#list_agents(params = {}) ⇒ Types::ListAgentsResponse
Lists the agents belonging to an account and information about each agent.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2207 2208 2209 2210 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2207 def list_agents(params = {}, = {}) req = build_request(:list_agents, params) req.send_request() end |
#list_data_sources(params = {}) ⇒ Types::ListDataSourcesResponse
Lists the data sources in a knowledge base and information about each one.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2261 2262 2263 2264 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2261 def list_data_sources(params = {}, = {}) req = build_request(:list_data_sources, params) req.send_request() end |
#list_ingestion_jobs(params = {}) ⇒ Types::ListIngestionJobsResponse
Lists the ingestion jobs for a data source and information about each of them.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2345 2346 2347 2348 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2345 def list_ingestion_jobs(params = {}, = {}) req = build_request(:list_ingestion_jobs, params) req.send_request() end |
#list_knowledge_bases(params = {}) ⇒ Types::ListKnowledgeBasesResponse
Lists the knowledge bases in an account and information about each of them.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2393 2394 2395 2396 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2393 def list_knowledge_bases(params = {}, = {}) req = build_request(:list_knowledge_bases, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all the tags for the resource you specify.
2422 2423 2424 2425 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2422 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#prepare_agent(params = {}) ⇒ Types::PrepareAgentResponse
Creates a ‘DRAFT` version of the agent that can be used for internal testing.
2458 2459 2460 2461 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2458 def prepare_agent(params = {}, = {}) req = build_request(:prepare_agent, params) req.send_request() end |
#start_ingestion_job(params = {}) ⇒ Types::StartIngestionJobResponse
Begins an ingestion job, in which a data source is added to a knowledge base.
2525 2526 2527 2528 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2525 def start_ingestion_job(params = {}, = {}) req = build_request(:start_ingestion_job, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associate tags with a resource. For more information, see [Tagging resources] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
2559 2560 2561 2562 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2559 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Remove tags from a resource.
2586 2587 2588 2589 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2586 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_agent(params = {}) ⇒ Types::UpdateAgentResponse
Updates the configuration of an agent.
2719 2720 2721 2722 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2719 def update_agent(params = {}, = {}) req = build_request(:update_agent, params) req.send_request() end |
#update_agent_action_group(params = {}) ⇒ Types::UpdateAgentActionGroupResponse
Updates the configuration for an action group for an agent.
2855 2856 2857 2858 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2855 def update_agent_action_group(params = {}, = {}) req = build_request(:update_agent_action_group, params) req.send_request() end |
#update_agent_alias(params = {}) ⇒ Types::UpdateAgentAliasResponse
Updates configurations for an alias of an agent.
2923 2924 2925 2926 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2923 def update_agent_alias(params = {}, = {}) req = build_request(:update_agent_alias, params) req.send_request() end |
#update_agent_knowledge_base(params = {}) ⇒ Types::UpdateAgentKnowledgeBaseResponse
Updates the configuration for a knowledge base that has been associated with an agent.
2983 2984 2985 2986 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2983 def update_agent_knowledge_base(params = {}, = {}) req = build_request(:update_agent_knowledge_base, params) req.send_request() end |
#update_data_source(params = {}) ⇒ Types::UpdateDataSourceResponse
Updates configurations for a data source.
You can’t change the ‘chunkingConfiguration` after you create the data source. Specify the existing `chunkingConfiguration`.
3078 3079 3080 3081 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3078 def update_data_source(params = {}, = {}) req = build_request(:update_data_source, params) req.send_request() end |
#update_knowledge_base(params = {}) ⇒ Types::UpdateKnowledgeBaseResponse
Updates the configuration of a knowledge base with the fields that you specify. Because all fields will be overwritten, you must include the same values for fields that you want to keep the same.
You can change the following fields:
-
‘name`
-
‘description`
-
‘roleArn`
You can’t change the ‘knowledgeBaseConfiguration` or `storageConfiguration` fields, so you must specify the same configurations as when you created the knowledge base. You can send a
- GetKnowledgeBase][1
-
request and copy the same configurations.
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetKnowledgeBase.html
3261 3262 3263 3264 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3261 def update_knowledge_base(params = {}, = {}) req = build_request(:update_knowledge_base, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3285 3286 3287 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3285 def waiter_names [] end |