Package com.datadog.api.client.v2.model
Class LLMObsInferenceRunResult
java.lang.Object
com.datadog.api.client.v2.model.LLMObsInferenceRunResult
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsInferenceRunResult
extends Object
The output of a completed LLM inference call.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLLMObsInferenceRunResult(String assessment, String content, String finishReason, List<LLMObsInferenceCode> inferenceCodes, Long inputTokens, Long latency, Long outputTokens, List<LLMObsInferenceTool> tools, Long totalTokens) -
Method Summary
Modifier and TypeMethodDescriptionaddInferenceCodesItem(LLMObsInferenceCode inferenceCodesItem) addToolsItem(LLMObsInferenceTool toolsItem) assessment(String assessment) booleanReturn true if this LLMObsInferenceRunResult object is equal to o.finishReason(String finishReason) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.An optional assessment of the inference output quality.The text content of the model response.The reason the model stopped generating tokens.List of generated code snippets for the inference configuration.Number of input tokens consumed.The model's internal reasoning or thinking output, if available.Request latency in milliseconds.Number of output tokens generated.getTools()List of tools available to the model.Total tokens used (input plus output).inthashCode()inferenceCodes(List<LLMObsInferenceCode> inferenceCodes) inputTokens(Long inputTokens) internalReasoning(LLMObsInternalReasoning internalReasoning) outputTokens(Long outputTokens) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAssessment(String assessment) voidsetContent(String content) voidsetFinishReason(String finishReason) voidsetInferenceCodes(List<LLMObsInferenceCode> inferenceCodes) voidsetInputTokens(Long inputTokens) voidsetInternalReasoning(LLMObsInternalReasoning internalReasoning) voidsetLatency(Long latency) voidsetOutputTokens(Long outputTokens) voidsetTools(List<LLMObsInferenceTool> tools) voidsetTotalTokens(Long totalTokens) tools(List<LLMObsInferenceTool> tools) toString()totalTokens(Long totalTokens)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ASSESSMENT
- See Also:
-
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_FINISH_REASON
- See Also:
-
JSON_PROPERTY_INFERENCE_CODES
- See Also:
-
JSON_PROPERTY_INPUT_TOKENS
- See Also:
-
JSON_PROPERTY_INTERNAL_REASONING
- See Also:
-
JSON_PROPERTY_LATENCY
- See Also:
-
JSON_PROPERTY_OUTPUT_TOKENS
- See Also:
-
JSON_PROPERTY_TOOLS
- See Also:
-
JSON_PROPERTY_TOTAL_TOKENS
- See Also:
-
-
Constructor Details
-
LLMObsInferenceRunResult
public LLMObsInferenceRunResult() -
LLMObsInferenceRunResult
-
-
Method Details
-
assessment
-
getAssessment
An optional assessment of the inference output quality.- Returns:
- assessment
-
setAssessment
-
content
-
getContent
The text content of the model response.- Returns:
- content
-
setContent
-
finishReason
-
getFinishReason
The reason the model stopped generating tokens.- Returns:
- finishReason
-
setFinishReason
-
inferenceCodes
-
addInferenceCodesItem
-
getInferenceCodes
List of generated code snippets for the inference configuration.- Returns:
- inferenceCodes
-
setInferenceCodes
-
inputTokens
-
getInputTokens
Number of input tokens consumed.- Returns:
- inputTokens
-
setInputTokens
-
internalReasoning
-
getInternalReasoning
The model's internal reasoning or thinking output, if available.- Returns:
- internalReasoning
-
setInternalReasoning
-
latency
-
getLatency
Request latency in milliseconds.- Returns:
- latency
-
setLatency
-
outputTokens
-
getOutputTokens
Number of output tokens generated.- Returns:
- outputTokens
-
setOutputTokens
-
tools
-
addToolsItem
-
getTools
List of tools available to the model.- Returns:
- tools
-
setTools
-
totalTokens
-
getTotalTokens
Total tokens used (input plus output).- Returns:
- totalTokens
-
setTotalTokens
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LLMObsInferenceRunResult
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LLMObsInferenceRunResult object is equal to o. -
hashCode
public int hashCode() -
toString
-