This commit is contained in:
narawat lamaiin
2024-04-29 17:55:13 +07:00
parent 85240c5fb8
commit 8f95f08695
4 changed files with 21 additions and 22 deletions

View File

@@ -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",

View File

@@ -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.

View File

@@ -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