Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ContentPartSource.md

39 lines832 Bytes

Interface: ContentPartSource

Defined in: types.ts:105

Source specification for multimodal content. Supports both inline data (base64) and URL-based content.

Properties

type

type: "data" | "url";

Defined in: types.ts:111

The type of source:

  • 'data': Inline data (typically base64 encoded)
  • 'url': URL reference to the content

value

value: string;

Defined in: types.ts:117

The actual content value:

  • For 'data': base64-encoded string
  • For 'url': HTTP(S) URL or data URI