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
1
Merge Requests
1
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
28dd6696
Commit
28dd6696
authored
Aug 18, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 对话异常
parent
b34e0910
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
AiLawServiceImpl.java
...in/java/cn/com/poc/law/service/impl/AiLawServiceImpl.java
+1
-1
LongTextDialoguesServiceImpl.java
...document/aggregate/impl/LongTextDialoguesServiceImpl.java
+1
-1
PortalServiceImpl.java
...a/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
+1
-1
AiWritingServiceImpl.java
.../com/poc/writing/aggregate/impl/AiWritingServiceImpl.java
+1
-1
No files found.
src/main/java/cn/com/poc/law/service/impl/AiLawServiceImpl.java
View file @
28dd6696
...
...
@@ -128,7 +128,7 @@ public class AiLawServiceImpl implements AiLawService {
List
<
Tool
>
tools
=
AgentApplicationTools
.
buildFunctionConfig
(
null
,
"N"
,
dialoguesId
,
dialoguesId
,
unitIds
,
"N"
);
CheckPluginUseEntity
checkPluginUseEntity
=
AgentApplicationTools
.
checkPluginUse
(
messages
,
tools
,
null
);
FunctionCallResult
functionCallResult
=
checkPluginUseEntity
.
getFunctionCallResult
();
if
(
functionCallResult
!=
null
)
{
if
(
functionCallResult
!=
null
&&
functionCallResult
.
isNeed
()
)
{
FunctionCall
functionCall
=
functionCallResult
.
getFunctionCall
();
if
(
"web_search"
.
equals
(
functionCall
.
getName
()))
{
AbstractFunctionResult
<
List
<
WebSearchFunctionResult
>>
functionResult
=
webSearchFunction
.
doFunction
(
functionCall
.
getArguments
(),
dialoguesId
,
null
,
null
);
...
...
src/main/java/cn/com/poc/long_document/aggregate/impl/LongTextDialoguesServiceImpl.java
View file @
28dd6696
...
...
@@ -613,7 +613,7 @@ public class LongTextDialoguesServiceImpl implements LongTextDialoguesService {
List
<
Tool
>
tools
=
AgentApplicationTools
.
buildFunctionConfig
(
null
,
"N"
,
dialoguesId
,
dialoguesId
,
unitIds
,
"N"
);
CheckPluginUseEntity
checkPluginUseEntity
=
AgentApplicationTools
.
checkPluginUse
(
messages
,
tools
,
null
);
FunctionCallResult
functionCallResult
=
checkPluginUseEntity
.
getFunctionCallResult
();
if
(
functionCallResult
!=
null
)
{
if
(
functionCallResult
!=
null
&&
functionCallResult
.
isNeed
()
)
{
FunctionCall
functionCall
=
functionCallResult
.
getFunctionCall
();
if
(
functionCallResult
.
isNeed
()
&&
functionCall
!=
null
&&
"web_search"
.
equals
(
functionCall
.
getName
()))
{
AbstractFunctionResult
<
List
<
WebSearchFunctionResult
>>
functionResult
=
webSearchFunction
.
doFunction
(
functionCall
.
getArguments
(),
dialoguesId
,
null
,
null
);
...
...
src/main/java/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
View file @
28dd6696
...
...
@@ -143,7 +143,7 @@ public class PortalServiceImpl implements PortalService {
List
<
Tool
>
tools
=
AgentApplicationTools
.
buildFunctionConfig
(
null
,
"N"
,
callEntity
.
getDialoguesId
(),
callEntity
.
getDialoguesId
(),
unitIds
,
"N"
);
CheckPluginUseEntity
checkPluginUseEntity
=
AgentApplicationTools
.
checkPluginUse
(
messages
,
tools
,
null
);
FunctionCallResult
functionCallResult
=
checkPluginUseEntity
.
getFunctionCallResult
();
if
(
functionCallResult
!=
null
)
{
if
(
functionCallResult
!=
null
&&
functionCallResult
.
isNeed
()
)
{
FunctionCall
functionCall
=
functionCallResult
.
getFunctionCall
();
if
(
"web_search"
.
equals
(
functionCall
.
getName
()))
{
AbstractFunctionResult
<
List
<
WebSearchFunctionResult
>>
functionResult
=
webSearchFunction
.
doFunction
(
functionCall
.
getArguments
(),
callEntity
.
getDialoguesId
(),
null
,
null
);
...
...
src/main/java/cn/com/poc/writing/aggregate/impl/AiWritingServiceImpl.java
View file @
28dd6696
...
...
@@ -236,7 +236,7 @@ public class AiWritingServiceImpl implements AiWritingService {
List
<
Tool
>
tools
=
AgentApplicationTools
.
buildFunctionConfig
(
null
,
"N"
,
dialoguesId
,
dialoguesId
,
unitIds
,
"N"
);
CheckPluginUseEntity
checkPluginUseEntity
=
AgentApplicationTools
.
checkPluginUse
(
messages
,
tools
,
null
);
FunctionCallResult
functionCallResult
=
checkPluginUseEntity
.
getFunctionCallResult
();
if
(
functionCallResult
!=
null
)
{
if
(
functionCallResult
!=
null
&&
functionCallResult
.
isNeed
()
)
{
FunctionCall
functionCall
=
functionCallResult
.
getFunctionCall
();
if
(
functionCallResult
.
isNeed
()
&&
functionCall
!=
null
&&
"web_search"
.
equals
(
functionCall
.
getName
()))
{
AbstractFunctionResult
<
List
<
WebSearchFunctionResult
>>
functionResult
=
webSearchFunction
.
doFunction
(
functionCall
.
getArguments
(),
dialoguesId
,
null
,
null
);
...
...
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