Public Access
Add transcript line workflow rules
PR and Push Build/Test / build-and-test (push) Failing after 13m27s
PR and Push Build/Test / build-and-test (push) Failing after 13m27s
This commit is contained in:
@@ -6,7 +6,8 @@ public enum MeetingWorkflowEventType
|
||||
{
|
||||
Created,
|
||||
StateTransition,
|
||||
SpeakerIdentified
|
||||
SpeakerIdentified,
|
||||
TranscriptLine
|
||||
}
|
||||
|
||||
public sealed record MeetingWorkflowEvent(
|
||||
@@ -14,7 +15,8 @@ public sealed record MeetingWorkflowEvent(
|
||||
MeetingSessionArtifacts Artifacts,
|
||||
AssistantContextState? FromState = null,
|
||||
AssistantContextState? ToState = null,
|
||||
string? SpeakerName = null)
|
||||
string? SpeakerName = null,
|
||||
string? TranscriptLineText = null)
|
||||
{
|
||||
public static MeetingWorkflowEvent Created(MeetingSessionArtifacts artifacts)
|
||||
{
|
||||
@@ -35,4 +37,16 @@ public sealed record MeetingWorkflowEvent(
|
||||
{
|
||||
return new MeetingWorkflowEvent(MeetingWorkflowEventType.SpeakerIdentified, artifacts, SpeakerName: speakerName);
|
||||
}
|
||||
|
||||
public static MeetingWorkflowEvent TranscriptLine(
|
||||
MeetingSessionArtifacts artifacts,
|
||||
string line,
|
||||
string speakerName)
|
||||
{
|
||||
return new MeetingWorkflowEvent(
|
||||
MeetingWorkflowEventType.TranscriptLine,
|
||||
artifacts,
|
||||
SpeakerName: speakerName,
|
||||
TranscriptLineText: line);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user