This commit is contained in:
2023-12-04 12:13:53 +00:00
parent 479d17589e
commit fe99b2c3dc

View File

@@ -399,7 +399,7 @@ function actor_mistral_openorca(a::agentReflex)
{longterm memory}
{plan}
"""
context = replace(context, "{earlierConversation}" => "My earlier talk with the user:\n$(a.earlierConversation)")
# context = replace(context, "{earlierConversation}" => "My earlier talk with the user:\n$(a.earlierConversation)")
context = replace(context, "{env state}" => "")
context = replace(context, "{longterm memory}" => "")
mark = "$(a.attempt)"
@@ -704,7 +704,6 @@ function work(a::agentReflex, usermsg::String)
else # self evaluate and reflect then try again
analysis = analyze(a)
@show analysis
error(12)
lessonwithcontext = selfReflext(a, analysis)
@show lessonwithcontext
a.memory[:shortterm] = OrderedDict{String, Any}()
@@ -948,7 +947,11 @@ function grading(a, guideline::T, text::T) where {T<:AbstractString}
@show prompt_grading
respond = sendReceivePrompt(a, prompt)
println("grading respond 11 = $respond")
println("")
respond_grading = respond
@show respond_grading
_score = split(respond[end-5:end], "/")[1]
_score = split(_score, " ")[end]
score = parse(Int, _score)
@@ -1048,7 +1051,7 @@ function selfReflext(a, analysis::T) where {T<:AbstractString}
wikisearch: Useful for when you need to search an encyclopedia Input is keywords and not a question.
Your report:
$report
$analysis
Your job are:
1. Lesson: what lesson could you learn from your report?.