NatureChatStreamCallback constructor

NatureChatStreamCallback({
  1. required void onContent(
    1. String text
    ),
  2. required void onSuggestions(
    1. List<String> suggestions
    ),
  3. required void onDone(),
  4. required void onError(
    1. String? code,
    2. String? message
    ),
})

Implementation

NatureChatStreamCallback({
  required this.onContent,
  required this.onSuggestions,
  required this.onDone,
  required this.onError,
});