update tool call response to always include convo ID for emails so they are not hallunicated

This commit is contained in:
Timothy Carambat
2026-04-21 16:19:05 -07:00
parent cb4a06ce5c
commit 010795d00b
4 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ module.exports.GmailGetInbox = {
)
.join("\n");
return `Found ${resultCount} email threads:\n\n${summary}\n\nUse the thread ID with gmail-read-thread to read the full conversation.`;
return `Found ${resultCount} email threads:\n\n${summary}\n\nAlways include the full thread ID in the response. Use the thread ID with gmail-read-thread to read the full conversation.`;
} catch (e) {
this.super.handlerProps.log(
`gmail-get-inbox error: ${e.message}`

View File

@@ -107,7 +107,7 @@ module.exports.GmailSearch = {
)
.join("\n");
return `Found ${resultCount} email threads:\n\n${summary}\n\nUse the thread ID with gmail-read-thread to read the full conversation.`;
return `Found ${resultCount} email threads:\n\n${summary}\n\nAlways include the full thread ID in the response. Use the thread ID with gmail-read-thread to read the full conversation.`;
} catch (e) {
this.super.handlerProps.log(`gmail-search error: ${e.message}`);
this.super.introspect(`Error: ${e.message}`);

View File

@@ -63,7 +63,7 @@ module.exports.OutlookGetInbox = {
}
const summary = formatMessageSummary(messages);
return `Found ${resultCount} messages in inbox:\n\n${summary}\n\nUse the conversation ID with outlook-read-thread to read the full conversation.`;
return `Found ${resultCount} messages in inbox:\n\n${summary}\n\nAlways include the conversation ID in the response. Use the conversation ID with outlook-read-thread to read the full conversation.`;
} catch (e) {
return handleSkillError(this, "outlook-get-inbox", e);
}

View File

@@ -89,7 +89,7 @@ module.exports.OutlookSearch = {
}
const summary = formatMessageSummary(messages);
return `Found ${resultCount} messages:\n\n${summary}\n\nUse the conversation ID with outlook-read-thread to read the full conversation.`;
return `Found ${resultCount} messages:\n\n${summary}\n\nAlways include the conversation ID in the response. Use the conversation ID with outlook-read-thread to read the full conversation.`;
} catch (e) {
return handleSkillError(this, "outlook-search", e);
}