update
This commit is contained in:
@@ -37,7 +37,9 @@ using ..type, ..util, ..llmfunction, ..mcts
|
||||
|
||||
Arguments\n
|
||||
-----
|
||||
state::T
|
||||
a::T1
|
||||
one of Yiem's agent
|
||||
state::T2
|
||||
a game state
|
||||
|
||||
Return\n
|
||||
@@ -134,7 +136,7 @@ function decisionMaker(a::T1, state::T2) where {T1<:agent, T2<:AbstractDict}
|
||||
|
||||
msgMeta = GeneralUtils.generate_msgMeta(
|
||||
a.config[:externalService][:text2textinstruct],
|
||||
senderName= "iterativeprompting",
|
||||
senderName= "decisionMaker",
|
||||
senderId= a.id,
|
||||
receiverName= "text2textinstruct",
|
||||
mqttBroker= a.config[:mqttServerInfo][:broker],
|
||||
@@ -147,17 +149,9 @@ function decisionMaker(a::T1, state::T2) where {T1<:agent, T2<:AbstractDict}
|
||||
:text=> prompt,
|
||||
)
|
||||
)
|
||||
@show outgoingMsg
|
||||
|
||||
thought = GeneralUtils.sendReceiveMqttMsg(outgoingMsg)
|
||||
|
||||
|
||||
|
||||
|
||||
# thought = iterativeprompting(a, prompt, syntaxcheck_json)
|
||||
|
||||
|
||||
|
||||
error("--> decisionMaker")
|
||||
return thought
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user