Skip to content

Commit 531f6f1

Browse files
ptitjesdevcrocod
authored andcommitted
Add missing resource and resource template title and size
1 parent 6bae987 commit 531f6f1

File tree

1 file changed

+12
-0
lines changed
  • kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk

1 file changed

+12
-0
lines changed

kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,14 @@ public data class Resource(
710710
* The MIME type of this resource, if known.
711711
*/
712712
val mimeType: String?,
713+
/**
714+
* The optional human-readable name of this resource for display purposes.
715+
*/
716+
val title: String? = null,
717+
/**
718+
* The optional size of this resource in bytes, if known.
719+
*/
720+
val size: Long? = null,
713721
)
714722

715723
/**
@@ -738,6 +746,10 @@ public data class ResourceTemplate(
738746
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
739747
*/
740748
val mimeType: String?,
749+
/**
750+
* The optional human-readable name of this resource for display purposes.
751+
*/
752+
val title: String? = null,
741753
)
742754

743755
/**

0 commit comments

Comments
 (0)