Package de.espirit.firstspirit.ai.dto
Interface FunctionParameter
@Experimental
public interface FunctionParameter
Definition of a function parameter.
- Since:
- 5.2.250908
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for a function parameter definition. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull FunctionParameter.Builderbuilder()Creates a new builder for creating aFunctionParameterdefinition.@NotNull StringgetName()The name of the function parameter.@NotNull JsonSchemaJSON Schema descriptor for the type of object this parameter contains.booleanReturns whether the parameter is required or optional.
-
Method Details
-
builder
Creates a new builder for creating aFunctionParameterdefinition.- Returns:
- The new builder instance.
- Since:
- 5.2.250908
-
getName
The name of the function parameter.- Returns:
- The parameter name.
- Since:
- 5.2.250908
-
getSchema
JSON Schema descriptor for the type of object this parameter contains.- Returns:
- The JSON schema descriptor.
- Since:
- 5.2.251104
-
isRequired
boolean isRequired()Returns whether the parameter is required or optional.- Returns:
trueif required,falseif optional.- Since:
- 5.2.250908
-