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
3e64d624
Commit
3e64d624
authored
Nov 13, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化记忆函数主键
parent
16ca8733
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AgentApplicationInfoRestImpl.java
...t_application/rest/impl/AgentApplicationInfoRestImpl.java
+2
-2
AgentApplicationServiceImpl.java
...oc/expose/aggregate/impl/AgentApplicationServiceImpl.java
+2
-2
No files found.
src/main/java/cn/com/poc/agent_application/rest/impl/AgentApplicationInfoRestImpl.java
View file @
3e64d624
...
...
@@ -224,7 +224,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
tools
.
add
(
tool
);
//初始化变量函数
Map
<
Object
,
Object
>
map
=
GetValueMemory
.
get
(
agentId
);
Map
<
Object
,
Object
>
map
=
GetValueMemory
.
get
(
agentId
+
":"
+
agentId
);
List
<
Variable
>
variableStructure
=
infoEntity
.
getVariableStructure
();
if
(
MapUtils
.
isEmpty
(
map
))
{
for
(
Variable
variable
:
variableStructure
)
{
...
...
@@ -233,7 +233,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"contentName"
,
key
);
jsonObject
.
put
(
"contentValue"
,
variableDefault
);
LargeModelFunctionEnum
.
valueOf
(
functionName
).
getFunction
().
doFunction
(
jsonObject
.
toJSONString
(),
agentId
);
LargeModelFunctionEnum
.
valueOf
(
functionName
).
getFunction
().
doFunction
(
jsonObject
.
toJSONString
(),
agentId
+
":"
+
agentId
);
}
}
...
...
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationServiceImpl.java
View file @
3e64d624
...
...
@@ -387,7 +387,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
tools
.
add
(
tool
);
//初始化变量函数
Map
<
Object
,
Object
>
map
=
GetValueMemory
.
get
(
identifier
);
Map
<
Object
,
Object
>
map
=
GetValueMemory
.
get
(
identifier
+
":"
+
infoEntity
.
getAgentId
()
);
if
(
MapUtils
.
isEmpty
(
map
))
{
List
<
Variable
>
variableStructure
=
infoEntity
.
getVariableStructure
();
for
(
Variable
variable
:
variableStructure
)
{
...
...
@@ -396,7 +396,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"contentName"
,
key
);
jsonObject
.
put
(
"contentValue"
,
variableDefault
);
LargeModelFunctionEnum
.
valueOf
(
functionName
).
getFunction
().
doFunction
(
jsonObject
.
toJSONString
(),
identifier
);
LargeModelFunctionEnum
.
valueOf
(
functionName
).
getFunction
().
doFunction
(
jsonObject
.
toJSONString
(),
identifier
+
":"
+
infoEntity
.
getAgentId
()
);
}
}
}
...
...
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