Documentation
Framework
Version
Class References
Function References
Interface References
Type Alias References
Variable References

ContentPartSource

Interface: ContentPartSource

Defined in: types.ts:32

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

Properties

type

ts
type: "data" | "url";
type: "data" | "url";

Defined in: types.ts:38

The type of source:

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

value

ts
value: string;
value: string;

Defined in: types.ts:44

The actual content value:

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