Skip to content

Commit 41b43c4

Browse files
committed
Make clearer that resources embedded into prompts include text or binary
1 parent 60fee0d commit 41b43c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

schema/schema.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,11 @@ export interface PromptArgument {
558558
* Describes a message returned as part of a prompt.
559559
*
560560
* This is similar to `SamplingMessage`, but also supports the embedding of
561-
* resource contents from the MCP server.
561+
* resources from the MCP server.
562562
*/
563563
export interface PromptMessage {
564564
role: "user" | "assistant";
565-
content: TextContent | ImageContent | PromptResourceContents;
565+
content: TextContent | ImageContent | PromptEmbeddedResource;
566566
}
567567

568568
/**
@@ -571,8 +571,9 @@ export interface PromptMessage {
571571
* It is up to the client how best to render embedded resources for the benefit
572572
* of the LLM and/or the user.
573573
*/
574-
export interface PromptResourceContents extends ResourceContents {
574+
export interface PromptEmbeddedResource {
575575
type: "resource";
576+
resource: TextResourceContents | BlobResourceContents;
576577
}
577578

578579
/**

0 commit comments

Comments
 (0)