Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace CohereChatResponse

The response to the chat conversation.

Properties

Const apiFormat

apiFormat: string = "COHERE"

Optional citations

citations: Array<Citation>

Inline citations for the generated reply.

Optional documents

documents: Array<any>

Documents seen by the model when generating the reply. Each document is a JSON String representing the field and values of the document.

finishReason

finishReason: FinishReason

Why the generation was completed.

Optional isSearchRequired

isSearchRequired: undefined | false | true

Denotes that a search for documents is required.

Optional searchQueries

searchQueries: Array<SearchQuery>

Generated search queries.

text

text: string

Contents of the reply generated by the model.

Methods

getDeserializedJsonObj

getJsonObj