-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.ts
29 lines (26 loc) · 863 Bytes
/
index.ts
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
import 'dotenv/config';
import { triageAgent } from '../triage-weather-email/triageAgent';
import { weatherAgent } from '../triage-weather-email/weatherAgent';
import { emailAgent } from '../triage-weather-email/emailAgent';
import { pokemonAgent } from '../pokemon/pokemonAgent';
import { filesystemAgent } from '../filesystem/filesystemAgent';
import { webScraperAgent } from '../webscraper/webScraperAgent';
import { localAgent } from '../local/localAgent';
import { runDemoLoop } from '../run';
const allAgents = [
triageAgent,
weatherAgent,
emailAgent,
pokemonAgent,
filesystemAgent,
webScraperAgent,
localAgent,
];
// Let all agents transfer to each other
allAgents.forEach((agent) => {
const otherAgents = allAgents.filter((a) => a.id !== agent.id);
agent.tools.push(...otherAgents);
});
runDemoLoop({
initialAgent: triageAgent,
});