evalution
    Preparing search index...

    Interface NormalizedPrompt

    Prompt representation used by PromptProvider public methods and by the playground UI. It hides SDK-specific property names behind a stable shape — model, system, messages, and the rest as parameters.

    SDKAdapter.normalizePrompt converts a ParsedPrompt produced by a PromptFileType into this form.

    interface NormalizedPrompt {
        functionParameters: PropDefinition[];
        globalId?: string;
        id: string;
        messages: NormalizedMessage[];
        messagesEditable: boolean;
        metadata?: unknown;
        model?: PropValue;
        modelEditable: boolean;
        modelParameters: NormalizedParameter[];
        name: string;
        providerId?: string;
        system?: PropValue;
        systemEditable: boolean;
        treePath?: string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    functionParameters: PropDefinition[]
    globalId?: string

    Author-supplied stable alias for this prompt, globally unique across providers. Survives file moves/renames and is registered in the prompt registry so runtime traces can resolve back to this prompt.

    id: string
    messages: NormalizedMessage[]

    Conversation messages.

    messagesEditable: boolean

    Whether messages can be edited in the UI.

    metadata?: unknown
    model?: PropValue

    The model reference (e.g. a provider call or gateway string).

    modelEditable: boolean

    Whether model can be edited in the UI.

    modelParameters: NormalizedParameter[]

    Model parameters currently set on the prompt (everything other than model, system, and messages).

    name: string
    providerId?: string
    system?: PropValue

    Top-level system prompt, if the SDK supports one.

    systemEditable: boolean

    Whether system can be edited in the UI.

    treePath?: string[]

    Controls where this prompt appears in the sidebar tree.

    Each element is a path segment. The last segment is treated as the leaf group label (analogous to a file name) and all preceding segments are rendered as collapsible directory nodes.

    Prompts that share the same treePath are grouped under the same leaf node. When omitted, the prompt is placed at the root level.

    ['src', 'prompts', 'greeting.prompt.ts']