export interface AIFixValidationError {
  node_id: string
  message: string
}

export interface AIFixProposal {
  target_node_id: string
  error_message: string
  description: string
  original_node: Record<string, unknown>
  fixed_node: Record<string, unknown>
}

export interface AIFixTreeRequest {
  tree_structure: Record<string, unknown>
  tree_name: string
  tree_type: 'troubleshooting' | 'procedural' | 'maintenance'
  validation_errors: AIFixValidationError[]
}

export interface AIFixTreeResponse {
  fixes: AIFixProposal[]
  tokens_used: { input: number; output: number }
}
