continueConversation abstract method

Future<ChatResponse> continueConversation(
  1. String previousResponseId,
  2. List<ChatMessage> newMessages, {
  3. List<Tool>? tools,
  4. bool background = false,
})

Create a new response that continues from a previous response

This enables stateful conversations where the provider maintains the conversation history automatically.

Implementation

Future<ChatResponse> continueConversation(
  String previousResponseId,
  List<ChatMessage> newMessages, {
  List<Tool>? tools,
  bool background = false,
});