chatRawMessage abstract method

Stream<String> chatRawMessage(
  1. String messageJson, {
  2. bool enableThinking,
  3. SendOptions options,
})

Streams raw SDK JSON for a prebuilt message. This is how tool results go back: chatRaw always sends role user, and a tool result has to be role tool for the model to read it as the answer to its call.

Implementation

Stream<String> chatRawMessage(
  String messageJson, {
  bool enableThinking,
  SendOptions options,
});