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 an example of a JSON response for the dependencies based on the tasks you've listed, formatted to fit the provided object model:
{ "name": "update_product", "schema": { "type": "string", "code": { "prompt": { "task_name": "Update Product Information", "description": "This process updates product details in the database based on user input.", "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 } } } }Explanation of the Response:
-
name: This specifies the name of the task prompt, which in this case is "update_product".
-
schema: This includes the type and the code block containing the prompt.
- type: Indicates that the schema type is a string.
- code: This section includes the detailed prompt for the task, including the task name, description, dependencies, status, and whether it's an import or not.
-
dependencies: This is an array of strings detailing the tasks that need to be performed in order to complete the overall task of updating product information. Each string represents a step in the process.
This structured response adheres to the format you provided while clearly defining the workflow for updating product data.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.