ContextData constructor

const ContextData({
  1. required List<ContextCategory> categories,
  2. required int totalTokens,
  3. required int maxTokens,
  4. required int rawMaxTokens,
  5. required int percentage,
  6. required List<List<GridSquare>> gridRows,
  7. required String model,
  8. required List<MemoryFile> memoryFiles,
  9. required List<McpTool> mcpTools,
  10. List<DeferredBuiltinTool>? deferredBuiltinTools,
  11. List<SystemToolDetail>? systemTools,
  12. List<SystemPromptSectionDetail>? systemPromptSections,
  13. required List<AgentInfo> agents,
  14. SlashCommandInfo? slashCommands,
  15. SkillInfo? skills,
  16. int? autoCompactThreshold,
  17. required bool isAutoCompactEnabled,
  18. MessageBreakdown? messageBreakdown,
  19. ApiUsage? apiUsage,
})

Implementation

const ContextData({
  required this.categories,
  required this.totalTokens,
  required this.maxTokens,
  required this.rawMaxTokens,
  required this.percentage,
  required this.gridRows,
  required this.model,
  required this.memoryFiles,
  required this.mcpTools,
  this.deferredBuiltinTools,
  this.systemTools,
  this.systemPromptSections,
  required this.agents,
  this.slashCommands,
  this.skills,
  this.autoCompactThreshold,
  required this.isAutoCompactEnabled,
  this.messageBreakdown,
  this.apiUsage,
});