Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

266 B
Raw Blame
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const extractError = (error: any): string | null => {
  if (error instanceof Error) return error.message;
  return error?.error?.message || error?.message || error?.error || error?.statusText;
};