Package de.espirit.firstspirit.ai.dto
Interface FunctionCall.Builder
- Enclosing interface:
- FunctionCall
public static interface FunctionCall.Builder
Builder for a
FunctionCall instance.- Since:
- 5.2.250908
-
Method Summary
Modifier and TypeMethodDescription@NotNull FunctionCall.BuilderConfigures the function arguments, usually this is a JSON string like `{"arg": "value"}`.@NotNull FunctionCallcreate()Creates a new instance.@NotNull FunctionCall.BuilderConfigures the identifier of the function call.@NotNull FunctionCall.BuilderConfigures the name of the function to be called.
-
Method Details
-
id
Configures the identifier of the function call.- Parameters:
id- The call identifier.- Returns:
- This builder instance.
- Since:
- 5.2.250908
-
name
Configures the name of the function to be called.- Parameters:
name- The function name.- Returns:
- This builder instance.
- Since:
- 5.2.250908
-
arguments
@Contract("_ -> this") @NotNull @NotNull FunctionCall.Builder arguments(@Nullable @Nullable String arguments) Configures the function arguments, usually this is a JSON string like `{"arg": "value"}`.- Parameters:
arguments- The function arguments.- Returns:
- This builder instance.
- Since:
- 5.2.250908
-
create
Creates a new instance.- Returns:
- The new
FunctionCalldefinition. - Since:
- 5.2.250908
-