类 ChatMessage

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializable.Base
com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.node.BaseJsonNode
com.fasterxml.jackson.databind.node.ContainerNode<com.fasterxml.jackson.databind.node.ObjectNode>
com.fasterxml.jackson.databind.node.ObjectNode
com.zhipu.oapi.service.v4.model.ChatMessage
所有已实现的接口:
com.fasterxml.jackson.core.TreeNode, com.fasterxml.jackson.databind.JsonSerializable, com.fasterxml.jackson.databind.node.JsonNodeCreator, Serializable, Iterable<com.fasterxml.jackson.databind.JsonNode>

public class ChatMessage extends com.fasterxml.jackson.databind.node.ObjectNode
另请参阅:
  • 嵌套类概要

    从接口继承的嵌套类/接口 com.fasterxml.jackson.databind.JsonSerializable

    com.fasterxml.jackson.databind.JsonSerializable.Base
  • 字段概要

    从类继承的字段 com.fasterxml.jackson.databind.node.ObjectNode

    _children

    从类继承的字段 com.fasterxml.jackson.databind.node.ContainerNode

    _nodeFactory
  • 构造器概要

    构造器
    构造器
    说明
     
    ChatMessage(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
     
    ChatMessage(String role, Object content)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    setContent(Object content)
     
    void
     
    void
     
    void
    setTool_call_id(String tool_call_id)
     
    void
     

    从类继承的方法 com.fasterxml.jackson.databind.node.ObjectNode

    _at, _childrenEqual, _put, asToken, deepCopy, elements, equals, equals, fieldNames, fields, findParent, findParents, findValue, findValues, findValuesAsText, get, get, getNodeType, hashCode, isEmpty, isEmpty, isObject, path, path, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, putArray, putNull, putObject, putPOJO, putRawValue, remove, remove, removeAll, replace, required, retain, retain, serialize, serializeWithType, set, setAll, setAll, size, with, withArray, without, without

    从类继承的方法 com.fasterxml.jackson.databind.node.ContainerNode

    arrayNode, arrayNode, asText, binaryNode, binaryNode, booleanNode, missingNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, pojoNode, rawValueNode, textNode

    从类继承的方法 com.fasterxml.jackson.databind.node.BaseJsonNode

    findPath, numberType, required, toPrettyString, toString, traverse, traverse

    从类继承的方法 com.fasterxml.jackson.databind.JsonNode

    _reportRequiredViolation, _this, asBoolean, asBoolean, asDouble, asDouble, asInt, asInt, asLong, asLong, asText, at, at, bigIntegerValue, binaryValue, booleanValue, canConvertToInt, canConvertToLong, decimalValue, doubleValue, findParents, findValues, findValuesAsText, floatValue, has, has, hasNonNull, hasNonNull, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, require, requiredAt, requiredAt, requireNonNull, shortValue, textValue

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 java.lang.Iterable

    forEach, spliterator
  • 构造器详细资料

    • ChatMessage

      public ChatMessage()
    • ChatMessage

      public ChatMessage(String role, Object content)
    • ChatMessage

      public ChatMessage(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
  • 方法详细资料

    • setRole

      public void setRole(String role)
    • setContent

      public void setContent(Object content)
    • setName

      public void setName(String name)
    • setTool_calls

      public void setTool_calls(List<ToolCalls> tool_calls)
    • setTool_call_id

      public void setTool_call_id(String tool_call_id)