Files
SQLLLM/test/test_2.jl
2025-03-16 22:11:23 +07:00

30 lines
717 B
Julia

using Revise
using SQLLLM, LLMMCTS, DataStructures
initialstate = Dict{Symbol, Any}(
:reward=> 0,
:isterminal=> false,
:evaluation=> "None",
:evaluationscore=> 0,
:suggestion=> "None",
:accepted_as_answer=> "No",
:lesson=> nothing,
# contain question, thought_1, action_1, observation_1, thought_2, ...
:thoughtHistory=> OrderedDict{Symbol, Any}(
#[] :recap=>,
:question=> "query",
),
)
root = MCTSNode("root", initialstate, 0, 0, 0, 0, false, nothing, Dict{String,MCTSNode}(),
Dict{Symbol,Any}())
field = fieldnames(typeof(root))
for f in field
println(getfield(root, f))
setfield!(root, f, 1)
end
println("\n done")