update
This commit is contained in:
@@ -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])
|
||||
"""
|
||||
|
||||
|
||||
@@ -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])
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user