AgentActionGroupProperty
Struct External
Contains details of the inline agent's action group.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const agentActionGroupProperty: bedrock.CfnAgent.AgentActionGroupProperty = {
actionGroupName: 'actionGroupName',
// the properties below are optional
actionGroupExecutor: {
customControl: 'customControl',
lambda: 'lambda',
},
actionGroupState: 'actionGroupState',
apiSchema: {
payload: 'payload',
s3: {
s3BucketName: 's3BucketName',
s3ObjectKey: 's3ObjectKey',
},
},
description: 'description',
functionSchema: {
functions: [{
name: 'name',
// the properties below are optional
description: 'description',
parameters: {
parametersKey: {
type: 'type',
// the properties below are optional
description: 'description',
required: false,
},
},
requireConfirmation: 'requireConfirmation',
}],
},
parentActionGroupSignature: 'parentActionGroupSignature',
skipResourceInUseCheckOnDelete: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
agent_action_group_property = bedrock.CfnAgent.AgentActionGroupProperty(
action_group_name="actionGroupName",
# the properties below are optional
action_group_executor=bedrock.CfnAgent.ActionGroupExecutorProperty(
custom_control="customControl",
lambda_="lambda"
),
action_group_state="actionGroupState",
api_schema=bedrock.CfnAgent.APISchemaProperty(
payload="payload",
s3=bedrock.CfnAgent.S3IdentifierProperty(
s3_bucket_name="s3BucketName",
s3_object_key="s3ObjectKey"
)
),
description="description",
function_schema=bedrock.CfnAgent.FunctionSchemaProperty(
functions=[bedrock.CfnAgent.FunctionProperty(
name="name",
# the properties below are optional
description="description",
parameters={
"parameters_key": bedrock.CfnAgent.ParameterDetailProperty(
type="type",
# the properties below are optional
description="description",
required=False
)
},
require_confirmation="requireConfirmation"
)]
),
parent_action_group_signature="parentActionGroupSignature",
skip_resource_in_use_check_on_delete=False
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var agentActionGroupProperty = new AgentActionGroupProperty {
ActionGroupName = "actionGroupName",
// the properties below are optional
ActionGroupExecutor = new ActionGroupExecutorProperty {
CustomControl = "customControl",
Lambda = "lambda"
},
ActionGroupState = "actionGroupState",
ApiSchema = new APISchemaProperty {
Payload = "payload",
S3 = new S3IdentifierProperty {
S3BucketName = "s3BucketName",
S3ObjectKey = "s3ObjectKey"
}
},
Description = "description",
FunctionSchema = new FunctionSchemaProperty {
Functions = new [] { new FunctionProperty {
Name = "name",
// the properties below are optional
Description = "description",
Parameters = new Dictionary<string, object> {
{ "parametersKey", new ParameterDetailProperty {
Type = "type",
// the properties below are optional
Description = "description",
Required = false
} }
},
RequireConfirmation = "requireConfirmation"
} }
},
ParentActionGroupSignature = "parentActionGroupSignature",
SkipResourceInUseCheckOnDelete = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
agentActionGroupProperty := &AgentActionGroupProperty{
ActionGroupName: jsii.String("actionGroupName"),
// the properties below are optional
ActionGroupExecutor: &ActionGroupExecutorProperty{
CustomControl: jsii.String("customControl"),
Lambda: jsii.String("lambda"),
},
ActionGroupState: jsii.String("actionGroupState"),
ApiSchema: &APISchemaProperty{
Payload: jsii.String("payload"),
S3: &S3IdentifierProperty{
S3BucketName: jsii.String("s3BucketName"),
S3ObjectKey: jsii.String("s3ObjectKey"),
},
},
Description: jsii.String("description"),
FunctionSchema: &FunctionSchemaProperty{
Functions: []interface{}{
&FunctionProperty{
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
Parameters: map[string]interface{}{
"parametersKey": &ParameterDetailProperty{
"type": jsii.String("type"),
// the properties below are optional
"description": jsii.String("description"),
"required": jsii.Boolean(false),
},
},
RequireConfirmation: jsii.String("requireConfirmation"),
},
},
},
ParentActionGroupSignature: jsii.String("parentActionGroupSignature"),
SkipResourceInUseCheckOnDelete: jsii.Boolean(false),
}
Properties
actionGroupExecutoroptionalIResolvable | CfnAgent.action_group_executoroptionaltyping.Union[IResolvable, ActionGroupExecutorProperty]actionGroupExecutoroptionalIResolvableActionGroupExecutoroptionalIResolvableActionGroupExecutoroptionalinterface{} #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.
actionGroupNamestringaction_group_namestractionGroupNameStringActionGroupNamestringActionGroupName*string required #The name of the action group.
actionGroupStateoptionalstringaction_group_stateoptionalstractionGroupStateoptionalStringActionGroupStateoptionalstringActionGroupStateoptional*string #Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
apiSchemaoptionalIResolvable | CfnAgent.APISchemaPropertyapi_schemaoptionaltyping.Union[IResolvable, APISchemaProperty]apiSchemaoptionalIResolvableApiSchemaoptionalIResolvableApiSchemaoptionalinterface{} #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 .
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the action group.
functionSchemaoptionalIResolvable | CfnAgent.FunctionSchemaPropertyfunction_schemaoptionaltyping.Union[IResolvable, FunctionSchemaProperty]functionSchemaoptionalIResolvableFunctionSchemaoptionalIResolvableFunctionSchemaoptionalinterface{} #Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
parentActionGroupSignatureoptionalstringparent_action_group_signatureoptionalstrparentActionGroupSignatureoptionalStringParentActionGroupSignatureoptionalstringParentActionGroupSignatureoptional*string #If this field is set as `AMAZON.UserInput` , the agent can request the user for additional information when trying to complete a task. The `description` , `apiSchema` , and `actionGroupExecutor` fields must be blank for this action group.
notes
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.
skipResourceInUseCheckOnDeleteoptionalboolean | IResolvableskip_resource_in_use_check_on_deleteoptionaltyping.Union[bool, IResolvable]skipResourceInUseCheckOnDeleteoptionalBooleanSkipResourceInUseCheckOnDeleteoptionalboolSkipResourceInUseCheckOnDeleteoptionalinterface{} = false #Specifies whether to delete the resource even if it's in use.
By default, this value is false .