You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -108,6 +113,57 @@ function assertSqlResultWithinSizeBudget<T extends AgentSqlExecutionResult>(resu
108
113
returnresult;
109
114
}
110
115
116
+
/**
117
+
* Appended to the instructions of a committed write whose payload had to shrink,
118
+
* so the model knows the rows are missing by design and how to get them.
119
+
*/
120
+
constOMITTED_MUTATION_ROWS_INSTRUCTION=
121
+
"The affected rows were omitted from this result because the payload exceeded the result-size budget. The write itself succeeded, so do not repeat it: run a follow-up SELECT query if you need the affected rows.";
122
+
123
+
/**
124
+
* Shrinks an oversized committed write result instead of rejecting it.
125
+
*
126
+
* `executeSqlMutationStatement` and `executeSqlMutationBatch` return after their
127
+
* transaction committed, so answering with `QUERY_RESULT_TOO_LARGE` would report
128
+
* a successful write as a failure and invite the caller to retry it and
129
+
* duplicate the data. Only the returned rows are dropped; the counts, the echoed
0 commit comments