Package com.alibaba.cloud.ai.util
Class ChatResponseUtil
java.lang.Object
com.alibaba.cloud.ai.util.ChatResponseUtil
- Author:
- zhangshenghang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.ai.chat.model.ChatResponsecreateCustomStatusResponse(String statusMessage) 创建自定义状态响应static org.springframework.ai.chat.model.ChatResponsecreateCustomStatusResponse(String statusMessage, StreamResponseType type) 创建自定义状态响应static org.springframework.ai.chat.model.ChatResponsecreateStatusResponse(String statusMessage) static org.springframework.ai.chat.model.ChatResponsecreateStatusResponse(String statusMessage, StreamResponseType type)
-
Constructor Details
-
ChatResponseUtil
public ChatResponseUtil()
-
-
Method Details
-
createCustomStatusResponse
public static org.springframework.ai.chat.model.ChatResponse createCustomStatusResponse(String statusMessage) 创建自定义状态响应- Parameters:
statusMessage- 状态消息- Returns:
- ChatResponse 状态响应对象
-
createCustomStatusResponse
public static org.springframework.ai.chat.model.ChatResponse createCustomStatusResponse(String statusMessage, StreamResponseType type) 创建自定义状态响应- Parameters:
statusMessage- 状态消息- Returns:
- ChatResponse 状态响应对象
-
createStatusResponse
public static org.springframework.ai.chat.model.ChatResponse createStatusResponse(String statusMessage, StreamResponseType type) -
createStatusResponse
public static org.springframework.ai.chat.model.ChatResponse createStatusResponse(String statusMessage)
-