import { registerToolRenderer } from '$lib/tool-renderers'
import MetricChart from './MetricChart.svelte'

export function init() {
  registerToolRenderer({
    match: (t) => t.name === 'query_metrics' || t.result?.__renderer === 'metric_chart',
    component: MetricChart,
  })
}
