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
'The person chose Ask: they want an answer drawn from their connected sources, not an action.',
23
+
'',
24
+
'- Answer only from the knowledge bases attached to this message. Search them with the knowledge tool `query` operation, and search again with other phrasings when the first pass returns little. Do not read a base or its metadata first; search.',
25
+
"- Do not use integrations, workflows, tables, files, or the browser. Integration tools are unavailable on this turn. When the question needs live data that is not indexed (today's inbox, a calendar), say that Ask answers from indexed content and suggest Build.",
26
+
'- Cite every claim with a `<source>` tag exactly as the knowledge tool describes. When nothing relevant is found, say so plainly instead of guessing.',
27
+
'- Keep the answer short: lead with the answer, then the supporting points.',
28
+
].join('\n'),
29
+
}
30
+
31
+
/** The turn's contexts with the Ask instructions appended when the request asked for Ask mode. */
@@ -33,6 +34,10 @@ export function clearHandlers(): void {
33
34
handlerRegistry.clear()
34
35
}
35
36
37
+
/** An Ask turn answers from the attached knowledge bases; the agent reaches no connected service. */
38
+
constASK_MODE_INTEGRATION_REFUSAL=
39
+
'Integration tools are not available in Ask mode. Answer from the attached knowledge bases with the knowledge tool (query operation), cite each source, and say so when nothing relevant is found.'
40
+
36
41
exportasyncfunctionexecuteTool(
37
42
toolId: string,
38
43
params: Record<string,unknown>,
@@ -76,6 +81,9 @@ export async function executeTool(
0 commit comments