Feat: Add invoke and github operators #3221 (#9112)

### What problem does this PR solve?

Feat: Add invoke and github operators #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-30 12:48:55 +08:00
committed by GitHub
parent 021e8b57ae
commit 523e61ae18
18 changed files with 850 additions and 248 deletions

View File

@ -372,9 +372,15 @@ export const initialWikipediaValues = {
};
export const initialPubMedValues = {
top_n: 10,
top_n: 12,
email: '',
...initialQueryBaseValues,
query: AgentGlobals.SysQuery,
outputs: {
formalized_content: {
value: '',
type: 'string',
},
},
};
export const initialArXivValues = {
@ -444,7 +450,17 @@ export const initialDeepLValues = {
export const initialGithubValues = {
top_n: 5,
...initialQueryBaseValues,
query: AgentGlobals.SysQuery,
outputs: {
formalized_content: {
value: '',
type: 'string',
},
json: {
value: [],
type: 'Array<Object>',
},
},
};
export const initialBaiduFanyiValues = {
@ -540,7 +556,7 @@ export const initialCrawlerValues = {
};
export const initialInvokeValues = {
url: 'http://',
url: '',
method: 'GET',
timeout: 60,
headers: `{
@ -548,8 +564,9 @@ export const initialInvokeValues = {
"Cache-Control": "no-cache",
"Connection": "keep-alive"
}`,
proxy: 'http://',
proxy: '',
clean_html: false,
variables: [],
};
export const initialTemplateValues = {
@ -852,7 +869,7 @@ export const NodeMap = {
[Operator.TuShare]: 'ragNode',
[Operator.Note]: 'noteNode',
[Operator.Crawler]: 'ragNode',
[Operator.Invoke]: 'invokeNode',
[Operator.Invoke]: 'ragNode',
[Operator.Template]: 'templateNode',
[Operator.Email]: 'ragNode',
[Operator.Iteration]: 'group',