Skip to main content

Module format

Module format 

Source

Constants§

LARGE_PROMPT_THRESHOLD
Truncation threshold, matching the shell’s large-prompt limit.

Functions§

format_interjection
Wrap interjection text as a synthetic user message with a mid-turn note. No deferral instruction: the model decides how to weigh it against in-flight work. Output is byte-identical to the shell’s historical format.
user_query
Wrap a user message in the canonical <user_query> envelope.