Options constructor

Options({
  1. String? model,
  2. String? fallbackModel,
  3. SystemPrompt? systemPrompt,
  4. ToolsConfig? tools,
  5. List<String>? allowedTools,
  6. List<String>? disallowedTools,
  7. Map<String, McpServerConfig>? mcpServers,
  8. int? maxTurns,
  9. double? maxBudgetUsd,
  10. TaskBudget? taskBudget,
  11. PermissionMode? permissionMode,
  12. String? planModeInstructions,
  13. bool? allowDangerouslySkipPermissions,
  14. String? permissionPromptToolName,
  15. List<SettingSource>? settingSources,
  16. SettingsRef? settings,
  17. SettingsRef? managedSettings,
  18. String? cwd,
  19. List<String>? additionalDirectories,
  20. bool? continueSession,
  21. String? resume,
  22. String? sessionId,
  23. String? resumeSessionAt,
  24. bool? forkSession,
  25. bool? persistSession,
  26. String? title,
  27. Map<String, String>? env,
  28. Map<String, String?>? extraArgs,
  29. bool? strictMcpConfig,
  30. String? agent,
  31. Map<String, AgentDefinition>? agents,
  32. Skills? skills,
  33. List<PluginConfig>? plugins,
  34. List<String>? betas,
  35. OutputFormat? outputFormat,
  36. Map<String, dynamic>? toolConfig,
  37. ThinkingConfig? thinking,
  38. EffortLevel? effort,
  39. int? maxThinkingTokens,
  40. bool? includePartialMessages,
  41. bool? includeHookEvents,
  42. bool? forwardSubagentText,
  43. bool? promptSuggestions,
  44. bool? agentProgressSummaries,
  45. bool? enableFileCheckpointing,
  46. Map<String, dynamic>? sandbox,
  47. bool? debug,
  48. String? debugFile,
  49. int? loadTimeoutMs,
  50. CanUseTool? canUseTool,
  51. void onStderr(
    1. String line
    )?,
})

Implementation

Options({
  this.model,
  this.fallbackModel,
  this.systemPrompt,
  this.tools,
  this.allowedTools,
  this.disallowedTools,
  this.mcpServers,
  this.maxTurns,
  this.maxBudgetUsd,
  this.taskBudget,
  this.permissionMode,
  this.planModeInstructions,
  this.allowDangerouslySkipPermissions,
  this.permissionPromptToolName,
  this.settingSources,
  this.settings,
  this.managedSettings,
  this.cwd,
  this.additionalDirectories,
  this.continueSession,
  this.resume,
  this.sessionId,
  this.resumeSessionAt,
  this.forkSession,
  this.persistSession,
  this.title,
  this.env,
  this.extraArgs,
  this.strictMcpConfig,
  this.agent,
  this.agents,
  this.skills,
  this.plugins,
  this.betas,
  this.outputFormat,
  this.toolConfig,
  this.thinking,
  this.effort,
  this.maxThinkingTokens,
  this.includePartialMessages,
  this.includeHookEvents,
  this.forwardSubagentText,
  this.promptSuggestions,
  this.agentProgressSummaries,
  this.enableFileCheckpointing,
  this.sandbox,
  this.debug,
  this.debugFile,
  this.loadTimeoutMs,
  this.canUseTool,
  this.onStderr,
});