Public Access
Implement meeting assistant v1
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
namespace MeetingAssistant.MeetingNotes;
|
||||
|
||||
public static class MeetingNoteTemplate
|
||||
{
|
||||
public static MeetingNote Create(
|
||||
string title,
|
||||
DateTimeOffset? startTime = null,
|
||||
DateTimeOffset? endTime = null,
|
||||
IEnumerable<string>? attendees = null,
|
||||
IEnumerable<string>? projects = null,
|
||||
string transcriptPath = "",
|
||||
string assistantContextPath = "",
|
||||
string summaryPath = "",
|
||||
string userNotes = "")
|
||||
{
|
||||
var notePath = "";
|
||||
var frontmatter = new MeetingNoteFrontmatter
|
||||
{
|
||||
Title = title,
|
||||
StartTime = startTime,
|
||||
EndTime = endTime,
|
||||
Attendees = attendees?.Where(value => !string.IsNullOrWhiteSpace(value)).ToList() ?? [],
|
||||
Projects = projects?.Where(value => !string.IsNullOrWhiteSpace(value)).ToList() ?? [],
|
||||
Transcript = transcriptPath,
|
||||
AssistantContext = assistantContextPath,
|
||||
Summary = summaryPath
|
||||
};
|
||||
|
||||
return new MeetingNote(notePath, frontmatter, userNotes);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user