clean code
This commit is contained in:
parent
5c6e499051
commit
278751c107
|
|
@ -183,39 +183,6 @@ public class ChatHubConversationHook : ConversationHookBase
|
|||
return sidecar == null || !sidecar.IsEnabled();
|
||||
}
|
||||
|
||||
private async Task InitClientConversation(ConversationViewModel conversation)
|
||||
{
|
||||
await _chatHub.Clients.User(_user.Id).SendAsync(INIT_CLIENT_CONVERSATION, conversation);
|
||||
}
|
||||
|
||||
private async Task ReceiveClientMessage(ChatResponseModel model)
|
||||
{
|
||||
await _chatHub.Clients.User(_user.Id).SendAsync(RECEIVE_CLIENT_MESSAGE, model);
|
||||
}
|
||||
|
||||
private async Task ReceiveAssistantMessage(string? json)
|
||||
{
|
||||
await _chatHub.Clients.User(_user.Id).SendAsync(RECEIVE_ASSISTANT_MESSAGE, json);
|
||||
}
|
||||
|
||||
private async Task GenerateSenderAction(ConversationSenderActionModel action)
|
||||
{
|
||||
await _chatHub.Clients.User(_user.Id).SendAsync(GENERATE_SENDER_ACTION, action);
|
||||
}
|
||||
|
||||
private async Task DeleteMessage(ChatResponseModel model)
|
||||
{
|
||||
await _chatHub.Clients.User(_user.Id).SendAsync(DELETE_MESSAGE, model);
|
||||
}
|
||||
|
||||
private async Task GenerateNotification(string? json)
|
||||
{
|
||||
await _chatHub.Clients.User(_user.Id).SendAsync(GENERATE_NOTIFICATION, json);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private async Task InitClientConversation(string conversationId, ConversationViewModel conversation)
|
||||
{
|
||||
if (_settings.EventDispatchBy == EventDispatchType.Group)
|
||||
|
|
|
|||
|
|
@ -437,27 +437,6 @@ public class StreamingLogHook : ConversationHookBase, IContentGeneratingHook, IR
|
|||
|
||||
|
||||
#region Private methods
|
||||
//private async Task SendContentLog(ContentLogInputModel input)
|
||||
//{
|
||||
// await _chatHub.Clients.User(_user.Id).SendAsync(CONTENT_LOG_GENERATED, BuildContentLog(input));
|
||||
//}
|
||||
|
||||
//private async Task SendStateLog(string conversationId, string agentId, Dictionary<string, string> states, RoleDialogModel message)
|
||||
//{
|
||||
// await _chatHub.Clients.User(_user.Id).SendAsync(STATE_LOG_GENERATED, BuildStateLog(conversationId, agentId, states, message));
|
||||
//}
|
||||
|
||||
//private async Task SendAgentQueueLog(string conversationId, string log)
|
||||
//{
|
||||
// await _chatHub.Clients.User(_user.Id).SendAsync(AGENT_QUEUE_CHANGED, BuildAgentQueueChangedLog(conversationId, log));
|
||||
//}
|
||||
|
||||
//private async Task SendStateChange(StateChangeModel stateChange)
|
||||
//{
|
||||
// await _chatHub.Clients.User(_user.Id).SendAsync(STATE_CHANGED, BuildStateChangeLog(stateChange));
|
||||
//}
|
||||
|
||||
|
||||
private async Task SendContentLog(string conversationId, ContentLogInputModel input)
|
||||
{
|
||||
if (_settings.EventDispatchBy == EventDispatchType.Group)
|
||||
|
|
|
|||
Loading…
Reference in a new issue