import type { ChatMessagePart } from './types';

type PromptTarget = Extract<ChatMessagePart, { type: 'prompt' }>;

export function isPromptResolved(target: PromptTarget) {
  return target.readOnly === true || target.resolvedBy != null;
}
