This commit is contained in:
narawat lamaiin
2024-08-18 21:04:55 +07:00
parent 2aa0ee6a74
commit 2b1e280a31
2 changed files with 3 additions and 3 deletions

View File

@@ -43,13 +43,13 @@ julia> YiemAgent.addNewMessage(a, "user", "hello")
julia> YiemAgent.clearhistory(a)
```
# TODO
- [PENDING] clear memory
# Signature
"""
function clearhistory(a::T) where {T<:agent}
empty!(a.chathistory)
empty!(a.mctstree)
empty!(a.plan[:activeplan])
empty!(a.plan[:currenttrajectory])
end