OpenAIImageUrl
@JsonInclude(JsonInclude.Include.NON_NULL) public class OpenAIImageUrl
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIImageUrl.java:34–74OpenAI 图像 URL,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.openai.dto 包。核心成员包括 getUrl、setUrl、getDetail、setDetail、OpenAIImageUrl。
OpenAI image URL DTO.
This class represents an image URL in the OpenAI API format.
Example:
`{
"url": "https://example.com/image.jpg",
"detail": "high"
}
`
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public OpenAIImageUrl() | 初始化 `OpenAIImageUrl` 实例。 Creates a new instance. |
public OpenAIImageUrl(String url) | 初始化 `OpenAIImageUrl` 实例。 Creates a new instance. |
public OpenAIImageUrl(String url, String detail) | 初始化 `OpenAIImageUrl` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getUrl() | 获取URL。 Returns the url. |
public void setUrl(String url) | 设置URL。 Sets the url. |
public String getDetail() | 获取详情。 Returns the detail. |
public void setDetail(String detail) | 设置详情。 Sets the detail. |
构造器详情Constructor Detail
OpenAIImageUrl
public OpenAIImageUrl()
初始化 OpenAIImageUrl 实例。
Creates a new instance.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIImageUrl.java:48OpenAIImageUrl
public OpenAIImageUrl(String url)
初始化 OpenAIImageUrl 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
url | String | 服务地址(类型 `String`)。The url. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIImageUrl.java:50–52OpenAIImageUrl
public OpenAIImageUrl(String url, String detail)
初始化 OpenAIImageUrl 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
url | String | 服务地址(类型 `String`)。The url. |
detail | String | 详情(类型 `String`)。The detail. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIImageUrl.java:54–57方法详情Method Detail
getUrl
public String getUrl()
获取URL。
Returns the url.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIImageUrl.java:59–61setUrl
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/OpenAIImageUrl.java:63–65getDetail
public String getDetail()
获取详情。
Returns the detail.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIImageUrl.java:67–69setDetail
public void setDetail(String detail)
设置详情。
Sets the detail.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
detail | String | 详情(类型 `String`)。The detail. |
源码Source
io/agentscope/extensions/model/openai/dto/OpenAIImageUrl.java:71–73