Skip to content

Commit 1d3f8a4

Browse files
evalstatebhosmer-ant
authored andcommitted
Include a discriminated LinkedResource for embedding Resources in Tool Results and Prompts
1 parent 22e8b33 commit 1d3f8a4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

schema/draft/schema.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -637,20 +637,6 @@ export interface PromptMessage {
637637
content: ContentBlock;
638638
}
639639

640-
/**
641-
*
642-
* A reference to a resource descriptor, embedded into a prompt or tool call result.
643-
*
644-
* It is up to the client how best to render linked resources for the benefit
645-
* of the LLM and/or the user.
646-
*
647-
*/
648-
export interface LinkedResource {
649-
type: "linkedresource";
650-
resource: Resource;
651-
}
652-
653-
654640
/**
655641
* The contents of a resource, embedded into a prompt or tool call result.
656642
*
@@ -666,6 +652,20 @@ export interface EmbeddedResource {
666652
*/
667653
annotations?: Annotations;
668654
}
655+
656+
/**
657+
*
658+
* A resource descriptor, embedded into a prompt or tool call result.
659+
*
660+
* It is up to the client how best to render linked resources for the benefit
661+
* of the LLM and/or the user.
662+
*
663+
*/
664+
export interface LinkedResource {
665+
type: "linkedresource";
666+
resource: Resource;
667+
}
668+
669669
/**
670670
* An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
671671
*/

0 commit comments

Comments
 (0)