forkConversation method

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

Fork a conversation from a specific response

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

Implementation

@override
Future<ChatResponse> forkConversation(
  String fromResponseId,
  List<ChatMessage> newMessages, {
  List<Tool>? tools,
  bool background = false,
}) async {
  // Fork is the same as continue for OpenAI Responses API
  return continueConversation(fromResponseId, newMessages,
      tools: tools, background: background);
}