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