Sanity Library Reference Docs
    Preparing search index...

    Function resolveAgentErrorMessage

    • Resolves a user-facing error message for a classified agent error. For errors that benefit from additional context (e.g. org name), the optional resolveContext callback is invoked lazily — only when the error type needs it. Non-contextual errors return the backend message as-is.

      Parameters

      Returns Promise<string>