Skip to content

Commit 3fb5424

Browse files
committed
Add Resource.description
1 parent e47d2d8 commit 3fb5424

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

schema/schema.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,19 @@ export interface Resource {
333333
uri: string;
334334

335335
/**
336-
* An optional human-readable name for this resource.
336+
* A human-readable name for this resource.
337337
*
338338
* This can be used by clients to populate UI elements.
339339
*/
340340
name: string;
341341

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+
342349
/**
343350
* The MIME type of this resource, if known.
344351
*/
@@ -355,14 +362,21 @@ export interface ResourceTemplate {
355362
* @format uri-template
356363
*/
357364
uriTemplate: string;
365+
358366
/**
359367
* 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.
360370
*/
361371
name: string;
372+
362373
/**
363-
* 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.
364377
*/
365378
description?: string;
379+
366380
/**
367381
* 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.
368382
*/

0 commit comments

Comments
 (0)