Public Access
25 lines
648 B
C#
25 lines
648 B
C#
namespace MeetingAssistant.Workflow;
|
|
|
|
public enum WorkflowRulesEditorChatRole
|
|
{
|
|
User,
|
|
Agent
|
|
}
|
|
|
|
public sealed record WorkflowRulesEditorChatMessage(
|
|
WorkflowRulesEditorChatRole Role,
|
|
string Content);
|
|
|
|
public sealed record WorkflowRulesEditorChatResult(
|
|
string Response,
|
|
IReadOnlyList<WorkflowRulesEditorChatMessage> Conversation);
|
|
|
|
public interface IWorkflowRulesEditorChatPipeline
|
|
{
|
|
Task<WorkflowRulesEditorChatResult> SendAsync(
|
|
IReadOnlyList<WorkflowRulesEditorChatMessage> conversation,
|
|
string userMessage,
|
|
CancellationToken cancellationToken,
|
|
Action<string>? statusChanged = null);
|
|
}
|