+
+
{{ data.Description }}
-
+
-
@@ -54,4 +85,16 @@ const action_Result = computed(() => {
.card-item + .card-item {
margin-top: 10px;
}
+.markdown-content {
+ :deep(code) {
+ display: block;
+ width: 100px;
+ max-width: 100%;
+ }
+
+ :deep(pre) {
+ overflow-x: auto;
+ max-width: 100%;
+ }
+}
diff --git a/src/layout/components/Main/TaskTemplate/TaskResult/index.vue b/src/layout/components/Main/TaskTemplate/TaskResult/index.vue
index 31aaac2..e73cbb9 100644
--- a/src/layout/components/Main/TaskTemplate/TaskResult/index.vue
+++ b/src/layout/components/Main/TaskTemplate/TaskResult/index.vue
@@ -8,11 +8,9 @@ import { getActionTypeDisplay, getAgentMapIcon } from '@/layout/components/confi
import { type ConnectArg, Jsplumb } from '@/layout/components/Main/TaskTemplate/utils.ts'
import variables from '@/styles/variables.module.scss'
import { type IRawStepTask, useAgentsStore } from '@/stores'
-import api, { type IExecuteRawResponse } from '@/api'
+import api from '@/api'
import ExecutePlan from './ExecutePlan.vue'
-import Iod from './Iod.vue'
-
const emit = defineEmits<{
(e: 'refreshLine'): void
@@ -21,6 +19,7 @@ const emit = defineEmits<{
const agentsStore = useAgentsStore()
+
const collaborationProcess = computed(() => {
return agentsStore.agentRawPlan.data?.['Collaboration Process'] ?? []
})
@@ -99,13 +98,6 @@ function createInternalLine(id?: string) {
const color = getActionTypeDisplay(i.ActionType)?.color ?? ''
const sourceId = `task-results-${jitem.Id}-0-${i.ID}`
const targetId = `task-results-${item.Id}-1`
- // jsplumb.connect(sourceId, targetId, [AnchorLocations.Right, AnchorLocations.Right], {
- // stops: [
- // [0, color],
- // [1, color],
- // ],
- // transparent: sourceId !== id,
- // })
arr.push({
sourceId,
targetId,
@@ -132,13 +124,6 @@ function createInternalLine(id?: string) {
const color = getActionTypeDisplay(i.ActionType)?.color ?? ''
const sourceId = `task-results-${item.Id}-0-${i.ID}`
const targetId = `task-results-${item.Id}-0-${i2.ID}`
- // jsplumb.connect(sourceId, targetId, [AnchorLocations.Right, AnchorLocations.Right], {
- // stops: [
- // [0, color],
- // [1, color],
- // ],
- // transparent: sourceId !== id,
- // })
arr.push({
sourceId,
targetId,
@@ -160,12 +145,12 @@ function createInternalLine(id?: string) {
jsplumb.repaintEverything()
}
-const results = ref
([])
const loading = ref(false)
async function handleRun() {
try {
loading.value = true
- results.value = await api.executePlan(agentsStore.agentRawPlan.data!)
+ const d = await api.executePlan(agentsStore.agentRawPlan.data!)
+ agentsStore.setExecutePlan(d)
} finally {
loading.value = false
}
@@ -204,8 +189,13 @@ const handleMouseLeave = throttle(() => {
}
}, 100)
+function clear() {
+ jsplumb.reset()
+}
+
defineExpose({
createInternalLine,
+ clear,
})
@@ -218,9 +208,19 @@ defineExpose({
-
-
-
+
+
+
+
+
+
+