Package com.datadog.api.client.v2.model
Class LLMObsIntegrationInferenceResponse
java.lang.Object
com.datadog.api.client.v2.model.LLMObsIntegrationInferenceResponse
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsIntegrationInferenceResponse
extends Object
The result of an LLM inference request, including input parameters and the model response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionLLMObsIntegrationInferenceResponse(List<LLMObsInferenceMessage> messages, String modelId, LLMObsInferenceRunResult response) -
Method Summary
Modifier and TypeMethodDescriptionaddMessagesItem(LLMObsInferenceMessage messagesItem) addToolsItem(LLMObsInferenceTool toolsItem) anthropicMetadata(LLMObsAnthropicMetadata anthropicMetadata) azureOpenaiMetadata(LLMObsAzureOpenAIMetadata azureOpenaiMetadata) bedrockMetadata(LLMObsBedrockMetadata bedrockMetadata) booleanReturn true if this LLMObsIntegrationInferenceResponse object is equal to o.errorResponse(LLMObsInferenceErrorResponse errorResponse) frequencyPenalty(Double frequencyPenalty) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Anthropic-specific metadata for an inference request.Azure OpenAI-specific metadata for an integration account or inference request.Amazon Bedrock-specific metadata for an inference request.Error details returned when an inference provider returns an error.Frequency penalty that was applied.org.openapitools.jackson.nullable.JsonNullable<Double>JSON schema that was applied for structured output.org.openapitools.jackson.nullable.JsonNullable<String>Maximum number of completion tokens that were configured.org.openapitools.jackson.nullable.JsonNullable<Long>Maximum number of tokens that were configured.org.openapitools.jackson.nullable.JsonNullable<Long>List of messages in an inference conversation.The model identifier used for inference.OpenAI-specific metadata for an inference request.Presence penalty that was applied.org.openapitools.jackson.nullable.JsonNullable<Double>The output of a completed LLM inference call.Sampling temperature that was used.org.openapitools.jackson.nullable.JsonNullable<Double>getTools()List of tools available to the model.getTopK()Top-K sampling parameter that was used.org.openapitools.jackson.nullable.JsonNullable<Long>getTopP()Nucleus sampling parameter that was used.org.openapitools.jackson.nullable.JsonNullable<Double>Vertex AI-specific metadata for an integration account or inference request.inthashCode()jsonSchema(String jsonSchema) maxCompletionTokens(Long maxCompletionTokens) messages(List<LLMObsInferenceMessage> messages) openaiMetadata(LLMObsOpenAIMetadata openaiMetadata) presencePenalty(Double presencePenalty) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.response(LLMObsInferenceRunResult response) voidsetAnthropicMetadata(LLMObsAnthropicMetadata anthropicMetadata) voidsetAzureOpenaiMetadata(LLMObsAzureOpenAIMetadata azureOpenaiMetadata) voidsetBedrockMetadata(LLMObsBedrockMetadata bedrockMetadata) voidsetErrorResponse(LLMObsInferenceErrorResponse errorResponse) voidsetFrequencyPenalty(Double frequencyPenalty) voidsetFrequencyPenalty_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> frequencyPenalty) voidsetJsonSchema(String jsonSchema) voidsetJsonSchema_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> jsonSchema) voidsetMaxCompletionTokens(Long maxCompletionTokens) voidsetMaxCompletionTokens_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> maxCompletionTokens) voidsetMaxTokens(Long maxTokens) voidsetMaxTokens_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> maxTokens) voidsetMessages(List<LLMObsInferenceMessage> messages) voidsetModelId(String modelId) voidsetOpenaiMetadata(LLMObsOpenAIMetadata openaiMetadata) voidsetPresencePenalty(Double presencePenalty) voidsetPresencePenalty_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> presencePenalty) voidsetResponse(LLMObsInferenceRunResult response) voidsetTemperature(Double temperature) voidsetTemperature_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> temperature) voidsetTools(List<LLMObsInferenceTool> tools) voidvoidsetTopK_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> topK) voidvoidsetTopP_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> topP) voidsetVertexAiMetadata(LLMObsVertexAIMetadata vertexAiMetadata) temperature(Double temperature) tools(List<LLMObsInferenceTool> tools) toString()vertexAiMetadata(LLMObsVertexAIMetadata vertexAiMetadata)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ANTHROPIC_METADATA
- See Also:
-
JSON_PROPERTY_AZURE_OPENAI_METADATA
- See Also:
-
JSON_PROPERTY_BEDROCK_METADATA
- See Also:
-
JSON_PROPERTY_ERROR_RESPONSE
- See Also:
-
JSON_PROPERTY_FREQUENCY_PENALTY
- See Also:
-
JSON_PROPERTY_JSON_SCHEMA
- See Also:
-
JSON_PROPERTY_MAX_COMPLETION_TOKENS
- See Also:
-
JSON_PROPERTY_MAX_TOKENS
- See Also:
-
JSON_PROPERTY_MESSAGES
- See Also:
-
JSON_PROPERTY_MODEL_ID
- See Also:
-
JSON_PROPERTY_OPENAI_METADATA
- See Also:
-
JSON_PROPERTY_PRESENCE_PENALTY
- See Also:
-
JSON_PROPERTY_RESPONSE
- See Also:
-
JSON_PROPERTY_TEMPERATURE
- See Also:
-
JSON_PROPERTY_TOOLS
- See Also:
-
JSON_PROPERTY_TOP_K
- See Also:
-
JSON_PROPERTY_TOP_P
- See Also:
-
JSON_PROPERTY_VERTEX_AI_METADATA
- See Also:
-
-
Constructor Details
-
LLMObsIntegrationInferenceResponse
public LLMObsIntegrationInferenceResponse() -
LLMObsIntegrationInferenceResponse
public LLMObsIntegrationInferenceResponse(List<LLMObsInferenceMessage> messages, String modelId, LLMObsInferenceRunResult response)
-
-
Method Details
-
anthropicMetadata
public LLMObsIntegrationInferenceResponse anthropicMetadata(LLMObsAnthropicMetadata anthropicMetadata) -
getAnthropicMetadata
Anthropic-specific metadata for an inference request.- Returns:
- anthropicMetadata
-
setAnthropicMetadata
-
azureOpenaiMetadata
public LLMObsIntegrationInferenceResponse azureOpenaiMetadata(LLMObsAzureOpenAIMetadata azureOpenaiMetadata) -
getAzureOpenaiMetadata
Azure OpenAI-specific metadata for an integration account or inference request.- Returns:
- azureOpenaiMetadata
-
setAzureOpenaiMetadata
-
bedrockMetadata
-
getBedrockMetadata
Amazon Bedrock-specific metadata for an inference request.- Returns:
- bedrockMetadata
-
setBedrockMetadata
-
errorResponse
-
getErrorResponse
Error details returned when an inference provider returns an error.- Returns:
- errorResponse
-
setErrorResponse
-
frequencyPenalty
-
getFrequencyPenalty
Frequency penalty that was applied.- Returns:
- frequencyPenalty
-
getFrequencyPenalty_JsonNullable
-
setFrequencyPenalty_JsonNullable
public void setFrequencyPenalty_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> frequencyPenalty) -
setFrequencyPenalty
-
jsonSchema
-
getJsonSchema
JSON schema that was applied for structured output.- Returns:
- jsonSchema
-
getJsonSchema_JsonNullable
-
setJsonSchema_JsonNullable
public void setJsonSchema_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> jsonSchema) -
setJsonSchema
-
maxCompletionTokens
-
getMaxCompletionTokens
Maximum number of completion tokens that were configured.- Returns:
- maxCompletionTokens
-
getMaxCompletionTokens_JsonNullable
-
setMaxCompletionTokens_JsonNullable
public void setMaxCompletionTokens_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> maxCompletionTokens) -
setMaxCompletionTokens
-
maxTokens
-
getMaxTokens
Maximum number of tokens that were configured.- Returns:
- maxTokens
-
getMaxTokens_JsonNullable
-
setMaxTokens_JsonNullable
public void setMaxTokens_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> maxTokens) -
setMaxTokens
-
messages
-
addMessagesItem
-
getMessages
List of messages in an inference conversation.- Returns:
- messages
-
setMessages
-
modelId
-
getModelId
The model identifier used for inference.- Returns:
- modelId
-
setModelId
-
openaiMetadata
-
getOpenaiMetadata
OpenAI-specific metadata for an inference request.- Returns:
- openaiMetadata
-
setOpenaiMetadata
-
presencePenalty
-
getPresencePenalty
Presence penalty that was applied.- Returns:
- presencePenalty
-
getPresencePenalty_JsonNullable
-
setPresencePenalty_JsonNullable
public void setPresencePenalty_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> presencePenalty) -
setPresencePenalty
-
response
-
getResponse
The output of a completed LLM inference call.- Returns:
- response
-
setResponse
-
temperature
-
getTemperature
Sampling temperature that was used.- Returns:
- temperature
-
getTemperature_JsonNullable
-
setTemperature_JsonNullable
public void setTemperature_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> temperature) -
setTemperature
-
tools
-
addToolsItem
-
getTools
List of tools available to the model.- Returns:
- tools
-
setTools
-
topK
-
getTopK
Top-K sampling parameter that was used.- Returns:
- topK
-
getTopK_JsonNullable
-
setTopK_JsonNullable
-
setTopK
-
topP
-
getTopP
Nucleus sampling parameter that was used.- Returns:
- topP
-
getTopP_JsonNullable
-
setTopP_JsonNullable
-
setTopP
-
vertexAiMetadata
-
getVertexAiMetadata
Vertex AI-specific metadata for an integration account or inference request.- Returns:
- vertexAiMetadata
-
setVertexAiMetadata
-
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:
- LLMObsIntegrationInferenceResponse
-
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 LLMObsIntegrationInferenceResponse object is equal to o. -
hashCode
public int hashCode() -
toString
-