opencode/cmd/lsp/main.go

17 lines
281 B
Go

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)
}