# Type Alias PromptTemplate

PromptTemplate: Omit<Template, "template"> & {
template?: TemplatingChatMessage;
}

Representation of the 'Template' schema.

#### Type Declaration

- ##### `Optional` template?: TemplatingChatMessage

  A chat message array to be formatted with values from `placeholderValues`. Both `role` and `content` can use {{?variable}} placeholders.

  For dynamic templating (changing per request), pass templated messages directly in `.chatCompletion({ messages })`.

  #### Example

      // Static template: passed once in client config
      templating: {
        template: [
          {
            role: 'system',
            content: 'You are a helpful assistant for {{?product}}.'
          }
        ]
      }

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

- Defined in packages/orchestration/dist/orchestration-types.d.ts:128