> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# AgentActionGroup

****************************************************************************                        DEF - Action Group Class ***************************************************************************.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`bedrock/agents/action-group.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/agents/action-group.ts#L110)

## Example

```ts
const bucket = s3.Bucket.fromBucketName(this, 'ExistingBucket', 'my-schema-bucket');
const s3Schema = bedrock.ApiSchema.fromS3File(bucket, 'schemas/action-group.yaml');

const actionGroupFunction = new lambda.Function(this, 'ActionGroupFunction', {
  runtime: lambda.Runtime.PYTHON_3_12,
  handler: 'index.handler',
  code: lambda.Code.fromAsset(path.join(__dirname, '../lambda/action-group')),
});

const actionGroup = new bedrock.AgentActionGroup({
  name: 'query-library',
  description: 'Use these functions to get information about the books in the library.',
  executor: bedrock.ActionGroupExecutor.fromLambda(actionGroupFunction),
  enabled: true,
  apiSchema: s3Schema,
});

const agent = new bedrock.Agent(this, 'Agent', {
  foundationModel: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_HAIKU_V1_0,
  instruction: 'You are a helpful and friendly agent that answers questions about literature.',
});

agent.addActionGroup(actionGroup);
```

## Initializer

```ts
new AgentActionGroup(props: AgentActionGroupProps)
```

## Properties

- `apiSchema`: [ApiSchema](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.ApiSchema.html) — The api schema for this action group (if defined).

- `description`: string — A description of the action group.

- `enabled`: boolean — Whether this action group is available for the agent to invoke or not.

- `executor`: [ActionGroupExecutor](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.ActionGroupExecutor.html) — The action group executor for this action group (if defined).

- `forceDelete`: boolean — Whether to delete the resource even if it's in use.

- `functionSchema`: [FunctionSchema](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.FunctionSchema.html) — The function schema for this action group (if defined).

- `name`: string — The name of the action group.

- `parentActionGroupSignature`: [ParentActionGroupSignature](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.ParentActionGroupSignature.html) — The AWS Defined signature (if defined).

## Methods

- `codeInterpreter(enabled: boolean): AgentActionGroup // chainable` (static) — Defines an action group that allows your agent to request the user for additional information when trying to complete a task.

  **Parameters**

  - `enabled` — Specifies whether the action group is available for the agent.

- `userInput(enabled: boolean): AgentActionGroup // chainable` (static) — Defines an action group that allows your agent to request the user for additional information when trying to complete a task.

  **Parameters**

  - `enabled` — Specifies whether the action group is available for the agent.
