Struct aws_sdk_bedrockagent::operation::create_agent_action_group::builders::CreateAgentActionGroupFluentBuilder
source · pub struct CreateAgentActionGroupFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateAgentActionGroup
.
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.
Implementations§
source§impl CreateAgentActionGroupFluentBuilder
impl CreateAgentActionGroupFluentBuilder
sourcepub fn as_input(&self) -> &CreateAgentActionGroupInputBuilder
pub fn as_input(&self) -> &CreateAgentActionGroupInputBuilder
Access the CreateAgentActionGroup as a reference.
sourcepub async fn send(
self
) -> Result<CreateAgentActionGroupOutput, SdkError<CreateAgentActionGroupError, HttpResponse>>
pub async fn send( self ) -> Result<CreateAgentActionGroupOutput, SdkError<CreateAgentActionGroupError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateAgentActionGroupOutput, CreateAgentActionGroupError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateAgentActionGroupOutput, CreateAgentActionGroupError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn agent_id(self, input: impl Into<String>) -> Self
pub fn agent_id(self, input: impl Into<String>) -> Self
The unique identifier of the agent for which to create the action group.
sourcepub fn set_agent_id(self, input: Option<String>) -> Self
pub fn set_agent_id(self, input: Option<String>) -> Self
The unique identifier of the agent for which to create the action group.
sourcepub fn get_agent_id(&self) -> &Option<String>
pub fn get_agent_id(&self) -> &Option<String>
The unique identifier of the agent for which to create the action group.
sourcepub fn agent_version(self, input: impl Into<String>) -> Self
pub fn agent_version(self, input: impl Into<String>) -> Self
The version of the agent for which to create the action group.
sourcepub fn set_agent_version(self, input: Option<String>) -> Self
pub fn set_agent_version(self, input: Option<String>) -> Self
The version of the agent for which to create the action group.
sourcepub fn get_agent_version(&self) -> &Option<String>
pub fn get_agent_version(&self) -> &Option<String>
The version of the agent for which to create the action group.
sourcepub fn action_group_name(self, input: impl Into<String>) -> Self
pub fn action_group_name(self, input: impl Into<String>) -> Self
The name to give the action group.
sourcepub fn set_action_group_name(self, input: Option<String>) -> Self
pub fn set_action_group_name(self, input: Option<String>) -> Self
The name to give the action group.
sourcepub fn get_action_group_name(&self) -> &Option<String>
pub fn get_action_group_name(&self) -> &Option<String>
The name to give the action group.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the action group.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the action group.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the action group.
sourcepub fn parent_action_group_signature(self, input: ActionGroupSignature) -> Self
pub fn parent_action_group_signature(self, input: ActionGroupSignature) -> Self
To allow your agent to request the user for additional information when trying to complete a task, set this field 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.
sourcepub fn set_parent_action_group_signature(
self,
input: Option<ActionGroupSignature>
) -> Self
pub fn set_parent_action_group_signature( self, input: Option<ActionGroupSignature> ) -> Self
To allow your agent to request the user for additional information when trying to complete a task, set this field 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.
sourcepub fn get_parent_action_group_signature(&self) -> &Option<ActionGroupSignature>
pub fn get_parent_action_group_signature(&self) -> &Option<ActionGroupSignature>
To allow your agent to request the user for additional information when trying to complete a task, set this field 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.
sourcepub fn action_group_executor(self, input: ActionGroupExecutor) -> Self
pub fn action_group_executor(self, input: ActionGroupExecutor) -> Self
The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
sourcepub fn set_action_group_executor(
self,
input: Option<ActionGroupExecutor>
) -> Self
pub fn set_action_group_executor( self, input: Option<ActionGroupExecutor> ) -> Self
The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
sourcepub fn get_action_group_executor(&self) -> &Option<ActionGroupExecutor>
pub fn get_action_group_executor(&self) -> &Option<ActionGroupExecutor>
The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
sourcepub fn api_schema(self, input: ApiSchema) -> Self
pub fn api_schema(self, input: ApiSchema) -> Self
Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas.
sourcepub fn set_api_schema(self, input: Option<ApiSchema>) -> Self
pub fn set_api_schema(self, input: Option<ApiSchema>) -> Self
Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas.
sourcepub fn get_api_schema(&self) -> &Option<ApiSchema>
pub fn get_api_schema(&self) -> &Option<ApiSchema>
Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas.
sourcepub fn action_group_state(self, input: ActionGroupState) -> Self
pub fn action_group_state(self, input: ActionGroupState) -> Self
Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
sourcepub fn set_action_group_state(self, input: Option<ActionGroupState>) -> Self
pub fn set_action_group_state(self, input: Option<ActionGroupState>) -> Self
Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
sourcepub fn get_action_group_state(&self) -> &Option<ActionGroupState>
pub fn get_action_group_state(&self) -> &Option<ActionGroupState>
Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
sourcepub fn function_schema(self, input: FunctionSchema) -> Self
pub fn function_schema(self, input: FunctionSchema) -> Self
Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
sourcepub fn set_function_schema(self, input: Option<FunctionSchema>) -> Self
pub fn set_function_schema(self, input: Option<FunctionSchema>) -> Self
Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
sourcepub fn get_function_schema(&self) -> &Option<FunctionSchema>
pub fn get_function_schema(&self) -> &Option<FunctionSchema>
Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
Trait Implementations§
source§impl Clone for CreateAgentActionGroupFluentBuilder
impl Clone for CreateAgentActionGroupFluentBuilder
source§fn clone(&self) -> CreateAgentActionGroupFluentBuilder
fn clone(&self) -> CreateAgentActionGroupFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateAgentActionGroupFluentBuilder
impl !RefUnwindSafe for CreateAgentActionGroupFluentBuilder
impl Send for CreateAgentActionGroupFluentBuilder
impl Sync for CreateAgentActionGroupFluentBuilder
impl Unpin for CreateAgentActionGroupFluentBuilder
impl !UnwindSafe for CreateAgentActionGroupFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more