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, } } } }
data_types : dependencies:array of strings description:string status:string
User: Api function model : exports.apiName = async () => {...}
User: Tasks: , Extract data from req.body including productId and all necessary fields , Validate input data to ensure all required fields are present and correctly formatted , Query the database to find the existing product by productId , Update the product information with the new data received from user , Handle errors appropriately (e.g. product not found, validation errors) , Send a response back to the user containing the updated product data 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 structure that includes dependencies based on the tasks you provided. Each task is outlined with its dependencies, description, and other properties required in the response object model.
{ "name": "updateProductApi", "schema": { "type": "string", "code": { "prompt": { "task_name": "Update Product Information", "description": "API function to update the product details based on the provided productId and input data.", "dependencies": [ "Extract data from req.body including productId and all necessary fields", "Validate input data to ensure all required fields are present and correctly formatted", "Query the database to find the existing product by productId", "Update the product information with the new data received from user", "Handle errors appropriately (e.g., product not found, validation errors)", "Send a response back to the user containing the updated product data" ], "status": "pending", "isImport": false } } } }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.