ResponsesSessionController constructor
ResponsesSessionController({
- required OpenAIClient client,
- bool? background,
- Input? input,
- List<
String> ? include, - String? instructions,
- int? maxOutputTokens,
- Map<
String, dynamic> ? metadata, - ChatModel? model,
- bool? parallelToolCalls,
- String? previousResponseId,
- ReasoningOptions? reasoning,
- bool? store,
- num? temperature,
- TextFormat? text,
- ToolChoice? toolChoice,
- List<
ToolHandler< ? tools,Tool> > - num? topP,
- Truncation? truncation,
- String? user,
- 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);
}
}