Files
nofx/mcp/interface.go
Shui b96c86fce4 Improve(interface): replace some struct with interface for testing (#994)
* fix(trader): get peakPnlPct using posKey
* fix(docs): keep readme at the same page
* improve(interface): replace with interface
* refactor mcp
---------
Co-authored-by: zbhan <zbhan@freewheel.tv>
2025-11-15 22:20:06 -05:00

13 lines
323 B
Go

package mcp
import "net/http"
// AIClient AI客户端接口
type AIClient interface {
SetAPIKey(apiKey string, customURL string, customModel string)
// CallWithMessages 使用 system + user prompt 调用AI API
CallWithMessages(systemPrompt, userPrompt string) (string, error)
setAuthHeader(reqHeaders http.Header)
}