public static class McpSchema.ImageContent extends java.lang.Object implements McpSchema.Annotated, McpSchema.Content
| 构造器和说明 |
|---|
ImageContent(java.util.List<McpSchema.Role> audience,
java.lang.Double priority,
java.lang.String data,
java.lang.String mimeType)
已过时。
Only exists for backwards-compatibility purposes. Use
ImageContent#ImageContent(Annotations, String, String) instead. |
ImageContent(McpSchema.Annotations annotations,
java.lang.String data,
java.lang.String mimeType) |
ImageContent(McpSchema.Annotations annotations,
java.lang.String data,
java.lang.String mimeType,
java.util.Map<java.lang.String,java.lang.Object> meta) |
| 限定符和类型 | 方法和说明 |
|---|---|
McpSchema.Annotations |
annotations() |
java.util.List<McpSchema.Role> |
audience()
已过时。
Only exists for backwards-compatibility purposes. Use
annotations() instead. |
java.lang.String |
data() |
java.util.Map<java.lang.String,java.lang.Object> |
meta() |
java.lang.String |
mimeType() |
java.lang.Double |
priority()
已过时。
Only exists for backwards-compatibility purposes. Use
annotations() instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypepublic ImageContent(McpSchema.Annotations annotations, java.lang.String data, java.lang.String mimeType, java.util.Map<java.lang.String,java.lang.Object> meta)
annotations - Optional annotations for the clientdata - The base64-encoded image datamimeType - The MIME type of the image. Different providers may support
different image typesmeta - See specification for notes on _meta usagepublic ImageContent(McpSchema.Annotations annotations, java.lang.String data, java.lang.String mimeType)
@Deprecated public ImageContent(java.util.List<McpSchema.Role> audience, java.lang.Double priority, java.lang.String data, java.lang.String mimeType)
ImageContent#ImageContent(Annotations, String, String) instead.public McpSchema.Annotations annotations()
annotations 在接口中 McpSchema.Annotatedpublic java.lang.String data()
public java.lang.String mimeType()
public java.util.Map<java.lang.String,java.lang.Object> meta()
meta 在接口中 McpSchema.Meta@Deprecated public java.util.List<McpSchema.Role> audience()
annotations() instead.@Deprecated public java.lang.Double priority()
annotations() instead.