View Javadoc
1   package fr.tiogars.chat.domains.mcp.models;
2   
3   import io.swagger.v3.oas.annotations.media.Schema;
4   
5   /**
6    * Represents an MCP resource.
7    */
8   @Schema(description = "MCP resource")
9   public record McpResource(
10          @Schema(description = "Resource URI", example = "file:///path/to/file.txt")
11          String uri,
12  
13          @Schema(description = "Resource name", example = "file.txt")
14          String name,
15  
16          @Schema(description = "Resource type", example = "file")
17          String type,
18  
19          @Schema(description = "MIME type", example = "text/plain")
20          String mimeType,
21  
22          @Schema(description = "Resource size in bytes")
23          Long size
24  ) {
25  }