Package org.apache.flink.model.openai
Enum AbstractOpenAIModelFunction.ErrorMessageMetadata
- java.lang.Object
-
- java.lang.Enum<AbstractOpenAIModelFunction.ErrorMessageMetadata>
-
- org.apache.flink.model.openai.AbstractOpenAIModelFunction.ErrorMessageMetadata
-
- All Implemented Interfaces:
Serializable,Comparable<AbstractOpenAIModelFunction.ErrorMessageMetadata>
- Enclosing class:
- AbstractOpenAIModelFunction
protected static enum AbstractOpenAIModelFunction.ErrorMessageMetadata extends Enum<AbstractOpenAIModelFunction.ErrorMessageMetadata>
Metadata that can be read from the output row about error messages. Referenced from Flink HTTP Connector's ReadableMetadata.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_STRINGHTTP_HEADERS_MAPHTTP_STATUS_CODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractOpenAIModelFunction.ErrorMessageMetadatavalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractOpenAIModelFunction.ErrorMessageMetadata[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_STRING
public static final AbstractOpenAIModelFunction.ErrorMessageMetadata ERROR_STRING
-
HTTP_STATUS_CODE
public static final AbstractOpenAIModelFunction.ErrorMessageMetadata HTTP_STATUS_CODE
-
HTTP_HEADERS_MAP
public static final AbstractOpenAIModelFunction.ErrorMessageMetadata HTTP_HEADERS_MAP
-
-
Method Detail
-
values
public static AbstractOpenAIModelFunction.ErrorMessageMetadata[] 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 (AbstractOpenAIModelFunction.ErrorMessageMetadata c : AbstractOpenAIModelFunction.ErrorMessageMetadata.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractOpenAIModelFunction.ErrorMessageMetadata valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-