Skip to content

@sqlrooms/ai / getAiTableSchemaContextLimits

Function: getAiTableSchemaContextLimits()

getAiTableSchemaContextLimits(limits?): object

Normalizes optional AI table schema context limits.

Parameters

ParameterTypeDescription
limits?TableSchemaContextLimitsOptional partial limit overrides.

Returns

object

Resolved limits with default thresholds and a names-only threshold that is never lower than the full-schema threshold.

NameTypeDefault value
fullSchemaThresholdnumber-
namesOnlyThresholdnumber-
maxCharsnumber | undefinedlimits.maxChars