Annotation Type KernelFunctionParameter
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface KernelFunctionParameter
Annotates a parameter to a native function
-
-
Field Summary
Fields Modifier and Type Fields Description static StringNO_DEFAULT_VALUEA special value that is used to indicate that no default value is provided.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultValueThe default value of the parameter.StringdescriptionThe description of the parameter.booleanrequiredWhether a value is required for this argument.Class<?>typeThe type of the parameter.
-
-
-
Field Detail
-
NO_DEFAULT_VALUE
static final String NO_DEFAULT_VALUE
A special value that is used to indicate that no default value is provided.
-
-
Element Detail
-
name
String name
The name of the parameter. This element is required.- Returns:
- the name of the parameter, or an empty string if no name is provided.
-
-
-
description
String description
The description of the parameter. The description should be short and concise. The model uses the description to determine what value to pass to the function.- Returns:
- the description of the parameter, or an empty string if no description is provided.
- Default:
- ""
-
-
-
defaultValue
String defaultValue
The default value of the parameter. If no value is set,nullwill be passed as the value to this argument.- Returns:
- the default value of the parameter, or
NO_DEFAULT_VALUEif no default value is provided.
- Default:
- "SKFunctionParameters__NO_INPUT_PROVIDED"
-
-
-
type
Class<?> type
The type of the parameter. The Semantic Kernel will use the type to find aContextVariableTypeto convert the value from a prompt string to the correct argument type. The type defaults toStringif not provided.- Returns:
- the type of the parameter
- Default:
- java.lang.String.class
-
-