This commit is contained in:
2024-01-13 04:37:05 +00:00
parent 5e7234a304
commit 2ed71dade2
4 changed files with 74 additions and 19 deletions

View File

@@ -529,7 +529,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
"Answer:", "Conclusion:", "Summary:"]
response = replaceHeaders(response, headerToDetect, latestTask)
println("")
@show actor_response_1 = response
headerToDetect = ["Plan $(a.attempt):",
"Thought $latestTask:",
"Act $latestTask:",
@@ -541,7 +541,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
chunkedtext = delete!(chunkedtext, "Self-awareness $latestTask")
act = GeneralUtils.getStringBetweenCharacters(response, '{', '}', endCharLocation="end")
println("")
@show actor_response_2 = act
@show actor_response_1 = act
act = Dict(JSON3.read(act))
chunkedtext["Act $latestTask:"] = toolname