KnowledgeBaseMessage Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. models. KnowledgeBaseMessage
- com.
Implements
public final class KnowledgeBaseMessage
implements JsonSerializable<KnowledgeBaseMessage>
The natural language message style object.
Constructor Summary
| Constructor | Description |
|---|---|
| KnowledgeBaseMessage(List<KnowledgeBaseMessageContent> content) |
Creates an instance of Knowledge |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
|
List<Knowledge |
getContent()
Get the content property: The content property. |
| String |
getRole()
Get the role property: The role of the tool response. |
|
Knowledge |
setRole(String role)
Set the role property: The role of the tool response. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KnowledgeBaseMessage
public KnowledgeBaseMessage(List<KnowledgeBaseMessageContent> content)
Creates an instance of KnowledgeBaseMessage class.
Parameters:
Method Details
fromJson
public static KnowledgeBaseMessage fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeBaseMessage from the JsonReader.
Parameters:
Returns:
Throws:
getContent
public List<KnowledgeBaseMessageContent> getContent()
Get the content property: The content property.
Returns:
getRole
public String getRole()
Get the role property: The role of the tool response.
Returns:
setRole
public KnowledgeBaseMessage setRole(String role)
Set the role property: The role of the tool response.
Parameters:
Returns: