API Reference / @modelence/ai / generateText
generateText(
options
):Promise
<GenerateTextResult
<ToolSet
,unknown
>>
Defined in: index.ts:76
Generates text using AI models with built-in Modelence configuration and telemetry.
This is a wrapper around the AI SDK’s generateText function that automatically configures providers using Modelence’s server-side configuration system.
Parameter | Type | Description |
---|---|---|
options | GenerateTextOptions | Configuration options for text generation |
Promise
<GenerateTextResult
<ToolSet
, unknown
>>
A promise that resolves to the generated text result
API Reference / @modelence/ai / generateText
generateText(
options
):Promise
<GenerateTextResult
<ToolSet
,unknown
>>
Defined in: index.ts:76
Generates text using AI models with built-in Modelence configuration and telemetry.
This is a wrapper around the AI SDK’s generateText function that automatically configures providers using Modelence’s server-side configuration system.
Parameter | Type | Description |
---|---|---|
options | GenerateTextOptions | Configuration options for text generation |
Promise
<GenerateTextResult
<ToolSet
, unknown
>>
A promise that resolves to the generated text result