Example of response object model : { "name": "promptname", "schema": { "type":…
- User
User: Example of response object model :
code{"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: instructions to register api Generate dependencies for the listed tasks and provide a JSON response in the following structure:
Response Format: JSON.
Assistant:
- Assistant
Here’s how the JSON response would look based on the instruction you provided. This response includes dependencies for registering an API function model as requested:
json{ "name": "register_api", "schema": { "type": "string", "code": { "prompt": { "task_name": "Register API Function", "description": "This task involves creating an API function and exporting it for usage.", "dependencies": [ "Define the function that will be exported.", "Ensure that the function is asynchronous if it needs to handle promises.", "Add necessary imports for any modules the API may depend on.", "Document the API with comments detailing its usage", "Export the function using the module.exports syntax." ], "status": "pending", "isImport": false } } } }