Class LLMModelDetails
java.lang.Object
com.sap.ai.sdk.orchestration.model.LLMModelDetails
The model and parameters to be used for the prompt templating. This is the model that will be
used to generate the response.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for LLMModelDetails. -
Method Summary
Modifier and TypeMethodDescriptionstatic LLMModelDetails.Buildercreate()Create a type-safe, fluent-api builder object to construct a newLLMModelDetailsinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theLLMModelDetails.Maximum number of retries for the LLM request.getName()Name of the model as in LLM Access configurationAdditional parameters for the model.Timeout for the LLM request in seconds.Version of the model to be usedinthashCode()maxRetries(Integer maxRetries) Set the maxRetries of thisLLMModelDetailsinstance and return the same instance.Set the name of thisLLMModelDetailsinstance and return the same instance.Set the params of thisLLMModelDetailsinstance and return the same instance.putparamsItem(String key, Object paramsItem) Put one params instance to thisLLMModelDetailsinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisLLMModelDetailsinstance.voidsetMaxRetries(Integer maxRetries) Set the maxRetries of thisLLMModelDetailsinstance.voidSet the name of thisLLMModelDetailsinstance.voidSet the params of thisLLMModelDetailsinstance.voidsetTimeout(Integer timeout) Set the timeout of thisLLMModelDetailsinstance.voidsetVersion(String version) Set the version of thisLLMModelDetailsinstance.Set the timeout of thisLLMModelDetailsinstance and return the same instance.toMap()Get the value of all properties of thisLLMModelDetailsinstance including unrecognized properties.toString()Set the version of thisLLMModelDetailsinstance and return the same instance.
-
Constructor Details
-
LLMModelDetails
protected LLMModelDetails()Default constructor for LLMModelDetails.
-
-
Method Details
-
name
Set the name of thisLLMModelDetailsinstance and return the same instance.- Parameters:
name- Name of the model as in LLM Access configuration- Returns:
- The same instance of this
LLMModelDetailsclass
-
getName
Name of the model as in LLM Access configuration- Returns:
- name The name of this
LLMModelDetailsinstance.
-
setName
Set the name of thisLLMModelDetailsinstance.- Parameters:
name- Name of the model as in LLM Access configuration
-
version
Set the version of thisLLMModelDetailsinstance and return the same instance.- Parameters:
version- Version of the model to be used- Returns:
- The same instance of this
LLMModelDetailsclass
-
getVersion
Version of the model to be used- Returns:
- version The version of this
LLMModelDetailsinstance.
-
setVersion
Set the version of thisLLMModelDetailsinstance.- Parameters:
version- Version of the model to be used
-
params
Set the params of thisLLMModelDetailsinstance and return the same instance.- Parameters:
params- Additional parameters for the model. Default values are used for mandatory parameters.- Returns:
- The same instance of this
LLMModelDetailsclass
-
putparamsItem
Put one params instance to thisLLMModelDetailsinstance.- Parameters:
key- The String key of this params instanceparamsItem- The params that should be added under the given key- Returns:
- The same instance of type
LLMModelDetails
-
getParams
Additional parameters for the model. Default values are used for mandatory parameters.- Returns:
- params The params of this
LLMModelDetailsinstance.
-
setParams
Set the params of thisLLMModelDetailsinstance.- Parameters:
params- Additional parameters for the model. Default values are used for mandatory parameters.
-
timeout
Set the timeout of thisLLMModelDetailsinstance and return the same instance.- Parameters:
timeout- Timeout for the LLM request in seconds. This parameter is currently ignored for Vertex AI models. Minimum: 1 Maximum: 1200- Returns:
- The same instance of this
LLMModelDetailsclass
-
getTimeout
Timeout for the LLM request in seconds. This parameter is currently ignored for Vertex AI models. minimum: 1 maximum: 1200- Returns:
- timeout The timeout of this
LLMModelDetailsinstance.
-
setTimeout
Set the timeout of thisLLMModelDetailsinstance.- Parameters:
timeout- Timeout for the LLM request in seconds. This parameter is currently ignored for Vertex AI models. Minimum: 1 Maximum: 1200
-
maxRetries
Set the maxRetries of thisLLMModelDetailsinstance and return the same instance.- Parameters:
maxRetries- Maximum number of retries for the LLM request. This parameter is currently ignored for Vertex AI models. Minimum: 0 Maximum: 5- Returns:
- The same instance of this
LLMModelDetailsclass
-
getMaxRetries
Maximum number of retries for the LLM request. This parameter is currently ignored for Vertex AI models. minimum: 0 maximum: 5- Returns:
- maxRetries The maxRetries of this
LLMModelDetailsinstance.
-
setMaxRetries
Set the maxRetries of thisLLMModelDetailsinstance.- Parameters:
maxRetries- Maximum number of retries for the LLM request. This parameter is currently ignored for Vertex AI models. Minimum: 0 Maximum: 5
-
getCustomFieldNames
Get the names of the unrecognizable properties of theLLMModelDetails.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisLLMModelDetailsinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisLLMModelDetailsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisLLMModelDetailsinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newLLMModelDetailsinstance with all required arguments.
-
toMap()instead.