Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
8964d53d
Commit
8964d53d
authored
Jan 21, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
88754a48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
AgentApplicationTools.java
...om/poc/agent_application/utils/AgentApplicationTools.java
+3
-0
No files found.
src/main/java/cn/com/poc/agent_application/utils/AgentApplicationTools.java
View file @
8964d53d
...
...
@@ -163,6 +163,9 @@ public class AgentApplicationTools {
* 判断将会调用的插件-用于扣减积分
*/
public
static
List
<
Tool
>
checkPluginUse
(
List
<
Message
>
messages
,
List
<
Tool
>
tools
)
{
if
(
CollectionUtils
.
isEmpty
(
messages
)
||
CollectionUtils
.
isEmpty
(
tools
))
{
return
null
;
}
LLMService
llmService
=
SpringUtils
.
getBean
(
LLMService
.
class
);
String
query
=
messages
.
get
(
messages
.
size
()
-
1
).
getContent
().
toString
();
List
<
Tool
>
deductionTools
=
new
ArrayList
<>();
...
...
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