CompletionsFinishReason Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. openai. models. CompletionsFinishReason
- com.
- com.
public final class CompletionsFinishReason
extends ExpandableStringEnum<CompletionsFinishReason>
Representation of the manner in which a completions response concluded.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Completions |
CONTENT_FILTERED
Completions generated a response that was identified as potentially sensitive per content moderation policies. |
static final
Completions |
FUNCTION_CALL
Completion ended normally, with the model requesting a function to be called. |
static final
Completions |
STOPPED
Completions ended normally and reached its end of token generation. |
static final
Completions |
TOKEN_LIMIT_REACHED
Completions exhausted available token limits before generation could complete. |
static final
Completions |
TOOL_CALLS
Completion ended with the model calling a provided tool for output. |
Constructor Summary
Constructor | Description |
---|---|
CompletionsFinishReason() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Completions |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Completions |
fromString(String name)
Creates or finds a Completions |
static
Collection<Completions |
values()
Gets known Completions |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
CONTENT_FILTERED
public static final CompletionsFinishReason CONTENT_FILTERED
Completions generated a response that was identified as potentially sensitive per content moderation policies.
FUNCTION_CALL
public static final CompletionsFinishReason FUNCTION_CALL
Completion ended normally, with the model requesting a function to be called.
STOPPED
public static final CompletionsFinishReason STOPPED
Completions ended normally and reached its end of token generation.
TOKEN_LIMIT_REACHED
public static final CompletionsFinishReason TOKEN_LIMIT_REACHED
Completions exhausted available token limits before generation could complete.
TOOL_CALLS
public static final CompletionsFinishReason TOOL_CALLS
Completion ended with the model calling a provided tool for output.
Constructor Details
CompletionsFinishReason
@Deprecated
public CompletionsFinishReason()
Deprecated
Creates a new instance of CompletionsFinishReason value.
Method Details
fromString
public static CompletionsFinishReason fromString(String name)
Creates or finds a CompletionsFinishReason from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known CompletionsFinishReason values.
Returns: