feat(TaskTool): 显示任务描述并优化结果展示样式

This commit is contained in:
Wenjie Zhang 2025-12-30 03:14:03 +08:00
parent 9734e93f09
commit 34fbd1a13e
3 changed files with 17 additions and 2 deletions

View File

@ -17,6 +17,7 @@
- 增加 paddle-vl 以及 deepseek-ocr 的支持deepseek-ocr 已支持)
- RAG 检索的时候,支持限定文件类型
- 将现有的 Milvus 的命名调整为通用 RAG
- 将工具与知识库解耦,在 context 中就完成解耦,虽然最终都是在 Agent 中的 get_tools 中获取
### Bugs
- 部分异常状态下,智能体的模型名称出现重叠[#279](https://github.com/xerrors/Yuxi-Know/issues/279)

View File

@ -393,6 +393,7 @@ const toggleCollapse = () => {
.more-btn {
color: var(--gray-600);
background-color: transparent !important;
padding: 0;
&:hover {
color: var(--main-500);
background-color: transparent !important;

View File

@ -1,5 +1,5 @@
<template>
<BaseToolCall :tool-call="toolCall" :hide-params="true">
<BaseToolCall :tool-call="toolCall">
<template #header>
<div class="sep-header">
<span class="subagent">{{ subagentType }}</span>
@ -8,7 +8,12 @@
</div>
</template>
<template #result="{ resultContent }"> <div class="task-result">
<template #params>
<div v-if="description" class="task-description">{{ description }}</div>
</template>
<template #result="{ resultContent }">
<div class="task-result">
<MdPreview
:modelValue="String(resultContent)"
:theme="theme"
@ -76,6 +81,14 @@ const shortDescription = computed(() => {
}
.task-description {
padding: 12px;
background: var(--gray-100);
border-radius: 8px;
font-size: 13px;
color: var(--gray-800);
}
.task-result {
padding: 12px;
background: var(--gray-0);