AiAgent constructor

const AiAgent({
  1. required AiStreamClient client,
  2. List<AiTool> tools = const [],
  3. int maxIterations = 8,
  4. void onEvent(
    1. Object event
    )?,
})

Implementation

const AiAgent({
  required this.client,
  this.tools = const [],
  this.maxIterations = 8,
  this.onEvent,
});