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()?,
Implementation
CallbackChatSession({
required this.changes,
required this.readState,
required this.onSend,
required this.onStop,
this.onResolvePermission,
this.onSelectPermissionOption,
this.onSetConfigOption,
});