MCPcopy Create free account
hub / github.com/diillson/chatcli / String

Method String

llm/fallback/chain.go:31–48  ·  view source on GitHub ↗

String returns the human-readable name.

()

Source from the content-addressed store, hash-verified

29
30// String returns the human-readable name.
31func (ec ErrorClass) String() string {
32 switch ec {
33 case ErrorClassRateLimit:
34 return "rate_limit"
35 case ErrorClassTimeout:
36 return "timeout"
37 case ErrorClassAuth:
38 return "auth_error"
39 case ErrorClassServerError:
40 return "server_error"
41 case ErrorClassModelNotFound:
42 return "model_not_found"
43 case ErrorClassContextTooLong:
44 return "context_too_long"
45 default:
46 return "unknown"
47 }
48}
49
50// ProviderHealth tracks the health of a provider.
51type ProviderHealth struct {

Callers 15

CloseMethod · 0.45
SnapshotMethod · 0.45
tryEmitLockedMethod · 0.45
LogRequestStartFunction · 0.45
LogRequestFinishFunction · 0.45
ResolveModelRoutingFunction · 0.45
sendPromptOpenAIMethod · 0.45
NewBedrockClientFunction · 0.45
ensureRuntimeMethod · 0.45
SendPromptMethod · 0.45
sendPromptAnthropicMethod · 0.45
parseAnthropicBodyFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestConcurrentAccessFunction · 0.36
TestErrorClass_StringFunction · 0.36