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.
440 441 442 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 440 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.
5685 5686 5687 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5685 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.
5688 5689 5690 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5688 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.
502 503 504 505 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 502 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.
5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5658 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.24.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
697 698 699 700 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 697 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
872 873 874 875 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 872 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.
956 957 958 959 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 956 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.
1255 1256 1257 1258 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1255 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
1513 1514 1515 1516 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1513 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
1602 1603 1604 1605 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1602 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
1713 1714 1715 1716 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1713 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
1937 1938 1939 1940 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1937 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
2085 2086 2087 2088 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2085 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
2182 2183 2184 2185 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2182 def create_prompt_version(params = {}, = {}) req = build_request(:create_prompt_version, params) req.send_request() end |
#delete_agent(params = {}) ⇒ Types::DeleteAgentResponse
Deletes an agent.
2218 2219 2220 2221 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2218 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.
2254 2255 2256 2257 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2254 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.
2290 2291 2292 2293 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2290 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.
2332 2333 2334 2335 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2332 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.
2369 2370 2371 2372 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2369 def delete_data_source(params = {}, = {}) req = build_request(:delete_data_source, params) req.send_request() end |
#delete_flow(params = {}) ⇒ Types::DeleteFlowResponse
Deletes a flow.
2403 2404 2405 2406 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2403 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.
2437 2438 2439 2440 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2437 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.
2478 2479 2480 2481 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2478 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
2514 2515 2516 2517 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2514 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
2558 2559 2560 2561 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2558 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.
2590 2591 2592 2593 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2590 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.
2654 2655 2656 2657 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2654 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.
2713 2714 2715 2716 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2713 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.
2765 2766 2767 2768 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2765 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.
2808 2809 2810 2811 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2808 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.
2874 2875 2876 2877 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2874 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.
2981 2982 2983 2984 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2981 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
3078 3079 3080 3081 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3078 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
3130 3131 3132 3133 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3130 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
3226 3227 3228 3229 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3226 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.
3279 3280 3281 3282 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3279 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.
3354 3355 3356 3357 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3354 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
3431 3432 3433 3434 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3431 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.
3486 3487 3488 3489 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3486 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.
3541 3542 3543 3544 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3541 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.
3598 3599 3600 3601 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3598 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.
3652 3653 3654 3655 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3652 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.
3703 3704 3705 3706 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3703 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.
3757 3758 3759 3760 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3757 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.
3813 3814 3815 3816 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3813 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.
3870 3871 3872 3873 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3870 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.
3926 3927 3928 3929 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 3926 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.
4010 4011 4012 4013 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4010 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.
4058 4059 4060 4061 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4058 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.
4121 4122 4123 4124 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4121 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.
4150 4151 4152 4153 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4150 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.
4186 4187 4188 4189 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4186 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
4222 4223 4224 4225 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4222 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.
4289 4290 4291 4292 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4289 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
4323 4324 4325 4326 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4323 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Remove tags from a resource.
4350 4351 4352 4353 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4350 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.
4493 4494 4495 4496 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4493 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.
4631 4632 4633 4634 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4631 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.
4699 4700 4701 4702 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4699 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.
4759 4760 4761 4762 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 4759 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`.
5035 5036 5037 5038 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5035 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
5271 5272 5273 5274 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5271 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
5340 5341 5342 5343 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5340 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
5523 5524 5525 5526 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5523 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
5649 5650 5651 5652 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5649 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.
5678 5679 5680 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 5678 def waiter_names [] end |