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

const TOOLS = ['get_entity', 'whoami', 'explain']

export function init() {
  registerToolRenderer({
    match: (t) => TOOLS.includes(t.name) || t.result?.__renderer === 'entity_card',
    component: EntityCard,
  })
}
