Package | Description |
---|---|
com.oracle.bmc.generativeaiinference.model |
Modifier and Type | Method and Description |
---|---|
static CohereChatResponse.Builder |
CohereChatResponse.builder()
Create a new builder.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.chatHistory(List<CohereMessage> chatHistory)
The list of previous messages between the user and the model.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.citations(List<Citation> citations)
Inline citations for the generated response.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.copy(CohereChatResponse model) |
CohereChatResponse.Builder |
CohereChatResponse.Builder.documents(List<Object> documents)
The documents that the model can refer to when generating a response.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.errorMessage(String errorMessage)
If there is an error during the streaming scenario, then the
errorMessage
parameter contains details for the error. |
CohereChatResponse.Builder |
CohereChatResponse.Builder.finishReason(CohereChatResponse.FinishReason finishReason)
Why the generation stopped.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.isSearchRequired(Boolean isSearchRequired)
If set to true, a search for documents is required.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.prompt(String prompt)
The full prompt that was sent to the model if isEcho is true when request.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.searchQueries(List<SearchQuery> searchQueries)
The generated search queries.
|
CohereChatResponse.Builder |
CohereChatResponse.Builder.text(String text)
Contents of the response that the model generates.
|
CohereChatResponse.Builder |
CohereChatResponse.toBuilder() |
CohereChatResponse.Builder |
CohereChatResponse.Builder.toolCalls(List<CohereToolCall> toolCalls)
A list of tool calls generated by the model.
|
Copyright © 2016–2024. All rights reserved.