update
This commit is contained in:
@@ -20,16 +20,19 @@ msgMeta = GeneralUtils.generate_msgMeta(
|
||||
)
|
||||
|
||||
agentConfig = Dict(
|
||||
:receiveprompt=>Dict(
|
||||
:mqtttopic=> config[:servicetopic][:value], # topic to receive prompt i.e. frontend send msg to this topic
|
||||
),
|
||||
:receiveinternal=>Dict(
|
||||
:mqtttopic=> instanceInternalTopic, # receive topic for model's internal
|
||||
),
|
||||
:text2text=>Dict(
|
||||
:mqtttopic=> config[:text2text][:value],
|
||||
),
|
||||
)
|
||||
:mqttServerInfo=> Dict(
|
||||
:broker=> config[:mqttServerInfo][:value][:broker],
|
||||
:port=> config[:mqttServerInfo][:value][:port],
|
||||
),
|
||||
:receivemsg=> Dict(
|
||||
:prompt=> config[:servicetopic][:value], # topic to receive prompt i.e. frontend send msg to this topic
|
||||
:internal=> instanceInternalTopic,
|
||||
),
|
||||
:externalService=> Dict(
|
||||
:text2textinstruct=> config[:externalService][:text2textinstruct][:value],
|
||||
:text2textchat=> config[:externalService][:text2textchat][:value],
|
||||
),
|
||||
)
|
||||
|
||||
# Instantiate an agent
|
||||
tools=Dict( # update input format
|
||||
@@ -56,7 +59,6 @@ tools=Dict( # update input format
|
||||
a = YiemAgent.sommelier(
|
||||
receiveUserMsgChannel,
|
||||
receiveInternalMsgChannel,
|
||||
msgMeta,
|
||||
agentConfig,
|
||||
name= "assistant",
|
||||
id= "randomSessionID", # agent instance id
|
||||
|
||||
Reference in New Issue
Block a user