Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
bbdab1d4
authored
Sep 09, 2024
by
Archer
Committed by
GitHub
Sep 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: entry (#2652)
parent
78ad2791
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
packages/service/core/workflow/dispatch/agent/runTool/functionCall.ts
+4
-1
packages/service/core/workflow/dispatch/agent/runTool/promptCall.ts
+4
-1
packages/service/core/workflow/dispatch/agent/runTool/toolChoice.ts
+5
-1
packages/service/core/workflow/dispatch/index.ts
+6
-3
No files found.
packages/service/core/workflow/dispatch/agent/runTool/functionCall.ts
View file @
bbdab1d4
...
@@ -194,7 +194,10 @@ export const runToolWithFunctionCall = async (
...
@@ -194,7 +194,10 @@ export const runToolWithFunctionCall = async (
isEntry
:
true
,
isEntry
:
true
,
inputs
:
updateToolInputValue
({
params
:
startParams
,
inputs
:
item
.
inputs
})
inputs
:
updateToolInputValue
({
params
:
startParams
,
inputs
:
item
.
inputs
})
}
}
:
item
:
{
...
item
,
isEntry
:
false
}
)
)
});
});
...
...
packages/service/core/workflow/dispatch/agent/runTool/promptCall.ts
View file @
bbdab1d4
...
@@ -226,7 +226,10 @@ export const runToolWithPromptCall = async (
...
@@ -226,7 +226,10 @@ export const runToolWithPromptCall = async (
isEntry
:
true
,
isEntry
:
true
,
inputs
:
updateToolInputValue
({
params
:
startParams
,
inputs
:
item
.
inputs
})
inputs
:
updateToolInputValue
({
params
:
startParams
,
inputs
:
item
.
inputs
})
}
}
:
item
:
{
...
item
,
isEntry
:
false
}
)
)
});
});
...
...
packages/service/core/workflow/dispatch/agent/runTool/toolChoice.ts
View file @
bbdab1d4
...
@@ -209,7 +209,10 @@ export const runToolWithToolChoice = async (
...
@@ -209,7 +209,10 @@ export const runToolWithToolChoice = async (
isEntry
:
true
,
isEntry
:
true
,
inputs
:
updateToolInputValue
({
params
:
startParams
,
inputs
:
item
.
inputs
})
inputs
:
updateToolInputValue
({
params
:
startParams
,
inputs
:
item
.
inputs
})
}
}
:
item
:
{
...
item
,
isEntry
:
false
}
)
)
});
});
...
@@ -359,6 +362,7 @@ export const runToolWithToolChoice = async (
...
@@ -359,6 +362,7 @@ export const runToolWithToolChoice = async (
};
};
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
addLog
.
warn
(
`LLM response error`
,
{
addLog
.
warn
(
`LLM response error`
,
{
requestBody
requestBody
});
});
...
...
packages/service/core/workflow/dispatch/index.ts
View file @
bbdab1d4
...
@@ -532,9 +532,12 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
...
@@ -532,9 +532,12 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
const
entryNodes
=
runtimeNodes
.
filter
((
item
)
=>
item
.
isEntry
);
const
entryNodes
=
runtimeNodes
.
filter
((
item
)
=>
item
.
isEntry
);
// reset entry
// reset entry
// runtimeNodes.forEach((item) => {
runtimeNodes
.
forEach
((
item
)
=>
{
// item.isEntry = false;
// Interactive node is not the entry node, return interactive result
// });
if
(
item
.
flowNodeType
!==
FlowNodeTypeEnum
.
userSelect
)
{
item
.
isEntry
=
false
;
}
});
await
Promise
.
all
(
entryNodes
.
map
((
node
)
=>
checkNodeCanRun
(
node
)));
await
Promise
.
all
(
entryNodes
.
map
((
node
)
=>
checkNodeCanRun
(
node
)));
// focus try to run pluginOutput
// focus try to run pluginOutput
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment