Temporary agents and chats

This commit is contained in:
Shivering Ocelot committed 2026-04-16 15:16:03 -05:00
1 parent fe596761dc
commit e07f8ee05f
15 files changed
+447 -172

No files matched your search

+16 -1
View File
@@ -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: {