run method

Future<AgentRun> run(
  1. String task, {
  2. List<ChatMessage> history = const [],
})

Answers task, calling tools as the model asks.

Implementation

Future<AgentRun> run(String task, {List<ChatMessage> history = const []}) =>
    continueRun([...history, ChatMessage.user(task)]);