QueryAssistantAssistance is a union datatype for either a successful assistance result, or an error. Based on this, use either the QueryAssistantSuccess or QueryAssistantError datatypes and their parameters — or both. Below are tables for each:

Table: QueryAssistantSuccess

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
diagnosticsQueryAssistantDiagnosticyes Short-Term The diagnostics of the query assistant. See QueryAssistantDiagnostic.
resultStringyes Short-Term The results of the diagnostics.

Table: QueryAssistantError

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
errorStringyes Short-Term The error from the query assistant.