zhou zhou
17 小时以前 eb49fb9a98d6dd4e4361daf4eac4f9313236b8e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.vincent.rsf.server.ai.service;
 
import com.vincent.rsf.server.ai.dto.AiChatRequest;
import com.vincent.rsf.server.ai.dto.AiChatRuntimeDto;
import com.vincent.rsf.server.ai.dto.AiChatSessionDto;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
 
import java.util.List;
 
public interface AiChatService {
 
    AiChatRuntimeDto getRuntime(String promptCode, Long sessionId, Long userId, Long tenantId);
 
    List<AiChatSessionDto> listSessions(String promptCode, Long userId, Long tenantId);
 
    SseEmitter stream(AiChatRequest request, Long userId, Long tenantId);
 
    void removeSession(Long sessionId, Long userId, Long tenantId);
}