This commit is contained in:
narawat lamaiin
2024-03-21 16:48:08 +07:00
parent d6d74fed6c
commit 4b235009a1
2 changed files with 5 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ function chat_mistral_openorca(a::agentReflex)
aboutYourself =
"""
Your name is $(a.agentName)
Your name is $(a.name)
$(a.roles[a.role])
"""

View File

@@ -7,7 +7,7 @@ export sendReceivePrompt, chunktext, extractStepFromPlan, checkTotalTaskInPlan,
messagesToString, messagesToString_nomark, removeTrailingCharacters, shortMemLatestTask,
keywordMemoryUpdate!
using UUIDs, Dates, DataStructures, HTTP, MQTTClient
using UUIDs, Dates, DataStructures, HTTP, MQTTClient, JSON3
using GeneralUtils
using ..type
@@ -62,7 +62,7 @@ using ..type
Signature\n
-----
"""
""" #WORKING correct docstring
function sendReceivePrompt(a::T1, prompt::String, sendtopic::String;
max_tokens::Integer=256, timeout::Integer=120, temperature::AbstractFloat=0.2,
stopword::T2=["nostopwordyet"],
@@ -98,7 +98,7 @@ function sendReceivePrompt(a::T1, prompt::String, sendtopic::String;
while true #WORKING check how to receive msg , should i use :text or :message?
timepass = (Dates.now() - starttime).value / 1000.0
if isready(a.mqttMsg_internal)
topic, payload = take!(a.mqttMsg_internal)
payload = take!(a.mqttMsg_internal)
if payload[:msgMeta][:replyToMsgId] == outgoing_msg[:msgMeta][:msgId]
result = haskey(payload, :text) ? payload[:text] : nothing
break
@@ -400,7 +400,7 @@ function isUsePlans(a::agentReflex)
aboutYourself =
"""
Your name is $(a.agentName)
Your name is $(a.name)
$(a.roles[a.role])
"""