Sign up (with export icon)

AIContextItem

Api-typedef icontypedef

A context item.

Properties

  • Chevron-right icon

    documents?: Array<AIContextItemDocument>

    Per-document metadata for the current-document context item.

    Each entry corresponds to a single root and produces one { type: 'document' } request entry when the context item is serialized to API request data. Single-root setups use an array with one entry — there is no scalar single-document fallback.

    For type: 'document' context items, this array is the source of truth; the base content, id, and selection fields are ignored.

  • hidden?: boolean

  • isReadOnly?: boolean

  • label: string

  • resourceId?: string

  • selection?: Array<object>

  • sessionId?: string | null

  • uiId: string

  • version?: number