update
This commit is contained in:
@@ -43,13 +43,13 @@ julia> YiemAgent.addNewMessage(a, "user", "hello")
|
|||||||
julia> YiemAgent.clearhistory(a)
|
julia> YiemAgent.clearhistory(a)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
- [PENDING] clear memory
|
||||||
|
|
||||||
# Signature
|
# Signature
|
||||||
"""
|
"""
|
||||||
function clearhistory(a::T) where {T<:agent}
|
function clearhistory(a::T) where {T<:agent}
|
||||||
empty!(a.chathistory)
|
empty!(a.chathistory)
|
||||||
empty!(a.mctstree)
|
|
||||||
empty!(a.plan[:activeplan])
|
|
||||||
empty!(a.plan[:currenttrajectory])
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user