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 a jwt accesttoken check funcition istructions 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 reflects the required object model with dependencies for the task "create a JWT access token check function":
{ "name": "create_jwt_access_token_check_function", "schema": { "type": "string", "code": { "prompt": { "task_name": "Create JWT Access Token Check Function", "description": "Implement a function to verify the validity of a JWT access token.", "dependencies": [ "Define the function signature, taking JWT token as an argument.", "Use a library (e.g., jsonwebtoken in Node.js) to decode and verify the token.", "Handle errors for expired or invalid tokens gracefully.", "Return user information if the token is valid, or null/undefined if invalid." ], "status": "pending", "isImport": false } } } }Explanation of Dependencies:
- - This is the blueprint of your function, explaining what inputs it will accept.