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 data 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’s a JSON response that represents the dependencies for the listed tasks, formatted according to the structure you've provided:
{ "name": "create_product_insert_api", "schema": { "type": "string", "code": { "prompt": { "task_name": "Create Product Insert API", "description": "This API function will handle the insertion of new product data provided by the user.", "dependencies": [ "Receive product schema and user input data", "Validate user input against product schema", "Insert validated product data into the database", "Send a response back to the user with the inserted product data" ], "status": "pending", "isImport": false } } } }Explanation of the Dependencies
- Receive product schema and user input data: This step involves capturing necessary data from the user based on the product schema.