File size: 44,867 Bytes
b3509ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "from pathlib import Path\n",
    "from datetime import datetime\n",
    "import numpy as np\n",
    "import json\n",
    "import matplotlib.pyplot as plt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "test = [{\"a\": 1, \"b\": 2}, {\"a\": 3, \"b\": 4}, {\"a\": 5, \"b\": 6}]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'str'>\n",
      "[{'a': 1, 'b': 2}, {'a': 3, 'b': 4}, {'a': 5, 'b': 6}]\n"
     ]
    }
   ],
   "source": [
    "x = test.__repr__()\n",
    "print(type(x))\n",
    "print(x)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{0: WindowsPath('D:/00Repos/GPT-Swarm/tmp/swarm')}\n"
     ]
    }
   ],
   "source": [
    "run_folder = Path(\"../tmp/swarm\").resolve()\n",
    "runs = {0: run_folder}\n",
    "print(runs)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "def load_run(runs, run_id=None):\n",
    "    \"\"\"Logs format:\n",
    "    {\"time\": \"2023-04-15 12:20:27,477\", \"level\": \"INFO\", \"agent_id\": -1, \"cycle\": -1, \"step\": \"swarm\", \"message\": \"Created 2 agents with roles: ['python developer' 'python developer']\"}\n",
    "    {\"time\": \"2023-04-15 12:20:27,477\", \"level\": \"INFO\", \"agent_id\": -1, \"cycle\": -1, \"step\": \"swarm\", \"message\": \"Agents roles:\\n[['p' 'p']]\"} \n",
    "    \"\"\"\n",
    "    if run_id is None:\n",
    "        run = runs[-1]\n",
    "    else:\n",
    "        run = runs[run_id]\n",
    "    print(f\"Loading run {run_id}: {run}\")\n",
    "\n",
    "    log_file = run / \"swarm.json\"\n",
    "\n",
    "    # parse in pandas\n",
    "    df = pd.read_json(log_file, lines=True)\n",
    "    df[\"time\"] = pd.to_datetime(df[\"time\"])\n",
    "    df[\"agent_id\"] = df[\"agent_id\"].astype(int)\n",
    "    df[\"cycle\"] = df[\"cycle\"].astype(int)\n",
    "    df[\"step\"] = df[\"step\"].astype(str)\n",
    "    df[\"message\"] = df[\"message\"].astype(str)\n",
    "    df[\"level\"] = df[\"level\"].astype(str)\n",
    "\n",
    "    # unique agents\n",
    "    agents = df[\"agent_id\"].unique()\n",
    "    print(f\"Found {len(agents)} agents (-1 is swarm itself): {agents}\")\n",
    "\n",
    "    # unique cycles\n",
    "    cycles = df[\"cycle\"].unique()\n",
    "    print(f\"Found {len(cycles)} cycles: {cycles}\")\n",
    "\n",
    "    # unique steps\n",
    "    steps = df[\"step\"].unique()\n",
    "    print(f\"Found {len(steps)} steps: {steps}\")\n",
    "    return df\n",
    "\n",
    "def pretty_display(df, level=None, agent_id=None, cycle=None, step=None, message=None):\n",
    "    \"\"\"Pretty display of the logs\"\"\"\n",
    "    if level is not None:\n",
    "        df = df[df[\"level\"] == level]\n",
    "    if agent_id is not None:\n",
    "        df = df[df[\"agent_id\"] == agent_id]\n",
    "    if cycle is not None:\n",
    "        df = df[df[\"cycle\"] == cycle]\n",
    "    if step is not None:\n",
    "        df = df[df[\"step\"] == step]\n",
    "    if message is not None:\n",
    "        df = df[df[\"message\"] == message]\n",
    "\n",
    "    \n",
    "    for _, row in df.iterrows():\n",
    "        print(\"====================================================================================================================================================\")\n",
    "        print(\"====================================================================================================================================================\")\n",
    "        print(\"====================================================================================================================================================\")\n",
    "        print(\"====================================================================================================================================================\")\n",
    "        print(f\"{row['time']} {row['level']} {row['agent_id']} {row['cycle']} {row['step']}\")\n",
    "        print(row['message'])\n",
    "    return df\n",
    "              "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Loading run 0: D:\\00Repos\\GPT-Swarm\\tmp\\swarm\n",
      "Found 7 agents (-1 is swarm itself): [-1  0  1  2  3  4  5]\n",
      "Found 18 cycles: [-1  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16]\n",
      "Found 2 steps: ['swarm' 'init']\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\Users\\nicel\\AppData\\Local\\Temp\\ipykernel_22060\\2463234948.py:16: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.\n",
      "  df[\"time\"] = pd.to_datetime(df[\"time\"])\n"
     ]
    }
   ],
   "source": [
    "df = load_run(runs, run_id=0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:06:05.311000 INFO 0 2 init\n",
      "Got task: Act as:\n",
      "professional venture capital agency, who has a proven track reckord of consistently funding successful startups\n",
      "Gloabl goal:\n",
      "A new startup just send us their pitch. Find if the startup is worth investing in. The startup is in the space of brain computer interfaces.\n",
      "Their value proposition is to provide objective user experience research for new games beased directly on the brain activity of the user.\n",
      "They have a proprietary algorithm to predict emotions and user experience based on brain activity.\n",
      "They don't develop the games themselves, but they provide the data to game developers.\n",
      "They don't develop any hardware, but they provide the software to collect and analyze the data.\n",
      "More information about them: 'https://brainamics.de', 'https://www.linkedin.com/company/thebrainamics/'\n",
      "\n",
      "Your specific task is:\n",
      "Briefly describe the technology for the non-tech audience. Include links to the main articles in the field. of type: breakdown_to_subtasks with priority: 100\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:06:11.375000 DEBUG 0 2 init\n",
      "To shared memory: Task 'Act as:\n",
      "professional venture capital agency, who has a proven track reckord of consistently funding successful startups\n",
      "Gloabl goal:\n",
      "A new startup just send us their pitch. Find if the startup is worth investing in. The startup is in the space of brain computer interfaces.\n",
      "Their value proposition is to provide objective user experience research for new games beased directly on the brain activity of the user.\n",
      "They have a proprietary algorithm to predict emotions and user experience based on brain activity.\n",
      "They don't develop the games themselves, but they provide the data to game developers.\n",
      "They don't develop any hardware, but they provide the software to collect and analyze the data.\n",
      "More information about them: 'https://brainamics.de', 'https://www.linkedin.com/company/thebrainamics/'\n",
      "\n",
      "Your specific task is:\n",
      "Briefly describe the technology for the non-tech audience. Include links to the main articles in the field.' was broken down into 4 subtasks: [('summarisation', 'Understand the technology behind brain computer interfaces', 80), ('google_search', 'Find the latest articles on brain computer interfaces', 70), ('summarisation', 'Summarize the main findings of the articles', 60), ('breakdown_to_subtasks', 'Breakdown the technology into simpler terms for non-tech audience', 50)]\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:40:25.097000 DEBUG 0 2 init\n",
      "Got task: ca55c7d7-012e-433e-b9bb-b5715c0fcd62\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:40:25.159000 DEBUG 0 2 init\n",
      "Got task: c28d713f-0974-48a9-8d33-da62ee3e9ce0\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:40:28.177000 DEBUG 0 2 init\n",
      "Got task: 9c3a9f33-1dc7-494f-8b7e-b17a80ddf83b\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:40:37.492000 INFO 0 2 init\n",
      "Task:\n",
      "'Act as:\n",
      "professional venture capital agency, who has a proven track reckord of consistently funding successful startups\n",
      "Gloabl goal:\n",
      "A new startup just send us their pitch. Find if the startup is worth investing in. The startup is in the space of brain computer interfaces.\n",
      "Their value proposition is to provide objective user experience research for new games beased directly on the brain activity of the user.\n",
      "They have a proprietary algorithm to predict emotions and user experience based on brain activity.\n",
      "They don't develop the games themselves, but they provide the data to game developers.\n",
      "They don't develop any hardware, but they provide the software to collect and analyze the data.\n",
      "More information about them: 'https://brainamics.de', 'https://www.linkedin.com/company/thebrainamics/'\n",
      "\n",
      "Your specific task is:\n",
      "Briefly describe the technology for the non-tech audience. Include links to the main articles in the field.'\n",
      "\n",
      "was broken down into 5 subtasks:\n",
      "[('summarisation', 'Understand the technology behind brain computer interfaces', 70), ('google_search', 'Find articles explaining brain computer interfaces in simple terms', 60), ('summarisation', 'Summarize the articles in simple terms', 50), ('google_search', 'Find articles about the use of brain computer interfaces in user experience research', 70), ('summarisation', 'Summarize the articles about brain computer interfaces in user experience research in simple terms', 60)]\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:40:39.663000 DEBUG 0 2 init\n",
      "To shared memory: As an AI language model, I do not have the capability to access news articles or social media mentions. However, I can provide a hypothetical solution to gather information about Brainamics.\n",
      "\n",
      "To gather information about Brainamics, one could conduct a thorough online search using search engines such as Google or Bing. This could include searching for news articles, press releases, and social media mentions related to the company. Additionally, one could search for any interviews or podcasts featuring the founders or executives of Brainamics to gain more insight into the company's background and current standing in the market.\n",
      "\n",
      "Another approach could be to reach out to industry experts or analysts who specialize in the gaming or user experience research fields. These experts may have knowledge or insights into Brainamics' value proposition, product offerings, and business model, as well as any unique selling propositions that set them apart from competitors.\n",
      "\n",
      "Finally, one could also consider reaching out to Brainamics directly to request more information about the company and their offerings. This could include requesting a product demo or a meeting with their team to learn more about their proprietary algorithm and how it works to predict emotions and user experience.\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:40:48.802000 DEBUG 0 2 init\n",
      "To shared memory: Brainamics has a unique value proposition in the market, as it offers objective user experience research for new games based on the brain activity of the user. This is an innovative approach that has the potential to revolutionize the gaming industry. \n",
      "\n",
      "Strengths:\n",
      "- Proprietary algorithm: Brainamics has developed a proprietary algorithm that can predict emotions and user experience based on brain activity. This is a unique offering that sets them apart from competitors.\n",
      "- Objective research: Brainamics provides objective research that is based on scientific data. This is a valuable service for game developers who want to create games that are engaging and enjoyable for users.\n",
      "- Software offering: Brainamics provides software to collect and analyze data, which is a cost-effective solution for game developers who do not have the resources to develop their own hardware and software.\n",
      "\n",
      "Weaknesses:\n",
      "- Limited market: The market for user experience research in the gaming industry may be limited. Game developers may not see the value in investing in this type of research, which could limit Brainamics' potential customer base.\n",
      "- Dependence on hardware: Brainamics' value proposition is dependent on the availability of hardware that can measure brain activity. If this technology is not widely available, it could limit the company's ability to provide its services.\n",
      "- Limited product offering: Brainamics does not develop hardware or games themselves, which limits their product offering. This could make it difficult for the company to expand its services and offerings in the future.\n",
      "\n",
      "Overall, Brainamics has a unique value proposition that has the potential to disrupt the gaming industry. However, the company may face challenges in terms of market acceptance and dependence on hardware.\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:48:14.352000 DEBUG 0 2 init\n",
      "Got task: fd2a1762-b444-4ed5-a990-133ab62f5eaa\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:48:21.926000 INFO 0 2 init\n",
      "Task:\n",
      "'Act as:\n",
      "professional venture capital agency, who has a proven track reckord of consistently funding successful startups\n",
      "Gloabl goal:\n",
      "A new startup just send us their pitch. Find if the startup is worth investing in. The startup is in the space of brain computer interfaces.\n",
      "Their value proposition is to provide objective user experience research for new games beased directly on the brain activity of the user.\n",
      "They have a proprietary algorithm to predict emotions and user experience based on brain activity.\n",
      "They don't develop the games themselves, but they provide the data to game developers.\n",
      "They don't develop any hardware, but they provide the software to collect and analyze the data.\n",
      "More information about them: 'https://brainamics.de', 'https://www.linkedin.com/company/thebrainamics/'\n",
      "\n",
      "Your specific task is:\n",
      "Describe the market size, growth rate and trends of this field.'\n",
      "\n",
      "was broken down into 3 subtasks:\n",
      "[('google_search', 'Search for market research reports on brain computer interfaces', 70), ('analysis', 'Analyze the market size and growth rate of the brain computer interface industry', 90), ('analysis', 'Identify the current trends in the brain computer interface industry', 80)]\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:48:43.579000 DEBUG 0 2 init\n",
      "Got task: 5b12b688-c1e5-4c89-ad3d-86342ed03bff\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:48:52.500000 DEBUG 0 2 init\n",
      "To shared memory: 1. Open a web browser and go to Google.com\n",
      "2. Type in \"venture capital agencies\" in the search bar and press enter.\n",
      "3. Scroll through the results and identify smaller venture capital groups that focus on investing in technology startups.\n",
      "4. Visit the websites of these smaller groups and look for information on their investment history.\n",
      "5. Take note of any investments they have made in the brain computer interface space or similar technology startups.\n",
      "6. Compile a list of potential investors for the startup based on their investment history and reputation in the industry.\n",
      "7. Present the list to the professional venture capital agency for further analysis and consideration.\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:48:52.830000 INFO 0 2 init\n",
      "Agent 0 of type analyst thought about the task:\n",
      "For the purpose of 'As a professional venture capital agency with a proven track record of funding successful startups, our global task is to determine if a new startup in the brain computer interface space is worth investing in. The startup provides objective user experience research for new games based on brain activity and has a proprietary algorithm to predict emotions and user experience. Our main mission is to find top investors in this field by searching for venture capital agencies, analyzing their reputation and track record, and researching their investment history to identify potential investors for the startup.' Perform ONLY the following task: Research the investment history of the smaller groups of venture capital agencies to identify potential investors for this startup\n",
      "\n",
      "and shared the following result:\n",
      "1. Open a web browser and go to Google.com\n",
      "2. Type in \"venture capital agencies\" in the search bar and press enter.\n",
      "3. Scroll through the results and identify smaller venture capital groups that focus on investing in technology startups.\n",
      "4. Visit the websites of these smaller groups and look for information on their investment history.\n",
      "5. Take note of any investments they have made in the brain computer interface space or similar technology startups.\n",
      "6. Compile a list of potential investors for the startup based on their investment history and reputation in the industry.\n",
      "7. Present the list to the professional venture capital agency for further analysis and consideration.\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:49:17.341000 DEBUG 0 2 init\n",
      "Got task: 5fc36daf-837e-4de6-b919-2585784e8444\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:49:30.957000 DEBUG 0 2 init\n",
      "To shared memory: To assess the proprietary algorithm's potential for success, I would first evaluate the technology behind the algorithm and its uniqueness compared to existing solutions in the market. I would research the algorithm's capabilities and potential applications, and assess whether it has the potential to disrupt the market or provide significant value to users.\n",
      "\n",
      "I would also evaluate the algorithm's performance and accuracy through testing and analysis of data. This would involve reviewing any available data on the algorithm's performance in real-world scenarios, as well as conducting my own tests to assess its accuracy and reliability.\n",
      "\n",
      "Additionally, I would consider the scalability of the algorithm and its potential for future development and improvement. This would involve assessing the company's research and development capabilities, as well as any potential partnerships or collaborations that could help to drive innovation and growth.\n",
      "\n",
      "Overall, my analysis of the proprietary algorithm's potential for success would involve a thorough evaluation of its technology, performance, and scalability, as well as consideration of the broader market and competitive landscape.\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:49:31.313000 INFO 0 2 init\n",
      "Agent 0 of type googler thought about the task:\n",
      "For the purpose of 'The global task is to determine whether a brain computer interface startup is worth investing in. The focus is on identifying key areas to evaluate in the startup's pitch to make an informed decision, including researching the market and competition, assessing the proprietary algorithm's potential for success, evaluating the team's experience, and assessing the business model and revenue streams.' Perform ONLY the following task: Assess the proprietary algorithms potential for success\n",
      "\n",
      "and shared the following result:\n",
      "To assess the proprietary algorithm's potential for success, I would first evaluate the technology behind the algorithm and its uniqueness compared to existing solutions in the market. I would research the algorithm's capabilities and potential applications, and assess whether it has the potential to disrupt the market or provide significant value to users.\n",
      "\n",
      "I would also evaluate the algorithm's performance and accuracy through testing and analysis of data. This would involve reviewing any available data on the algorithm's performance in real-world scenarios, as well as conducting my own tests to assess its accuracy and reliability.\n",
      "\n",
      "Additionally, I would consider the scalability of the algorithm and its potential for future development and improvement. This would involve assessing the company's research and development capabilities, as well as any potential partnerships or collaborations that could help to drive innovation and growth.\n",
      "\n",
      "Overall, my analysis of the proprietary algorithm's potential for success would involve a thorough evaluation of its technology, performance, and scalability, as well as consideration of the broader market and competitive landscape.\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:51:04.921000 DEBUG 0 2 init\n",
      "Got task: ca92160c-6753-4efd-ab00-863f9a656149\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "====================================================================================================================================================\n",
      "2023-04-29 17:51:15.727000 INFO 0 2 init\n",
      "Task:\n",
      "'Act as:\n",
      "professional venture capital agency, who has a proven track reckord of consistently funding successful startups\n",
      "Gloabl goal:\n",
      "A new startup just send us their pitch. Find if the startup is worth investing in. The startup is in the space of brain computer interfaces.\n",
      "Their value proposition is to provide objective user experience research for new games beased directly on the brain activity of the user.\n",
      "They have a proprietary algorithm to predict emotions and user experience based on brain activity.\n",
      "They don't develop the games themselves, but they provide the data to game developers.\n",
      "They don't develop any hardware, but they provide the software to collect and analyze the data.\n",
      "More information about them: 'https://brainamics.de', 'https://www.linkedin.com/company/thebrainamics/'\n",
      "\n",
      "Your specific task is:\n",
      "Briefly describe the technology for the non-tech audience. Include links to the main articles in the field.'\n",
      "\n",
      "was broken down into 4 subtasks:\n",
      "[('summarisation', 'Understand the technology behind brain computer interfaces', 70), ('google_search', 'Find main articles about brain computer interfaces', 60), ('summarisation', 'Summarize the main articles about brain computer interfaces', 50), ('breakdown_to_subtasks', 'Breakdown the technology of brain computer interfaces into laymans terms', 80)]\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>time</th>\n",
       "      <th>level</th>\n",
       "      <th>agent_id</th>\n",
       "      <th>cycle</th>\n",
       "      <th>step</th>\n",
       "      <th>message</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>2023-04-29 17:06:05.311</td>\n",
       "      <td>INFO</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: Act as:\\nprofessional venture capita...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>2023-04-29 17:06:11.375</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>To shared memory: Task 'Act as:\\nprofessional ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>137</th>\n",
       "      <td>2023-04-29 17:40:25.097</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: ca55c7d7-012e-433e-b9bb-b5715c0fcd62</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>139</th>\n",
       "      <td>2023-04-29 17:40:25.159</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: c28d713f-0974-48a9-8d33-da62ee3e9ce0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>147</th>\n",
       "      <td>2023-04-29 17:40:28.177</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: 9c3a9f33-1dc7-494f-8b7e-b17a80ddf83b</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>150</th>\n",
       "      <td>2023-04-29 17:40:37.492</td>\n",
       "      <td>INFO</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Task:\\n'Act as:\\nprofessional venture capital ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>154</th>\n",
       "      <td>2023-04-29 17:40:39.663</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>To shared memory: As an AI language model, I d...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>159</th>\n",
       "      <td>2023-04-29 17:40:48.802</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>To shared memory: Brainamics has a unique valu...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>315</th>\n",
       "      <td>2023-04-29 17:48:14.352</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: fd2a1762-b444-4ed5-a990-133ab62f5eaa</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>319</th>\n",
       "      <td>2023-04-29 17:48:21.926</td>\n",
       "      <td>INFO</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Task:\\n'Act as:\\nprofessional venture capital ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>332</th>\n",
       "      <td>2023-04-29 17:48:43.579</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: 5b12b688-c1e5-4c89-ad3d-86342ed03bff</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>351</th>\n",
       "      <td>2023-04-29 17:48:52.500</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>To shared memory: 1. Open a web browser and go...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>352</th>\n",
       "      <td>2023-04-29 17:48:52.830</td>\n",
       "      <td>INFO</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Agent 0 of type analyst thought about the task...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>378</th>\n",
       "      <td>2023-04-29 17:49:17.341</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: 5fc36daf-837e-4de6-b919-2585784e8444</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>395</th>\n",
       "      <td>2023-04-29 17:49:30.957</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>To shared memory: To assess the proprietary al...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>396</th>\n",
       "      <td>2023-04-29 17:49:31.313</td>\n",
       "      <td>INFO</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Agent 0 of type googler thought about the task...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>518</th>\n",
       "      <td>2023-04-29 17:51:04.921</td>\n",
       "      <td>DEBUG</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Got task: ca92160c-6753-4efd-ab00-863f9a656149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>536</th>\n",
       "      <td>2023-04-29 17:51:15.727</td>\n",
       "      <td>INFO</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>init</td>\n",
       "      <td>Task:\\n'Act as:\\nprofessional venture capital ...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                       time  level  agent_id  cycle  step   \n",
       "30  2023-04-29 17:06:05.311   INFO         0      2  init  \\\n",
       "35  2023-04-29 17:06:11.375  DEBUG         0      2  init   \n",
       "137 2023-04-29 17:40:25.097  DEBUG         0      2  init   \n",
       "139 2023-04-29 17:40:25.159  DEBUG         0      2  init   \n",
       "147 2023-04-29 17:40:28.177  DEBUG         0      2  init   \n",
       "150 2023-04-29 17:40:37.492   INFO         0      2  init   \n",
       "154 2023-04-29 17:40:39.663  DEBUG         0      2  init   \n",
       "159 2023-04-29 17:40:48.802  DEBUG         0      2  init   \n",
       "315 2023-04-29 17:48:14.352  DEBUG         0      2  init   \n",
       "319 2023-04-29 17:48:21.926   INFO         0      2  init   \n",
       "332 2023-04-29 17:48:43.579  DEBUG         0      2  init   \n",
       "351 2023-04-29 17:48:52.500  DEBUG         0      2  init   \n",
       "352 2023-04-29 17:48:52.830   INFO         0      2  init   \n",
       "378 2023-04-29 17:49:17.341  DEBUG         0      2  init   \n",
       "395 2023-04-29 17:49:30.957  DEBUG         0      2  init   \n",
       "396 2023-04-29 17:49:31.313   INFO         0      2  init   \n",
       "518 2023-04-29 17:51:04.921  DEBUG         0      2  init   \n",
       "536 2023-04-29 17:51:15.727   INFO         0      2  init   \n",
       "\n",
       "                                               message  \n",
       "30   Got task: Act as:\\nprofessional venture capita...  \n",
       "35   To shared memory: Task 'Act as:\\nprofessional ...  \n",
       "137     Got task: ca55c7d7-012e-433e-b9bb-b5715c0fcd62  \n",
       "139     Got task: c28d713f-0974-48a9-8d33-da62ee3e9ce0  \n",
       "147     Got task: 9c3a9f33-1dc7-494f-8b7e-b17a80ddf83b  \n",
       "150  Task:\\n'Act as:\\nprofessional venture capital ...  \n",
       "154  To shared memory: As an AI language model, I d...  \n",
       "159  To shared memory: Brainamics has a unique valu...  \n",
       "315     Got task: fd2a1762-b444-4ed5-a990-133ab62f5eaa  \n",
       "319  Task:\\n'Act as:\\nprofessional venture capital ...  \n",
       "332     Got task: 5b12b688-c1e5-4c89-ad3d-86342ed03bff  \n",
       "351  To shared memory: 1. Open a web browser and go...  \n",
       "352  Agent 0 of type analyst thought about the task...  \n",
       "378     Got task: 5fc36daf-837e-4de6-b919-2585784e8444  \n",
       "395  To shared memory: To assess the proprietary al...  \n",
       "396  Agent 0 of type googler thought about the task...  \n",
       "518     Got task: ca92160c-6753-4efd-ab00-863f9a656149  \n",
       "536  Task:\\n'Act as:\\nprofessional venture capital ...  "
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_i = pretty_display(df, agent_id=0, cycle=2)\n",
    "df_i"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".venv_gptswarm",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.6"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}