Temporary agents and chats
This commit is contained in:
1 parent
fe596761dc
commit
e07f8ee05f
15 files changed
+447
-172
No files matched your search
+16
-1
@@ -1,6 +1,6 @@
|
||||
const WebSocket = require('ws');
|
||||
|
||||
const USE_LLM = true;
|
||||
const USE_LLM = false;
|
||||
|
||||
const hostname = 'localhost:5000';
|
||||
const ws = new WebSocket(`ws://${hostname}/ws`);
|
||||
@@ -144,6 +144,7 @@ async function runTest() {
|
||||
));
|
||||
|
||||
await testChats();
|
||||
await testTemporary();
|
||||
|
||||
if (USE_LLM) {
|
||||
await testGral(mainAgentId);
|
||||
@@ -181,6 +182,20 @@ async function testChats () {
|
||||
}
|
||||
}
|
||||
|
||||
async function testTemporary () {
|
||||
let createAgentResponse = await send('create-agent', {body: {
|
||||
name: 'First Agent',
|
||||
description: 'First agent does nothing',
|
||||
kind: 'expert',
|
||||
temporary: true,
|
||||
data: {
|
||||
system_prompt: 'you respond every message with only the world "Acknowledged"',
|
||||
}
|
||||
}});
|
||||
|
||||
console.log("Created Temporary Agent: ", createAgentResponse);
|
||||
}
|
||||
|
||||
async function testGral (agentId) {
|
||||
let res = await send('call-agent-action', {
|
||||
body: {
|
||||
|
||||
Reference in new issue
Block a user