AiAgent constructor

AiAgent({
  1. required AiClient client,
  2. required String description,
  3. List<Tool> tools = const [],
  4. Logger? logger,
  5. List<Message>? history,
})

Implementation

AiAgent({
  required this.client,
  required this.description,
  this.tools = const [],
  Logger? logger,
  List<Message>? history,
}) : _history = history ?? [],
     _logger = logger ?? Logger() {
  _logger.agentLog(
    LogLevel.debug,
    'Agent initialized',
    agentName: runtimeType.toString(),
  );
}