rmcp upgrade (#4792)

This commit is contained in:
Jack Amadeo
2025-09-30 21:03:50 -04:00
committed by GitHub
parent dee7f79f32
commit a77d13aa88
15 changed files with 139 additions and 94 deletions
+51 -14
View File
@@ -1715,19 +1715,6 @@
}
}
},
"Annotated": {
"oneOf": [
{
"$ref": "#/components/schemas/RawTextContent"
},
{
"$ref": "#/components/schemas/RawImageContent"
},
{
"$ref": "#/components/schemas/RawEmbeddedResource"
}
]
},
"Annotations": {
"type": "object",
"properties": {
@@ -1858,7 +1845,7 @@
{
"allOf": [
{
"$ref": "#/components/schemas/Annotated"
"$ref": "#/components/schemas/RawAudioContent"
}
]
},
@@ -2587,6 +2574,23 @@
}
}
},
"Icon": {
"type": "object",
"required": [
"src"
],
"properties": {
"mimeType": {
"type": "string"
},
"sizes": {
"type": "string"
},
"src": {
"type": "string"
}
}
},
"ImageContent": {
"type": "object",
"required": [
@@ -3100,6 +3104,21 @@
}
}
},
"RawAudioContent": {
"type": "object",
"required": [
"data",
"mimeType"
],
"properties": {
"data": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
},
"RawEmbeddedResource": {
"type": "object",
"required": [
@@ -3144,6 +3163,12 @@
"description": {
"type": "string"
},
"icons": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Icon"
}
},
"mimeType": {
"type": "string"
},
@@ -3154,6 +3179,9 @@
"type": "integer",
"minimum": 0
},
"title": {
"type": "string"
},
"uri": {
"type": "string"
}
@@ -3945,6 +3973,12 @@
"description": {
"type": "string"
},
"icons": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Icon"
}
},
"inputSchema": {
"type": "object",
"additionalProperties": true
@@ -3955,6 +3989,9 @@
"outputSchema": {
"type": "object",
"additionalProperties": true
},
"title": {
"type": "string"
}
}
},
+16 -3
View File
@@ -9,8 +9,6 @@ export type AddSubRecipesResponse = {
success: boolean;
};
export type Annotated = RawTextContent | RawImageContent | RawEmbeddedResource;
export type Annotations = {
audience?: Array<Role>;
lastModified?: string;
@@ -65,7 +63,7 @@ export type ConfigResponse = {
};
};
export type Content = RawTextContent | RawImageContent | RawEmbeddedResource | Annotated | RawResource;
export type Content = RawTextContent | RawImageContent | RawEmbeddedResource | RawAudioContent | RawResource;
export type ContextLengthExceeded = {
msg: string;
@@ -331,6 +329,12 @@ export type GetToolsQuery = {
session_id: string;
};
export type Icon = {
mimeType?: string;
sizes?: string;
src: string;
};
export type ImageContent = {
_meta?: {
[key: string]: unknown;
@@ -503,6 +507,11 @@ export type ProvidersResponse = {
providers: Array<ProviderDetails>;
};
export type RawAudioContent = {
data: string;
mimeType: string;
};
export type RawEmbeddedResource = {
_meta?: {
[key: string]: unknown;
@@ -520,9 +529,11 @@ export type RawImageContent = {
export type RawResource = {
description?: string;
icons?: Array<Icon>;
mimeType?: string;
name: string;
size?: number;
title?: string;
uri: string;
};
@@ -826,6 +837,7 @@ export type Tool = {
[key: string]: unknown;
};
description?: string;
icons?: Array<Icon>;
inputSchema: {
[key: string]: unknown;
};
@@ -833,6 +845,7 @@ export type Tool = {
outputSchema?: {
[key: string]: unknown;
};
title?: string;
};
export type ToolAnnotations = {