This function is a wrapper over the AI SDK's generateText.
The prompt file sets model, messages, temperature, maxTokens, and providerOptions.
AI SDK-compatible tools are accepted structurally via CompatibleToolSet. Other AI SDK
generateText options are accepted via GenerateTextAiSdkOptions, including 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. AI SDK-compatibletoolsare accepted structurally via CompatibleToolSet. Other AI SDKgenerateTextoptions are accepted via GenerateTextAiSdkOptions, including tool choice, structured output, callbacks, retries, and sampling settings.