forkConversation abstract method

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

Fork a conversation from a specific response

Creates a new conversation branch starting from the specified response. Useful for exploring different conversation paths.

Implementation

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