Class AssistantMessage.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.AssistantMessage.Builder
-
- Enclosing class:
- AssistantMessage
public static class AssistantMessage.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssistantMessage.Builderannotations(List<Annotation> annotations)List of annotations generated by the model, including inline citations from web search results.AssistantMessagebuild()AssistantMessage.Buildercontent(List<ChatContent> content)AssistantMessage.Buildercopy(AssistantMessage model)AssistantMessage.Buildername(String name)An optional name for the participant.AssistantMessage.Builderrefusal(String refusal)The refusal message by the assistant.AssistantMessage.BuildertoolCalls(List<ToolCall> toolCalls)The tool calls generated by the model, such as function calls.
-
-
-
Method Detail
-
content
public AssistantMessage.Builder content(List<ChatContent> content)
-
name
public AssistantMessage.Builder name(String name)
An optional name for the participant.Provides the model information to differentiate between participants of the same role.
- Parameters:
name- the value to set- Returns:
- this builder
-
refusal
public AssistantMessage.Builder refusal(String refusal)
The refusal message by the assistant.- Parameters:
refusal- the value to set- Returns:
- this builder
-
toolCalls
public AssistantMessage.Builder toolCalls(List<ToolCall> toolCalls)
The tool calls generated by the model, such as function calls.- Parameters:
toolCalls- the value to set- Returns:
- this builder
-
annotations
public AssistantMessage.Builder annotations(List<Annotation> annotations)
List of annotations generated by the model, including inline citations from web search results.- Parameters:
annotations- the value to set- Returns:
- this builder
-
build
public AssistantMessage build()
-
copy
public AssistantMessage.Builder copy(AssistantMessage model)
-
-