Namespace: TextPrompt
Functions
chat
▸ chat(options?
): TextGenerationPromptTemplate
<ChatPrompt
, string
>
Formats a chat prompt as a basic text prompt.
Parameters
Name | Type |
---|---|
options? | Object |
options.assistant? | string |
options.system? | string |
options.user? | string |
Returns
TextGenerationPromptTemplate
<ChatPrompt
, string
>
Defined in
packages/modelfusion/src/model-function/generate-text/prompt-template/TextPromptTemplate.ts:47
instruction
▸ instruction(): TextGenerationPromptTemplate
<InstructionPrompt
, string
>
Formats an instruction prompt as a basic text prompt.
Returns
TextGenerationPromptTemplate
<InstructionPrompt
, string
>
Defined in
packages/modelfusion/src/model-function/generate-text/prompt-template/TextPromptTemplate.ts:18
text
▸ text(): TextGenerationPromptTemplate
<string
, string
>
Formats a text prompt as a basic text prompt. Does not change the text prompt in any way.
Returns
TextGenerationPromptTemplate
<string
, string
>
Defined in
packages/modelfusion/src/model-function/generate-text/prompt-template/TextPromptTemplate.ts:10