Download examples/context-mysql.json from karmx/TinyQuery-140M: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/karmx/TinyQuery-140M/resolve/main/examples/context-mysql.json
- Command line
-
hf download hf://karmx/TinyQuery-140M/examples/context-mysql.json
-
curl -L -o context-mysql.json https://huggingface.co/karmx/TinyQuery-140M/resolve/main/examples/context-mysql.json
1.37 kB
| { | |
| "backend": "mysql", | |
| "project_id": "demo", | |
| "schema": [ | |
| "CREATE TABLE customers (id INTEGER PRIMARY KEY, name TEXT, city TEXT, amount REAL);" | |
| ], | |
| "tools": [ | |
| { | |
| "name": "query", | |
| "description": "Execute a read-only MySQL SELECT query.", | |
| "inputSchema": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| { | |
| "name": "list_tables", | |
| "description": "List database tables and their columns.", | |
| "inputSchema": { | |
| "type": "object", | |
| "properties": { | |
| "schemas": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| } | |
| }, | |
| "required": [], | |
| "additionalProperties": false | |
| } | |
| }, | |
| { | |
| "name": "describe_table", | |
| "description": "Inspect columns and types for one table.", | |
| "inputSchema": { | |
| "type": "object", | |
| "properties": { | |
| "table": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "table" | |
| ], | |
| "additionalProperties": false | |
| } | |
| } | |
| ], | |
| "policy": "Read-only database access. Use provided tools. Ask when required information is missing." | |
| } |