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:
@@ -17,6 +17,7 @@ local Utils = require("avante.utils")
|
||||
---@class avante.CoreConfig: avante.Config
|
||||
local M = {}
|
||||
---@class avante.Config
|
||||
---@field custom_tools AvanteLLMToolPublic[]
|
||||
M._defaults = {
|
||||
debug = false,
|
||||
---@alias Provider "claude" | "openai" | "azure" | "gemini" | "vertex" | "cohere" | "copilot" | string
|
||||
@@ -409,6 +410,8 @@ M._defaults = {
|
||||
throttle = 600,
|
||||
},
|
||||
disabled_tools = {}, ---@type string[]
|
||||
---@type AvanteLLMToolPublic[]
|
||||
custom_tools = {},
|
||||
}
|
||||
|
||||
---@type avante.Config
|
||||
|
||||
Reference in New Issue
Block a user