evalution
    Preparing search index...

    Class FilePromptProvider

    A PromptProvider that discovers and serves prompts from files on the local file system (or any FileProvider).

    Out of the box it scans for **/*.prompt.ts files and parses them with TSPromptFileType. Pass a FilePromptProviderOptions to the constructor to customize this behavior. You must specify at least FilePromptProviderOptions.sdk.

    const provider = new FilePromptProvider({ rootDir: '/my/project', sdk: new VercelAISDK() });
    const prompts = await provider.getAllPrompts();

    Implements

    Index

    Constructors

    Properties

    description: "Create a .prompt.ts file"

    Short description of what this provider offers.

    displayName: "File System"

    Human-readable name shown when choosing between providers.

    icon: "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"currentColor\"><path d=\"M1.5 3A1.5 1.5 0 000 4.5v8A1.5 1.5 0 001.5 14h13a1.5 1.5 0 001.5-1.5v-7A1.5 1.5 0 0014.5 4H8L6.5 2.5h-5z\"/></svg>" = '<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M1.5 3A1.5 1.5 0 000 4.5v8A1.5 1.5 0 001.5 14h13a1.5 1.5 0 001.5-1.5v-7A1.5 1.5 0 0014.5 4H8L6.5 2.5h-5z"/></svg>'

    SVG icon markup for this provider.

    id: string

    Uniquely identifies this provider when multiple providers are used.

    Methods