public static class CohereChatResponse.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CohereChatResponse |
build() |
CohereChatResponse.Builder |
citations(List<Citation> citations)
Inline citations for the generated reply.
|
CohereChatResponse.Builder |
copy(CohereChatResponse model) |
CohereChatResponse.Builder |
documents(List<Object> documents)
Documents seen by the model when generating the reply.
|
CohereChatResponse.Builder |
finishReason(CohereChatResponse.FinishReason finishReason)
Why the generation was completed.
|
CohereChatResponse.Builder |
isSearchRequired(Boolean isSearchRequired)
Denotes that a search for documents is required.
|
CohereChatResponse.Builder |
searchQueries(List<SearchQuery> searchQueries)
Generated search queries.
|
CohereChatResponse.Builder |
text(String text)
Contents of the reply generated by the model.
|
public CohereChatResponse.Builder text(String text)
Contents of the reply generated by the model.
text
- the value to setpublic CohereChatResponse.Builder citations(List<Citation> citations)
Inline citations for the generated reply.
citations
- the value to setpublic CohereChatResponse.Builder isSearchRequired(Boolean isSearchRequired)
Denotes that a search for documents is required.
isSearchRequired
- the value to setpublic CohereChatResponse.Builder finishReason(CohereChatResponse.FinishReason finishReason)
Why the generation was completed.
finishReason
- the value to setpublic CohereChatResponse.Builder searchQueries(List<SearchQuery> searchQueries)
Generated search queries.
searchQueries
- the value to setpublic CohereChatResponse.Builder documents(List<Object> documents)
Documents seen by the model when generating the reply. Each document is a JSON String representing the field and values of the document.
documents
- the value to setpublic CohereChatResponse build()
public CohereChatResponse.Builder copy(CohereChatResponse model)
Copyright © 2016–2024. All rights reserved.