Class RobotProtobuf

java.lang.Object
com.bytedesk.ai.robot.RobotProtobuf
All Implemented Interfaces:
Serializable

public class RobotProtobuf extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • RobotProtobuf

      public RobotProtobuf()
  • Method Details

    • fromJson

      public static RobotProtobuf fromJson(String user)
    • fromEntity

      public static RobotProtobuf fromEntity(RobotEntity entity)
      从 RobotEntity 创建完整的 RobotProtobuf
      Parameters:
      entity - 机器人实体
      Returns:
      完整的机器人协议对象(包含 LLM 配置)
    • fromEntity

      public static RobotProtobuf fromEntity(RobotEntity entity, String type)
      从 RobotEntity 创建完整的 RobotProtobuf,保留指定的 type
      Parameters:
      entity - 机器人实体
      type - 指定的类型(用于兼容旧数据)
      Returns:
      完整的机器人协议对象(包含 LLM 配置)
    • toJson

      public String toJson()
    • toUserProtobuf

      public UserProtobuf toUserProtobuf()