Skip to content

prompts.history

The prompts the user sent from omfp: the thread’s first, then its workspace’s, then the rest, newest first within each (PRT-127, DMN-216).

/** `prompts.history` params (PRT-127): the prompts the user sent from omfp, ranked for one composer. */
export type PromptHistoryParams = {
/** At most this many prompts; default 100, capped at 1000. */
limit?: number | null;
/** Only prompts containing this text, case-insensitive (ASCII); absent or empty: all. */
query?: string | null;
/** Ranks this thread's prompts first (it filters nothing). */
threadId?: string | null;
/** Ranks this workspace's prompts next (it filters nothing). */
workspaceId?: string | null;
};
/** `prompts.history` result (PRT-127). */
export type PromptHistory = {
/** The given thread's prompts, then the given workspace's, then the others; newest first within each. */
prompts: PromptHistoryEntry[];
};
/** One prompt of the history (PRT-127, DMN-216): each text once, with its latest submission. */
export type PromptHistoryEntry = {
/** When it was last sent (Unix milliseconds). */
at: number;
text: string;
/** The thread it was last sent to. */
threadId: string;
/** That thread's workspace when it was sent. */
workspaceId: string;
};