Given an array of rows (a list of lists), returns e.g. AlbumId | Title | ArtistId 1 | For Those About To Rock We Salute You | 1 2 | Let It Rip | 2 3 | Restless and Wild | 2
(rows)
| 83 | |
| 84 | |
| 85 | def format_rows_from_table(rows): |
| 86 | """ Given an array of rows (a list of lists), returns e.g. |
| 87 | |
| 88 | AlbumId | Title | ArtistId |
| 89 | 1 | For Those About To Rock We Salute You | 1 |
| 90 | 2 | Let It Rip | 2 |
| 91 | 3 | Restless and Wild | 2 |
| 92 | |
| 93 | """ |
| 94 | return "\n".join([" | ".join([str(item) for item in row]) for row in rows]) |
| 95 | |
| 96 | |
| 97 | def build_system_prompt(flavor): |
no outgoing calls