feat: 归档 XL10 异步工具业务编译层

- 将 AgentDefinitionCompiler 升级为 AgentRuntimeCompiler

- 接入 Workflow 和 Plugin 的同步/异步工具编译与 Redis 任务态

- 增加异步执行配置开关、聊天时间线聚合和后端测试
This commit is contained in:
2026-06-04 15:23:56 +08:00
parent 1ea863cb2c
commit c316eff5be
26 changed files with 2859 additions and 62 deletions

View File

@@ -79,6 +79,19 @@ const selectedMcpTools = computed(() => {
const selectedMcpToolCount = computed(() => selectedMcpTools.value.length);
const asyncExecutionEnabled = computed({
get() {
return String(props.binding.optionsJson?.executionMode || '').toUpperCase() === 'ASYNC';
},
set(value: boolean) {
props.binding.optionsJson = {
...(props.binding.optionsJson || {}),
executionMode: value ? 'ASYNC' : 'SYNC',
};
emit('change');
},
});
function handleTargetChange(value: string) {
const option = props.options.find(
(item) => String(item.value) === String(value),
@@ -147,6 +160,9 @@ function handleTargetChange(value: string) {
<ElFormItem label="执行前确认">
<ElSwitch v-model="binding.hitlEnabled" @change="emit('change')" />
</ElFormItem>
<ElFormItem v-if="kind !== 'mcp'" label="异步执行">
<ElSwitch v-model="asyncExecutionEnabled" />
</ElFormItem>
<ElButton
class="agent-form__danger"
type="danger"