Interface CfnAgent.FunctionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAgent.FunctionProperty.Jsii$Proxy
- Enclosing class:
CfnAgent
@Stability(Stable)
public static interface CfnAgent.FunctionProperty
extends software.amazon.jsii.JsiiSerializable
Defines parameters that the agent needs to invoke from the user to complete the function.
Corresponds to an action in an action group.
This data type is used in the following API operations:
- CreateAgentActionGroup request
- CreateAgentActionGroup response
- UpdateAgentActionGroup request
- UpdateAgentActionGroup response
- GetAgentActionGroup response
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.bedrock.*; FunctionProperty functionProperty = FunctionProperty.builder() .name("name") // the properties below are optional .description("description") .parameters(Map.of( "parametersKey", ParameterDetailProperty.builder() .type("type") // the properties below are optional .description("description") .required(false) .build())) .requireConfirmation("requireConfirmation") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAgent.FunctionProperty
static final class
An implementation forCfnAgent.FunctionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
A description of the function and its purpose.getName()
A name for the function.default Object
The parameters that the agent elicits from the user to fulfill the function.default String
Contains information if user confirmation is required to invoke the function.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
A name for the function.- See Also:
-
getDescription
A description of the function and its purpose.- See Also:
-
getParameters
The parameters that the agent elicits from the user to fulfill the function.- See Also:
-
getRequireConfirmation
Contains information if user confirmation is required to invoke the function.- See Also:
-
builder
- Returns:
- a
CfnAgent.FunctionProperty.Builder
ofCfnAgent.FunctionProperty
-