HarnessContextInput
Parameters and properties
Section titled “Parameters and properties”messagesRequiredreadonly ModelMessage[]Current effective history about to be sent.stepRequirednumberCurrent step number.modelRequiredAgentModelNormalized model of the agent.signalRequiredAbortSignalTurn cancellation signal.summarizeRequired(messages: readonly ModelMessage[]) => Promise<string>Asks the agent model for a factual summary of the given messages. The request counts toward usage and budgets; an empty or cut-off summary fails with code response.