Open dmaretskyi opened 4 years ago
Test 1: Teamwork - Messenger 1 document 1 party Vary the number of agents and how chatty they are.
The test should run daily and should be clear when the system stops working.
This can start as manual kickoff, but should be automated over time.
This should test the models instead of Teamwork UI.
import { Orchestrator } from '@dxos/testing';
test('test', async () => {
const orchestrator = new Orchestrator();
await orchestrator.start(); // starts local in-process bot factory, creates a party
const agent: AgentHandle = await orchestrator.startAgent('./agent.js', { ...some props }); // spawns a bot, adds it to a party
await agent.send('send chat message', { text: 'FOO' });
const messages = await agent.send('get chat messages');
})
class TestAgent extends Bot {
...
handleCommand(cmd, props) {
switch(cmd) {
case 'send chat message': this.model.send(props.text); break;
case 'get chat messages': return this.model.messages;
}
}
}
new TestAgent(getConfig()).start();
Block/Status: Initial plan is to test messenger model. Messenger model depends on publish to NPM. Publish is gated on @richburdon review.
Testing concerns: