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 interface
Builder for a function parameter definition. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull FunctionParameter.Builder
builder()
Creates a new builder for creating aFunctionParameter
definition.@NotNull String
getName()
The name of the function parameter.@NotNull JsonSchema
JSON Schema descriptor for the type of object this parameter contains.boolean
Returns whether the parameter is required or optional.
-
Method Details
-
builder
Creates a new builder for creating aFunctionParameter
definition.- 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:
true
if required,false
if optional.- Since:
- 5.2.250908
-