update
This commit is contained in:
+4
-4
@@ -35,7 +35,7 @@ julia> agentConfig = Dict(
|
||||
"text2text"=>Dict(
|
||||
"mqtttopic"=> "testtopic/text2text",
|
||||
),
|
||||
)
|
||||
)
|
||||
julia> a = YiemAgent.sommelier(
|
||||
client,
|
||||
msgMeta,
|
||||
@@ -301,7 +301,7 @@ function createTimeline(events::T1; eventindex::Union{UnitRange, Nothing}=nothin
|
||||
timeline *= "Event_$i $(event["subject"])> actionname: $(event["actionname"]), actioninput: $(event["actioninput"]), observation: $(event["observation"])\\n"
|
||||
else
|
||||
timeline *= "Event_$i $(event["subject"])> actionname: $(event["actionname"]), actioninput: $(event["actioninput"])\\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Return formatted timeline string
|
||||
@@ -328,7 +328,7 @@ end
|
||||
# timeline *= "Event_$i $(event["subject"])> actionname: $(event["actionname"]), actioninput: $(event["actioninput"]), observation: Not done yet.\n"
|
||||
# # If outcome exists, include it in formatting
|
||||
# else
|
||||
# timeline *= "Event_$i $(event["subject"])> actionname: $(event["actionname"]), actioninput: $(event["actioninput"]), observation: $(event["observation"])\\n"
|
||||
# timeline *= "Event_$i $(event["subject"])> actionname: $(event["actionname"]), actioninput: $(event["actioninput"]), observation: $(event["observation"])\\n"
|
||||
# end
|
||||
# end
|
||||
|
||||
@@ -422,7 +422,7 @@ end
|
||||
|
||||
|
||||
function checkAgentResponse_JSON(responsedict::Dict, requiredKeys::T
|
||||
)::Tuple where {T<:Array{Symbol}}
|
||||
)::Tuple where {T<:Array{String}}
|
||||
_responsedictKey = keys(responsedict)
|
||||
responsedictKey = [i for i in _responsedictKey] # convert into a list
|
||||
is_requiredKeys_in_responsedictKey = [i ∈ responsedictKey for i in requiredKeys]
|
||||
|
||||
Reference in New Issue
Block a user