chore: remove max_iterations for agent node

This commit is contained in:
AkaraChen 2024-12-26 16:42:34 +08:00
parent 6175f8c16f
commit 605085bddf
3 changed files with 0 additions and 8 deletions

View File

@ -4,7 +4,6 @@ import type { AgentNodeType } from './types'
const nodeDefault: NodeDefault<AgentNodeType> = {
defaultValue: {
max_iterations: 3,
},
getAvailablePrevNodes(isChatMode) {
return isChatMode

View File

@ -9,12 +9,6 @@ import { useTranslation } from 'react-i18next'
const AgentPanel: FC<NodePanelProps<AgentNodeType>> = (props) => {
const { inputs, setInputs, currentStrategy } = useConfig(props.id, props.data)
const { t } = useTranslation()
const [iter, setIter] = [inputs.max_iterations, (value: number) => {
setInputs({
...inputs,
max_iterations: value,
})
}]
return <div className='space-y-2 my-2'>
<Field title={t('workflow.nodes.agent.strategy.label')} className='px-4' >
<AgentStrategy

View File

@ -2,7 +2,6 @@ import type { CommonNodeType } from '@/app/components/workflow/types'
import type { ToolVarInputs } from '../tool/types'
export type AgentNodeType = CommonNodeType & {
max_iterations: number
agent_strategy_provider_name?: string
agent_strategy_name?: string
agent_strategy_label?: string