update
This commit is contained in:
@@ -94,7 +94,7 @@ function virtualWineCustomerChatbox(a::T1, input::T2)::String where {T1<:agent,
|
|||||||
:text=> prompt,
|
:text=> prompt,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@show outgoingMsg
|
||||||
result = GeneralUtils.sendReceiveMqttMsg(outgoingMsg)
|
result = GeneralUtils.sendReceiveMqttMsg(outgoingMsg)
|
||||||
response = result[:response][:text]
|
response = result[:response][:text]
|
||||||
|
|
||||||
|
|||||||
@@ -131,8 +131,10 @@ function expand(a::T1, node::MCTSNode, state::T2, decisionMaker::Function, state
|
|||||||
@show thoughtDict
|
@show thoughtDict
|
||||||
newstate = MCTStransition(a, node.state, thoughtDict) #[] Implement your transition function
|
newstate = MCTStransition(a, node.state, thoughtDict) #[] Implement your transition function
|
||||||
|
|
||||||
if newstate ∉ keys(node.children)
|
if newstate ∉ keys(node.children) # BUG should be "key of the newstate" here not newstate
|
||||||
statetype = typeof(state)
|
statetype = typeof(state)
|
||||||
|
|
||||||
|
# BUG should be node.children[key of newstate] here not newstate. may be a uuid
|
||||||
node.children[newstate] = MCTSNode(newstate, 0, 0.0, Dict{statetype, MCTSNode}())
|
node.children[newstate] = MCTSNode(newstate, 0, 0.0, Dict{statetype, MCTSNode}())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user