返回 DeepSeek-Reasonix
tool_support.go
根目录 / internal / provider / tool_support.go
1 package provider
2
3 // ToolSupportProvider selects the pure-text compatibility path when false.
4 // Providers default to tool-capable for backward compatibility.
5 type ToolSupportProvider interface {
6 SupportsTools() bool
7 }
8
9 func SupportsTools(p Provider) bool {
10 capable, ok := p.(ToolSupportProvider)
11 return !ok || capable.SupportsTools()
12 }
13
13 lines GO