

# FunctionDefinition
<a name="API_agent-runtime_FunctionDefinition"></a>

 Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group. 

## Contents
<a name="API_agent-runtime_FunctionDefinition_Contents"></a>

 ** name **   <a name="bedrock-Type-agent-runtime_FunctionDefinition-name"></a>
 A name for the function.   
Type: String  
Pattern: `([0-9a-zA-Z][_-]?){1,100}`   
Required: Yes

 ** description **   <a name="bedrock-Type-agent-runtime_FunctionDefinition-description"></a>
 A description of the function and its purpose.   
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1200.  
Required: No

 ** parameters **   <a name="bedrock-Type-agent-runtime_FunctionDefinition-parameters"></a>
 The parameters that the agent elicits from the user to fulfill the function.   
Type: String to [ParameterDetail](API_agent-runtime_ParameterDetail.md) object map  
Key Pattern: `([0-9a-zA-Z][_-]?){1,100}`   
Required: No

 ** requireConfirmation **   <a name="bedrock-Type-agent-runtime_FunctionDefinition-requireConfirmation"></a>
 Contains information if user confirmation is required to invoke the function.   
Type: String  
Valid Values: `ENABLED | DISABLED`   
Required: No

## See Also
<a name="API_agent-runtime_FunctionDefinition_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agent-runtime-2023-07-26/FunctionDefinition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agent-runtime-2023-07-26/FunctionDefinition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agent-runtime-2023-07-26/FunctionDefinition) 