This commit is contained in:
narawat lamaiin
2024-08-27 13:22:53 +07:00
parent a80b8e0260
commit ca0f9cd53f
5 changed files with 70 additions and 141 deletions

View File

@@ -50,6 +50,9 @@ julia> YiemAgent.clearhistory(a)
"""
function clearhistory(a::T) where {T<:agent}
empty!(a.chathistory)
empty!(a.memory[:shortmem])
empty!(a.memory[:events])
a.memory[:chatbox] = ""
end