From d2c8ced0b8038011c59d62353df0e63a61ac80bb Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Wed, 2 Oct 2024 14:10:43 +0100 Subject: [PATCH] Update schema to latest --- src/types/schema.ts | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/types/schema.ts b/src/types/schema.ts index a6ee018d..bc85a3b7 100644 --- a/src/types/schema.ts +++ b/src/types/schema.ts @@ -331,6 +331,21 @@ export interface Resource { * @format uri */ uri: string; + + /** + * A human-readable name for this resource. + * + * This can be used by clients to populate UI elements. + */ + name: string; + + /** + * A description of what this resource represents. + * + * 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. + */ + description?: string; + /** * The MIME type of this resource, if known. */ @@ -347,14 +362,21 @@ export interface ResourceTemplate { * @format uri-template */ uriTemplate: string; + /** * A human-readable name for the type of resource this template refers to. + * + * This can be used by clients to populate UI elements. */ - name?: string; + name: string; + /** - * A human-readable description of what this template is for. + * A description of what this template is for. + * + * 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. */ description?: string; + /** * 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. */