
In this guide, you will learn how to integrate a Mastra AI agent with the AG-UI protocol. Also, we will cover how to integrate the AG-UI + Mastra A...
For further actions, you may consider blocking this person and/or reporting abuse
2 errors in the first curl :
thread_id -> threadId
run_id -> runId
This is the correct version
curl -X POST "http://localhost:8000/mastra-agent" \
-H "Content-Type: application/json" \
-d '{
"threadId": "test_thread_123",
"runId": "test_run_456",
"messages": [
{
"id": "msg_1",
"role": "user",
"content": "Analyze AAPL stock with a $10000 investment from 2023-01-01"
}
],
"tools": [],
"context": [],
"forwarded_props": {},
"state": {}
}'
Thanks, Olivier!
Love seeing a Mastra + CopilotKit tutorial on Dev.to!
Mastra + CopilotKit work quite well.
I was looking for more examples of Mastra and CopilotKit and I don't think I'm alone either! Thank you for putting this together!
You are welcome, Alex.
Hope you find this guide helpful.
Awesome. Bookmarking this for future reference.
Thanks, Trent.
same
Great tutorial, Bonnie. I've been building with Mastra and was pleasantly surprised by how easy it is- especially since I can stick with my primary language, TypeScript.
Thanks, Nathan.
I am happy to hear that you have been building with Mastra.