Title: ContextSelectionAgent buildRequest structure matches the snapshot
Content:
{
  "client": "CHROME_DEVTOOLS",
  "current_message": {
    "parts": [
      {
        "text": "test input"
      }
    ],
    "role": 1
  },
  "historical_contexts": [
    {
      "parts": [
        {
          "text": "question"
        }
      ],
      "role": 1
    },
    {
      "parts": [
        {
          "text": "answer"
        }
      ],
      "role": 2
    }
  ],
  "function_declarations": [
    {
      "name": "listNetworkRequests",
      "description": "Gives a list of network requests including URL, status code, and duration.",
      "parameters": {
        "type": 6,
        "description": "",
        "nullable": true,
        "required": [],
        "properties": {}
      }
    },
    {
      "name": "selectNetworkRequest",
      "description": "Selects a specific network request to further provide information about. Use this when asked about network requests issues.",
      "parameters": {
        "type": 6,
        "description": "",
        "nullable": true,
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": 1,
            "description": "The id of the network request",
            "nullable": false
          }
        }
      }
    },
    {
      "name": "listSourceFiles",
      "description": "Returns a list of all files in the project.",
      "parameters": {
        "type": 6,
        "description": "",
        "nullable": true,
        "required": [],
        "properties": {}
      }
    },
    {
      "name": "selectSourceFile",
      "description": "Selects a source file. Use this when asked about files on the page. Use listSourceFiles to find the file ID.",
      "parameters": {
        "type": 6,
        "description": "",
        "nullable": true,
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": 3,
            "description": "The id (URL) of the file you want to select.",
            "nullable": false
          }
        }
      }
    },
    {
      "name": "performanceRecordAndReload",
      "description": "Records a new performance trace, to help debug performance issue.",
      "parameters": {
        "type": 6,
        "description": "",
        "nullable": true,
        "required": [],
        "properties": {}
      }
    },
    {
      "name": "inspectDom",
      "description": "Prompts user to select a DOM element from the page. Use this when you don't know which element is selected.",
      "parameters": {
        "type": 6,
        "description": "",
        "nullable": true,
        "required": [],
        "properties": {}
      }
    }
  ],
  "options": {},
  "metadata": {
    "disable_user_content_logging": false,
    "string_session_id": "sessionId",
    "user_tier": 3,
    "client_version": "unit_test"
  },
  "functionality_type": 5,
  "client_feature": 9
}
=== end content
