Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions genai/test/tools-vais-with-txt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.

'use strict';
// To make this test work, we need to create datastore, for now it stays commented out

const {assert} = require('chai');
const {describe, it} = require('mocha');

const projectId = process.env.CAIP_PROJECT_ID;
const sample = require('../tools/tools-vais-with-txt.js');
const location = process.env.GOOGLE_CLOUD_LOCATION || 'global';
const datastore = `projects/${projectId}/locations/global/collections/default_collection/dataStores/grounding-test-datastore`;
// 'use strict';
//
// const {assert} = require('chai');
// const {describe, it} = require('mocha');
//
// const projectId = process.env.CAIP_PROJECT_ID;
// const sample = require('../tools/tools-vais-with-txt.js');
// const location = process.env.GOOGLE_CLOUD_LOCATION || 'global';
// const datastore = `projects/${projectId}/locations/global/collections/default_collection/dataStores/grounding-test-datastore`;

describe('tools-vais-with-txt', () => {
it('should generate a function call', async function () {
this.timeout(60000);
const output = await sample.generateContent(datastore, projectId, location);
assert(output.length > 0);
});
});
6;
// describe('tools-vais-with-txt', () => {
// it('should generate a function call', async function () {
// this.timeout(60000);
// const output = await sample.generateContent(datastore, projectId, location);
// assert(output.length > 0);
// });
// });
// ;
Loading