ResponsesSessionController constructor

ResponsesSessionController({
  1. required OpenAIClient client,
  2. bool? background,
  3. Input? input,
  4. List<String>? include,
  5. String? instructions,
  6. int? maxOutputTokens,
  7. Map<String, dynamic>? metadata,
  8. ChatModel? model,
  9. bool? parallelToolCalls,
  10. String? previousResponseId,
  11. ReasoningOptions? reasoning,
  12. bool? store,
  13. num? temperature,
  14. TextFormat? text,
  15. ToolChoice? toolChoice,
  16. List<ToolHandler<Tool>>? tools,
  17. num? topP,
  18. Truncation? truncation,
  19. String? user,
  20. bool stream = true,
})

Implementation

ResponsesSessionController(
    {required this.client,
    this.background,
    this.input,
    this.include,
    this.instructions,
    this.maxOutputTokens,
    this.metadata,
    this.model,
    this.parallelToolCalls,
    this.previousResponseId,
    this.reasoning,
    this.store,
    this.temperature,
    this.text,
    this.toolChoice,
    List<ToolHandler>? tools,
    this.topP,
    this.truncation,
    this.user,
    this.stream = true}) {
  if (tools != null) {
    this.addTools(tools);
  }
}