get_agent_card¶
Operation¶
get_agent_card
async
¶
get_agent_card(input: GetAgentCardInput, plugins: list[Plugin] | None = None) -> GetAgentCardOutput
Retrieves the A2A agent card associated with an AgentCore Runtime agent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetAgentCardInput
|
An instance of |
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 |
|---|---|
GetAgentCardOutput
|
An instance of |
Input¶
GetAgentCardInput
dataclass
¶
Dataclass for GetAgentCardInput structure.
Attributes¶
agent_runtime_arn
class-attribute
instance-attribute
¶
agent_runtime_arn: str | None = None
The ARN of the AgentCore Runtime agent for which you want to get the A2A agent card.
qualifier
class-attribute
instance-attribute
¶
qualifier: str | None = None
Optional qualifier to specify an agent alias, such as prodcode> or
dev. If you don't provide a value, the DEFAULT alias is used.
runtime_session_id
class-attribute
instance-attribute
¶
runtime_session_id: str | None = None
The session ID that the AgentCore Runtime agent is using.
Output¶
GetAgentCardOutput
dataclass
¶
Dataclass for GetAgentCardOutput structure.
Attributes¶
agent_card
instance-attribute
¶
agent_card: Document
An agent card document that contains metadata and capabilities for an AgentCore Runtime agent.
runtime_session_id
class-attribute
instance-attribute
¶
runtime_session_id: str | None = None
The ID of the session associated with the AgentCore Runtime agent.
status_code
class-attribute
instance-attribute
¶
status_code: int | None = None
The status code of the request.