Skip to content

SemanticPredicateModel

Field Type Required Description and constraints
condition string No Match selected descriptions, or require complete evaluated evidence that none matches. Missing inference remains unknown. values "matches", "doesNotMatch". default "matches"
positivePrompts array of SemanticPositivePromptModel Yes minimum items 1. maximum items 8
backgroundText string Yes Optional comparison description. Empty with one foreground automatically compares supported color substitutions, or generic object when no color is recognized, as archive and live natural-language search do. Scores measure relative relevance, not calibrated probability. Empty with multiple foregrounds compares them against one another. minimum length 0. maximum length 256
evaluationIntervalSeconds number No minimum 0.2. maximum 60.0. default 1
candidateSource SemanticCandidateSource No default "trackedObject"
cropDimensionPixels number or null No
maximumRegionCandidates integer or null No

Additional properties are rejected by this schema.

{
"properties": {
"condition": {
"type": "string",
"enum": [
"matches",
"doesNotMatch"
],
"title": "Condition",
"description": "Match selected descriptions, or require complete evaluated evidence that none matches. Missing inference remains unknown.",
"default": "matches"
},
"positivePrompts": {
"items": {
"$ref": "#/components/schemas/SemanticPositivePromptModel"
},
"type": "array",
"maxItems": 8,
"minItems": 1,
"title": "Positiveprompts"
},
"backgroundText": {
"type": "string",
"maxLength": 256,
"minLength": 0,
"title": "Backgroundtext",
"description": "Optional comparison description. Empty with one foreground automatically compares supported color substitutions, or generic object when no color is recognized, as archive and live natural-language search do. Scores measure relative relevance, not calibrated probability. Empty with multiple foregrounds compares them against one another."
},
"evaluationIntervalSeconds": {
"type": "number",
"maximum": 60.0,
"minimum": 0.2,
"title": "Evaluationintervalseconds",
"default": 1
},
"candidateSource": {
"$ref": "#/components/schemas/SemanticCandidateSource",
"default": "trackedObject"
},
"cropDimensionPixels": {
"anyOf": [
{
"type": "number",
"maximum": 4096.0,
"minimum": 32.0
},
{
"type": "null"
}
],
"title": "Cropdimensionpixels"
},
"maximumRegionCandidates": {
"anyOf": [
{
"type": "integer",
"maximum": 4.0,
"minimum": 1.0
},
{
"type": "null"
}
],
"title": "Maximumregioncandidates"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"positivePrompts",
"backgroundText"
],
"title": "SemanticPredicateModel"
}
Image preview