Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Citation |
build() |
Citation.Builder |
copy(Citation model) |
Citation.Builder |
docId(String docId)
The id of the retrieved document, if available.
|
Citation.Builder |
pageNumbers(List<Integer> pageNumbers)
The page numbers on the retrieved document, if available.
|
Citation.Builder |
sourceLocation(SourceLocation sourceLocation) |
Citation.Builder |
sourceText(String sourceText)
The text that’s the source for the agent’s response.
|
Citation.Builder |
title(String title)
The title of the source text, if available.
|
public Citation.Builder sourceText(String sourceText)
The text that’s the source for the agent’s response.
sourceText
- the value to setpublic Citation.Builder sourceLocation(SourceLocation sourceLocation)
public Citation.Builder title(String title)
The title of the source text, if available.
title
- the value to setpublic Citation.Builder docId(String docId)
The id of the retrieved document, if available.
docId
- the value to setpublic Citation.Builder pageNumbers(List<Integer> pageNumbers)
The page numbers on the retrieved document, if available.
pageNumbers
- the value to setpublic Citation build()
public Citation.Builder copy(Citation model)
Copyright © 2016–2024. All rights reserved.