added title to the update-message tool and routed to the 'summaryTitle'

This commit is contained in:
dal 2025-07-08 17:11:17 -06:00
parent 2367e81f66
commit 1ec4b17143
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 3 additions and 1 deletions

View File

@ -127,12 +127,13 @@ Generate a concise update message for the data team.`;
}
const updateMessage = toolCall.args.update_message;
const title = toolCall.args.title;
// Return all input data plus the formatted message
return {
...inputData,
summaryMessage: updateMessage,
summaryTitle: 'Follow-up Update', // Default title for follow-up messages
summaryTitle: title,
message: updateMessage, // Store the update message in the message field as well
};
} catch (error) {

View File

@ -9,6 +9,7 @@ interface GenerateUpdateMessageOutput {
// Zod schema for generate update message input validation
export const generateUpdateMessageSchema = z.object({
title: z.string().describe('The title of the update message.'),
update_message: z
.string()
.min(1)