You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/app/components/workflow/run/agent-log/agent-result-panel.tsx

32 lines
707 B
TypeScript

import AgentLogItem from './agent-log-item'
import AgentLogNav from './agent-log-nav'
import type { AgentLogItemWithChildren } from '@/types/workflow'
type AgentResultPanelProps = {
list: AgentLogItemWithChildren[]
setAgentResultList: (list: AgentLogItemWithChildren[]) => void
}
const AgentResultPanel = ({
list,
}: AgentResultPanelProps) => {
return (
<div className='overflow-y-auto'>
<AgentLogNav />
{
<div className='p-2'>
{
list.map(item => (
<AgentLogItem
key={item.id}
item={item}
/>
))
}
</div>
}
</div>
)
}
export default AgentResultPanel