summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/lsp/main.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/lsp/main.go b/cmd/lsp/main.go
index da29a2cad..0c7f79329 100644
--- a/cmd/lsp/main.go
+++ b/cmd/lsp/main.go
@@ -1,4 +1,16 @@
package main
+import (
+ "context"
+ "fmt"
+
+ "github.com/kujtimiihoxha/termai/internal/llm/tools"
+)
+
func main() {
+ t := tools.NewSourcegraphTool()
+ r, _ := t.Run(context.Background(), tools.ToolCall{
+ Input: `{"query": "context.WithCancel lang:go"}`,
+ })
+ fmt.Println(r.Content)
}