@cognigy/rest-api-client
Version:
Cognigy REST-Client
13 lines • 807 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addToolDescriptorAPIs = void 0;
const GenericAPIFn_1 = require("../../GenericAPIFn");
const rest_1 = require("../../shared/helper/rest");
function addToolDescriptorAPIs(self) {
return {
// see: https://cognigy.visualstudio.com/Cognigy.AI/_git/cognigy?path=/services/service-resources/src/toolDescriptors/controllers/restAPI.ts&version=GBmain&line=110&lineEnd=111&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents
indexToolDescriptors: (args, options) => (0, GenericAPIFn_1.GenericAPIFn)(`/v1/tools/descriptors?${(0, rest_1.stringifyQuery)(args)}`, "GET", self)(undefined, options)
};
}
exports.addToolDescriptorAPIs = addToolDescriptorAPIs;
//# sourceMappingURL=toolDescriptorAPI.js.map