You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1019 B
51 lines
1019 B
package xyz.wbsite.mcp.basic.model;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 调用工具的结果类
|
|
* 用于封装工具调用后的返回数据和错误状态
|
|
*
|
|
* @author wangbing
|
|
*/
|
|
public class CallToolResult extends Data {
|
|
|
|
/**
|
|
* 工具调用返回的内容数据列表
|
|
*/
|
|
private List<TextContentData> content;
|
|
|
|
/**
|
|
* 工具调用是否出错
|
|
*/
|
|
private Boolean isError;
|
|
|
|
public CallToolResult() {
|
|
}
|
|
|
|
public CallToolResult(List<TextContentData> content, Boolean isError) {
|
|
this.content = content;
|
|
this.isError = isError;
|
|
}
|
|
|
|
public CallToolResult(List<TextContentData> content) {
|
|
this(content, false);
|
|
}
|
|
|
|
public List<TextContentData> getContent() {
|
|
return content;
|
|
}
|
|
|
|
public void setContent(List<TextContentData> content) {
|
|
this.content = content;
|
|
}
|
|
|
|
public Boolean getIsError() {
|
|
return isError;
|
|
}
|
|
|
|
public void setIsError(Boolean isError) {
|
|
this.isError = isError;
|
|
}
|
|
}
|