buildRequestBody abstract method

Map<String, dynamic> buildRequestBody(
  1. List<ChatMessage> messages,
  2. List<Tool>? tools,
  3. bool stream
)

Build the request body for chat requests

Each provider should implement this to format requests according to their API

Implementation

Map<String, dynamic> buildRequestBody(
  List<ChatMessage> messages,
  List<Tool>? tools,
  bool stream,
);