Class AnthropicImageContent
java.lang.Object
dev.langchain4j.model.anthropic.internal.api.AnthropicMessageContent
dev.langchain4j.model.anthropic.internal.api.AnthropicImageContent
-
Field Summary
FieldsFields inherited from class AnthropicMessageContent
cacheControl, type -
Constructor Summary
ConstructorsConstructorDescriptionAnthropicImageContent(AnthropicImageContentSource source, AnthropicCacheControl cacheControl) AnthropicImageContent(String mediaType, String data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AnthropicImageContentfromBase64(String mediaType, String data) static AnthropicImageContentfromBase64(String mediaType, String data, AnthropicCacheControl cacheControl) static AnthropicImageContentstatic AnthropicImageContentfromUrl(String url, AnthropicCacheControl cacheControl) inthashCode()toString()
-
Field Details
-
source
-
-
Constructor Details
-
AnthropicImageContent
-
AnthropicImageContent
public AnthropicImageContent(AnthropicImageContentSource source, AnthropicCacheControl cacheControl) -
AnthropicImageContent
-
-
Method Details
-
fromBase64
-
fromUrl
-
fromBase64
public static AnthropicImageContent fromBase64(String mediaType, String data, AnthropicCacheControl cacheControl) -
fromUrl
-
equals
- Overrides:
equalsin classAnthropicMessageContent
-
hashCode
public int hashCode()- Overrides:
hashCodein classAnthropicMessageContent
-
toString
-