feat: run_command is run asynchronously (#1377)

This commit is contained in:
Peter Cardenas
2025-02-24 21:22:36 -08:00
committed by GitHub
parent aa0449dbc1
commit 901e1caa91
4 changed files with 116 additions and 38 deletions

View File

@@ -323,7 +323,11 @@ vim.g.avante_login = vim.g.avante_login
---@field on_stop AvanteLLMStopCallback
---@field on_tool_log? function(tool_name: string, log: string): nil
---
---@alias AvanteLLMToolFunc<T> fun(input: T, on_log?: (fun(log: string): nil) | nil): (boolean | string | nil, string | nil)
---@alias AvanteLLMToolFunc<T> fun(
--- input: T,
--- on_log?: (fun(log: string): nil) | nil,
--- on_complete?: (fun(result: boolean | string | nil, error: string | nil): nil) | nil)
--- : (boolean | string | nil, string | nil)
---
---@class AvanteLLMTool
---@field name string