ToolUseContext constructor
ToolUseContext({
- required List<
ToolDefinition> tools, - required String mainLoopModel,
- List mcpClients = const [],
- bool isNonInteractiveSession = false,
- String? querySource,
- String? agentId,
- bool requireCanUseTool = false,
- required AbortController abortController,
- void setInProgressToolUseIDs()?,
- void setHasInterruptibleToolInProgress()?,
- void setStreamMode()?,
- void setResponseLength()?,
- void setSDKStatus()?,
- void addNotification()?,
- Future<
Map< getAppState()?,String, dynamic> > - Map<
String, ({String content, int timestamp})> ? readFileState, - Set<
String> ? loadedNestedMemoryPaths, - QueryTracking? queryTracking,
- String? requestPrompt,
Implementation
ToolUseContext({
required this.tools,
required this.mainLoopModel,
this.mcpClients = const [],
this.isNonInteractiveSession = false,
this.querySource,
this.agentId,
this.requireCanUseTool = false,
required this.abortController,
this.setInProgressToolUseIDs,
this.setHasInterruptibleToolInProgress,
this.setStreamMode,
this.setResponseLength,
this.setSDKStatus,
this.addNotification,
this.getAppState,
Map<String, ({String content, int timestamp})>? readFileState,
this.loadedNestedMemoryPaths,
this.queryTracking,
this.requestPrompt,
}) : readFileState = readFileState ?? {};