You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlin-sdk-core/api/kotlin-sdk-core.api
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2285,6 +2285,48 @@ public final class io/modelcontextprotocol/kotlin/sdk/ResourceContents$Companion
2285
2285
public final fun serializer ()Lkotlinx/serialization/KSerializer;
2286
2286
}
2287
2287
2288
+
public final class io/modelcontextprotocol/kotlin/sdk/ResourceLink : io/modelcontextprotocol/kotlin/sdk/ContentBlock {
2289
+
public static final field Companion Lio/modelcontextprotocol/kotlin/sdk/ResourceLink$Companion;
2290
+
public static final field TYPE Ljava/lang/String;
2291
+
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lio/modelcontextprotocol/kotlin/sdk/Annotations;)V
2292
+
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lio/modelcontextprotocol/kotlin/sdk/Annotations;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
2293
+
public final fun component1 ()Ljava/lang/String;
2294
+
public final fun component2 ()Ljava/lang/String;
2295
+
public final fun component3 ()Ljava/lang/Long;
2296
+
public final fun component4 ()Ljava/lang/String;
2297
+
public final fun component5 ()Ljava/lang/String;
2298
+
public final fun component6 ()Ljava/lang/String;
2299
+
public final fun component7 ()Lio/modelcontextprotocol/kotlin/sdk/Annotations;
2300
+
public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lio/modelcontextprotocol/kotlin/sdk/Annotations;)Lio/modelcontextprotocol/kotlin/sdk/ResourceLink;
2301
+
public static synthetic fun copy$default (Lio/modelcontextprotocol/kotlin/sdk/ResourceLink;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lio/modelcontextprotocol/kotlin/sdk/Annotations;ILjava/lang/Object;)Lio/modelcontextprotocol/kotlin/sdk/ResourceLink;
2302
+
public fun equals (Ljava/lang/Object;)Z
2303
+
public final fun getAnnotations ()Lio/modelcontextprotocol/kotlin/sdk/Annotations;
2304
+
public final fun getDescription ()Ljava/lang/String;
2305
+
public final fun getMimeType ()Ljava/lang/String;
2306
+
public final fun getName ()Ljava/lang/String;
2307
+
public final fun getSize ()Ljava/lang/Long;
2308
+
public final fun getTitle ()Ljava/lang/String;
2309
+
public fun getType ()Ljava/lang/String;
2310
+
public final fun getUri ()Ljava/lang/String;
2311
+
public fun hashCode ()I
2312
+
public fun toString ()Ljava/lang/String;
2313
+
}
2314
+
2315
+
public final synthetic class io/modelcontextprotocol/kotlin/sdk/ResourceLink$$serializer : kotlinx/serialization/internal/GeneratedSerializer {
2316
+
public static final field INSTANCE Lio/modelcontextprotocol/kotlin/sdk/ResourceLink$$serializer;
2317
+
public final fun childSerializers ()[Lkotlinx/serialization/KSerializer;
2318
+
public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Lio/modelcontextprotocol/kotlin/sdk/ResourceLink;
2319
+
public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object;
2320
+
public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor;
2321
+
public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Lio/modelcontextprotocol/kotlin/sdk/ResourceLink;)V
2322
+
public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V
2323
+
public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer;
2324
+
}
2325
+
2326
+
public final class io/modelcontextprotocol/kotlin/sdk/ResourceLink$Companion {
2327
+
public final fun serializer ()Lkotlinx/serialization/KSerializer;
2328
+
}
2329
+
2288
2330
public final class io/modelcontextprotocol/kotlin/sdk/ResourceListChangedNotification : io/modelcontextprotocol/kotlin/sdk/ServerNotification {
2289
2331
public static final field Companion Lio/modelcontextprotocol/kotlin/sdk/ResourceListChangedNotification$Companion;
Copy file name to clipboardExpand all lines: kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.kt
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1072,6 +1072,62 @@ public data class AudioContent(
1072
1072
}
1073
1073
}
1074
1074
1075
+
/**
1076
+
* A Resource Link provided to or from an LLM.
1077
+
*/
1078
+
@Serializable
1079
+
publicdata classResourceLink(
1080
+
/**
1081
+
* A description of what this resource represents.
1082
+
*
1083
+
* This can be used by clients to improve the LLM’s understanding of available resources. It can be thought of like a “hint” to the model.
1084
+
*
1085
+
*/
1086
+
valdescription:String? = null,
1087
+
1088
+
/**
1089
+
* Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn’t present).
1090
+
*/
1091
+
valname:String,
1092
+
1093
+
/**
1094
+
* The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
1095
+
*
1096
+
* This can be used by Hosts to display file sizes and estimate context window usage.
1097
+
*
1098
+
*/
1099
+
valsize:Long? = null,
1100
+
1101
+
/**
1102
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology.
1103
+
*
1104
+
* If not provided, the name should be used for display (except for Tool, where annotations.title should be given precedence over using name, if present).
0 commit comments