SessionRequest constructor

SessionRequest({
  1. double? temperature,
  2. int? randomSeed,
  3. int? topK,
  4. double? topP,
  5. String? loraPath,
  6. bool? enableVisionModality,
  7. bool? enableAudioModality,
  8. String? systemInstruction,
  9. bool enableThinking = false,
  10. List<Tool> tools = const [],
  11. int? maxOutputTokens,
  12. ModelType? modelType,
  13. ToolChoice toolChoice = ToolChoice.auto,
  14. JsonSchemaResponseFormat? responseFormat,
})

Implementation

SessionRequest({
  this.temperature,
  this.randomSeed,
  this.topK,
  this.topP,
  this.loraPath,
  this.enableVisionModality,
  this.enableAudioModality,
  this.systemInstruction,
  this.enableThinking = false,
  List<Tool> tools = const [],
  this.maxOutputTokens,
  this.modelType,
  this.toolChoice = ToolChoice.auto,
  this.responseFormat,
}) : tools = List.unmodifiable(tools);