Class RagToolOutput.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiagentruntime.model.RagToolOutput.Builder
-
- Enclosing class:
- RagToolOutput
public static class RagToolOutput.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RagToolOutput
build()
RagToolOutput.Builder
citations(List<Citation> citations)
Citations to data sources used for tool’s generated answer.RagToolOutput.Builder
copy(RagToolOutput model)
RagToolOutput.Builder
paragraphCitations(List<ParagraphCitation> paragraphCitations)
A list of citations used to generate the paragraphs of the tool’s generated answer.RagToolOutput.Builder
text(String text)
Specifies the generated answer from the RAG tool.RagToolOutput.Builder
toolId(String toolId)
RagToolOutput.Builder
toolName(String toolName)
-
-
-
Method Detail
-
toolId
public RagToolOutput.Builder toolId(String toolId)
-
toolName
public RagToolOutput.Builder toolName(String toolName)
-
text
public RagToolOutput.Builder text(String text)
Specifies the generated answer from the RAG tool.- Parameters:
text
- the value to set- Returns:
- this builder
-
citations
public RagToolOutput.Builder citations(List<Citation> citations)
Citations to data sources used for tool’s generated answer.- Parameters:
citations
- the value to set- Returns:
- this builder
-
paragraphCitations
public RagToolOutput.Builder paragraphCitations(List<ParagraphCitation> paragraphCitations)
A list of citations used to generate the paragraphs of the tool’s generated answer.- Parameters:
paragraphCitations
- the value to set- Returns:
- this builder
-
build
public RagToolOutput build()
-
copy
public RagToolOutput.Builder copy(RagToolOutput model)
-
-