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.
413 414 415 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 413 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.
3295 3296 3297 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3295 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.
3298 3299 3300 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3298 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.
475 476 477 478 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 475 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.
3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3273 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.15.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
651 652 653 654 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 651 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
814 815 816 817 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 814 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.
898 899 900 901 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 898 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.
1003 1004 1005 1006 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1003 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
1227 1228 1229 1230 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1227 def create_knowledge_base(params = {}, = {}) req = build_request(:create_knowledge_base, params) req.send_request() end |
#delete_agent(params = {}) ⇒ Types::DeleteAgentResponse
Deletes an agent.
1263 1264 1265 1266 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1263 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.
1299 1300 1301 1302 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1299 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.
1335 1336 1337 1338 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1335 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.
1377 1378 1379 1380 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1377 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.
1414 1415 1416 1417 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1414 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
1450 1451 1452 1453 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1450 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.
1482 1483 1484 1485 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1482 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.
1543 1544 1545 1546 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1543 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.
1601 1602 1603 1604 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1601 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.
1653 1654 1655 1656 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1653 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.
1696 1697 1698 1699 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1696 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.
1759 1760 1761 1762 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1759 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.
1810 1811 1812 1813 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1810 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.
1863 1864 1865 1866 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1863 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.
1938 1939 1940 1941 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1938 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.
1993 1994 1995 1996 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1993 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.
2048 2049 2050 2051 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2048 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.
2105 2106 2107 2108 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2105 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.
2159 2160 2161 2162 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2159 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.
2210 2211 2212 2213 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2210 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.
2264 2265 2266 2267 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2264 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.
2348 2349 2350 2351 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2348 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.
2396 2397 2398 2399 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2396 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.
2425 2426 2427 2428 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2425 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.
2461 2462 2463 2464 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2461 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.
2528 2529 2530 2531 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2528 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
2562 2563 2564 2565 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2562 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Remove tags from a resource.
2589 2590 2591 2592 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2589 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.
2722 2723 2724 2725 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2722 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.
2858 2859 2860 2861 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2858 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.
2926 2927 2928 2929 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2926 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.
2986 2987 2988 2989 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2986 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`.
3081 3082 3083 3084 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3081 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
3264 3265 3266 3267 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3264 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.
3288 3289 3290 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3288 def waiter_names [] end |