ChatSessionState constructor

const ChatSessionState({
  1. required Object identity,
  2. required String agentName,
  3. required List<ChatMessageView> messages,
  4. String? title,
  5. bool hasSession = true,
  6. bool isLoading = false,
  7. bool enabled = true,
  8. bool isSending = false,
  9. bool promptAppearsStalled = false,
  10. int messagesRevision = 0,
  11. ChatCapabilities capabilities = const ChatCapabilities(),
  12. List<Map<String, Object?>> commands = const [],
  13. int commandsRevision = 0,
  14. ChatPermissionRequest? permission,
  15. ChatToolCallExecutionPolicy executionPolicy = ChatToolCallExecutionPolicy.defaultPermissions,
  16. bool hasPermissionReviewer = false,
  17. List<ChatConfigOption> configOptions = const [],
  18. List<ChatQueuedPrompt> queuedPrompts = const [],
  19. List<String> workspaceRoots = const [],
  20. String? imageAttachmentLimitation,
  21. String? error,
  22. ChatInputBudget inputBudget = const ChatInputBudget(),
})

Implementation

const ChatSessionState({
  required this.identity,
  required this.agentName,
  required this.messages,
  this.title,
  this.hasSession = true,
  this.isLoading = false,
  this.enabled = true,
  this.isSending = false,
  this.promptAppearsStalled = false,
  this.messagesRevision = 0,
  this.capabilities = const ChatCapabilities(),
  this.commands = const [],
  this.commandsRevision = 0,
  this.permission,
  this.executionPolicy = ChatToolCallExecutionPolicy.defaultPermissions,
  this.hasPermissionReviewer = false,
  this.configOptions = const [],
  this.queuedPrompts = const [],
  this.workspaceRoots = const [],
  this.imageAttachmentLimitation,
  this.error,
  this.inputBudget = const ChatInputBudget(),
});