chat abstract method
Future<AiResult>
chat({
- required List<
AiMessage> messages, - required List<
AiToolSpec> tools, - String? model,
Sends the conversation messages (the first may be a system message) and
the available tools, returning the model's next turn. model overrides
the provider's configured default model for this call (used to switch
between planner and executor models per phase); null uses the default.
Implementation
Future<AiResult> chat({
required List<AiMessage> messages,
required List<AiToolSpec> tools,
String? model,
});