main.go 281 B

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