This commit is contained in:
narawat lamaiin
2024-05-07 13:25:18 +07:00
parent 43e7ba3991
commit b93264ae58
4 changed files with 110 additions and 141 deletions

View File

@@ -333,7 +333,6 @@ end
# ```
# # TODO
# [PENDING] add Reflect()
# # Signature
# """
@@ -407,8 +406,9 @@ julia> response = ChatAgent.conversation(newAgent, "Hi! how are you?")
```
# TODO
- [] update docstring
- [PENDING] MCTS() for planning
- [] update docstring
- [WORKING] MCTS() for planning
- [] add recap to initialState for earlier completed question
# Signature
"""
@@ -441,11 +441,12 @@ function conversation(a::T, userinput::Dict) where {T<:agent}
:reward=> 0,
:isterminal=> false,
:thoughtHistory=> OrderedDict{Symbol, Any}( # contain question, thought_1, action_1, observation_1, thought_2, ...
# :recap=>,
:question=> userinput[:text],
)
)
bestplan = runMCTS(a, initialState, decisionMaker, progressValueEstimator, reflector,
isterminal, 2, 3, 3, 1.0)
2, 3, 4, 1.0)
error("---> bestplan")
# actor loop(bestplan)