ChatSessionState constructor
const
ChatSessionState({
- required Object identity,
- required String agentName,
- required List<
ChatMessageView> messages, - String? title,
- bool hasSession = true,
- bool isLoading = false,
- bool enabled = true,
- bool isSending = false,
- bool promptAppearsStalled = false,
- int messagesRevision = 0,
- ChatCapabilities capabilities = const ChatCapabilities(),
- List<
Map< commands = const [],String, Object?> > - int commandsRevision = 0,
- ChatPermissionRequest? permission,
- ChatToolCallExecutionPolicy executionPolicy = ChatToolCallExecutionPolicy.defaultPermissions,
- bool hasPermissionReviewer = false,
- List<
ChatConfigOption> configOptions = const [], - List<
ChatQueuedPrompt> queuedPrompts = const [], - List<
String> workspaceRoots = const [], - String? imageAttachmentLimitation,
- String? error,
- 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(),
});