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
e6efbe0c
Commit
e6efbe0c
authored
Oct 24, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:创建角色指令
parent
bb1c1abd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
AgentApplicationInfoServiceImpl.java
...ation/aggregate/impl/AgentApplicationInfoServiceImpl.java
+5
-8
No files found.
src/main/java/cn/com/poc/agent_application/aggregate/impl/AgentApplicationInfoServiceImpl.java
View file @
e6efbe0c
...
@@ -126,18 +126,15 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
...
@@ -126,18 +126,15 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
if
(
null
==
configEntity
||
StringUtils
.
isBlank
(
configEntity
.
getConfigSystem
()))
{
if
(
null
==
configEntity
||
StringUtils
.
isBlank
(
configEntity
.
getConfigSystem
()))
{
throw
new
BusinessException
(
"创建[角色指令]配置不存在"
);
throw
new
BusinessException
(
"创建[角色指令]配置不存在"
);
}
}
Message
systemMessage
=
new
Message
();
systemMessage
.
setContent
(
configEntity
.
getConfigSystem
());
systemMessage
.
setRole
(
AgentApplicationDialoguesRecordConstants
.
ROLE
.
SYSTEM
);
List
<
MultiContent
>
multiContents
=
new
ArrayList
<>();
multiContents
.
add
(
new
MultiContent
()
{{
String
configSystem
=
configEntity
.
getConfigSystem
();
configSystem
=
configSystem
.
replace
(
"${input}"
,
input
);
setText
(
configSystem
);
setType
(
"text"
);
}});
Message
message
=
new
Message
();
Message
message
=
new
Message
();
message
.
setContent
(
multiContents
);
message
.
setContent
(
input
);
message
.
setRole
(
AgentApplicationDialoguesRecordConstants
.
ROLE
.
USER
);
message
.
setRole
(
AgentApplicationDialoguesRecordConstants
.
ROLE
.
USER
);
List
<
Message
>
messages
=
new
ArrayList
<
Message
>()
{{
List
<
Message
>
messages
=
new
ArrayList
<
Message
>()
{{
add
(
systemMessage
);
add
(
message
);
add
(
message
);
}};
}};
...
...
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