Package org.mcpjava.server.content
Interface EmbeddedResource
- All Superinterfaces:
ContentBlock,MetaCarrier
Embedded resource content. This content block contains information about a resource, including
its data.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for an embedded resource -
Method Summary
Modifier and TypeMethodDescriptionOptional annotations for the clientstatic EmbeddedResource.BuilderCreates a new builder for anEmbeddedResourcewithBlobResourceContentsstatic EmbeddedResource.BuilderCreates a new builder for anEmbeddedResourcewithTextResourceContentsresource()Returns the resource contents, which may be eitherTextResourceContentsorBlobResourceContentsMethods inherited from interface org.mcpjava.server.MetaCarrier
metadata
-
Method Details
-
resource
ResourceContents resource()Returns the resource contents, which may be eitherTextResourceContentsorBlobResourceContents- Returns:
- the resource contents
-
annotations
Optional<Annotations> annotations()Optional annotations for the client- Returns:
- the annotations
-
builder
Creates a new builder for anEmbeddedResourcewithTextResourceContents- Parameters:
text- the text content for the embedded resourceuri- the URI of the resource- Returns:
- the embedded resource builder
-
builder
Creates a new builder for anEmbeddedResourcewithBlobResourceContents- Parameters:
data- the data for the embedded resourceuri- the URI of the resource- Returns:
- the embedded resource builder
-