File size: 1,319 Bytes
601d457
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
tools = [
    {
        "type": "function",
        "function": {
            "name": "execute_sql_query",
            "description": "Execute a SQL query on the Supabase PostgreSQL database and return the results.",
            "parameters": {
                "type": "object",
                "properties": {
                    "sql_query": {
                        "type": "string",
                        "description": "The SQL query to execute (e.g., 'SELECT * FROM songs WHERE Valence > 0.5')"
                    }
                },
                "required": ["sql_query"]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "download_spotify_songs",
            "description": "Retrieve a list of songs requested by the user that are available for download.",
            "parameters": {
                "type": "object",
                "properties": {
                    "tracks": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Obtain a list of track names available for download as songs."
                    }
                },
                "required": ["tracks"]
            }
        }
    }
]