Skip to content

Agent

Source code in docs_src/capo_bedrock_agent/types/agent.py
class Agent(TypedDict, closed=True):
    agent_id: "capo_bedrock_agent.types.id.Id"
    """<p>The unique identifier of the agent.</p>"""
    agent_name: "capo_bedrock_agent.types.name.Name"
    """<p>The name of the agent.</p>"""
    agent_arn: "capo_bedrock_agent.types.agent_arn.AgentArn"
    """<p>The Amazon Resource Name (ARN) of the agent.</p>"""
    agent_version: "capo_bedrock_agent.types.draft_version.DraftVersion"
    """<p>The version of the agent.</p>"""
    client_token: NotRequired["capo_bedrock_agent.types.client_token.ClientToken"]
    """<p>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 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>"""
    instruction: NotRequired["capo_bedrock_agent.types.instruction.Instruction"]
    """<p>Instructions that tell the agent what it should do and how it should interact with users.</p>"""
    agent_status: "capo_bedrock_agent.types.agent_status.AgentStatus"
    """<p>The status of the agent and whether it is ready for use. The following statuses are possible:</p> <ul> <li> <p>CREATING – The agent is being created.</p> </li> <li> <p>PREPARING – The agent is being prepared.</p> </li> <li> <p>PREPARED – The agent is prepared and ready to be invoked.</p> </li> <li> <p>NOT_PREPARED – The agent has been created but not yet prepared.</p> </li> <li> <p>FAILED – The agent API operation failed.</p> </li> <li> <p>UPDATING – The agent is being updated.</p> </li> <li> <p>DELETING – The agent is being deleted.</p> </li> </ul>"""
    foundation_model: NotRequired[
        "capo_bedrock_agent.types.model_identifier.ModelIdentifier"
    ]
    """<p>The foundation model used for orchestration by the agent.</p>"""
    description: NotRequired["capo_bedrock_agent.types.description.Description"]
    """<p>The description of the agent.</p>"""
    orchestration_type: NotRequired[
        "capo_bedrock_agent.types.orchestration_type.OrchestrationType"
    ]
    """<p> Specifies the orchestration strategy for the agent. </p>"""
    custom_orchestration: NotRequired[
        "capo_bedrock_agent.types.custom_orchestration.CustomOrchestration"
    ]
    """<p> Contains custom orchestration configurations for the agent. </p>"""
    idle_session_ttl_in_seconds: "capo_bedrock_agent.types.session_ttl.SessionTTL"
    """<p>The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.</p> <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.</p>"""
    agent_resource_role_arn: "capo_bedrock_agent.types.agent_role_arn.AgentRoleArn"
    """<p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.</p>"""
    customer_encryption_key_arn: NotRequired[
        "capo_bedrock_agent.types.kms_key_arn.KmsKeyArn"
    ]
    """<p>The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.</p>"""
    created_at: "capo_bedrock_agent.types.date_timestamp.DateTimestamp"
    """<p>The time at which the agent was created.</p>"""
    updated_at: "capo_bedrock_agent.types.date_timestamp.DateTimestamp"
    """<p>The time at which the agent was last updated.</p>"""
    prepared_at: NotRequired["capo_bedrock_agent.types.date_timestamp.DateTimestamp"]
    """<p>The time at which the agent was last prepared.</p>"""
    failure_reasons: NotRequired[
        "capo_bedrock_agent.types.failure_reasons.FailureReasons"
    ]
    """<p>Contains reasons that the agent-related API that you invoked failed.</p>"""
    recommended_actions: NotRequired[
        "capo_bedrock_agent.types.recommended_actions.RecommendedActions"
    ]
    """<p>Contains recommended actions to take for the agent-related API that you invoked to succeed.</p>"""
    prompt_override_configuration: NotRequired[
        "capo_bedrock_agent.types.prompt_override_configuration.PromptOverrideConfiguration"
    ]
    """<p>Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p>"""
    guardrail_configuration: NotRequired[
        "capo_bedrock_agent.types.guardrail_configuration.GuardrailConfiguration"
    ]
    """<p>Details about the guardrail associated with the agent.</p>"""
    memory_configuration: NotRequired[
        "capo_bedrock_agent.types.memory_configuration.MemoryConfiguration"
    ]
    """<p>Contains memory configuration for the agent.</p>"""
    agent_collaboration: NotRequired[
        "capo_bedrock_agent.types.agent_collaboration.AgentCollaboration"
    ]
    """<p>The agent's collaboration settings.</p>"""

agent_arn instance-attribute

agent_arn: AgentArn

The Amazon Resource Name (ARN) of the agent.

agent_collaboration instance-attribute

agent_collaboration: NotRequired[AgentCollaboration]

The agent's collaboration settings.

agent_id instance-attribute

agent_id: Id

The unique identifier of the agent.

agent_name instance-attribute

agent_name: Name

The name of the agent.

agent_resource_role_arn instance-attribute

agent_resource_role_arn: AgentRoleArn

The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.

agent_status instance-attribute

agent_status: AgentStatus

The status of the agent and whether it is ready for use. The following statuses are possible:

  • CREATING – The agent is being created.

  • PREPARING – The agent is being prepared.

  • PREPARED – The agent is prepared and ready to be invoked.

  • NOT_PREPARED – The agent has been created but not yet prepared.

  • FAILED – The agent API operation failed.

  • UPDATING – The agent is being updated.

  • DELETING – The agent is being deleted.

agent_version instance-attribute

agent_version: DraftVersion

The version of the agent.

client_token instance-attribute

client_token: NotRequired[ClientToken]

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.

created_at instance-attribute

created_at: DateTimestamp

The time at which the agent was created.

custom_orchestration instance-attribute

custom_orchestration: NotRequired[CustomOrchestration]

Contains custom orchestration configurations for the agent.

customer_encryption_key_arn instance-attribute

customer_encryption_key_arn: NotRequired[KmsKeyArn]

The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.

description instance-attribute

description: NotRequired[Description]

The description of the agent.

failure_reasons instance-attribute

failure_reasons: NotRequired[FailureReasons]

Contains reasons that the agent-related API that you invoked failed.

foundation_model instance-attribute

foundation_model: NotRequired[ModelIdentifier]

The foundation model used for orchestration by the agent.

guardrail_configuration instance-attribute

guardrail_configuration: NotRequired[GuardrailConfiguration]

Details about the guardrail associated with the agent.

idle_session_ttl_in_seconds instance-attribute

idle_session_ttl_in_seconds: SessionTTL

The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.

instruction instance-attribute

instruction: NotRequired[Instruction]

Instructions that tell the agent what it should do and how it should interact with users.

memory_configuration instance-attribute

memory_configuration: NotRequired[MemoryConfiguration]

Contains memory configuration for the agent.

orchestration_type instance-attribute

orchestration_type: NotRequired[OrchestrationType]

Specifies the orchestration strategy for the agent.

prepared_at instance-attribute

prepared_at: NotRequired[DateTimestamp]

The time at which the agent was last prepared.

prompt_override_configuration instance-attribute

prompt_override_configuration: NotRequired[PromptOverrideConfiguration]

Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts.

recommended_actions instance-attribute

recommended_actions: NotRequired[RecommendedActions]

Contains recommended actions to take for the agent-related API that you invoked to succeed.

updated_at instance-attribute

updated_at: DateTimestamp

The time at which the agent was last updated.