rewrite abstract method

Future<String> rewrite({
  1. required String instruction,
  2. required String text,
})

Asks the model to rewrite text according to instruction.

Plain text in, plain text out — no tool call, and nothing is executed as a result. Used to polish a generated changelog, where the model's job is editorial rather than deciding what the CLI does.

Throws AiException on transport or protocol failure.

Implementation

Future<String> rewrite({
  required String instruction,
  required String text,
});