@@ -123,16 +123,18 @@ class JobClient{
123123 * @param {string } modelId - the model id string
124124 * @param {versionId } versionId - version id string
125125 * @param {Object[] } textSources - The source(s) of the model
126+ * @param {boolean } explain - Explainability flag
126127 * @return {Object } the updated instance of the Job returned by Modzy API
127128 * @throws {ApiError } If there is something wrong with the service or the call
128129 */
129- submitJobText ( modelId , versionId , textSources ) {
130+ submitJobText ( modelId , versionId , textSources , explain = false ) {
130131 return this . submitJob (
131132 {
132133 "model" : {
133134 "identifier" : modelId ,
134135 "version" : versionId
135136 } ,
137+ "explain" : explain ,
136138 "input" : {
137139 "type" : "text" ,
138140 "sources" : textSources
@@ -148,18 +150,20 @@ class JobClient{
148150 * @param {string } modelId - the model id string
149151 * @param {string } versionId - version id string
150152 * @param {Object[] } fileSources the source(s) of the model
153+ * @param {boolean } explain - Explainability flag
151154 * @return {Object } the updated instance of the Job returned by Modzy API
152155 * @throws {ApiError } if there is something wrong with the service or the call
153156 */
154- submitJobFiles ( modelId , versionId , fileSources ) {
157+ submitJobFile ( modelId , versionId , fileSources , explain = false ) {
155158 let job = { } ;
156159 let chunkSize = 1024 * 1024 ;
157160 return this . submitJob (
158161 {
159162 "model" : {
160163 "identifier" : modelId ,
161164 "version" : versionId
162- }
165+ } ,
166+ "explain" : explain
163167 }
164168 ) . then (
165169 ( openJob ) => {
@@ -211,10 +215,11 @@ class JobClient{
211215 * @param {string } versionId - version id string
212216 * @param {string } mediaType - the media type of the embedded source
213217 * @param {Object[] } embeddedSources the source(s) of the model
218+ * @param {boolean } explain - Explainability flag
214219 * @return {Object } the updated instance of the Job returned by Modzy API
215220 * @throws {ApiError } if there is something wrong with the service or the call
216221 */
217- submitJobEmbedded ( modelId , versionId , mediaType , embeddedSources ) {
222+ submitJobEmbedded ( modelId , versionId , mediaType , embeddedSources , explain = false ) {
218223 let encodedSources = { } ;
219224 Object . keys ( embeddedSources ) . forEach (
220225 sourceKey => {
@@ -237,6 +242,7 @@ class JobClient{
237242 "identifier" : modelId ,
238243 "version" : versionId
239244 } ,
245+ "explain" : explain ,
240246 "input" : {
241247 "type" : "embedded" ,
242248 "sources" : encodedSources
@@ -251,20 +257,22 @@ class JobClient{
251257 *
252258 * @param {string } modelId - the model id string
253259 * @param {string } versionId - version id string
254- * @param {string } accessKeyID - access key of aws-s3
260+ * @param {string } accessKeyId - access key of aws-s3
255261 * @param {string } secretAccessKey - secret access key of aws-s3
256262 * @param {string } region - aws-s3 region
257263 * @param {Object[] } awss3Sources - the source(s) of the model
264+ * @param {boolean } explain - Explainability flag
258265 * @return {Object } the updated instance of the Job returned by Modzy API
259266 * @throws {ApiError } if there is something wrong with the service or the call
260267 */
261- submitJobAWSS3 ( modelId , versionId , accessKeyID , secretAccessKey , region , awss3Sources ) {
268+ submitJobAWSS3 ( modelId , versionId , accessKeyId , secretAccessKey , region , awss3Sources , explain = false ) {
262269 return this . submitJob (
263270 {
264271 "model" : {
265272 "identifier" : modelId ,
266273 "version" : versionId
267274 } ,
275+ "explain" : explain ,
268276 "input" : {
269277 "type" : "aws-s3" ,
270278 "accessKeyID" : accessKeyID ,
@@ -291,16 +299,18 @@ class JobClient{
291299 * @param {string } password - database password
292300 * @param {string } driver - fully qualified name of the driver class for jdbc
293301 * @param {string } query - the query to get the inputs of the model
302+ * @param {boolean } explain - Explainability flag
294303 * @return {Object } the updated instance of the Job returned by Modzy API
295304 * @throws {ApiError } if there is something wrong with the service or the call
296305 */
297- submitJobJDBC ( modelId , versionId , url , username , password , driver , query ) {
306+ submitJobJDBC ( modelId , versionId , url , username , password , driver , query , explain = false ) {
298307 return this . submitJob (
299308 {
300309 "model" : {
301310 "identifier" : modelId ,
302311 "version" : versionId
303312 } ,
313+ "explain" : explain ,
304314 "input" : {
305315 "type" : "jdbc" ,
306316 "url" : url ,
0 commit comments