task_tool = [{ "type": "function", "name": "create_tasks", "description": "Create a list of tasks to be completed using tools to better answer the users query.Eg: If the user asks to research on a particular topic , create a personalised list of tasks like ['search web on topic', 'crawl websites on topic', 'search images on topic', 'run code to create graphs on topic','give detailed answer']", "parameters": { "type": "object", "properties": { "userid": { "type": "string", "description": "userid of the user who is requesting the tasks. This is used to track the tasks and their completion status.Set as 1 if not available.", }, "task_list": { "type": "list", "description": "A list of tasks to be completed.", } }, "required": [ "userid","task_list" ], "additionalProperties": False } }]