This commit is contained in:
narawat lamaiin
2024-04-26 08:22:11 +07:00
parent b2c24e97ae
commit 54fc9c67bc
3 changed files with 115 additions and 10 deletions

View File

@@ -109,7 +109,10 @@ function conversation(a::T, userinput::Dict) where {T<:agent}
else #[WORKING] new thinking
initialState = Dict(
:info=> Dict{Symbol, Any}(), # keyword info
# deepcopy the info to prevent modifying the info unintentionally during MCTS planning
:info=> deepcopy(a.keywordinfo),
:thoughtHistory=> Dict{Symbol, Any}( # contain question, thought_1, action_1, observation_1, thought_2, ...
:question=> userinput[:text],
)
@@ -117,6 +120,7 @@ function conversation(a::T, userinput::Dict) where {T<:agent}
bestplan = runMCTS(initialState, decisionMaker, stateValueEstimator, reflector,
3, 10, 1000, 1.0)
error("---> bestplan")
# actor loop(bestplan)
end