Changeset 0.21.2 (#88)
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"git.gobha.me/xcaliber/chat-switchboard/knowledge"
|
||||
"git.gobha.me/xcaliber/chat-switchboard/models"
|
||||
"git.gobha.me/xcaliber/chat-switchboard/store"
|
||||
"git.gobha.me/xcaliber/chat-switchboard/workspace"
|
||||
@@ -27,12 +28,19 @@ func RegisterWorkspaceTools(stores store.Stores, wfs *workspace.FS) {
|
||||
Register(&workspacePatchTool{stores: stores, wfs: wfs})
|
||||
}
|
||||
|
||||
// RegisterWorkspaceSearchTool registers the semantic search tool separately
|
||||
// because it requires the embedder (which may not be configured).
|
||||
func RegisterWorkspaceSearchTool(stores store.Stores, embedder *knowledge.Embedder) {
|
||||
Register(&workspaceSearchTool{stores: stores, embedder: embedder})
|
||||
}
|
||||
|
||||
// WorkspaceToolNames returns the names of all workspace tools.
|
||||
// Used by the completion handler to filter them out when no workspace is bound.
|
||||
func WorkspaceToolNames() []string {
|
||||
return []string{
|
||||
"workspace_ls", "workspace_read", "workspace_write",
|
||||
"workspace_rm", "workspace_mv", "workspace_patch",
|
||||
"workspace_search",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user