SessionConfig constructor

const SessionConfig({
  1. String? sessionId,
  2. String? clientName,
  3. String? model,
  4. SystemMessageConfig? systemMessage,
  5. InfiniteSessionConfig? infiniteSessions,
  6. bool streaming = true,
  7. List<Tool> tools = const [],
  8. List<String>? availableTools,
  9. List<String>? excludedTools,
  10. Map<String, McpServerConfig> mcpServers = const {},
  11. List<CustomAgentConfig> customAgents = const [],
  12. List<String> skillDirectories = const [],
  13. List<String> disabledSkills = const [],
  14. SessionHooks? hooks,
  15. ProviderConfig? provider,
  16. ReasoningEffort? reasoningEffort,
  17. AgentMode? mode,
  18. List<Attachment> attachments = const [],
  19. String? configDir,
  20. String? workingDirectory,
  21. required PermissionHandler onPermissionRequest,
  22. UserInputHandler? onUserInputRequest,
})

Implementation

const SessionConfig({
  this.sessionId,
  this.clientName,
  this.model,
  this.systemMessage,
  this.infiniteSessions,
  this.streaming = true,
  this.tools = const [],
  this.availableTools,
  this.excludedTools,
  this.mcpServers = const {},
  this.customAgents = const [],
  this.skillDirectories = const [],
  this.disabledSkills = const [],
  this.hooks,
  this.provider,
  this.reasoningEffort,
  this.mode,
  this.attachments = const [],
  this.configDir,
  this.workingDirectory,
  required this.onPermissionRequest,
  this.onUserInputRequest,
});