Skip to content

BedrockAgentClient.create_agent_action_group

rboto-bedrock-agent==0.4.0 · Service index · Types

Model summary (excerpt): Creates an action group for an agent. An action group represents the actions that an agent can carry out for the customer by defining the APIs that an agent can call and the logic for calling them. To allow your agent to request the user for additional information when trying to complete a task, add an action group with the parentActionGroupSignature field set to AMAZON.UserInput . To allow...

Install and imports

python -m pip install "rboto[bedrock-agent]==0.4.0"
from rboto import BedrockAgentClient
from rboto_bedrock_agent.types import (
    APISchema,
    ActionGroupExecutor,
    ActionGroupSignature,
    ActionGroupState,
    CreateAgentActionGroupOutput,
    FunctionSchema,
)

Signature

async def create_agent_action_group(
    *,
    agent_id: str,
    agent_version: str,
    action_group_name: str,
    client_token: str | None = None,
    description: str | None = None,
    parent_action_group_signature: ActionGroupSignature | None = None,
    parent_action_group_signature_params: dict[str, str] | None = None,
    action_group_executor: ActionGroupExecutor | None = None,
    api_schema: APISchema | None = None,
    action_group_state: ActionGroupState | None = None,
    function_schema: FunctionSchema | None = None,
) -> CreateAgentActionGroupOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
agent_id Yes The unique identifier of the agent for which to create the action group.
agent_version Yes The version of the agent for which to create the action group.
action_group_name Yes The name to give the action group.
client_token No A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency .
description No A description of the action group.
parent_action_group_signature No Specify a built-in or computer use action for this action group. If you specify a value, you must leave the description , apiSchema , and actionGroupExecutor fields empty for this action group. To allow your agent to request the user for additional information when trying to complete a task, set this field to AMAZON.UserInput . To allow your agent to generate, run, and troubleshoot code when...
parent_action_group_signature_params No The configuration settings for a computer use action. Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools .
action_group_executor No 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.
api_schema No 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 .
action_group_state No Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
function_schema No Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.

Output

CreateAgentActionGroupOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
agent_action_group AgentActionGroupOutput | None Always present AgentActionGroupOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

APISchema, ActionGroupExecutor, ActionGroupSignature, ActionGroupState, CreateAgentActionGroupOutput, FunctionSchema

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agent.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model