Class MCPResourceContent

java.lang.Object
com.google.genkit.plugins.mcp.MCPResourceContent

public class MCPResourceContent extends Object
Represents the content of an MCP resource.

Resource content can contain multiple parts, each of which can be text or binary data.

  • Constructor Details

  • Method Details

    • getUri

      public String getUri()
      Gets the resource URI.
      Returns:
      the URI
    • getParts

      Gets the content parts.
      Returns:
      the parts
    • getText

      public String getText()
      Gets the text content if this resource has a single text part.
      Returns:
      the text content, or null if not available