Example of response object model : { "name": "promptname", "schema": { "type":…
- User
User: Example of response object model :
{"name": "prompt_name", "schema": { "type": "string", "code": { "prompt": { "task_name": "task name", "description": "generated description",
"dependencies": [ "generated description as array of instructions for tasks", ], "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:
- Assistant
Here is a JSON response following the specified structure based on the tasks you provided:
{ "name": "create_node_server", "schema": { "type": "string", "code": { "prompt": { "task_name": "Create a Node.js Server", "description": "Instructions to set up a Node.js server with Express, using helmet, cors, and rate-limiter for security and access control, and implement error middleware for routers.", "dependencies": [ "1. Install necessary packages: express, helmet, cors, rate-limiter.", "2. Set up the server using Express.", "3. Configure helmet for security enhancements.", "4. Enable cors for universal access.", "5. Implement rate-limiter middleware for request rate limiting.", "6. Define routes and attach error middleware for handling errors.", "7. Set the server to listen on port 4000." ], "status": "pending", "isImport": false } } } }