@mablhq/mabl-cli 2.77.0 → 2.77.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/mablApiClient.js +9 -0
- package/execution/index.js +1 -1
- package/index.d.ts +16 -1
- package/package.json +1 -1
- package/util/analytics-events.js +1 -0
package/api/mablApiClient.js
CHANGED
|
@@ -747,6 +747,15 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
|
|
|
747
747
|
throw toApiError('Failed to generate steps', error);
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
+
async checkFileMetadataForGenAIAssertion(workspaceId, mimeType) {
|
|
751
|
+
try {
|
|
752
|
+
const uri = `${this.baseApiUrl}/agent/checkFileMetadataForGenAIAssertion?workspaceId=${encodeURIComponent(workspaceId)}&mimeType=${encodeURIComponent(mimeType)}`;
|
|
753
|
+
return await this.makeGetRequest(uri);
|
|
754
|
+
}
|
|
755
|
+
catch (error) {
|
|
756
|
+
throw toApiError('Failed to check file metadata for GenAI assertion', error);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
750
759
|
async evaluateAiAssertion(workspaceId, testRunId, screenshot, userPrompt, metaPrompt, criteria, test, variables, retryConfig, files) {
|
|
751
760
|
const requestUrl = `${this.baseApiUrl}/agent/assertion?workspaceId=${workspaceId}`;
|
|
752
761
|
return this.evaluateAiAssertionInternal(requestUrl, testRunId, screenshot, userPrompt, metaPrompt, criteria, test, variables, retryConfig, files);
|