1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "texts": [
12 "We need launch by October. Budget is $20,000. Alice owns engineering. Security review takes four weeks. Vendor A costs $12,000 a year. The team prefers low maintenance. Open question: EU data residency."
13 ],
14 "task": "Prepare the launch go/no-go decision"
15};
16
17
18const run = await client.actor("physealabs/context-compressor").call(input);
19
20
21console.log('Results from dataset');
22console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
23const { items } = await client.dataset(run.defaultDatasetId).listItems();
24items.forEach((item) => {
25 console.dir(item);
26});
27
28