update
This commit is contained in:
@@ -787,13 +787,6 @@ function reflector(config::T1, state::T2)::String where {T1<:AbstractDict, T2<:A
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function transition()
|
|
||||||
error("--> transition")
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
""" Get a new state
|
""" Get a new state
|
||||||
|
|
||||||
# Arguments
|
# Arguments
|
||||||
@@ -833,7 +826,7 @@ julia> thoughtDict = Dict(
|
|||||||
|
|
||||||
# Signature
|
# Signature
|
||||||
"""
|
"""
|
||||||
function transition(config::T1, state::T2, decisionMaker::Function, evaluator::Function,
|
function transition(state::T2, config::T1, decisionMaker::Function, evaluator::Function,
|
||||||
reflector::Function
|
reflector::Function
|
||||||
)::Tuple{String, Dict{Symbol, <:Any}, Integer} where {T1<:AbstractDict, T2<:AbstractDict}
|
)::Tuple{String, Dict{Symbol, <:Any}, Integer} where {T1<:AbstractDict, T2<:AbstractDict}
|
||||||
|
|
||||||
@@ -982,8 +975,8 @@ function conversation(a::T, userinput::Dict) where {T<:agent}
|
|||||||
end
|
end
|
||||||
|
|
||||||
while true
|
while true
|
||||||
bestNextState, besttrajectory = LLMMCTS.runMCTS(config, a.plan[:currenttrajectory],
|
bestNextState, besttrajectory = LLMMCTS.runMCTS(a.plan[:currenttrajectory],
|
||||||
decisionMaker, evaluator, reflector, transition;
|
transition, config, decisionMaker, evaluator, reflector;
|
||||||
totalsample=2, maxDepth=3, maxiterations=3, explorationweight=1.0)
|
totalsample=2, maxDepth=3, maxiterations=3, explorationweight=1.0)
|
||||||
a.plan[:activeplan] = bestNextState
|
a.plan[:activeplan] = bestNextState
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user