generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update schema for templates (#276)
* update templates * index
- Loading branch information
1 parent
c48a161
commit 913bc5a
Showing
4 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { ChatMessages } from './chat-messages.js'; | ||
/** | ||
* Representation of the 'Template' schema. | ||
* @example { | ||
* "template": [ | ||
* { | ||
* "role": "user", | ||
* "content": "How can the features of AI in SAP BTP specifially {{?product}}, be applied to {{?inputContext}}" | ||
* } | ||
* ], | ||
* "defaults": { | ||
* "inputContext": "The default text that will be used in the template if inputContext is not set" | ||
* } | ||
* } | ||
*/ | ||
export type Template = { | ||
/** | ||
* A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. | ||
*/ | ||
template: ChatMessages; | ||
/** | ||
* Optional default values for the template. If a parameter has no default it is required. | ||
*/ | ||
defaults?: Record<string, any>; | ||
} & Record<string, any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters