MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / NewThinkingError

Function NewThinkingError

internal/thinking/errors.go:63–68  ·  view source on GitHub ↗

NewThinkingError creates a new ThinkingError with the given code and message.

(code ErrorCode, message string)

Source from the content-addressed store, hash-verified

61
62// NewThinkingError creates a new ThinkingError with the given code and message.
63func NewThinkingError(code ErrorCode, message string) *ThinkingError {
64 return &ThinkingError{
65 Code: code,
66 Message: message,
67 }
68}
69
70// NewThinkingErrorWithModel creates a new ThinkingError with model context.
71func NewThinkingErrorWithModel(code ErrorCode, message, model string) *ThinkingError {

Callers 1

ValidateConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected