11 lines
412 B
TypeScript
11 lines
412 B
TypeScript
import { sendChatMessage } from './app/actions/chat-actions';
|
|
async function test() {
|
|
const res = await sendChatMessage('hello', undefined, undefined);
|
|
console.log('MSG 1:', res);
|
|
|
|
// I need the conversation ID from the DB or I can just pass undefined which causes a second new chat
|
|
const res2 = await sendChatMessage('how do I use MCP', undefined, undefined);
|
|
console.log('MSG 2:', res2);
|
|
}
|
|
test();
|