This function is a wrapper over the AI SDK's generateText.
The prompt file sets model, messages, temperature, maxTokens, and providerOptions.
All other AI SDK generateText options are accepted via GenerateTextAiSdkOptions, including
tools, tool choice, structured output, callbacks, retries, and sampling settings.
Use an LLM model to generate text.
This function is a wrapper over the AI SDK's
generateText. The prompt file setsmodel,messages,temperature,maxTokens, andproviderOptions. All other AI SDKgenerateTextoptions are accepted via GenerateTextAiSdkOptions, including tools, tool choice, structured output, callbacks, retries, and sampling settings.