Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

780 B
Raw Blame
/**
 * The attachment limits and classification rules, re-exported from the one place they are declared.
 *
 * `shared/` is where the server checks the same limits, so a change to a number or a rule changes
 * both sides at once. This file exists so the browser code keeps importing through `@/`, and so the
 * path to `shared/` is written down once rather than in every composer file that needs it.
 */
export {
  ACCEPTED_IMAGE_MIME,
  ACCEPTED_TEXT_MIME,
  type AttachmentKind,
  type AttachmentPart,
  type AttachmentSource,
  attachmentUrl,
  classifyAttachment,
  MAX_ATTACHMENTS_PER_MESSAGE,
  MAX_EXTRACTED_CHARACTERS,
  MAX_FILE_BYTES,
  MAX_IMAGE_BYTES,
  mayBeTruncatedForModel,
  mediaTypeOf,
  namesNoFormat,
  shouldClaimPaste,
} from "@openbot/shared/attachments";