update
This commit is contained in:
15
src/type.jl
15
src/type.jl
@@ -85,10 +85,17 @@ abstract type agent end
|
|||||||
thinkinglimit::Integer # thinking round limit
|
thinkinglimit::Integer # thinking round limit
|
||||||
thinkingcount::Integer # used to count attempted round of a task
|
thinkingcount::Integer # used to count attempted round of a task
|
||||||
|
|
||||||
# memory
|
""" Memory
|
||||||
# Ref: Chat prompt format https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/discussions/3
|
Ref: Chat prompt format https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/discussions/3
|
||||||
# messages= [Dict(:role=>"system", :content=> "", :timestamp=> Dates.now()),]
|
NO "system" message in chathistory because I want to add it at the inference time
|
||||||
chathistory::Vector{Dict{Symbol, Any}} = Vector{Dict{Symbol, Any}}() # store messages history in the format :name=>"message"
|
chathistory= [
|
||||||
|
Dict(:name=>"user", :text=> "Wassup!", :timestamp=> Dates.now()),
|
||||||
|
Dict(:name=>"assistant", :text=> "Hi I'm your assistant.", :timestamp=> Dates.now()),
|
||||||
|
]
|
||||||
|
|
||||||
|
"""
|
||||||
|
chathistory::Vector{Dict{Symbol, Any}} = Vector{Dict{Symbol, Any}}()
|
||||||
|
|
||||||
maxHistoryMsg::Integer # 31th and earlier messages will get summarized
|
maxHistoryMsg::Integer # 31th and earlier messages will get summarized
|
||||||
keywordinfo::Dict{Symbol, Any} = Dict{Symbol, Any}(
|
keywordinfo::Dict{Symbol, Any} = Dict{Symbol, Any}(
|
||||||
:userinfo => Dict{Symbol, Any}(),
|
:userinfo => Dict{Symbol, Any}(),
|
||||||
|
|||||||
Reference in New Issue
Block a user