UNPKG

p4u-client-ai

Version:

Empower Your Apps with AI: Access Multiple Models, Automate Tasks, Create AI Agents Easily

30 lines 2.83 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../index"); const userName = 'XXX@XXX'; const password = 'XXX'; const startTest = () => __awaiter(void 0, void 0, void 0, function* () { const client = new index_1.default(); yield client.login(userName, password); const listOfTasks = yield client.listTasks(); console.log(listOfTasks); const testText = 'We are pleased to present a project on which we are currently working with full commitment and passion. We are at the stage of building and internally testing a system that will allow you to maintain efficiency and remain competitive by supporting your work with tools such as: automatic handling of orders, reservations, complaints in text form and via telephone lines, and in the future also active sales (cold calling), lead generation, so that you can focus only on specific customers, without wasting time on calling in vain any market research along with generating results translations from and into 29 languages in real-time (text, audio, image) communication handling, sound (transcription) and image (OCR) agents enabling access to any Internet resources (scrapers), e.g. comments from social media agents enabling audio communication (phone, messengers) programming in your native language, preparing a backendless project, completely changing the approach to building the backend of applications analyzing and generating results of scientific research a browser extension supporting the implementation of any tasks when browsing websites Services for public administration, implementations and assistance in selecting the appropriate artificial intelligence models and tools that will best perform the tasks of modern administration. We also help with implementations and technological consulting of blockchain solutions for public administration.'; const taskRequest = { idTask: '52468971-a06e-413d-9b3a-212b53aad693', ask: testText, context: ' ', }; const taskRun = yield client.runTask(taskRequest); console.log(taskRun); }); startTest(); //# sourceMappingURL=index.js.map