Generates a response by rendering the prompt template with given user input and then calling the model.
Optionalinput: IPrompt inputs.
Optionalopts: 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.
Optionalinput: IOptionalopts: 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.
Optionalinput: IPrompt inputs.
Optionalopts: PromptGenerateOptions<O, CustomOptions>the model response as a promise of GenerateStreamResponse.
A prompt that can be executed as a function.