Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Interactive AI tutor powered by Google Gemini with Redis response caching.
POST /api/v2/ai-tutor/ask
Authorization: Bearer <jwt_access_token>
lessonId
string
promptType
EXPLAIN
SUMMARIZE
QUIZ_HINT
SIMPLIFY
CUSTOM
customQuestion
{ "lessonId": "9f1e8d7c-6b5a-4321-fedc-ba9876543210", "promptType": "EXPLAIN", "customQuestion": "Can you explain how gas fees work in this context?" }
{ "success": true, "data": { "requestId": "req-987213", "lessonId": "9f1e8d7c-6b5a-4321-fedc-ba9876543210", "promptType": "EXPLAIN", "answer": "Gas fees represent the computational effort required to execute operations on the blockchain...", "isCached": false, "remainingDailyQuota": 18 }, "message": "AI response returned successfully" }
POST /api/v2/ai-tutor/feedback
requestId
rating
number
1
-1
comment
{ "requestId": "req-987213", "rating": 1, "comment": "Very clear explanation!" }
{ "success": true, "message": "Feedback recorded successfully" }