Feat: Remove the exception comment field from the agent form #3221 (#9153)

### What problem does this PR solve?
Feat: Remove the exception comment field from the agent form #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-08-01 15:19:33 +08:00
committed by GitHub
parent 4b98119c52
commit 2a79f4fc7f
7 changed files with 49 additions and 58 deletions

View File

@ -2,7 +2,7 @@ import { useFetchModelId } from '@/hooks/logic-hooks';
import { RAGFlowNodeType } from '@/interfaces/database/flow';
import { get, isEmpty } from 'lodash';
import { useMemo } from 'react';
import { AgentExceptionMethod, initialAgentValues } from '../../constant';
import { initialAgentValues } from '../../constant';
export function useValues(node?: RAGFlowNodeType) {
const llmId = useFetchModelId();
@ -26,10 +26,6 @@ export function useValues(node?: RAGFlowNodeType) {
return {
...formData,
prompts: get(formData, 'prompts.0.content', ''),
exception_method:
formData.exception_method === null
? AgentExceptionMethod.Null
: formData.exception_method,
};
}, [defaultValues, node?.data?.form]);