Theia API Documentation v1.73.0
    Preparing search index...

    Represents a prompt fragment with all variables and function references resolved

    interface ResolvedPromptFragment {
        deferredFunctionIds?: Set<string>;
        functionDescriptions?: Map<string, ToolRequest<ToolInvocationContext>>;
        id: string;
        text: string;
        variables?: ResolvedAIVariable[];
    }
    Index

    Properties

    deferredFunctionIds?: Set<string>

    Ids of functions referenced in the prompt fragment that were marked as deferred (~{?functionId}). Deferred tools should not be loaded into the model's context upfront. Providers that support deferred tool loading (e.g. Anthropic, OpenAI) may use this information to set the appropriate flag on the tool definition and include the tool search tool in the request.

    functionDescriptions?: Map<string, ToolRequest<ToolInvocationContext>>

    All functions referenced in the prompt fragment

    id: string

    The fragment ID

    text: string

    The resolved prompt text with variables and function requests being replaced

    variables?: ResolvedAIVariable[]

    All variables resolved in the prompt fragment