{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-find-all-run-input-schema.json",
  "title": "FindAllRunInput",
  "description": "Input model for FindAll run.",
  "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/FindAllRunInput",
  "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."
    },
    "generator": {
      "type": "string",
      "enum": [
        "base",
        "core",
        "pro",
        "preview"
      ],
      "title": "Generator",
      "description": "Generator for the FindAll run. One of base, core, pro, preview."
    },
    "match_limit": {
      "type": "integer",
      "title": "Match Limit",
      "description": "Maximum number of matches to find for this FindAll run. Must be between 5 and 1000 (inclusive). May return fewer results."
    },
    "exclude_list": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ExcludeCandidate"
          },
          "type": "array",
          "maxItems": 10000
        },
        {
          "type": "null"
        }
      ],
      "title": "Exclude List",
      "description": "List of entity names/IDs to exclude from results. At most 10,000 entries are allowed."
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata",
      "description": "Metadata for the FindAll run."
    },
    "webhook": {
      "anyOf": [
        {
          "$ref": "#/$defs/Webhook"
        },
        {
          "type": "null"
        }
      ],
      "description": "Webhook for the FindAll run."
    },
    "memory_scope_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9_-]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Memory Scope Key",
      "description": "User-provided key identifying the memory scope to use. Omit to use personal memory, if available."
    }
  },
  "type": "object",
  "required": [
    "objective",
    "entity_type",
    "match_conditions",
    "generator",
    "match_limit"
  ],
  "$defs": {
    "ExcludeCandidate": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Name of the entity to exclude from results."
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "URL of the entity to exclude from results."
        }
      },
      "type": "object",
      "required": [
        "name",
        "url"
      ],
      "title": "ExcludeCandidate",
      "description": "Exclude candidate input model for FindAll run."
    },
    "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."
    },
    "Webhook": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url",
          "description": "URL for the webhook."
        },
        "event_types": {
          "items": {
            "type": "string",
            "enum": [
              "task_run.status"
            ]
          },
          "type": "array",
          "title": "Event Types",
          "description": "Event types to send the webhook notifications for.",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "url"
      ],
      "title": "Webhook",
      "description": "Webhooks for Task Runs."
    }
  }
}