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 具体文本内容
|
String |
getRole()
Get 角色, ‘system', ‘user','assistant'或者'tool', 在message中, 除了system,其他必须是user与assistant交替(一问一答)
|
void |
setContent(String Content)
Set 具体文本内容
|
void |
setRole(String Role)
Set 角色, ‘system', ‘user','assistant'或者'tool', 在message中, 除了system,其他必须是user与assistant交替(一问一答)
|
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, toJsonString
public Message()
public Message(Message source)
public String getRole()
public void setRole(String Role)
Role
- 角色, ‘system', ‘user','assistant'或者'tool', 在message中, 除了system,其他必须是user与assistant交替(一问一答)public String getContent()
public void setContent(String Content)
Content
- 具体文本内容Copyright © 2025. All rights reserved.