HarnessContextResult
Purpose and behavior
Section titled “Purpose and behavior”What a context strategy’s compact() returns before each model request of the built-in harness: the messages that replace the history, or undefined to keep it unchanged. Replacement messages are validated and lose their reasoning blocks.