This commit is contained in:
narawat lamaiin
2024-04-28 12:39:16 +07:00
parent 7a3b574272
commit a73d25af40
4 changed files with 148 additions and 200 deletions

View File

@@ -51,7 +51,7 @@ julia>
# TODO
[] update docstring
[x] implement the function
[PENDING] implement the function
[] implement RAG to pull similar experience
[] use iterative prompting to ensure JSON format
@@ -143,8 +143,8 @@ function decisionMaker(a::T1, state::T2) where {T1<:agent, T2<:AbstractDict}
)
)
thought = GeneralUtils.sendReceiveMqttMsg(outgoingMsg)
result = GeneralUtils.sendReceiveMqttMsg(outgoingMsg)
thought = result[:response][:text]
return thought
end
@@ -288,7 +288,7 @@ end
function conversation(a::T, userinput::Dict) where {T<:agent}
"""
[] update document
[x] MCTS() for planning
[PENDING] MCTS() for planning
"""
# "newtopic" command to delete chat history
if userinput[:text] == "newtopic"