Feat: Add agent advanced settings form #3221 (#8592)

### What problem does this PR solve?

Feat: Add agent advanced settings form #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-01 10:52:48 +08:00
committed by GitHub
parent 32f8b3ad77
commit 103027580e
12 changed files with 157 additions and 29 deletions

View File

@ -1,3 +1,4 @@
import { AgentGlobals } from '@/constants/agent';
import { useFetchAgent } from '@/hooks/use-agent-request';
import { RAGFlowNodeType } from '@/interfaces/database/flow';
import { Edge } from '@xyflow/react';
@ -161,7 +162,9 @@ export function useBuildQueryVariableOptions() {
const globalOptions = Object.entries(globals).map(([key, value]) => ({
label: key,
value: key,
type: Array.isArray(value) ? VariableType.Array : typeof value,
type: Array.isArray(value)
? `${VariableType.Array}${key === AgentGlobals.SysFiles ? '<file>' : ''}`
: typeof value,
}));
return [
{ ...options[0], options: [...options[0]?.options, ...globalOptions] },