public static class McpSchema.EmbeddedResource extends java.lang.Object implements McpSchema.Annotated, McpSchema.Content
| 构造器和说明 |
|---|
EmbeddedResource(java.util.List<McpSchema.Role> audience,
java.lang.Double priority,
McpSchema.ResourceContents resource)
已过时。
Only exists for backwards-compatibility purposes. Use
EmbeddedResource#EmbeddedResource(Annotations, ResourceContents)
instead. |
EmbeddedResource(McpSchema.Annotations annotations,
McpSchema.ResourceContents resource) |
EmbeddedResource(McpSchema.Annotations annotations,
McpSchema.ResourceContents resource,
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.util.Map<java.lang.String,java.lang.Object> |
meta() |
java.lang.Double |
priority()
已过时。
Only exists for backwards-compatibility purposes. Use
annotations() instead. |
McpSchema.ResourceContents |
resource() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypepublic EmbeddedResource(McpSchema.Annotations annotations, McpSchema.ResourceContents resource, java.util.Map<java.lang.String,java.lang.Object> meta)
annotations - Optional annotations for the clientresource - The resource contents that are embeddedmeta - See specification for notes on _meta usagepublic EmbeddedResource(McpSchema.Annotations annotations, McpSchema.ResourceContents resource)
@Deprecated public EmbeddedResource(java.util.List<McpSchema.Role> audience, java.lang.Double priority, McpSchema.ResourceContents resource)
EmbeddedResource#EmbeddedResource(Annotations, ResourceContents)
instead.public McpSchema.Annotations annotations()
annotations 在接口中 McpSchema.Annotatedpublic McpSchema.ResourceContents resource()
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.