Package com.bytedesk.ai.robot
Class RobotProtobuf
java.lang.Object
com.bytedesk.ai.robot.RobotProtobuf
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RobotProtobuffromEntity(RobotEntity entity) 从 RobotEntity 创建完整的 RobotProtobufstatic RobotProtobuffromEntity(RobotEntity entity, String type) 从 RobotEntity 创建完整的 RobotProtobuf,保留指定的 typestatic RobotProtobuftoJson()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
uid
-
nickname
-
avatar
-
type
-
orgUid
-
extra
-
kbSourceEnabled
-
kbEnabled
-
kbUid
-
llm
-
-
Constructor Details
-
RobotProtobuf
public RobotProtobuf()
-
-
Method Details
-
fromJson
-
fromEntity
从 RobotEntity 创建完整的 RobotProtobuf- Parameters:
entity- 机器人实体- Returns:
- 完整的机器人协议对象(包含 LLM 配置)
-
fromEntity
从 RobotEntity 创建完整的 RobotProtobuf,保留指定的 type- Parameters:
entity- 机器人实体type- 指定的类型(用于兼容旧数据)- Returns:
- 完整的机器人协议对象(包含 LLM 配置)
-
toJson
-
toUserProtobuf
-