chatWithToolsBackground abstract method

Future<ChatResponse> chatWithToolsBackground(
  1. List<ChatMessage> messages,
  2. List<Tool>? tools
)

Create a response with background processing

When background=true, the response will be processed asynchronously. You can retrieve the result later using getResponse() or cancel it with cancelResponse().

Implementation

Future<ChatResponse> chatWithToolsBackground(
  List<ChatMessage> messages,
  List<Tool>? tools,
);