Agent actions and gral function. Need agent classes to separate advanced agent functionality.

This commit is contained in:
Shivering Ocelot committed 2025-05-27 23:51:28 -05:00
1 parent c3e55e89f2
commit 9a8e68f021
8 files changed
+222 -53

No files matched your search

+23
View File
@@ -125,6 +125,9 @@ async function runTest() {
await testChats();
// Should be enabled with USE_LLM
await testGral(mainAgentId);
process.exit();
}
@@ -155,4 +158,24 @@ async function testChats () {
body: {chatId: chat.id}
}));
}
}
async function testGral (agentId) {
let res = await send('call-agent-action', {
body: {
agentId,
agentAction: 'gral_message',
arguments: {
message_history: [{
'role': 'user',
'content': 'Add a name argument to the sayHello function in main.py',
}],
file_map: {
'main.py': "def sayHello():\n print('Hello World')\n"
},
},
}
});
console.log('Gral Result:', res);
}