SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Type Alias PromptTemplateSpec

    PromptTemplateSpec: {
        additionalFields?: Record<string, any>;
        defaults?: Record<string, any>;
        response_format?:
            | ResponseFormatText
            | ResponseFormatJsonObject
            | ResponseFormatJsonSchema;
        template: PromptTemplate[];
        tools?: ChatCompletionTool[];
    } & Record<string, Record<string, any>>

    Representation of the 'PromptTemplateSpec' schema.

    Type Declaration

    • OptionaladditionalFields?: Record<string, any>

      DEPRECATED. Please use additional_fields instead.

    • Optionaldefaults?: Record<string, any>
    • Optionalresponse_format?: ResponseFormatText | ResponseFormatJsonObject | ResponseFormatJsonSchema

      Response format that the model output should adhere to. This is the same as the OpenAI definition. Compatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.

    • template: PromptTemplate[]
    • Optionaltools?: ChatCompletionTool[]

      A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.