Package dev.langchain4j.data.message
Class VideoContent
java.lang.Object
dev.langchain4j.data.message.VideoContent
- All Implemented Interfaces:
Content
-
Constructor Summary
ConstructorDescriptionVideoContent
(Video video) Create a newVideoContent
from the given video.VideoContent
(String url) Create a newVideoContent
from the given url.VideoContent
(String base64Data, String mimeType) Create a newVideoContent
from the given base64 data and mime type.VideoContent
(URI url) Create a newVideoContent
from the given url. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static VideoContent
Create a newVideoContent
from the given video.static VideoContent
Create a newVideoContent
from the given url.static VideoContent
Create a newVideoContent
from the given base64 data and mime type.static VideoContent
Create a newVideoContent
from the given url.int
hashCode()
toString()
type()
Returns the type of content.video()
Get theVideo
.
-
Constructor Details
-
VideoContent
Create a newVideoContent
from the given url.- Parameters:
url
- the url of the Video.
-
VideoContent
Create a newVideoContent
from the given url.- Parameters:
url
- the url of the video.
-
VideoContent
Create a newVideoContent
from the given base64 data and mime type.- Parameters:
base64Data
- the base64 data of the video.mimeType
- the mime type of the video.
-
VideoContent
Create a newVideoContent
from the given video.- Parameters:
video
- the video.
-
-
Method Details
-
type
Description copied from interface:Content
Returns the type of content.Can be used to cast the content to the correct type.
-
video
Get theVideo
.- Returns:
- the
Video
.
-
equals
-
hashCode
public int hashCode() -
toString
-
from
Create a newVideoContent
from the given url.- Parameters:
url
- the url of the video.- Returns:
- the new
VideoContent
.
-
from
Create a newVideoContent
from the given url.- Parameters:
url
- the url of the video.- Returns:
- the new
VideoContent
.
-
from
Create a newVideoContent
from the given base64 data and mime type.- Parameters:
base64Data
- the base64 data of the video.mimeType
- the mime type of the video.- Returns:
- the new
VideoContent
.
-
from
Create a newVideoContent
from the given video.- Parameters:
video
- the video.- Returns:
- the new
VideoContent
.
-