Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/sessions / facade / MessageContent

Type Alias: MessageContent

ts
type MessageContent = 
  | TextContent
  | ImageContent
  | AudioContent
  | FileContent
  | ReasoningContent;

Defined in: packages/core/dist/types/message.d.ts:15

A single multimodal content part attached to a chat-style message.

The discriminated union is exhaustive: every variant carries a literal type field used by both the runtime and the type system to pick the branch. New variants must be added to all three of: this union, every assertNever switch in the codebase, and the wire-stable adapters.

Stable