CAIN-42 CAIN Studio

API reference · schema

ContextAuditRequest

4 fields · used by 1 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
items requiredarray of ContextItemmin items 1 · max items 500
current_stepintegerdefault 0
referencesarray of string
staleness_threshold_stepsintegermin 1.0 · default 20

Smallest valid example

{
  "items": [
    {
      "id": "id",
      "text": "text",
      "category": "uncategorized",
      "added_at_step": 0
    }
  ],
  "current_step": 0,
  "staleness_threshold_steps": 20
}

Used by 1 operation

POST/fabric/context/context/auditAudit Context

Nested schemas

ContextItem

JSON Schema

Show the raw definition
{
  "properties": {
    "items": {
      "items": {
        "$ref": "#/components/schemas/ContextItem"
      },
      "type": "array",
      "maxItems": 500,
      "minItems": 1,
      "title": "Items"
    },
    "current_step": {
      "type": "integer",
      "title": "Current Step",
      "default": 0
    },
    "references": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "References"
    },
    "staleness_threshold_steps": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Staleness Threshold Steps",
      "default": 20
    }
  },
  "type": "object",
  "required": [
    "items"
  ],
  "title": "ContextAuditRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem