public static enum McpSchema.CreateMessageResult.StopReason extends Enum<McpSchema.CreateMessageResult.StopReason>
| Enum Constant and Description |
|---|
END_TURN |
MAX_TOKENS |
STOP_SEQUENCE |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static McpSchema.CreateMessageResult.StopReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static McpSchema.CreateMessageResult.StopReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final McpSchema.CreateMessageResult.StopReason END_TURN
public static final McpSchema.CreateMessageResult.StopReason STOP_SEQUENCE
public static final McpSchema.CreateMessageResult.StopReason MAX_TOKENS
public static final McpSchema.CreateMessageResult.StopReason UNKNOWN
public static McpSchema.CreateMessageResult.StopReason[] values()
for (McpSchema.CreateMessageResult.StopReason c : McpSchema.CreateMessageResult.StopReason.values()) System.out.println(c);
public static McpSchema.CreateMessageResult.StopReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2025. All rights reserved.