package main import ( "encoding/json" "fmt" "os" "github.com/Wei-Shaw/sub2api/internal/pkg/windsurf" ) func main() { tc := "auto" if len(os.Args) > 1 { tc = os.Args[1] } tools := []windsurf.OpenAITool{ {Type: "function", Function: windsurf.OpenAIFunction{Name: "read_file", Description: "Read a file", Parameters: json.RawMessage(`{"type":"object"}`)}}, {Type: "function", Function: windsurf.OpenAIFunction{Name: "find_file", Description: "Find files", Parameters: json.RawMessage(`{"type":"object"}`)}}, } fmt.Println(windsurf.BuildToolPreambleForProto(tools, tc)) }