public static class McpSchema.BlobResourceContents extends java.lang.Object implements McpSchema.ResourceContents
| 构造器和说明 |
|---|
BlobResourceContents(java.lang.String uri,
java.lang.String mimeType,
java.lang.String blob) |
BlobResourceContents(java.lang.String uri,
java.lang.String mimeType,
java.lang.String blob,
java.util.Map<java.lang.String,java.lang.Object> meta) |
public BlobResourceContents(java.lang.String uri,
java.lang.String mimeType,
java.lang.String blob,
java.util.Map<java.lang.String,java.lang.Object> meta)
uri - the URI of this resource.mimeType - the MIME type of this resource.blob - a base64-encoded string representing the binary data of the resource.
This must only be set if the resource can actually be represented as binary data
(not text).meta - See specification for notes on _meta usagepublic BlobResourceContents(java.lang.String uri,
java.lang.String mimeType,
java.lang.String blob)
public java.lang.String uri()
McpSchema.ResourceContentsuri 在接口中 McpSchema.ResourceContentspublic java.lang.String mimeType()
McpSchema.ResourceContentsmimeType 在接口中 McpSchema.ResourceContentspublic java.lang.String blob()
public java.util.Map<java.lang.String,java.lang.Object> meta()
meta 在接口中 McpSchema.Meta