update
This commit is contained in:
14
src/utils.jl
14
src/utils.jl
@@ -1015,7 +1015,21 @@ function experience(dict::T) where {T<:AbstractDict}
|
||||
return s
|
||||
end
|
||||
|
||||
""" Get the latest step number of short term memory
|
||||
|
||||
Arguments:
|
||||
dict = a dictionary contain past experience
|
||||
|
||||
Return:
|
||||
latest step number
|
||||
|
||||
# Example
|
||||
```jldoctest
|
||||
julia> dict = OrderedDict(
|
||||
"Plan 1:" => "1. Ask about the type of food that will be served at the wedding party.")
|
||||
julia>shortMemLatestStep(dict)
|
||||
1
|
||||
"""
|
||||
function shortMemLatestStep(dict::T) where {T<:AbstractDict}
|
||||
_latest_step = keys(dict)
|
||||
_latest_step = [i for i in _latest_step]
|
||||
|
||||
Reference in New Issue
Block a user