Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lua/vectorcode/integrations/codecompanion/ls_tool.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---@module "codecompanion"

local cc_common = require("vectorcode.integrations.codecompanion.common")
local vectorcode = require("vectorcode")
local vc_config = require("vectorcode.config")
local logger = vc_config.logger

Expand Down Expand Up @@ -60,10 +59,10 @@ return function(opts)
type = "function",
["function"] = {
name = tool_name,
description = string.format(
"Retrieve a list of projects accessible via the VectorCode tools.\n%s",
table.concat(vectorcode.prompts("ls"), "\n")
),
description = [[
Retrieve a list of projects accessible via the VectorCode tools.
Where relevant, use paths from this tool as the `project_root` parameter in other vectorcode tools.
]],
},
},
output = {
Expand Down
9 changes: 4 additions & 5 deletions lua/vectorcode/integrations/codecompanion/vectorise_tool.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---@module "codecompanion"

local cc_common = require("vectorcode.integrations.codecompanion.common")
local vectorcode = require("vectorcode")
local vc_config = require("vectorcode.config")
local logger = vc_config.logger

Expand Down Expand Up @@ -43,10 +42,10 @@ return function(opts)
type = "function",
["function"] = {
name = tool_name,
description = string.format(
"Vectorise files in a project so that they'll be available from the vectorcode_query tool\n%s",
table.concat(vectorcode.prompts("vectorise"), "\n")
),
description = [[
Vectorise files in a project so that they'll be available from the `vectorcode_query` tool.
The paths should be accurate (DO NOT ASSUME A PATH EXIST) and case case-sensitive.
]],
parameters = {
type = "object",
properties = {
Expand Down
Loading