{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fdc3.finos.org/schemas/2.1/bridging/findIntentsByContextAgentResponse.schema.json",
  "title": "FindIntentsByContext Agent Response",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/FindIntentsByContextResponseBase"
    },
    {
      "$ref": "agentResponse.schema.json"
    }
  ],
  "$defs": {
    "FindIntentsByContextResponseBase": {
      "title": "FindIntentsByContext Response",
      "type": "object",
      "description": "A response to a findIntentsByContext request.",
      "properties": {
        "type": {
          "title": "FindIntentsByContext Response Message Type",
          "const": "findIntentsByContextResponse"
        },
        "payload": {
          "title": "FindIntentsByContext Response Payload",
          "type": "object",
          "properties": {
            "appIntents": {
              "type": "array",
              "items": {
                "$ref": "../api/api.schema.json#/definitions/AppIntent"
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false,
          "required": ["appIntents"]
        },
        "meta": {
          "title": "FindIntentsByContext Response Metadata",
          "type": "object"
        }
      },
      "additionalProperties": false
    }
  }
}
