1
22 小时以前 744cd972c118953540b19aa9f5ca97dd40e68b6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.vincent.rsf.server.ai.service;
 
import com.vincent.rsf.server.ai.model.AiPromptContext;
 
public interface AiPromptContextProvider {
 
    /**
     * 判断当前上下文是否需要由该提供器补充系统提示词。
     */
    boolean supports(AiPromptContext context);
 
    /**
     * 根据当前请求上下文生成一段可附加到系统 Prompt 的业务背景描述。
     */
    String buildContext(AiPromptContext context);
}