MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / Is

Method Is

internal/decision/typesafe.go:128–130  ·  view source on GitHub ↗

Is lets errors.Is(err, ErrMaxTokensExceeded) match the budget refusal without the caller inspecting the status code or the body.

(target error)

Source from the content-addressed store, hash-verified

126// Is lets errors.Is(err, ErrMaxTokensExceeded) match the budget refusal
127// without the caller inspecting the status code or the body.
128func (e *APIError) Is(target error) bool {
129 return target == ErrMaxTokensExceeded && e.ErrorType == "max_tokens_exceeded"
130}
131
132// typesafeProvider is the typesafe.ai Jev backend.
133type typesafeProvider struct {

Calls

no outgoing calls