Skip to content

Commit 4641c3e

Browse files
evalstatebhosmer-ant
authored andcommitted
preparing documentation updates
1 parent 307ab83 commit 4641c3e

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

docs/specification/draft/server/tools.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ Tool results may contain [**structured**](#structured-content) or **unstructured
230230
}
231231
```
232232

233+
#### Linked Resources
234+
235+
[Resources](/specification/draft/server/resources) **MAY** be linked, to provide additional context
236+
or data, behind a URI that can be subscribed to or fetched again by the client later:
237+
238+
233239
#### Embedded Resources
234240

235241
[Resources](/specification/draft/server/resources) **MAY** be embedded, to provide additional context

schema/draft/schema.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,20 @@ 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+
640654
/**
641655
* The contents of a resource, embedded into a prompt or tool call result.
642656
*
@@ -652,20 +666,6 @@ export interface EmbeddedResource {
652666
*/
653667
annotations?: Annotations;
654668
}
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
*/
@@ -971,8 +971,8 @@ export type ContentBlock =
971971
| TextContent
972972
| ImageContent
973973
| AudioContent
974-
| EmbeddedResource
975-
| LinkedResource;
974+
| LinkedResource
975+
| EmbeddedResource;
976976

977977
/**
978978
* Text provided to or from an LLM.

0 commit comments

Comments
 (0)