18 lines
386 B
Vue
18 lines
386 B
Vue
<script setup lang="ts">
|
|
import type { MessagePart, ToolCall } from "~/composables/useChat";
|
|
import Disclosure from "./Disclosure.vue";
|
|
|
|
defineProps<{
|
|
toolCall: Readonly<ToolCall>;
|
|
part?: MessagePart;
|
|
}>();
|
|
|
|
const emit = defineEmits<{
|
|
retry: [];
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<Disclosure :tool-call="toolCall" :part="part" @retry="emit('retry')"></Disclosure>
|
|
</template>
|