public static class ChatResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public ChatResult.Builder message(Message message)
public ChatResult.Builder traces(List<Trace> traces)
The trace that displays the internal progression, such as reasoning and actions during an execution.
traces
- the value to setpublic 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.
toolResults
- the value to setpublic ChatResult.Builder requiredActions(List<RequiredAction> requiredActions)
A list of actions the agent requires the user or agent client to perform.
requiredActions
- the value to setpublic 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.
guardrailResult
- the value to setpublic ChatResult build()
public ChatResult.Builder copy(ChatResult model)
Copyright © 2016–2025. All rights reserved.