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

export function init() {
  registerToolRenderer({
    match: (t) =>
      t.name === 'search_knowledge' ||
      t.name === 'get_entity_knowledge' ||
      t.result?.__renderer === 'knowledge_results',
    component: KnowledgeResults,
  })
}
