update tool call response to always include convo ID for emails so they are not hallunicated
This commit is contained in:
parent
cb4a06ce5c
commit
010795d00b
@ -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}`
|
||||
|
||||
@ -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}`);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user