CallbackChatSession constructor
CallbackChatSession({
- required Stream<
ChatSessionState> 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()?, - void onSetExecutionPolicy()?,
- void onGuideQueuedPrompt()?,
- void onRemoveQueuedPrompt()?,
- void 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,
});