dd-trace
    Preparing search index...

    Interface Prompt

    A Prompt object that represents the prompt template used for an LLM call. Used to power LLM Observability prompts and hallucination evaluations.

    interface Prompt {
        contextVariables?: string[];
        id?: string;
        queryVariables?: string[];
        tags?: Record<string, string>;
        template?: string | llmobs.Message[];
        variables?: Record<string, string>;
        version?: string;
    }
    Index

    Properties

    contextVariables?: string[]

    A list of variable key names that contain ground truth context information.

    id?: string

    The id of the prompt set by the user. Should be unique per mlApp.

    queryVariables?: string[]

    A list of variable key names that contains query information

    tags?: Record<string, string>

    List of tags to add to the prompt run.

    template?: string | llmobs.Message[]

    A template string or chat message template list.

    variables?: Record<string, string>

    An object of string key-value pairs that will be used to render the prompt

    version?: string

    Version of the prompt