Class SchemasChatCompletionTool
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.SchemasChatCompletionTool
SchemasChatCompletionTool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumThe type of the tool. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SchemasChatCompletionTool. -
Method Summary
Modifier and TypeMethodDescriptioncacheControl(CacheControl cacheControl) Set the cacheControl of thisSchemasChatCompletionToolinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newSchemasChatCompletionToolinstance with all required arguments.booleanfunction(FunctionObject function) Set the function of thisSchemasChatCompletionToolinstance and return the same instance.Get cacheControlgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSchemasChatCompletionTool.Get functiongetType()The type of the tool.inthashCode()voidsetCacheControl(CacheControl cacheControl) Set the cacheControl of thisSchemasChatCompletionToolinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSchemasChatCompletionToolinstance.voidsetFunction(FunctionObject function) Set the function of thisSchemasChatCompletionToolinstance.voidSet the type of thisSchemasChatCompletionToolinstance.toMap()Get the value of all properties of thisSchemasChatCompletionToolinstance including unrecognized properties.toString()Set the type of thisSchemasChatCompletionToolinstance and return the same instance.
-
Constructor Details
-
SchemasChatCompletionTool
protected SchemasChatCompletionTool()Default constructor for SchemasChatCompletionTool.
-
-
Method Details
-
type
Set the type of thisSchemasChatCompletionToolinstance and return the same instance.- Parameters:
type- The type of the tool. Currently, only `function` is supported.- Returns:
- The same instance of this
SchemasChatCompletionToolclass
-
getType
The type of the tool. Currently, only `function` is supported.- Returns:
- type The type of this
SchemasChatCompletionToolinstance.
-
setType
Set the type of thisSchemasChatCompletionToolinstance.- Parameters:
type- The type of the tool. Currently, only `function` is supported.
-
function
Set the function of thisSchemasChatCompletionToolinstance and return the same instance.- Parameters:
function- The function of thisSchemasChatCompletionTool- Returns:
- The same instance of this
SchemasChatCompletionToolclass
-
getFunction
Get function- Returns:
- function The function of this
SchemasChatCompletionToolinstance.
-
setFunction
Set the function of thisSchemasChatCompletionToolinstance.- Parameters:
function- The function of thisSchemasChatCompletionTool
-
cacheControl
Set the cacheControl of thisSchemasChatCompletionToolinstance and return the same instance.- Parameters:
cacheControl- The cacheControl of thisSchemasChatCompletionTool- Returns:
- The same instance of this
SchemasChatCompletionToolclass
-
getCacheControl
Get cacheControl- Returns:
- cacheControl The cacheControl of this
SchemasChatCompletionToolinstance.
-
setCacheControl
Set the cacheControl of thisSchemasChatCompletionToolinstance.- Parameters:
cacheControl- The cacheControl of thisSchemasChatCompletionTool
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSchemasChatCompletionTool.- 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 thisSchemasChatCompletionToolinstance.- 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 thisSchemasChatCompletionToolinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSchemasChatCompletionToolinstance. 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 newSchemasChatCompletionToolinstance with all required arguments.
-
toMap()instead.