File size: 984 Bytes
d128719
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
    }
}]