Implement basic agent and toolset functionality

This commit is contained in:
Shivering Ocelot committed 2025-05-21 20:18:01 -05:00
1 parent 7b3326524e
commit bd5c4e002f
6 files changed
+377 -40

No files matched your search

+4 -3
View File
@@ -60,17 +60,18 @@ function waitMessage() {
async function main() {
const prompt = process.argv[2]
let agents = (await send('get-agents')).agents;
let chats = (await send('get-chats')).chats;
console.log("Agents", agents);
console.log("Send prompt:", prompt)
let promptResponse = await send('send-agent-prompt', {
let result = await send('send-agent-prompt', {
body: {
agentId: agents[0].id,
content: "Hello World!",
content: prompt,
}
});
console.log("[AGENT]")
console.log(promptResponse);
console.log(result.response);
}
async function runTest() {