Run + Expected Output
Running the Hello World Example
npx create-next-app@latest my-m4trix-app
cd my-m4trix-apppnpm add @m4trix/corepnpm devcurl -X POST http://localhost:3000/api/chat \
-H "Content-Type: application/json" \
-d '{"query": "Hello"}'Expected Output
event: agent-response
data: {"name":"agent-response","meta":{"runId":"..."},"payload":{"answer":"You asked: Hello","done":true}}Next
Last updated