Generates a response by rendering the prompt template with given user input and then calling the model.
Optional
input: IPrompt inputs.
Optional
opts: PromptGenerateOptions<O, CustomOptions>the model response as a promise of GenerateStreamResponse
.
Returns the prompt usable as a tool.
Renders the prompt template based on user input.
Optional
input: IOptional
opts: PromptGenerateOptions<O, CustomOptions>a GenerateOptions
object to be used with the generate()
function from @genkit-ai/ai.
Generates a response by rendering the prompt template with given user input and then calling the model.
Optional
input: IPrompt inputs.
Optional
opts: PromptGenerateOptions<O, CustomOptions>the model response as a promise of GenerateStreamResponse
.
A prompt that can be executed as a function.