Package com.datadog.api.client.v2.model
Class LLMObsIntegrationInferenceRequest
java.lang.Object
com.datadog.api.client.v2.model.LLMObsIntegrationInferenceRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsIntegrationInferenceRequest
extends Object
Parameters for an LLM inference request.
-
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 Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionLLMObsIntegrationInferenceRequest(List<LLMObsInferenceMessage> messages, String modelId) -
Method Summary
Modifier and TypeMethodDescriptionaddMessagesItem(LLMObsInferenceMessage messagesItem) addToolsItem(LLMObsInferenceTool toolsItem) anthropicMetadata(LLMObsAnthropicMetadata anthropicMetadata) azureOpenaiMetadata(LLMObsAzureOpenAIMetadata azureOpenaiMetadata) bedrockMetadata(LLMObsBedrockMetadata bedrockMetadata) booleanReturn true if this LLMObsIntegrationInferenceRequest object is equal to o.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.Penalty for token frequency to reduce repetition.org.openapitools.jackson.nullable.JsonNullable<Double>JSON schema for structured output, if supported by the model.org.openapitools.jackson.nullable.JsonNullable<String>Maximum number of completion tokens to generate (alternative to max_tokens for some providers).org.openapitools.jackson.nullable.JsonNullable<Long>Maximum number of tokens to generate.org.openapitools.jackson.nullable.JsonNullable<Long>List of messages in an inference conversation.The model identifier to use for inference.OpenAI-specific metadata for an inference request.Penalty for token presence to encourage topic diversity.org.openapitools.jackson.nullable.JsonNullable<Double>Sampling temperature between 0 and 2.org.openapitools.jackson.nullable.JsonNullable<Double>getTools()List of tools available to the model.getTopK()Top-K sampling parameter.org.openapitools.jackson.nullable.JsonNullable<Long>getTopP()Nucleus sampling probability mass.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.voidsetAnthropicMetadata(LLMObsAnthropicMetadata anthropicMetadata) voidsetAzureOpenaiMetadata(LLMObsAzureOpenAIMetadata azureOpenaiMetadata) voidsetBedrockMetadata(LLMObsBedrockMetadata bedrockMetadata) 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) 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_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_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
-
LLMObsIntegrationInferenceRequest
public LLMObsIntegrationInferenceRequest() -
LLMObsIntegrationInferenceRequest
-
-
Method Details
-
anthropicMetadata
public LLMObsIntegrationInferenceRequest anthropicMetadata(LLMObsAnthropicMetadata anthropicMetadata) -
getAnthropicMetadata
Anthropic-specific metadata for an inference request.- Returns:
- anthropicMetadata
-
setAnthropicMetadata
-
azureOpenaiMetadata
public LLMObsIntegrationInferenceRequest 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
-
frequencyPenalty
-
getFrequencyPenalty
Penalty for token frequency to reduce repetition.- Returns:
- frequencyPenalty
-
getFrequencyPenalty_JsonNullable
-
setFrequencyPenalty_JsonNullable
public void setFrequencyPenalty_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> frequencyPenalty) -
setFrequencyPenalty
-
jsonSchema
-
getJsonSchema
JSON schema for structured output, if supported by the model.- 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 to generate (alternative to max_tokens for some providers).- Returns:
- maxCompletionTokens
-
getMaxCompletionTokens_JsonNullable
-
setMaxCompletionTokens_JsonNullable
public void setMaxCompletionTokens_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> maxCompletionTokens) -
setMaxCompletionTokens
-
maxTokens
-
getMaxTokens
Maximum number of tokens to generate.- 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 to use for inference.- Returns:
- modelId
-
setModelId
-
openaiMetadata
-
getOpenaiMetadata
OpenAI-specific metadata for an inference request.- Returns:
- openaiMetadata
-
setOpenaiMetadata
-
presencePenalty
-
getPresencePenalty
Penalty for token presence to encourage topic diversity.- Returns:
- presencePenalty
-
getPresencePenalty_JsonNullable
-
setPresencePenalty_JsonNullable
public void setPresencePenalty_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Double> presencePenalty) -
setPresencePenalty
-
temperature
-
getTemperature
Sampling temperature between 0 and 2. Higher values produce more random output.- 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.- Returns:
- topK
-
getTopK_JsonNullable
-
setTopK_JsonNullable
-
setTopK
-
topP
-
getTopP
Nucleus sampling probability mass.- 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:
- LLMObsIntegrationInferenceRequest
-
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 LLMObsIntegrationInferenceRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-