Merge pull request #621 from iceljc/master

refine email sender and image generator prompt
This commit is contained in:
iceljc 2024-09-04 13:45:00 -05:00 committed by GitHub
commit 1a42d91192
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View file

@ -63,7 +63,7 @@ public class RoleDialogModel : ITrackableMessage
/// It's ideal to render in rich content in UI.
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object Data { get; set; }
public object? Data { get; set; }
[JsonIgnore(Condition = JsonIgnoreCondition.Always)]
public string ImageUrl { get; set; }

View file

@ -1,2 +1,4 @@
Please call handle_email_sender if user wants to send email.
** Please take a look at the conversation and decide whether user wants to send email with files/attachments/images or not.
** Please take a look at the conversation and decide whether user wants to send email.
** If yes, then decide whether user wants to send email with files/attachments/images or not.
** If user does not want to send email explicitly or only upload images or files, please do not respond anything email related message.
** Please call handle_email_sender if user wants to send email.

View file

@ -1 +1,2 @@
Please call generate_image if user wants you to provide or generate an image or picture.
** Please call generate_image if user wants you to provide or generate an image or picture.
** If user does not generate image explicitly, please do not call generate_image.

View file

@ -43,6 +43,7 @@ public class SummaryPlanFn : IFunctionCallback
var msgCopy = RoleDialogModel.From(message);
await fn.InvokeFunction("get_table_definition", msgCopy);
var ddlStatements = msgCopy.Content;
message.Data = null;
// Summarize and generate query
var summaryPlanPrompt = await GetPlanSummaryPrompt(task, message.Content, ddlStatements);