feat: add custom tools config (#1461)

* chore: add string literal types for tool params, and returns

* feat: add custom tools config
This commit is contained in:
Peter Cardenas
2025-03-02 23:06:13 -08:00
committed by GitHub
parent 6bbf9b3c42
commit de1e6a4212
3 changed files with 12 additions and 4 deletions

View File

@@ -328,18 +328,21 @@ vim.g.avante_login = vim.g.avante_login
---@field returns AvanteLLMToolReturn[]
---@field enabled? fun(): boolean
---@class AvanteLLMToolPublic : AvanteLLMTool
---@field func AvanteLLMToolFunc
---@class AvanteLLMToolParam
---@field type string
---@field type 'table'
---@field fields AvanteLLMToolParamField[]
---@class AvanteLLMToolParamField
---@field name string
---@field description string
---@field type string
---@field type 'string' | 'integer'
---@field optional? boolean
---@class AvanteLLMToolReturn
---@field name string
---@field description string
---@field type string
---@field type 'string' | 'string[]' | 'boolean'
---@field optional? boolean