This commit is contained in:
2026-06-27 08:00:41 +07:00
parent 299a485e4e
commit e63dd7d898
8 changed files with 534 additions and 508 deletions
+4 -4
View File
@@ -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]