@shortcut/client
    Preparing search index...

    Interface ShortcutSessionPromptContent

    What a person wrote. Every prompt this version knows is prompt, which always carries a text body. Shortcut may add content types within envelope v1, with fields of their own and no body, so compare type against the values you know.

    interface ShortcutSessionPromptContent {
        body?: string | null;
        type: string & {} | "prompt";
        [field: string]: unknown;
    }

    Indexable

    • [field: string]: unknown
    Index

    Properties

    Properties

    body?: string | null

    The text. Always present for prompt; absent or null for a type without one.

    type: string & {} | "prompt"