MistralAIParams

class MistralAIParams(temperature: Double? = null, maxTokens: Int? = null, numberOfChoices: Int? = null, speculation: String? = null, schema: LLMParams.Schema? = null, toolChoice: LLMParams.ToolChoice? = null, user: String? = null, additionalProperties: Map<String, JsonElement>? = null, val topP: Double? = null, val stop: List<String>? = null, val randomSeed: Int? = null, val presencePenalty: Double? = null, val frequencyPenalty: Double? = null, val parallelToolCalls: Boolean? = null, val promptMode: String? = null, val safePrompt: Boolean? = null) : LLMParams(source)

MistralAI chat-completions parameters layered on top of LLMParams.

Constructors

Link copied to clipboard
constructor(temperature: Double? = null, maxTokens: Int? = null, numberOfChoices: Int? = null, speculation: String? = null, schema: LLMParams.Schema? = null, toolChoice: LLMParams.ToolChoice? = null, user: String? = null, additionalProperties: Map<String, JsonElement>? = null, topP: Double? = null, stop: List<String>? = null, randomSeed: Int? = null, presencePenalty: Double? = null, frequencyPenalty: Double? = null, parallelToolCalls: Boolean? = null, promptMode: String? = null, safePrompt: Boolean? = null)

Properties

Link copied to clipboard

Number in -2.0, 2.0—penalizes the repetition of words based on their frequency in the generated text.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Allow multiple tool calls in parallel.

Link copied to clipboard

Number in -2.0, 2.0—determines how much the model penalizes the repetition of words or phrases.

Link copied to clipboard

Allows toggling between the reasoning mode and no system prompt. When set to reasoning the system prompt for reasoning models will be used.

Link copied to clipboard

The seed to use for random sampling. If set, different calls will generate deterministic results.

Link copied to clipboard

Whether to inject a safety prompt before all conversations.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Stop sequences (0–4 items); generation halts before any of these.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val topP: Double?

Nucleus sampling, where the model considers the results of the tokens with topP probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.

Link copied to clipboard
val user: String?

Functions

Link copied to clipboard
operator fun component1(): Double?
Link copied to clipboard
operator fun component10(): Map<String, JsonElement>?
Link copied to clipboard
operator fun component2(): Int?
Link copied to clipboard
operator fun component3(): Int?
Link copied to clipboard
operator fun component4(): String?
Link copied to clipboard
operator fun component5(): LLMParams.Schema?
Link copied to clipboard
Link copied to clipboard
operator fun component7(): String?
Link copied to clipboard
fun copy(temperature: Double? = this.temperature, maxTokens: Int? = this.maxTokens, numberOfChoices: Int? = this.numberOfChoices, speculation: String? = this.speculation, schema: LLMParams.Schema? = this.schema, toolChoice: LLMParams.ToolChoice? = this.toolChoice, user: String? = this.user, additionalProperties: Map<String, JsonElement>? = this.additionalProperties, topP: Double? = this.topP, stop: List<String>? = this.stop, randomSeed: Int? = this.randomSeed, presencePenalty: Double? = this.presencePenalty, frequencyPenalty: Double? = this.frequencyPenalty, parallelToolCalls: Boolean? = this.parallelToolCalls, promptMode: String? = this.promptMode, safePrompt: Boolean? = this.safePrompt): MistralAIParams

Creates a copy of this instance with the ability to modify any of its properties.

open fun copy(temperature: Double?, maxTokens: Int?, numberOfChoices: Int?, speculation: String?, schema: LLMParams.Schema?, toolChoice: LLMParams.ToolChoice?, user: String?, additionalProperties: Map<String, JsonElement>?): LLMParams
Link copied to clipboard
fun default(default: LLMParams): LLMParams
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String