# Agent Platform API . projects . locations . reasoningEngines . a2a

## Instance Methods

Returns the message Resource.

Returns the tasks Resource.

Returns the v1 Resource.

Get request for reasoning engine instance via the A2A get protocol apis.

Close httplib2 connections.

Get request for reasoning engine instance via the A2A get protocol apis.

### Method Details

`card(name, a2aEndpoint, historyLength=None, x__xgafv=None)`

    Get request for reasoning engine instance via the A2A get protocol apis.

    Args:
      name: string, Required. The full resource path of the reasoning engine, captured from the URL. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` (required)
      a2aEndpoint: string, Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` (required)
      historyLength: string, Optional. The optional query parameter for the getTask endpoint. Mapped from "?history_length=". This indicates how many turns of history to return. If not set, the default value is 0, which means all the history will be returned.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        {
      "a_key": "", # Properties of the object.
    }

`close()`

    Close httplib2 connections.

`extendedAgentCard(name, a2aEndpoint, historyLength=None, x__xgafv=None)`

    Get request for reasoning engine instance via the A2A get protocol apis.

    Args:
      name: string, Required. The full resource path of the reasoning engine, captured from the URL. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` (required)
      a2aEndpoint: string, Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` (required)
      historyLength: string, Optional. The optional query parameter for the getTask endpoint. Mapped from "?history_length=". This indicates how many turns of history to return. If not set, the default value is 0, which means all the history will be returned.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        {
      "a_key": "", # Properties of the object.
    }