Save Example Query
save_example_queryStore user-confirmed question and SQL pairs as verified examples, so similar questions can reuse validated queries and SQL attributes can be mined from correct answers.
Instructions
Store a question and SQL pair the user confirmed as correct. Verified examples are offered by get_query_context for similar questions and mined by suggest_sql_attributes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL that answered it correctly. | |
| note | No | Why this SQL is right (definitions, exclusions). | |
| question | Yes | The question in the user's words. | |
| datasource | No | Datasource name. Optional when only one datasource is registered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||