Code enthusiast shaping tomorrow's tech landscape, one algorithm at a time. Committed to pushing boundaries and sharing knowledge with the DEV community.
Python enthusiast and code crafter, weaving data into insightful stories. Dedicated to transforming complex concepts into accessible knowledge for the DEV community and beyond.
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.
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.
Awesome. Bookmarking this for future reference.
Thanks, Trent.
same
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.
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.