Feat: Add sql form #3221 (#8874)

### What problem does this PR solve?

Feat: Add sql form #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-16 16:25:50 +08:00
committed by GitHub
parent 8b7dbb349e
commit d2df669135
13 changed files with 323 additions and 113 deletions

View File

@ -20,7 +20,6 @@ import {
import { ModelVariableType } from '@/constants/knowledge';
import i18n from '@/locales/config';
import { setInitialChatVariableEnabledFieldValue } from '@/utils/chat';
import { omit } from 'lodash';
// DuckDuckGo's channel options
export enum Channel {
@ -562,7 +561,7 @@ export const initialExeSqlValues = {
password: '',
loop: 3,
top_n: 30,
...initialQueryBaseValues,
query: '',
};
export const initialSwitchValues = {
@ -960,16 +959,6 @@ export enum VariableType {
File = 'file',
}
export const DefaultAgentToolValuesMap = {
[Operator.Retrieval]: {
...omit(initialRetrievalValues, 'query'),
description: '',
},
[Operator.TavilySearch]: {
api_key: '',
},
};
export enum AgentExceptionMethod {
Comment = 'comment',
Goto = 'goto',