Record Class AnthropicApi.ContentBlock.Source
java.lang.Object
java.lang.Record
org.springframework.ai.anthropic.api.AnthropicApi.ContentBlock.Source
- Record Components:
type- The type of the media content. Only "base64" is supported at the moment.mediaType- The media type of the content. For example, "image/png" or "image/jpeg".data- The base64-encoded data of the content.
- Enclosing class:
AnthropicApi.ContentBlock
public static record AnthropicApi.ContentBlock.Source(String type, String mediaType, String data, String url, List<AnthropicApi.ContentBlock> content)
extends Record
The source of the media content. (Applicable for "image" types only)
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.data()Returns the value of thedatarecord 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 themediaTyperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Source
-
Source
-
Source
-
Source
-
-
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). -
type
-
mediaType
-
data
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-