public class TranslationMessage extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| TranslationMessage() | 
| TranslationMessage(TranslationMessage 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 文本内容 | 
| String | getRole()Get 角色,可选值包括 system、user、assistant、 tool。 | 
| void | setContent(String Content)Set 文本内容 | 
| void | setRole(String Role)Set 角色,可选值包括 system、user、assistant、 tool。 | 
| 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 TranslationMessage()
public TranslationMessage(TranslationMessage source)
public String getRole()
public void setRole(String Role)
Role - 角色,可选值包括 system、user、assistant、 tool。public String getContent()
public void setContent(String Content)
Content - 文本内容Copyright © 2025. All rights reserved.