Feature/newnew workflow loop node (#14863)
Co-authored-by: arkunzz <4873204@qq.com>
This commit is contained in:
parent
da91217bc9
commit
2c17bb2c36
131 changed files with 6031 additions and 159 deletions
|
|
@ -1,9 +1,11 @@
|
|||
import { RetryResultPanel } from './retry-log'
|
||||
import { IterationResultPanel } from './iteration-log'
|
||||
import { LoopResultPanel } from './loop-log'
|
||||
import { AgentResultPanel } from './agent-log'
|
||||
import type {
|
||||
AgentLogItemWithChildren,
|
||||
IterationDurationMap,
|
||||
LoopDurationMap,
|
||||
NodeTracing,
|
||||
} from '@/types/workflow'
|
||||
|
||||
|
|
@ -17,6 +19,11 @@ export type SpecialResultPanelProps = {
|
|||
iterationResultList?: NodeTracing[][]
|
||||
iterationResultDurationMap?: IterationDurationMap
|
||||
|
||||
showLoopingDetail?: boolean
|
||||
setShowLoopingDetailFalse?: () => void
|
||||
loopResultList?: NodeTracing[][]
|
||||
loopResultDurationMap?: LoopDurationMap
|
||||
|
||||
agentOrToolLogItemStack?: AgentLogItemWithChildren[]
|
||||
agentOrToolLogListMap?: Record<string, AgentLogItemWithChildren[]>
|
||||
handleShowAgentOrToolLog?: (detail?: AgentLogItemWithChildren) => void
|
||||
|
|
@ -31,6 +38,11 @@ const SpecialResultPanel = ({
|
|||
iterationResultList,
|
||||
iterationResultDurationMap,
|
||||
|
||||
showLoopingDetail,
|
||||
setShowLoopingDetailFalse,
|
||||
loopResultList,
|
||||
loopResultDurationMap,
|
||||
|
||||
agentOrToolLogItemStack,
|
||||
agentOrToolLogListMap,
|
||||
handleShowAgentOrToolLog,
|
||||
|
|
@ -57,6 +69,15 @@ const SpecialResultPanel = ({
|
|||
/>
|
||||
)
|
||||
}
|
||||
{
|
||||
showLoopingDetail && !!loopResultList?.length && setShowLoopingDetailFalse && (
|
||||
<LoopResultPanel
|
||||
list={loopResultList}
|
||||
onBack={setShowLoopingDetailFalse}
|
||||
loopDurationMap={loopResultDurationMap}
|
||||
/>
|
||||
)
|
||||
}
|
||||
{
|
||||
!!agentOrToolLogItemStack?.length && agentOrToolLogListMap && handleShowAgentOrToolLog && (
|
||||
<AgentResultPanel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue