AgentToolException constructor

const AgentToolException(
  1. AgentToolErrorCode code,
  2. String message, {
  3. String? argument,
  4. int? step,
  5. String? auditReason,
  6. AgentScopeGate? gate,
})

Implementation

const AgentToolException(
  this.code,
  this.message, {
  this.argument,
  this.step,
  String? auditReason,
  AgentScopeGate? gate,
}) : _auditReason = auditReason,
     _gate = gate;