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 Details

  • Constructor Details

  • Method Details

    • assessment

      public LLMObsInferenceRunResult assessment(String assessment)
    • getAssessment

      @Nullable public String getAssessment()
      An optional assessment of the inference output quality.
      Returns:
      assessment
    • setAssessment

      public void setAssessment(String assessment)
    • content

      public LLMObsInferenceRunResult content(String content)
    • getContent

      public String getContent()
      The text content of the model response.
      Returns:
      content
    • setContent

      public void setContent(String content)
    • finishReason

      public LLMObsInferenceRunResult finishReason(String finishReason)
    • getFinishReason

      public String getFinishReason()
      The reason the model stopped generating tokens.
      Returns:
      finishReason
    • setFinishReason

      public void setFinishReason(String finishReason)
    • inferenceCodes

      public LLMObsInferenceRunResult inferenceCodes(List<LLMObsInferenceCode> inferenceCodes)
    • addInferenceCodesItem

      public LLMObsInferenceRunResult addInferenceCodesItem(LLMObsInferenceCode inferenceCodesItem)
    • getInferenceCodes

      public List<LLMObsInferenceCode> getInferenceCodes()
      List of generated code snippets for the inference configuration.
      Returns:
      inferenceCodes
    • setInferenceCodes

      public void setInferenceCodes(List<LLMObsInferenceCode> inferenceCodes)
    • inputTokens

      public LLMObsInferenceRunResult inputTokens(Long inputTokens)
    • getInputTokens

      public Long getInputTokens()
      Number of input tokens consumed.
      Returns:
      inputTokens
    • setInputTokens

      public void setInputTokens(Long inputTokens)
    • internalReasoning

      public LLMObsInferenceRunResult internalReasoning(LLMObsInternalReasoning internalReasoning)
    • getInternalReasoning

      @Nullable public LLMObsInternalReasoning getInternalReasoning()
      The model's internal reasoning or thinking output, if available.
      Returns:
      internalReasoning
    • setInternalReasoning

      public void setInternalReasoning(LLMObsInternalReasoning internalReasoning)
    • latency

      public LLMObsInferenceRunResult latency(Long latency)
    • getLatency

      public Long getLatency()
      Request latency in milliseconds.
      Returns:
      latency
    • setLatency

      public void setLatency(Long latency)
    • outputTokens

      public LLMObsInferenceRunResult outputTokens(Long outputTokens)
    • getOutputTokens

      public Long getOutputTokens()
      Number of output tokens generated.
      Returns:
      outputTokens
    • setOutputTokens

      public void setOutputTokens(Long outputTokens)
    • tools

    • addToolsItem

      public LLMObsInferenceRunResult addToolsItem(LLMObsInferenceTool toolsItem)
    • getTools

      public List<LLMObsInferenceTool> getTools()
      List of tools available to the model.
      Returns:
      tools
    • setTools

      public void setTools(List<LLMObsInferenceTool> tools)
    • totalTokens

      public LLMObsInferenceRunResult totalTokens(Long totalTokens)
    • getTotalTokens

      public Long getTotalTokens()
      Total tokens used (input plus output).
      Returns:
      totalTokens
    • setTotalTokens

      public void setTotalTokens(Long totalTokens)
    • putAdditionalProperty

      public LLMObsInferenceRunResult putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      LLMObsInferenceRunResult
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this LLMObsInferenceRunResult object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object