Example of response object model : CreateModel { "prompt": { "task_name": "Create…
- User
User: Example of response object model : CreateModel { "prompt": { "task_name": "Create Handle Recurring Bookings Api", "description": "Generate a Node.js Handle Recurring Bookings Api with given dependenceis", "output": "Return only the function code as specified in dependencies", "dependencies": [ "Create a Api to manage recurring bookings. Export: exports.createRecurringBooking = async () => {...}", ], "status": "pending", "isImport": false, } }
User: Api function model : exports.apiName = async () => {...}
User: Tasks: Create a node.js server instruction with given discriptions , Port 4000 , user express, ratelimitter, helmt, cors as universal access , user error middle wares for routers. Generate dependencies for the listed tasks and provide a JSON response in the following structure:
Response Format: JSON.
Assistant:
- Assistantjson
{ "prompt": { "task_name": "Create Node.js Server with Middleware", "description": "Generate a Node.js server using Express with specified middleware and configurations.", "output": "Return only the server setup code with specified middleware.", "dependencies": [ "Set up an Express server to listen on port 4000.", "Implement rate limiting using the 'express-rate-limit' package.", "Use 'helmet' for security headers.", "Enable CORS for universal access using the 'cors' package.", "Implement error handling middleware for routing errors." ], "status": "pending", "isImport": false } }