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