fix: execute multica template agents
This commit is contained in:
@@ -148,6 +148,10 @@ function previewValue(value: any) {
|
||||
}
|
||||
}
|
||||
|
||||
function getLogMeta(log: any) {
|
||||
return log?.metadata || {};
|
||||
}
|
||||
|
||||
function selectLog(nodeId?: string) {
|
||||
if (!nodeId) return;
|
||||
activeNodeId.value = nodeId;
|
||||
@@ -287,6 +291,34 @@ defineExpose({ open });
|
||||
<div v-if="log.error" class="text-destructive break-words">
|
||||
{{ log.error }}
|
||||
</div>
|
||||
<div
|
||||
v-if="getLogMeta(log).agent_code"
|
||||
class="border-border bg-muted/40 grid grid-cols-2 gap-2 rounded-md border p-2"
|
||||
>
|
||||
<div>
|
||||
<div class="text-muted-foreground">智能体</div>
|
||||
<div class="font-medium">
|
||||
{{ getLogMeta(log).agent_name || getLogMeta(log).agent_code }}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-muted-foreground">编码</div>
|
||||
<div class="font-mono">{{ getLogMeta(log).agent_code }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-muted-foreground">模型</div>
|
||||
<div class="break-words">
|
||||
{{ getLogMeta(log).model || getLogMeta(log).model_id || '-' }}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-muted-foreground">Prompt / Completion</div>
|
||||
<div>
|
||||
{{ getLogMeta(log).prompt_tokens || 0 }} /
|
||||
{{ getLogMeta(log).completion_tokens || 0 }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-muted-foreground mb-1 font-medium">
|
||||
{{ $t('ai-platform.workflowRuns.detail.inputsOutputs') }} - 输入
|
||||
|
||||
Reference in New Issue
Block a user