Interface CfnAgent.IAgentActionGroupProperty
Contains details of the inline agent's action group.
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnAgent.IAgentActionGroupProperty
Syntax (vb)
Public Interface CfnAgent.IAgentActionGroupProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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
};
Synopsis
Properties
| ActionGroupExecutor | 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. |
| ActionGroupName | The name of the action group. |
| ActionGroupState | Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request. |
| ApiSchema | 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. |
| Description | A description of the action group. |
| FunctionSchema | Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema. |
| ParentActionGroupSignature | If this field is set as |
| SkipResourceInUseCheckOnDelete | Specifies whether to delete the resource even if it's in use. |
Properties
ActionGroupExecutor
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.
object? ActionGroupExecutor { get; }
Property Value
Remarks
ActionGroupName
The name of the action group.
string ActionGroupName { get; }
Property Value
Remarks
ActionGroupState
Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
string? ActionGroupState { get; }
Property Value
Remarks
ApiSchema
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.
object? ApiSchema { get; }
Property Value
Remarks
For more information, see Action group OpenAPI schemas .
Type union: either IResolvable or CfnAgent.IAPISchemaProperty
Description
A description of the action group.
string? Description { get; }
Property Value
Remarks
FunctionSchema
Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
object? FunctionSchema { get; }
Property Value
Remarks
ParentActionGroupSignature
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.
string? ParentActionGroupSignature { get; }
Property Value
Remarks
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.
SkipResourceInUseCheckOnDelete
Specifies whether to delete the resource even if it's in use.
object? SkipResourceInUseCheckOnDelete { get; }