main.go
1package main
2
3import (
4 "context"
5 "fmt"
6
7 "github.com/kujtimiihoxha/termai/internal/llm/tools"
8)
9
10func main() {
11 t := tools.NewSourcegraphTool()
12 r, _ := t.Run(context.Background(), tools.ToolCall{
13 Input: `{"query": "context.WithCancel lang:go"}`,
14 })
15 fmt.Println(r.Content)
16}