Public Access
Add meeting workflow automation
This commit is contained in:
@@ -107,6 +107,30 @@ public sealed class MarkdownMeetingArtifactStore : IMeetingArtifactStore
|
||||
artifacts.AssistantContextPath);
|
||||
}
|
||||
|
||||
public async Task AppendAssistantContextAsync(
|
||||
MeetingSessionArtifacts artifacts,
|
||||
string content,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(content))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(artifacts.AssistantContextPath)!);
|
||||
var prefix = File.Exists(artifacts.AssistantContextPath) &&
|
||||
new FileInfo(artifacts.AssistantContextPath).Length > 0
|
||||
? Environment.NewLine
|
||||
: "";
|
||||
await File.AppendAllTextAsync(
|
||||
artifacts.AssistantContextPath,
|
||||
prefix + content.TrimEnd() + Environment.NewLine,
|
||||
cancellationToken);
|
||||
logger.LogInformation(
|
||||
"Appended automation context to assistant context note {AssistantContextPath}",
|
||||
artifacts.AssistantContextPath);
|
||||
}
|
||||
|
||||
private static string Render(
|
||||
MeetingSessionArtifacts artifacts,
|
||||
MeetingNote meetingNote,
|
||||
|
||||
Reference in New Issue
Block a user