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
Copy file name to clipboardExpand all lines: packages/ai/src/ai/mcp/investigate.ts
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -302,6 +302,12 @@ export async function runInvestigation(
302
302
"",
303
303
"Tool trace (what was actually queried and returned):",
304
304
compactTrace(trace.toolCalls),
305
+
...(trace.truncated
306
+
? [
307
+
"",
308
+
"NOTE: This investigation was stopped by a time limit before the agent finished gathering data. Base your memo only on the partial tool trace above. State in the verdict reason that the run was time-limited, and set confidence to 'low' unless the partial evidence is unambiguous.",
answer: `The investigation reached its time budget after ${stepCount} step${stepCount===1 ? "" : "s"} and was stopped before composing a final summary. The partial tool trace is the only evidence gathered.`,
0 commit comments