CallbackChatSession constructor

CallbackChatSession({
  1. required Stream<ChatSessionState> changes,
  2. required ChatSessionState readState(),
  3. required Future<void> onSend(
    1. String text,
    2. List<PromptAttachment> attachments
    ),
  4. required Future<void> onStop(),
  5. Future<void> onResolvePermission(
    1. ChatPermissionDecision
    )?,
  6. Future<void> onSelectPermissionOption(
    1. String
    )?,
  7. Future<void> onSetConfigOption(
    1. String,
    2. Object
    )?,
  8. void onSetExecutionPolicy(
    1. ChatToolCallExecutionPolicy
    )?,
  9. void onGuideQueuedPrompt(
    1. int
    )?,
  10. void onRemoveQueuedPrompt(
    1. int
    )?,
  11. void onClearQueuedPrompts()?,
  12. void onReorderQueuedPrompt(
    1. int,
    2. int
    )?,
})

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,
});