# 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

- ##### `Optional` additionalFields?: Record<string, any>

  DEPRECATED. Please use additional_fields instead.

  #### Deprecated

- ##### `Optional` defaults?: Record<string, any>

- ##### `Optional` response_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[]

- ##### `Optional` tools?: 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.

- Defined in packages/prompt-registry/dist/client/prompt-registry/schema/prompt-template-spec.d.ts:9