SdkConfig constructor
const
SdkConfig({
- required String apiKey,
- required String model,
- String? systemPrompt,
- List<
ToolDefinition> tools = const [], - int? maxTurns,
- PermissionHandler? permissionHandler,
- OnMessageCallback? onMessage,
- OnToolUseCallback? onToolUse,
- OnErrorCallback? onError,
- String? workDir,
- List<
String> mcpServers = const [], - 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,
});