Skip to content

Commit d2c8ced

Browse files
committed
Update schema to latest
1 parent 9a1ee29 commit d2c8ced

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/types/schema.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,21 @@ export interface Resource {
331331
* @format uri
332332
*/
333333
uri: string;
334+
335+
/**
336+
* A human-readable name for this resource.
337+
*
338+
* This can be used by clients to populate UI elements.
339+
*/
340+
name: string;
341+
342+
/**
343+
* A description of what this resource represents.
344+
*
345+
* 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.
346+
*/
347+
description?: string;
348+
334349
/**
335350
* The MIME type of this resource, if known.
336351
*/
@@ -347,14 +362,21 @@ export interface ResourceTemplate {
347362
* @format uri-template
348363
*/
349364
uriTemplate: string;
365+
350366
/**
351367
* A human-readable name for the type of resource this template refers to.
368+
*
369+
* This can be used by clients to populate UI elements.
352370
*/
353-
name?: string;
371+
name: string;
372+
354373
/**
355-
* A human-readable description of what this template is for.
374+
* A description of what this template is for.
375+
*
376+
* 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.
356377
*/
357378
description?: string;
379+
358380
/**
359381
* 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.
360382
*/

0 commit comments

Comments
 (0)