Skip to main content

Module protocol

Module protocol 

Source

Structs§

InstructionTemplate

Functions§

encode_instructions
Encode an instruction suffix using short codes with budget hints.
encode_instructions_with_snr
Encode instructions with SNR metric for context quality awareness.
format_savings
format_type_short
instruction_decoder_block
Build the decoder block that explains all instruction codes (sent once per session).
instruction_encoding_savings
Estimate token savings of encoded vs full instruction text.
shorten_path