Interface: LanguageModelRequestSettings
Defined in: packages/protocol/src/language-model/request.ts:97
Settings to use when calling an LLM.
This class holds optional model configuration parameters (e.g. temperature, topP, penalties, truncation, etc.).
Not all models/providers support all of these parameters, so please check the API documentation for the specific model and provider you are using.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
frequencyPenalty? | number | The frequency penalty to use when calling the model. | packages/protocol/src/language-model/request.ts:111 |
maxTokens? | number | The maximum number of output tokens to generate. | packages/protocol/src/language-model/request.ts:137 |
parallelToolCalls? | boolean | Whether to use parallel tool calls when calling the model. Defaults to false if not provided. | packages/protocol/src/language-model/request.ts:127 |
presencePenalty? | number | The presence penalty to use when calling the model. | packages/protocol/src/language-model/request.ts:116 |
providerOptions? | SharedProviderOptions | Additional provider specific metadata to be passed directly to the model request. | packages/protocol/src/language-model/request.ts:159 |
reasoning? | ModelSettingsReasoning | The reasoning settings to use when calling the model. | packages/protocol/src/language-model/request.ts:148 |
store? | boolean | Whether to store the generated model response for later retrieval. Defaults to true if not provided. | packages/protocol/src/language-model/request.ts:143 |
temperature? | number | The temperature to use when calling the model. | packages/protocol/src/language-model/request.ts:101 |
text? | ModelSettingsText | The text settings to use when calling the model. | packages/protocol/src/language-model/request.ts:153 |
toolChoice? | LanguageModelToolChoice | The tool choice to use when calling the model. | packages/protocol/src/language-model/request.ts:121 |
topP? | number | The topP to use when calling the model. | packages/protocol/src/language-model/request.ts:106 |
truncation? | "auto" | "disabled" | The truncation strategy to use when calling the model. | packages/protocol/src/language-model/request.ts:132 |