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 of the inline agent's 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()))
.requireConfirmation("requireConfirmation")
.build()))
.build())
.parentActionGroupSignature("parentActionGroupSignature")
.skipResourceInUseCheckOnDelete(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAgent.AgentActionGroupPropertystatic final classAn implementation forCfnAgent.AgentActionGroupProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe 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 StringSpecifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.default ObjectContains 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 StringA description of the action group.default ObjectContains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.default StringIf this field is set asAMAZON.UserInput, the agent can request the user for additional information when trying to complete a task.default ObjectSpecifies 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.Returns union: either
IResolvableorCfnAgent.ActionGroupExecutorProperty- 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 .
Returns union: either
IResolvableorCfnAgent.APISchemaProperty- See Also:
-
getDescription
A description of the action group.- See Also:
-
getFunctionSchema
Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.Returns union: either
IResolvableorCfnAgent.FunctionSchemaProperty- 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, andactionGroupExecutorfields 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.Returns union: either
BooleanorIResolvableDefault: - false
- See Also:
-
builder
-