Package ai.picovoice.picollm
Enum PicoLLMCompletion.Endpoint
- java.lang.Object
-
- java.lang.Enum<PicoLLMCompletion.Endpoint>
-
- ai.picovoice.picollm.PicoLLMCompletion.Endpoint
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PicoLLMCompletion.Endpoint>
- Enclosing class:
- PicoLLMCompletion
public static enum PicoLLMCompletion.Endpoint extends java.lang.Enum<PicoLLMCompletion.Endpoint>
Represents reasons for ending the generation process.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETION_TOKEN_LIMIT_REACHEDEND_OF_SENTENCEINTERRUPTEDSTOP_PHRASE_ENCOUNTERED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PicoLLMCompletion.EndpointvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PicoLLMCompletion.Endpoint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
END_OF_SENTENCE
public static final PicoLLMCompletion.Endpoint END_OF_SENTENCE
-
COMPLETION_TOKEN_LIMIT_REACHED
public static final PicoLLMCompletion.Endpoint COMPLETION_TOKEN_LIMIT_REACHED
-
STOP_PHRASE_ENCOUNTERED
public static final PicoLLMCompletion.Endpoint STOP_PHRASE_ENCOUNTERED
-
INTERRUPTED
public static final PicoLLMCompletion.Endpoint INTERRUPTED
-
-
Method Detail
-
values
public static PicoLLMCompletion.Endpoint[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PicoLLMCompletion.Endpoint c : PicoLLMCompletion.Endpoint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PicoLLMCompletion.Endpoint valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-