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
802de113
authored
May 28, 2025
by
heheer
Committed by
GitHub
May 28, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix runtool empty message (#4911)
* fix runtool empty message * del unused code * fix
parent
b4ecfb0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
packages/service/core/workflow/dispatch/agent/runTool/index.ts
+4
-5
No files found.
packages/service/core/workflow/dispatch/agent/runTool/index.ts
View file @
802de113
...
...
@@ -86,7 +86,6 @@ export const dispatchRunTools = async (props: DispatchToolModuleProps): Promise<
});
// Check interactive entry
const
interactiveResponse
=
lastInteractive
;
props
.
node
.
isEntry
=
false
;
const
hasReadFilesTool
=
toolNodes
.
some
(
(
item
)
=>
item
.
flowNodeType
===
FlowNodeTypeEnum
.
readFiles
...
...
@@ -143,7 +142,7 @@ export const dispatchRunTools = async (props: DispatchToolModuleProps): Promise<
})
}
];
if
(
interactiveResponse
)
{
if
(
lastInteractive
&&
isEntry
)
{
return
value
.
slice
(
0
,
-
2
);
}
return
value
;
...
...
@@ -183,7 +182,7 @@ export const dispatchRunTools = async (props: DispatchToolModuleProps): Promise<
toolModel
,
maxRunToolTimes
:
30
,
messages
:
adaptMessages
,
interactiveEntryToolParams
:
interactiveRespons
e
?.
toolParams
interactiveEntryToolParams
:
lastInteractiv
e
?.
toolParams
});
}
if
(
toolModel
.
functionCall
)
{
...
...
@@ -194,7 +193,7 @@ export const dispatchRunTools = async (props: DispatchToolModuleProps): Promise<
toolNodes
,
toolModel
,
messages
:
adaptMessages
,
interactiveEntryToolParams
:
interactiveRespons
e
?.
toolParams
interactiveEntryToolParams
:
lastInteractiv
e
?.
toolParams
});
}
...
...
@@ -224,7 +223,7 @@ export const dispatchRunTools = async (props: DispatchToolModuleProps): Promise<
toolNodes
,
toolModel
,
messages
:
adaptMessages
,
interactiveEntryToolParams
:
interactiveRespons
e
?.
toolParams
interactiveEntryToolParams
:
lastInteractiv
e
?.
toolParams
});
})();
...
...
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