AgentDecision constructor

const AgentDecision({
  1. required AgentDecisionType type,
  2. String? toolName,
  3. Map<String, dynamic>? toolInput,
  4. String? thought,
  5. String? replanReason,
  6. double confidence = 1.0,
  7. String? rawResponse,
})

Implementation

const AgentDecision({
  required this.type,
  this.toolName,
  this.toolInput,
  this.thought,
  this.replanReason,
  this.confidence = 1.0,
  this.rawResponse,
}) : assert(confidence >= 0.0 && confidence <= 1.0);