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 instruction to create a product insert api , read below prodcut schma and receive all fields needed form user., send response to user with inserted data , user Product schma to insert data, , check all data are valid and provided by user 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 that represents the dependencies for the listed tasks based on your provided product schema and requirements:
{ "name": "create_product_api", "schema": { "type": "object", "code": { "prompt": { "task_name": "Create Product Insert API", "description": "This API receives product details from the user, validates the data, and inserts it into the database. It then responds with the inserted data.", "dependencies": [ "Receive product data input from the user including name, price, description, category, etc.", "Validate all required fields are provided and check for correct data types.", "Insert validated product data into the database.", "Fetch the inserted product data from the database.", "Send a response back to the user with the inserted product data." ], "status": "pending", "isImport": false } } } }