Class ChatResult.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiagentruntime.model.ChatResult.Builder
-
- Enclosing class:
- ChatResult
public static class ChatResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatResult
build()
ChatResult.Builder
copy(ChatResult model)
ChatResult.Builder
guardrailResult(String guardrailResult)
Captures the result of guardrail evaluations as JSON string performed on either the input to the agent or the output generated by the agent.ChatResult.Builder
message(Message message)
ChatResult.Builder
requiredActions(List<RequiredAction> requiredActions)
A list of actions the agent requires the user or agent client to perform.ChatResult.Builder
toolResults(Map<String,String> toolResults)
A map where each key is a toolId and the value contains tool type and additional dynamic results.ChatResult.Builder
traces(List<Trace> traces)
The trace that displays the internal progression, such as reasoning and actions during an execution.
-
-
-
Method Detail
-
message
public ChatResult.Builder message(Message message)
-
traces
public ChatResult.Builder traces(List<Trace> traces)
The trace that displays the internal progression, such as reasoning and actions during an execution.- Parameters:
traces
- the value to set- Returns:
- this builder
-
toolResults
public ChatResult.Builder toolResults(Map<String,String> toolResults)
A map where each key is a toolId and the value contains tool type and additional dynamic results.- Parameters:
toolResults
- the value to set- Returns:
- this builder
-
requiredActions
public ChatResult.Builder requiredActions(List<RequiredAction> requiredActions)
A list of actions the agent requires the user or agent client to perform.- Parameters:
requiredActions
- the value to set- Returns:
- this builder
-
guardrailResult
public ChatResult.Builder guardrailResult(String guardrailResult)
Captures the result of guardrail evaluations as JSON string performed on either the input to the agent or the output generated by the agent.- Parameters:
guardrailResult
- the value to set- Returns:
- this builder
-
build
public ChatResult build()
-
copy
public ChatResult.Builder copy(ChatResult model)
-
-