Add searchChatHistory tool

This commit is contained in:
2026-05-22 14:15:34 +08:00
parent bc2ab553b9
commit 417b5f631f
3 changed files with 224 additions and 1 deletions
+6
View File
@@ -131,4 +131,10 @@ object PluginConfig : AutoSavePluginConfig("Config") {
@ValueDescription("单个工具调用返回内容的最大字符数,超过将被截断并标注")
val maxToolOutputLength: Int by value(15000)
@ValueDescription("聊天记录搜索最大天数")
val searchHistoryMaxDays: Int by value(7)
@ValueDescription("聊天记录搜索最大查询条数,防止内存溢出")
val searchHistoryMaxRecords: Int by value(500)
}