OpenAIVideoUrl
@JsonInclude(JsonInclude.Include.NON_NULL) public class OpenAIVideoUrl
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:35–55OpenAI 视频 URL,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.openai.dto 包。核心成员包括 getUrl、setUrl、OpenAIVideoUrl。
OpenAI video URL DTO.
This class represents a video URL in the OpenAI/OpenRouter API format.
Example:
`{
"url": "https://example.com/video.mp4"
}
`
Supported video formats: mp4, mpeg, mov, webm
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public OpenAIVideoUrl() | 初始化 `OpenAIVideoUrl` 实例。 Creates a new instance. |
public OpenAIVideoUrl(String url) | 初始化 `OpenAIVideoUrl` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getUrl() | 获取URL。 Returns the url. |
public void setUrl(String url) | 设置URL。 Sets the url. |
构造器详情Constructor Detail
OpenAIVideoUrl
public OpenAIVideoUrl()
初始化 OpenAIVideoUrl 实例。
Creates a new instance.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:42OpenAIVideoUrl
public OpenAIVideoUrl(String url)
初始化 OpenAIVideoUrl 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
url | String | 服务地址(类型 `String`)。The url. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:44–46方法详情Method Detail
getUrl
public String getUrl()
获取URL。
Returns the url.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:48–50setUrl
public void setUrl(String url)
设置URL。
Sets the url.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
url | String | 服务地址(类型 `String`)。The url. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:52–54