mirror of https://github.com/buster-so/buster.git
added title to the update-message tool and routed to the 'summaryTitle'
This commit is contained in:
parent
2367e81f66
commit
1ec4b17143
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue