AgentCoreServices constructor
const
AgentCoreServices({
- required ExecutionEnv baseEnv,
- FutureOr<
Map< sessionEnvVars()?,String, String> > - SandboxServices? sandbox,
- HashlineSnapshotStore? snapshots,
- WebSearchConfig? webSearch,
- SqliteEngine? sqlite,
- LspToolConfig? lsp,
- McpManager? mcp,
- ShellJobRegistry? shellJobsFactory(
- ExecutionEnv coreEnv
- ConfigService? configServiceFactory(
- ExecutionEnv coreEnv
- PasswordPromptCallback? onPasswordPrompt,
- MemoryController? memory,
- void onMemoryChanged()?,
- ScheduledMessageQueue? scheduledMessages,
- String? scheduleSenderMailbox()?,
- AskCallback? onAsk,
- RequestSecretCallback? onRequestSecret,
- bool isUnattended()?,
- ObligationClose? obligationsClose,
- InspectImageConfig? vision,
- TranscribeAudioConfig? transcribe,
- MediaToolServices? media,
- BrowserController? browserController,
- Future<
String> saveBrowserScreenshot(- ExecutionEnv coreEnv,
- Uint8List png
- List<
HostExtension> extensions = const [], - MessagingRepository? hubFabric,
- String? mainMailbox()?,
- SubagentServices? subagents,
- Object? extRuntimeFactory,
- String? sessionRoot,
- AgentTelemetrySink? telemetry,
- HostKeyResolver? keyResolver,
- void onKeySlotDrift(
- 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,
});