/** * This file was auto-generated by Fern from our API Definition. */ import * as Flatfile from "../../../index"; /** * Data required to create a new message in a thread * * @example * { * content: { * "text": "Hello, world!" * }, * role: Flatfile.MessageRole.User, * metadata: { * "source": "api" * } * } */ export interface MessageApiCreateData { /** The message ID generated by the chat agent response */ messageId?: string; /** The message content */ content: Record; /** The message parts */ parts?: Record[]; /** A list of objects used to annotate and describe parts of the message */ annotations?: Record[]; /** The role of the message */ role: Flatfile.MessageRole; /** Persistent state for the message */ state?: Record; /** Additional metadata for the message */ metadata?: Record; }