ConversationProvider constructor

ConversationProvider({
  1. required BuildContext context,
  2. required void onDelete(
    1. String id
    ),
  3. required void onCreate(
    1. Conversation
    ),
  4. Conversation? originalConversation,
  5. void onTextResponse(
    1. ConversationProvider self
    )?,
  6. void onJsonComplete(
    1. Map<String, dynamic>
    )?,
  7. Assistant? assistant,
})

Implementation

ConversationProvider({
  required this.context,
  required this.onDelete,
  required this.onCreate,
  this.originalConversation,
  this.onTextResponse,
  this.onJsonComplete,
  Assistant? assistant,
}) : _assistant = assistant;