AgentLayerZero Playground

<ErrorDisplay />

Surfaces an irrecoverable load error with one or two retry actions. Pass canClearCache when the error is a quota or cache-corruption issue (auto-detected by dendrite's classifyError) — the second button wipes the IndexedDB caches and reloads.

<script setup lang="ts">
import { useNeuron, ErrorDisplay, deleteAllModelCaches } from '@agent-layer-zero/dendrite-vue'

const { error, errorCanClearCache, inferenceMode } = useNeuron({ modelId: '…' })
async function handleClearCache() {
  await deleteAllModelCaches()
  window.location.reload()
}
</script>

<template>
  <ErrorDisplay
    v-if="error"
    :error="error"
    :can-clear-cache="errorCanClearCache"
    :inference-mode="inferenceMode"
    @retry="window.location.reload()"
    @clear-cache="handleClearCache"
  />
</template>