Skip to content

Bedrock Agent  >  Operations  >  get_agent

get_agent

Operation

get_agent async

get_agent(input: GetAgentInput, plugins: list[Plugin] | None = None) -> GetAgentOutput

Gets information about an agent.

Parameters:

Name Type Description Default
input GetAgentInput

An instance of GetAgentInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetAgentOutput

An instance of GetAgentOutput.

Input

GetAgentInput dataclass

Dataclass for GetAgentInput structure.

Attributes

agent_id class-attribute instance-attribute
agent_id: str | None = None

The unique identifier of the agent.

Output

GetAgentOutput dataclass

Dataclass for GetAgentOutput structure.

Attributes

agent instance-attribute
agent: Agent

Contains details about the agent.