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
88633a2a
authored
Sep 24, 2025
by
Archer
Committed by
GitHub
Sep 24, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: child usage remove (#5698)
* fix: child usage remove * remove runloop empty usage
parent
05145523
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
packages/service/core/workflow/dispatch/abandoned/runApp.ts
+1
-0
packages/service/core/workflow/dispatch/ai/agent/toolCall.ts
+1
-0
packages/service/core/workflow/dispatch/child/runApp.ts
+1
-0
packages/service/core/workflow/dispatch/loop/runLoop.ts
+9
-6
packages/service/core/workflow/dispatch/plugin/run.ts
+1
-0
No files found.
packages/service/core/workflow/dispatch/abandoned/runApp.ts
View file @
88633a2a
...
@@ -61,6 +61,7 @@ export const dispatchAppRequest = async (props: Props): Promise<Response> => {
...
@@ -61,6 +61,7 @@ export const dispatchAppRequest = async (props: Props): Promise<Response> => {
const
{
flowResponses
,
flowUsages
,
assistantResponses
,
system_memories
}
=
await
runWorkflow
({
const
{
flowResponses
,
flowUsages
,
assistantResponses
,
system_memories
}
=
await
runWorkflow
({
...
props
,
...
props
,
usageId
:
undefined
,
runningAppInfo
:
{
runningAppInfo
:
{
id
:
String
(
appData
.
_id
),
id
:
String
(
appData
.
_id
),
name
:
appData
.
name
,
name
:
appData
.
name
,
...
...
packages/service/core/workflow/dispatch/ai/agent/toolCall.ts
View file @
88633a2a
...
@@ -112,6 +112,7 @@ export const runToolCall = async (
...
@@ -112,6 +112,7 @@ export const runToolCall = async (
// Run entry tool
// Run entry tool
const
toolRunResponse
=
await
runWorkflow
({
const
toolRunResponse
=
await
runWorkflow
({
...
workflowProps
,
...
workflowProps
,
usageId
:
undefined
,
isToolCall
:
true
isToolCall
:
true
});
});
const
stringToolResponse
=
formatToolResponse
(
toolRunResponse
.
toolResponses
);
const
stringToolResponse
=
formatToolResponse
(
toolRunResponse
.
toolResponses
);
...
...
packages/service/core/workflow/dispatch/child/runApp.ts
View file @
88633a2a
...
@@ -134,6 +134,7 @@ export const dispatchRunAppNode = async (props: Props): Promise<Response> => {
...
@@ -134,6 +134,7 @@ export const dispatchRunAppNode = async (props: Props): Promise<Response> => {
system_memories
system_memories
}
=
await
runWorkflow
({
}
=
await
runWorkflow
({
...
props
,
...
props
,
usageId
:
undefined
,
lastInteractive
:
childrenInteractive
,
lastInteractive
:
childrenInteractive
,
// Rewrite stream mode
// Rewrite stream mode
...(
system_forbid_stream
...(
system_forbid_stream
...
...
packages/service/core/workflow/dispatch/loop/runLoop.ts
View file @
88633a2a
...
@@ -95,6 +95,7 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
...
@@ -95,6 +95,7 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
const
response
=
await
runWorkflow
({
const
response
=
await
runWorkflow
({
...
props
,
...
props
,
usageId
:
undefined
,
lastInteractive
:
interactiveData
?.
childrenResponse
,
lastInteractive
:
interactiveData
?.
childrenResponse
,
variables
:
newVariables
,
variables
:
newVariables
,
runtimeNodes
,
runtimeNodes
,
...
@@ -150,12 +151,14 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
...
@@ -150,12 +151,14 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
loopDetail
:
loopResponseDetail
,
loopDetail
:
loopResponseDetail
,
mergeSignId
:
props
.
node
.
nodeId
mergeSignId
:
props
.
node
.
nodeId
},
},
[
DispatchNodeResponseKeyEnum
.
nodeDispatchUsages
]:
[
[
DispatchNodeResponseKeyEnum
.
nodeDispatchUsages
]:
totalPoints
{
?
[
totalPoints
,
{
moduleName
:
name
totalPoints
,
}
moduleName
:
name
],
}
]
:
[],
[
DispatchNodeResponseKeyEnum
.
newVariables
]:
newVariables
[
DispatchNodeResponseKeyEnum
.
newVariables
]:
newVariables
};
};
};
};
packages/service/core/workflow/dispatch/plugin/run.ts
View file @
88633a2a
...
@@ -120,6 +120,7 @@ export const dispatchRunPlugin = async (props: RunPluginProps): Promise<RunPlugi
...
@@ -120,6 +120,7 @@ export const dispatchRunPlugin = async (props: RunPluginProps): Promise<RunPlugi
const
{
flowResponses
,
flowUsages
,
assistantResponses
,
runTimes
,
system_memories
}
=
const
{
flowResponses
,
flowUsages
,
assistantResponses
,
runTimes
,
system_memories
}
=
await
runWorkflow
({
await
runWorkflow
({
...
props
,
...
props
,
usageId
:
undefined
,
// Rewrite stream mode
// Rewrite stream mode
...(
system_forbid_stream
...(
system_forbid_stream
?
{
?
{
...
...
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