chore: remove max_iterations for agent node

pull/12372/head
AkaraChen 1 year ago
parent 6175f8c16f
commit 605085bddf

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

@ -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

@ -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

Loading…
Cancel
Save