MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / ProviderKind

Function ProviderKind

main.go:321–330  ·  view source on GitHub ↗

ProviderKind returns the short name of a provider value. Used by /model and /provider to display the active backend.

(p provider.Provider)

Source from the content-addressed store, hash-verified

319// ProviderKind returns the short name of a provider value. Used by /model
320// and /provider to display the active backend.
321func ProviderKind(p provider.Provider) string {
322 switch p.(type) {
323 case *provider.AnthropicProvider:
324 return "anthropic"
325 case *provider.OpenAIProvider:
326 return "openai"
327 default:
328 return "unknown"
329 }
330}
331
332// summarizeSession asks the active provider for a one-paragraph recap of
333// the conversation plus 3–5 tags, used as the body of the session file

Callers 2

cmdModelFunction · 0.85
cmdProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected