{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-find-all-schema-schema.json",
  "title": "FindAllSchema",
  "description": "Response model for FindAll ingest.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parallel-ai-findall-api-openapi.yml#/components/schemas/FindAllSchema",
  "properties": {
    "objective": {
      "type": "string",
      "title": "Objective",
      "description": "Natural language objective of the FindAll run."
    },
    "entity_type": {
      "type": "string",
      "title": "Entity Type",
      "description": "Type of the entity for the FindAll run."
    },
    "match_conditions": {
      "items": {
        "$ref": "#/$defs/MatchCondition"
      },
      "type": "array",
      "title": "Match Conditions",
      "description": "List of match conditions for the FindAll run."
    },
    "enrichments": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FindAllEnrichInput"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enrichments",
      "description": "List of enrichment inputs for the FindAll run."
    },
    "generator": {
      "type": "string",
      "enum": [
        "base",
        "core",
        "pro",
        "preview"
      ],
      "title": "Generator",
      "description": "The generator of the FindAll run.",
      "default": "core"
    },
    "match_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Match Limit",
      "description": "Max number of candidates to evaluate"
    }
  },
  "type": "object",
  "required": [
    "objective",
    "entity_type",
    "match_conditions"
  ],
  "$defs": {
    "FindAllEnrichInput": {
      "properties": {
        "processor": {
          "type": "string",
          "title": "Processor",
          "description": "Processor to use for the task.",
          "default": "core"
        },
        "output_schema": {
          "$ref": "#/$defs/JsonSchema",
          "description": "JSON schema for the enrichment output schema for the FindAll run."
        },
        "mcp_servers": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/McpServer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Servers",
          "description": "List of MCP servers to use for the task."
        }
      },
      "type": "object",
      "required": [
        "output_schema"
      ],
      "title": "FindAllEnrichInput",
      "description": "Input model for FindAll enrich."
    },
    "JsonSchema": {
      "properties": {
        "json_schema": {
          "additionalProperties": true,
          "type": "object",
          "title": "Json Schema",
          "description": "A JSON Schema object. Only a subset of JSON Schema is supported."
        },
        "type": {
          "type": "string",
          "const": "json",
          "title": "Type",
          "description": "The type of schema being defined. Always `json`.",
          "default": "json"
        }
      },
      "type": "object",
      "required": [
        "json_schema"
      ],
      "title": "JsonSchema",
      "description": "JSON schema for a task input or output."
    },
    "MatchCondition": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Name of the match condition."
        },
        "description": {
          "type": "string",
          "title": "Description",
          "description": "Detailed description of the match condition. Include as much specific information as possible to help improve the quality and accuracy of Find All run results."
        }
      },
      "type": "object",
      "required": [
        "name",
        "description"
      ],
      "title": "MatchCondition",
      "description": "Match condition model for FindAll ingest."
    },
    "McpServer": {
      "properties": {
        "type": {
          "type": "string",
          "const": "url",
          "title": "Type",
          "description": "Type of MCP server being configured. Always `url`.",
          "default": "url"
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "URL of the MCP server."
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string",
                "format": "password",
                "writeOnly": true
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers",
          "description": "Headers for the MCP server."
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Name of the MCP server."
        },
        "allowed_tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Allowed Tools",
          "description": "List of allowed tools for the MCP server."
        }
      },
      "type": "object",
      "required": [
        "url",
        "name"
      ],
      "title": "McpServer",
      "description": "MCP server configuration."
    }
  }
}