AgentCoreServices constructor

const AgentCoreServices({
  1. required ExecutionEnv baseEnv,
  2. FutureOr<Map<String, String>> sessionEnvVars()?,
  3. SandboxServices? sandbox,
  4. HashlineSnapshotStore? snapshots,
  5. WebSearchConfig? webSearch,
  6. SqliteEngine? sqlite,
  7. LspToolConfig? lsp,
  8. McpManager? mcp,
  9. ShellJobRegistry? shellJobsFactory(
    1. ExecutionEnv coreEnv
    )?,
  10. ConfigService? configServiceFactory(
    1. ExecutionEnv coreEnv
    )?,
  11. PasswordPromptCallback? onPasswordPrompt,
  12. MemoryController? memory,
  13. void onMemoryChanged()?,
  14. ScheduledMessageQueue? scheduledMessages,
  15. String? scheduleSenderMailbox()?,
  16. AskCallback? onAsk,
  17. RequestSecretCallback? onRequestSecret,
  18. bool isUnattended()?,
  19. ObligationClose? obligationsClose,
  20. InspectImageConfig? vision,
  21. TranscribeAudioConfig? transcribe,
  22. MediaToolServices? media,
  23. BrowserController? browserController,
  24. Future<String> saveBrowserScreenshot(
    1. ExecutionEnv coreEnv,
    2. Uint8List png
    )?,
  25. List<HostExtension> extensions = const [],
  26. MessagingRepository? hubFabric,
  27. String? mainMailbox()?,
  28. SubagentServices? subagents,
  29. Object? extRuntimeFactory,
  30. String? sessionRoot,
  31. AgentTelemetrySink? telemetry,
  32. HostKeyResolver? keyResolver,
  33. void onKeySlotDrift(
    1. String message
    )?,
})

Implementation

const AgentCoreServices({
  required this.baseEnv,
  this.sessionEnvVars,
  this.sandbox,
  this.snapshots,
  this.webSearch,
  this.sqlite,
  this.lsp,
  this.mcp,
  this.shellJobsFactory,
  this.configServiceFactory,
  this.onPasswordPrompt,
  this.memory,
  this.onMemoryChanged,
  this.scheduledMessages,
  this.scheduleSenderMailbox,
  this.onAsk,
  this.onRequestSecret,
  this.isUnattended,
  this.obligationsClose,
  this.vision,
  this.transcribe,
  this.media,
  this.browserController,
  this.saveBrowserScreenshot,
  this.extensions = const [],
  this.hubFabric,
  this.mainMailbox,
  this.subagents,
  this.extRuntimeFactory,
  this.sessionRoot,
  this.telemetry,
  this.keyResolver,
  this.onKeySlotDrift,
});