CallbackChatSession constructor
CallbackChatSession({
- required Listenable changes,
- required ChatSessionState readState(),
- required Future<
void> onSend(- String text,
- List<
PromptAttachment> attachments
- required Future<
void> onStop(), - Future<
void> onResolvePermission()?, - Future<
void> onSelectPermissionOption()?, - Future<
void> onSetConfigOption()?, - ValueChanged<
ChatToolCallExecutionPolicy> ? onSetExecutionPolicy, - ValueChanged<
int> ? onGuideQueuedPrompt, - ValueChanged<
int> ? onRemoveQueuedPrompt, - VoidCallback? onClearQueuedPrompts,
- void onReorderQueuedPrompt()?,
Implementation
CallbackChatSession({
required this.changes,
required this.readState,
required this.onSend,
required this.onStop,
this.onResolvePermission,
this.onSelectPermissionOption,
this.onSetConfigOption,
this.onSetExecutionPolicy,
this.onGuideQueuedPrompt,
this.onRemoveQueuedPrompt,
this.onClearQueuedPrompts,
this.onReorderQueuedPrompt,
});