public class AiResponse extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
AiResponse.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected AiAgentInfo |
aiAgentInfo |
protected String |
answer
The answer provided by the LLM.
|
protected String |
completionReason
The reason the response finishes.
|
protected OffsetDateTime |
createdAt
The ISO date formatted timestamp of when the answer to the prompt was created.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
AiResponse(AiResponse.Builder builder) |
|
AiResponse(String answer,
OffsetDateTime createdAt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AiAgentInfo |
getAiAgentInfo() |
String |
getAnswer() |
String |
getCompletionReason() |
OffsetDateTime |
getCreatedAt() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final OffsetDateTime createdAt
protected String completionReason
protected AiAgentInfo aiAgentInfo
public AiResponse(String answer, OffsetDateTime createdAt)
protected AiResponse(AiResponse.Builder builder)
public OffsetDateTime getCreatedAt()
public String getCompletionReason()
public AiAgentInfo getAiAgentInfo()