Package de.espirit.firstspirit.ai.dto
Interface Function
- All Superinterfaces:
Tool
Definition of a function.
- Since:
- 5.2.250908
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for a function definition. -
Field Summary
Fields inherited from interface de.espirit.firstspirit.ai.dto.Tool
TYPE_FUNCTION
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Function.Builder
builder()
Creates a new builder for creating aFunction
definition.@NotNull String
A description of what the function does, used by the model to choose when and how to call the function.@NotNull String
getName()
The name of the function.@NotNull List<FunctionParameter>
A list of parameters for this function.
-
Method Details
-
builder
Creates a new builder for creating aFunction
definition.- Returns:
- The new builder instance.
- Since:
- 5.2.250908
-
getName
The name of the function.- Returns:
- The function name.
- Since:
- 5.2.250908
-
getDescription
A description of what the function does, used by the model to choose when and how to call the function.- Returns:
- The description of the function.
- Since:
- 5.2.250908
-
getParameters
A list of parameters for this function.- Returns:
- The function parameters.
- Since:
- 5.2.250908
-