update
This commit is contained in:
@@ -145,7 +145,7 @@ function decisionMaker(a::T1, state::T2)::String where {T1<:agent, T2<:AbstractD
|
||||
prompt = formatLLMtext_llama3instruct("system", _prompt)
|
||||
|
||||
msgMeta = GeneralUtils.generate_msgMeta(
|
||||
a.config[:externalService][:text2textinstruct],
|
||||
a.config[:externalService][:text2textinstruct][:mqtttopic],
|
||||
senderName= "decisionMaker",
|
||||
senderId= a.id,
|
||||
receiverName= "text2textinstruct",
|
||||
|
||||
@@ -21,12 +21,15 @@ julia>
|
||||
|
||||
# TODO
|
||||
- [] update docstring
|
||||
- [] implement the function
|
||||
- [WORKING] implement the function
|
||||
|
||||
# Signature
|
||||
"""
|
||||
function chatbox(input::T) where {T<:AbstractString}
|
||||
function chatbox(a::T1, input::T2) where {T1<:agent, T2<:AbstractString}
|
||||
error("--> chatbox")
|
||||
# put in model format
|
||||
if a.config[:externalService][]
|
||||
GeneralUtils.formatLLMtext_llama3instruct
|
||||
end
|
||||
|
||||
""" Search wine in stock.
|
||||
|
||||
16
src/mcts.jl
16
src/mcts.jl
@@ -232,18 +232,20 @@ julia>
|
||||
"""
|
||||
function transition(a::T1, state::T2, action::T3,
|
||||
actioninput::T3) where {T1<:agent, T2<:AbstractDict, T3<:AbstractString}
|
||||
error("--> transition")
|
||||
|
||||
|
||||
# map action and input() to llm function
|
||||
# result =
|
||||
# if action == "chatbox"
|
||||
# chatbox(input)
|
||||
# elseif
|
||||
result =
|
||||
if action == "chatbox"
|
||||
chatbox(a, input)
|
||||
elseif action == "winestock"
|
||||
|
||||
# else
|
||||
elseif action == "finish"
|
||||
|
||||
# end
|
||||
else
|
||||
|
||||
end
|
||||
error("--> transition")
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user