fix: add missing session-ctx (#2393)

This commit is contained in:
yetone
2025-07-02 16:58:15 +08:00
committed by GitHub
parent 4329ed79f4
commit 66c3b6665c
4 changed files with 32 additions and 23 deletions

View File

@@ -40,7 +40,7 @@ M.returns = {
}
---@type AvanteLLMToolFunc<{ tool_use_id: string }>
function M.func(opts)
function M.func(opts, on_log, on_complete, session_ctx)
local sidebar = require("avante").get()
if not sidebar then return false, "Avante sidebar not found" end
local history_messages = Utils.get_history_messages(sidebar.chat_history)