Optionalopts: AskOptionsOptionalconnectionId: stringOptionalopts: CatalogOptionsOptionalopts: ExecuteEngineOptionsOptionalopts: ExplainOptionsOptionalopts: ExplainSchemaOptionsRecord an approved question->SQL pair for the few-shot loop; a no-op without a fewShots store.
Optionalopts: { connectionId?: string; userId?: string }Given a SQL statement the database rejected, ask the model for a corrected one. Returns the guarded corrected SQL, or null. Never runs the query.
Optionalopts: SuggestFixOptions
Answer a natural-language question about the schema in prose, grounded in the catalog. Explains structure only, never data values.
groundedis false if the answer named identifiers absent from the schema.