package com.seer.teach.teacher.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.seer.teach.teacher.module.entity.LlmRequestLogsEntity;

import java.util.List;

/**
 * <p>
 * 服务类，用于处理大语言模型请求日志的相关业务逻辑。
 * </p>
 *
 * @author Wang
 * @since 2025-10-29 19:08:14
 */
public interface LlmRequestLogsService extends IService<LlmRequestLogsEntity> {

    <T> void saveSseLog(Integer userId, String requestDesc, Integer sessionId, T reqParams, T keyParameters);

    <T> void saveRequestLog(Integer userId, String requestDesc, Integer sessionId, T reqParams, T keyParameters);

    <T> void updateResponseLog(Integer sessionId, T responseData);

    void updateErrorLog(Integer sessionId, String errorMessage);

    void updateEmptyResponseLog(Integer sessionId);
}
