This commit is contained in:
narawat lamaiin
2025-05-17 21:36:29 +07:00
parent 68c2c2f12b
commit 3a88e0e7d4
2 changed files with 13 additions and 11 deletions
+6 -6
View File
@@ -99,7 +99,7 @@ julia> output_thoughtDict = Dict(
"""
function decisionMaker(a::T; recentevents::Integer=20, maxattempt=10
) where {T<:agent}
println("\nExecuting YiemAgent decisionMaker()")
# lessonDict = copy(JSON3.read("lesson.json"))
# lesson =
@@ -859,9 +859,9 @@ function evaluator(a::T1, timeline, decisiondict, evaluateecontext
</You should then respond to the user with>
<You should only respond in JSON format as described below>
{
"trajectory_evaluation": "..."
"decision_evaluation": "..."
"approved": "..."
"trajectory_evaluation": "...",
"decision_evaluation": "...",
"approved": "...",
"suggestion": "..."
}
</You should only respond in format as described below>
@@ -1215,14 +1215,14 @@ function think(a::T)::NamedTuple{(:actionname, :result),Tuple{String,String}} wh
a.memory[:shortmem][:scratchpad] *=
"""
<database_search_result>
I searched the database with this search term: $actioninput This is what I found: $result
I searched the database with this search term: $actioninput \nThis is what I found: $result
</database_search_result>
"""
else
a.memory[:shortmem][:scratchpad] *=
"""
<database_search_result>
I searched the database with this search term: $actioninput This is what I found: $result
I searched the database with this search term: $actioninput \nThis is what I found: $result
</database_search_result>
"""
end