From 1662e4c924a7ce67e0db37292f0bbf69708dace1 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sat, 27 Apr 2024 20:57:08 +0700 Subject: [PATCH] update --- src/interface.jl | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 731ba5c..a11011f 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -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