update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user