public static class CohereMessage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CohereMessage |
build() |
CohereMessage.Builder |
copy(CohereMessage model) |
CohereMessage.Builder |
message(String message)
Contents of the chat message.
|
CohereMessage.Builder |
role(CohereMessage.Role role)
One of CHATBOT|USER to identify who the message is coming from.
|
public CohereMessage.Builder role(CohereMessage.Role role)
One of CHATBOT|USER to identify who the message is coming from.
role
- the value to setpublic CohereMessage.Builder message(String message)
Contents of the chat message.
message
- the value to setpublic CohereMessage build()
public CohereMessage.Builder copy(CohereMessage model)
Copyright © 2016–2024. All rights reserved.