Record Class AnthropicApi.CitationsConfig
java.lang.Object
java.lang.Record
org.springframework.ai.anthropic.api.AnthropicApi.CitationsConfig
- Enclosing class:
AnthropicApi
Citations configuration for document ContentBlocks.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Mariusz Bernacki, Thomas Vitale, Jihoon Kim, Alexandros Pappas, Jonghoon Park, Claudio Silva Junior, Filip Hrisafov, Soby Chacko, Austin Dase
-
Constructor Summary
ConstructorsConstructorDescriptionCitationsConfig(Boolean enabled) Creates an instance of aCitationsConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CitationsConfig
Creates an instance of aCitationsConfigrecord class.- Parameters:
enabled- the value for theenabledrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-