Package com.tnsai.enums
Enum Class LLMCapability
- All Implemented Interfaces:
Serializable,Comparable<LLMCapability>,Constable
Declarative LLM capability flag for use on
@RoleSpec(requires = {...}). Lets a role advertise the
model features it actually exercises so the build-time validation
pipeline (AGENT-V004, issue #238) can fail fast when the
configured LLM doesn't support them — instead of letting the
mismatch surface at the first chat call.
Each value maps 1:1 to a boolean accessor on
com.tnsai.llm.LLMCapabilities, so the validator can simply
look up llm.getCapabilities().supportsX() for whichever
capabilities the role declared.
Lives in com.tnsai.enums (not com.tnsai.llm) so
the @RoleSpec annotation can reference it without crossing
the architecture boundary that forbids
com.tnsai.annotations from depending on
com.tnsai.llm.
FUNCTION_CALLING is intentionally absent — that case is
already covered by AGENT-V003 (LLMCapabilityValidator
function-calling branch), which fires whenever tools or
ActionType.LLM actions are present regardless of any
declarative annotation. Adding it here would create overlapping
warnings.
- Since:
- 0.8.5 (issue #238)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionModel can stream tokens incrementally — needed foragent.streamChatWithTools(...).Model can return structured JSON output mode (response_format with a JSON schema).Model accepts image inputs (multimodal). -
Method Summary
Modifier and TypeMethodDescriptionstatic LLMCapabilityReturns the enum constant of this class with the specified name.static LLMCapability[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STREAMING
Model can stream tokens incrementally — needed foragent.streamChatWithTools(...). Maps toLLMCapabilities#supportsStreaming(). -
STRUCTURED_OUTPUT
Model can return structured JSON output mode (response_format with a JSON schema). Maps toLLMCapabilities#supportsStructuredOutput(). -
VISION
Model accepts image inputs (multimodal). Maps toLLMCapabilities#supportsVision().
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-