test(voice): raise the Realtime size budget to 56,500 for show_street_level

This commit is contained in:
Said Turksever committed 2026-11-03 18:07:59 +00:00
1 parent 34f694c6f2
commit fed397a764
1 file changed
+4 -4
+4 -4
View File
@@ -714,13 +714,13 @@ test('without an operator Overpass the prompt never offers place search', () =>
});
test('the Realtime prompt stays within its size budget', () => {
// Instructions plus tool schemas, in characters, under the same 55,500
// Instructions plus tool schemas, in characters, under the same 56,500
// ceiling as the deixis prompt lint. Voice geometry adds resolve_area,
// find_imagery and the analyst area scopes (osm_query only with an
// operator Overpass).
// operator Overpass); show_street_level adds its tool and routing rule.
const size = (overpass) =>
realtimeInstructions(undefined, { overpass }).length +
JSON.stringify(realtimeTools({ overpass })).length;
assert.ok(size(false) <= 55_500, `default prompt ${size(false)} chars`);
assert.ok(size(true) <= 55_500, `with Overpass ${size(true)} chars`);
assert.ok(size(false) <= 56_500, `default prompt ${size(false)} chars`);
assert.ok(size(true) <= 56_500, `with Overpass ${size(true)} chars`);
});