:doc:`BedrockAgentCore <../../bedrock-agentcore>` / Client / get_agent_card

**************
get_agent_card
**************



.. py:method:: BedrockAgentCore.Client.get_agent_card(**kwargs)

  

  Retrieves the A2A agent card associated with an AgentCore Runtime agent.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetAgentCard>`_  


  **Request Syntax**
  ::

    response = client.get_agent_card(
        runtimeSessionId='string',
        agentRuntimeArn='string',
        qualifier='string'
    )
    
  :type runtimeSessionId: string
  :param runtimeSessionId: 

    The session ID that the AgentCore Runtime agent is using.

    This field is autopopulated if not provided.

  
  :type agentRuntimeArn: string
  :param agentRuntimeArn: **[REQUIRED]** 

    The ARN of the AgentCore Runtime agent for which you want to get the A2A agent card.

    

  
  :type qualifier: string
  :param qualifier: 

    Optional qualifier to specify an agent alias, such as ``prod``code> or ``dev``. If you don't provide a value, the DEFAULT alias is used.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'runtimeSessionId': 'string',
          'agentCard': {...}|[...]|123|123.4|'string'|True|None,
          'statusCode': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **runtimeSessionId** *(string) --* 

        The ID of the session associated with the AgentCore Runtime agent.

        
      

      - **agentCard** (:ref:`document<document>`) -- 

        An agent card document that contains metadata and capabilities for an AgentCore Runtime agent.

        
      

      - **statusCode** *(integer) --* 

        The status code of the request.

        
  
  **Exceptions**
  
  *   :py:class:`BedrockAgentCore.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.ValidationException`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.RuntimeClientError`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.ThrottlingException`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`BedrockAgentCore.Client.exceptions.InternalServerException`

  