Interface PromptCustomizationService

interface PromptCustomizationService {
    onDidChangeCustomAgents: Event<void>;
    onDidChangePrompt: Event<string>;
    editTemplate(id, defaultContent?): void;
    getCustomAgents(): Promise<CustomAgentDescription[]>;
    getCustomPromptTemplateIDs(): string[];
    getCustomizedPromptTemplate(id): undefined | string;
    getTemplateIDFromURI(uri): undefined | string;
    isPromptTemplateCustomized(id): boolean;
    openCustomAgentYaml(): void;
    resetTemplate(id): void;
}

Implemented by

Properties

onDidChangeCustomAgents: Event<void>

Event which is fired when custom agents are modified.

onDidChangePrompt: Event<string>

Event which is fired when the prompt template is changed.

Methods

  • Edit the template. If the content is specified, is will be used to customize the template. Otherwise, the behavior depends on the implementation. Implementation may for example decide to open an editor, or request more information from the user, ...

    Parameters

    • id: string

      the template id.

    • Optional defaultContent: string

    Returns void