Interface CfnAgent.AgentActionGroupProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAgent.AgentActionGroupProperty.Jsii$Proxy
- Enclosing class:
CfnAgent
@Stability(Stable)
public static interface CfnAgent.AgentActionGroupProperty
extends software.amazon.jsii.JsiiSerializable
Contains details about an action group.
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.*; AgentActionGroupProperty agentActionGroupProperty = AgentActionGroupProperty.builder() .actionGroupName("actionGroupName") // the properties below are optional .actionGroupExecutor(ActionGroupExecutorProperty.builder() .customControl("customControl") .lambda("lambda") .build()) .actionGroupState("actionGroupState") .apiSchema(APISchemaProperty.builder() .payload("payload") .s3(S3IdentifierProperty.builder() .s3BucketName("s3BucketName") .s3ObjectKey("s3ObjectKey") .build()) .build()) .description("description") .functionSchema(FunctionSchemaProperty.builder() .functions(List.of(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())) .build())) .build()) .parentActionGroupSignature("parentActionGroupSignature") .skipResourceInUseCheckOnDelete(false) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAgent.AgentActionGroupProperty
static final class
An implementation forCfnAgent.AgentActionGroupProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
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.The name of the action group.default String
Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.default Object
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.default String
The description of the action group.default Object
Defines functions that each define parameters that the agent needs to invoke from the user.default String
If this field is set asAMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task.default Object
Specifies whether to delete the resource even if it's in use.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getActionGroupName
The name of the action group.- See Also:
-
getActionGroupExecutor
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.- See Also:
-
getActionGroupState
Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.- See Also:
-
getApiSchema
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 .
- See Also:
-
getDescription
The description of the action group.- See Also:
-
getFunctionSchema
Defines functions that each define parameters that the agent needs to invoke from the user.Each function represents an action in an action group.
- See Also:
-
getParentActionGroupSignature
If this field is set asAMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task. Thedescription
,apiSchema
, andactionGroupExecutor
fields must be blank for this action group.During orchestration, if the 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.
- See Also:
-
getSkipResourceInUseCheckOnDelete
Specifies whether to delete the resource even if it's in use.By default, this value is
false
.Default: - false
- See Also:
-
builder
-