Record Class AiCapabilities
java.lang.Object
java.lang.Record
com.shaft.pilot.ai.AiCapabilities
- Record Components:
structuredOutput- whether JSON-schema-constrained output is supportedvision- whether image input is supportedtoolCalling- whether tool calling is supportedcontextLimitTokens- advertised context limit, or zero when unknownprocessingLocation- local, remote, or disabled processing
public record AiCapabilities(boolean structuredOutput, boolean vision, boolean toolCalling, long contextLimitTokens, ProcessingLocation processingLocation)
extends Record
Provider capabilities that callers can inspect before submitting evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionAiCapabilities(boolean structuredOutput, boolean vision, boolean toolCalling, long contextLimitTokens, ProcessingLocation processingLocation) Creates an instance of aAiCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecontextLimitTokensrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprocessingLocationrecord component.booleanReturns the value of thestructuredOutputrecord component.booleanReturns the value of thetoolCallingrecord component.final StringtoString()Returns a string representation of this record class.booleanvision()Returns the value of thevisionrecord component.
-
Constructor Details
-
AiCapabilities
public AiCapabilities(boolean structuredOutput, boolean vision, boolean toolCalling, long contextLimitTokens, ProcessingLocation processingLocation) Creates an instance of aAiCapabilitiesrecord class.- Parameters:
structuredOutput- the value for thestructuredOutputrecord componentvision- the value for thevisionrecord componenttoolCalling- the value for thetoolCallingrecord componentcontextLimitTokens- the value for thecontextLimitTokensrecord componentprocessingLocation- the value for theprocessingLocationrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
structuredOutput
public boolean structuredOutput()Returns the value of thestructuredOutputrecord component.- Returns:
- the value of the
structuredOutputrecord component
-
vision
-
toolCalling
public boolean toolCalling()Returns the value of thetoolCallingrecord component.- Returns:
- the value of the
toolCallingrecord component
-
contextLimitTokens
public long contextLimitTokens()Returns the value of thecontextLimitTokensrecord component.- Returns:
- the value of the
contextLimitTokensrecord component
-
processingLocation
Returns the value of theprocessingLocationrecord component.- Returns:
- the value of the
processingLocationrecord component
-