MCPcopy Create free account
hub / github.com/compozy/agh / NewMemoryValidationError

Function NewMemoryValidationError

internal/api/core/errors.go:134–139  ·  view source on GitHub ↗

NewMemoryValidationError wraps a memory validation failure with the shared sentinel.

(err error)

Source from the content-addressed store, hash-verified

132
133// NewMemoryValidationError wraps a memory validation failure with the shared sentinel.
134func NewMemoryValidationError(err error) error {
135 if err == nil {
136 return nil
137 }
138 return fmt.Errorf("%w: %w", memory.ErrValidation, err)
139}
140
141// ErrSettingsValidation is the sentinel for settings request validation failures.
142var ErrSettingsValidation = errors.New("settings validation error")

Calls

no outgoing calls