AS AgentScopeAPI 手册 / API Reference

OpenAIVideoUrl

@JsonInclude(JsonInclude.Include.NON_NULL) public class OpenAIVideoUrl
源码Source io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:35–55

OpenAI 视频 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:42

OpenAIVideoUrl

public OpenAIVideoUrl(String url)

初始化 OpenAIVideoUrl 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
urlString服务地址(类型 `String`)。The url.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:44–46

方法详情Method Detail

getUrl

public String getUrl()

获取URL。

Returns the url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:48–50

setUrl

public void setUrl(String url)

设置URL。

Sets the url.

参数Parameters
名称Name类型Type说明Description
urlString服务地址(类型 `String`)。The url.
源码Source io/agentscope/extensions/model/openai/dto/OpenAIVideoUrl.java:52–54
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.