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
Creates a data source connector for a knowledge base.
-
#create_flow(params = {}) ⇒ Types::CreateFlowResponse
Creates a prompt flow that you can use to send an input through various steps to yield an output.
-
#create_flow_alias(params = {}) ⇒ Types::CreateFlowAliasResponse
Creates an alias of a flow for deployment.
-
#create_flow_version(params = {}) ⇒ Types::CreateFlowVersionResponse
Creates a version of the flow that you can deploy.
-
#create_knowledge_base(params = {}) ⇒ Types::CreateKnowledgeBaseResponse
Creates a knowledge base that contains data sources from which information can be queried and used by LLMs.
-
#create_prompt(params = {}) ⇒ Types::CreatePromptResponse
Creates a prompt in your prompt library that you can add to a flow.
-
#create_prompt_version(params = {}) ⇒ Types::CreatePromptVersionResponse
Creates a static snapshot of your prompt that can be deployed to production.
-
#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_flow(params = {}) ⇒ Types::DeleteFlowResponse
Deletes a flow.
-
#delete_flow_alias(params = {}) ⇒ Types::DeleteFlowAliasResponse
Deletes an alias of a flow.
-
#delete_flow_version(params = {}) ⇒ Types::DeleteFlowVersionResponse
Deletes a version of a flow.
-
#delete_knowledge_base(params = {}) ⇒ Types::DeleteKnowledgeBaseResponse
Deletes a knowledge base.
-
#delete_prompt(params = {}) ⇒ Types::DeletePromptResponse
Deletes a prompt or a version of it, depending on whether you include the ‘promptVersion` field or not.
-
#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_flow(params = {}) ⇒ Types::GetFlowResponse
Retrieves information about a flow.
-
#get_flow_alias(params = {}) ⇒ Types::GetFlowAliasResponse
Retrieves information about a flow.
-
#get_flow_version(params = {}) ⇒ Types::GetFlowVersionResponse
Retrieves information about a version of a flow.
-
#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.
-
#get_prompt(params = {}) ⇒ Types::GetPromptResponse
Retrieves information about the working draft (‘DRAFT` version) of a prompt or a version of it, depending on whether you include the `promptVersion` field or not.
-
#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_flow_aliases(params = {}) ⇒ Types::ListFlowAliasesResponse
Returns a list of aliases for a flow.
-
#list_flow_versions(params = {}) ⇒ Types::ListFlowVersionsResponse
Returns a list of information about each flow.
-
#list_flows(params = {}) ⇒ Types::ListFlowsResponse
Returns a list of flows and information about each flow.
-
#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_prompts(params = {}) ⇒ Types::ListPromptsResponse
Returns either information about the working draft (‘DRAFT` version) of each prompt in an account, or information about of all versions of a prompt, depending on whether you include the `promptIdentifier` field or not.
-
#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.
-
#prepare_flow(params = {}) ⇒ Types::PrepareFlowResponse
Prepares the ‘DRAFT` version of a flow so that it can be invoked.
-
#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 the configurations for a data source connector.
-
#update_flow(params = {}) ⇒ Types::UpdateFlowResponse
Modifies a flow.
-
#update_flow_alias(params = {}) ⇒ Types::UpdateFlowAliasResponse
Modifies the alias of a flow.
-
#update_knowledge_base(params = {}) ⇒ Types::UpdateKnowledgeBaseResponse
Updates the configuration of a knowledge base with the fields that you specify.
-
#update_prompt(params = {}) ⇒ Types::UpdatePromptResponse
Modifies a prompt in your prompt library.
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.
444 445 446 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 444 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.
5689 5690 5691 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5689 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.
5692 5693 5694 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5692 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.
506 507 508 509 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 506 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.
5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5662 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::BedrockAgent') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-bedrockagent' context[:gem_version] = '1.27.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 enable your agent to retain conversational context across multiple sessions, include a ‘memoryConfiguration` object. For more information, see [Configure memory].
-
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 your agent fails to be created, the response returns a list of ‘failureReasons` alongside a list of `recommendedActions` for you to troubleshoot.
-
The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/agents-configure-memory.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html
701 702 703 704 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 701 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`.
To allow your agent to generate, run, and troubleshoot code when trying to complete a task, add an action group with the ‘parentActionGroupSignature` field set to `AMAZON.CodeInterpreter`.
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
876 877 878 879 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 876 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.
960 961 962 963 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 960 def create_agent_alias(params = {}, = {}) req = build_request(:create_agent_alias, params) req.send_request() end |
#create_data_source(params = {}) ⇒ Types::CreateDataSourceResponse
Creates a data source connector for a knowledge base.
You can’t change the ‘chunkingConfiguration` after you create the data source connector.
1259 1260 1261 1262 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1259 def create_data_source(params = {}, = {}) req = build_request(:create_data_source, params) req.send_request() end |
#create_flow(params = {}) ⇒ Types::CreateFlowResponse
Creates a prompt flow that you can use to send an input through various steps to yield an output. Configure nodes, each of which corresponds to a step of the flow, and create connections between the nodes to create paths to different outputs. For more information, see
- How it works][1
-
and [Create a flow in Amazon Bedrock] in the
Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/flows-create.html
1517 1518 1519 1520 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1517 def create_flow(params = {}, = {}) req = build_request(:create_flow, params) req.send_request() end |
#create_flow_alias(params = {}) ⇒ Types::CreateFlowAliasResponse
Creates an alias of a flow for deployment. For more information, see
- Deploy a flow in Amazon Bedrock][1
-
in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html
1606 1607 1608 1609 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1606 def create_flow_alias(params = {}, = {}) req = build_request(:create_flow_alias, params) req.send_request() end |
#create_flow_version(params = {}) ⇒ Types::CreateFlowVersionResponse
Creates a version of the flow that you can deploy. For more information, see [Deploy a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html
1717 1718 1719 1720 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1717 def create_flow_version(params = {}, = {}) req = build_request(:create_flow_version, 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
1941 1942 1943 1944 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1941 def create_knowledge_base(params = {}, = {}) req = build_request(:create_knowledge_base, params) req.send_request() end |
#create_prompt(params = {}) ⇒ Types::CreatePromptResponse
Creates a prompt in your prompt library that you can add to a flow. For more information, see [Prompt management in Amazon Bedrock],
- Create a prompt using Prompt management][2
-
and [Prompt flows in
Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html [3]: docs.aws.amazon.com/bedrock/latest/userguide/flows.html
2089 2090 2091 2092 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2089 def create_prompt(params = {}, = {}) req = build_request(:create_prompt, params) req.send_request() end |
#create_prompt_version(params = {}) ⇒ Types::CreatePromptVersionResponse
Creates a static snapshot of your prompt that can be deployed to production. For more information, see [Deploy prompts using Prompt management by creating versions] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html
2186 2187 2188 2189 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2186 def create_prompt_version(params = {}, = {}) req = build_request(:create_prompt_version, params) req.send_request() end |
#delete_agent(params = {}) ⇒ Types::DeleteAgentResponse
Deletes an agent.
2222 2223 2224 2225 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2222 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.
2258 2259 2260 2261 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2258 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.
2294 2295 2296 2297 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2294 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.
2336 2337 2338 2339 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2336 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.
2373 2374 2375 2376 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2373 def delete_data_source(params = {}, = {}) req = build_request(:delete_data_source, params) req.send_request() end |
#delete_flow(params = {}) ⇒ Types::DeleteFlowResponse
Deletes a flow.
2407 2408 2409 2410 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2407 def delete_flow(params = {}, = {}) req = build_request(:delete_flow, params) req.send_request() end |
#delete_flow_alias(params = {}) ⇒ Types::DeleteFlowAliasResponse
Deletes an alias of a flow.
2441 2442 2443 2444 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2441 def delete_flow_alias(params = {}, = {}) req = build_request(:delete_flow_alias, params) req.send_request() end |
#delete_flow_version(params = {}) ⇒ Types::DeleteFlowVersionResponse
Deletes a version of a flow.
2482 2483 2484 2485 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2482 def delete_flow_version(params = {}, = {}) req = build_request(:delete_flow_version, 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
2518 2519 2520 2521 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2518 def delete_knowledge_base(params = {}, = {}) req = build_request(:delete_knowledge_base, params) req.send_request() end |
#delete_prompt(params = {}) ⇒ Types::DeletePromptResponse
Deletes a prompt or a version of it, depending on whether you include the ‘promptVersion` field or not. For more information, see [Delete prompts from the Prompt management tool] and [Delete a version of a prompt from the Prompt management tool] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-delete.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-delete.html
2562 2563 2564 2565 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2562 def delete_prompt(params = {}, = {}) req = build_request(:delete_prompt, params) req.send_request() end |
#disassociate_agent_knowledge_base(params = {}) ⇒ Struct
Disassociates a knowledge base from an agent.
2594 2595 2596 2597 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2594 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.
2658 2659 2660 2661 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2658 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.
2717 2718 2719 2720 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2717 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.
2769 2770 2771 2772 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2769 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.
2812 2813 2814 2815 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2812 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.
2878 2879 2880 2881 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2878 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.
2985 2986 2987 2988 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2985 def get_data_source(params = {}, = {}) req = build_request(:get_data_source, params) req.send_request() end |
#get_flow(params = {}) ⇒ Types::GetFlowResponse
Retrieves information about a flow. For more information, see [Manage a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-manage.html
3082 3083 3084 3085 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3082 def get_flow(params = {}, = {}) req = build_request(:get_flow, params) req.send_request() end |
#get_flow_alias(params = {}) ⇒ Types::GetFlowAliasResponse
Retrieves information about a flow. For more information, see [Deploy a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html
3134 3135 3136 3137 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3134 def get_flow_alias(params = {}, = {}) req = build_request(:get_flow_alias, params) req.send_request() end |
#get_flow_version(params = {}) ⇒ Types::GetFlowVersionResponse
Retrieves information about a version of a flow. For more information, see [Deploy a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html
3230 3231 3232 3233 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3230 def get_flow_version(params = {}, = {}) req = build_request(:get_flow_version, 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.
3283 3284 3285 3286 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3283 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.
3358 3359 3360 3361 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3358 def get_knowledge_base(params = {}, = {}) req = build_request(:get_knowledge_base, params) req.send_request() end |
#get_prompt(params = {}) ⇒ Types::GetPromptResponse
Retrieves information about the working draft (‘DRAFT` version) of a prompt or a version of it, depending on whether you include the `promptVersion` field or not. For more information, see [View information about prompts using Prompt management] and [View information about a version of your prompt] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-view.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-view.html
3435 3436 3437 3438 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3435 def get_prompt(params = {}, = {}) req = build_request(:get_prompt, 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.
3490 3491 3492 3493 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3490 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.
3545 3546 3547 3548 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3545 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.
3602 3603 3604 3605 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3602 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.
3656 3657 3658 3659 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3656 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.
3707 3708 3709 3710 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3707 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.
3761 3762 3763 3764 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3761 def list_data_sources(params = {}, = {}) req = build_request(:list_data_sources, params) req.send_request() end |
#list_flow_aliases(params = {}) ⇒ Types::ListFlowAliasesResponse
Returns a list of aliases for a flow.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3817 3818 3819 3820 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3817 def list_flow_aliases(params = {}, = {}) req = build_request(:list_flow_aliases, params) req.send_request() end |
#list_flow_versions(params = {}) ⇒ Types::ListFlowVersionsResponse
Returns a list of information about each flow. For more information, see [Deploy a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3874 3875 3876 3877 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3874 def list_flow_versions(params = {}, = {}) req = build_request(:list_flow_versions, params) req.send_request() end |
#list_flows(params = {}) ⇒ Types::ListFlowsResponse
Returns a list of flows and information about each flow. For more information, see [Manage a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-manage.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3930 3931 3932 3933 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3930 def list_flows(params = {}, = {}) req = build_request(:list_flows, 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.
4014 4015 4016 4017 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4014 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.
4062 4063 4064 4065 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4062 def list_knowledge_bases(params = {}, = {}) req = build_request(:list_knowledge_bases, params) req.send_request() end |
#list_prompts(params = {}) ⇒ Types::ListPromptsResponse
Returns either information about the working draft (‘DRAFT` version) of each prompt in an account, or information about of all versions of a prompt, depending on whether you include the `promptIdentifier` field or not. For more information, see [View information about prompts using Prompt management] in the Amazon Bedrock User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4125 4126 4127 4128 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4125 def list_prompts(params = {}, = {}) req = build_request(:list_prompts, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all the tags for the resource you specify.
4154 4155 4156 4157 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4154 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.
4190 4191 4192 4193 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4190 def prepare_agent(params = {}, = {}) req = build_request(:prepare_agent, params) req.send_request() end |
#prepare_flow(params = {}) ⇒ Types::PrepareFlowResponse
Prepares the ‘DRAFT` version of a flow so that it can be invoked. For more information, see [Test a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html
4226 4227 4228 4229 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4226 def prepare_flow(params = {}, = {}) req = build_request(:prepare_flow, 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.
4293 4294 4295 4296 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4293 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
4327 4328 4329 4330 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4327 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Remove tags from a resource.
4354 4355 4356 4357 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4354 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.
4497 4498 4499 4500 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4497 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.
4635 4636 4637 4638 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4635 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.
4703 4704 4705 4706 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4703 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.
4763 4764 4765 4766 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4763 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 the configurations for a data source connector.
You can’t change the ‘chunkingConfiguration` after you create the data source connector. Specify the existing `chunkingConfiguration`.
5039 5040 5041 5042 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5039 def update_data_source(params = {}, = {}) req = build_request(:update_data_source, params) req.send_request() end |
#update_flow(params = {}) ⇒ Types::UpdateFlowResponse
Modifies a flow. Include both fields that you want to keep and fields that you want to change. For more information, see [How it works] and [Create a flow in Amazon Bedrock] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/flows-create.html
5275 5276 5277 5278 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5275 def update_flow(params = {}, = {}) req = build_request(:update_flow, params) req.send_request() end |
#update_flow_alias(params = {}) ⇒ Types::UpdateFlowAliasResponse
Modifies the alias of a flow. Include both fields that you want to keep and ones that you want to change. For more information, see
- Deploy a flow in Amazon Bedrock][1
-
in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html
5344 5345 5346 5347 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5344 def update_flow_alias(params = {}, = {}) req = build_request(:update_flow_alias, 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
5527 5528 5529 5530 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5527 def update_knowledge_base(params = {}, = {}) req = build_request(:update_knowledge_base, params) req.send_request() end |
#update_prompt(params = {}) ⇒ Types::UpdatePromptResponse
Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to replace. For more information, see [Prompt management in Amazon Bedrock] and [Edit prompts in your prompt library] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-edit
5653 5654 5655 5656 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5653 def update_prompt(params = {}, = {}) req = build_request(:update_prompt, 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.
5682 5683 5684 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5682 def waiter_names [] end |