public class Message extends AbstractModel
header, skipSign| Constructor and Description |
|---|
Message() |
Message(Message source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContent()
Get Content.
|
String |
getReasoningContent()
Get Chain of thought content.
|
String |
getRole()
Get Role.
|
void |
setContent(String Content)
Set Content.
|
void |
setReasoningContent(String ReasoningContent)
Set Chain of thought content.
|
void |
setRole(String Role)
Set Role.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Message()
public Message(Message source)
public String getRole()
public void setRole(String Role)
Role - Role.public String getContent()
public void setContent(String Content)
Content - Content.public String getReasoningContent()
public void setReasoningContent(String ReasoningContent)
ReasoningContent - Chain of thought content. The ReasoningConent parameter only supports output parameters, and is only returned by the deepseek-r1 model.Copyright © 2025. All rights reserved.