MCPcopy Create free account
hub / github.com/InferCore/InferCore / fallbackReason

Function fallbackReason

internal/server/server.go:649–654  ·  view source on GitHub ↗
(triggered bool)

Source from the content-addressed store, hash-verified

647}
648
649func fallbackReason(triggered bool) string {
650 if triggered {
651 return "primary backend execution failed, fallback applied"
652 }
653 return ""
654}
655
656func writeJSON(w http.ResponseWriter, status int, v any) {
657 w.Header().Set("Content-Type", "application/json")

Callers 1

writeAIResponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected