SdkConfig constructor

const SdkConfig({
  1. required String apiKey,
  2. required String model,
  3. String? systemPrompt,
  4. List<ToolDefinition> tools = const [],
  5. int? maxTurns,
  6. PermissionHandler? permissionHandler,
  7. OnMessageCallback? onMessage,
  8. OnToolUseCallback? onToolUse,
  9. OnErrorCallback? onError,
  10. String? workDir,
  11. List<String> mcpServers = const [],
  12. bool includeSystemTools = true,
})

Implementation

const SdkConfig({
  required this.apiKey,
  required this.model,
  this.systemPrompt,
  this.tools = const [],
  this.maxTurns,
  this.permissionHandler,
  this.onMessage,
  this.onToolUse,
  this.onError,
  this.workDir,
  this.mcpServers = const [],
  this.includeSystemTools = true,
});