TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Type Alias AIGenerateMessage

    AIGenerateMessage:
        | { files?: string[]; message: string; type: "user" }
        | { message: string; type: "assistant" }

    A conversation turn, in the same shape the AI chat uses.

    Type declaration

    • { files?: string[]; message: string; type: "user" }
      • Optionalfiles?: string[]

        Up to 5 TagoIO Files URLs from this profile, each up to 5 MB: images (.png, .jpg, .jpeg, .gif, .webp) or text (.txt, .csv, cut at 100 KB). A request attaches at most 5 files across all its messages, counting a file each time it appears. The Analysis needs a File / Access policy for each file, unless the file is public.

      • message: string
      • type: "user"
    • { message: string; type: "assistant" }