Skip to content

Commit 41b5fac

Browse files
committed
reverts
1 parent 51a8615 commit 41b5fac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/concepts/prompts/prompts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ public static IEnumerable<ChatMessage> AnalyzeImage(
9898
For protocol-specific content types like <xref:ModelContextProtocol.Protocol.EmbeddedResourceBlock>, use <xref:ModelContextProtocol.Protocol.PromptMessage> instead of <xref:Microsoft.Extensions.AI.ChatMessage>. <xref:ModelContextProtocol.Protocol.PromptMessage> has a `Role` property and a single `Content` property of type <xref:ModelContextProtocol.Protocol.ContentBlock>:
9999

100100
```csharp
101-
[McpServerPrompt, Description("A prompt that includes a article resource")]
101+
[McpServerPrompt, Description("A prompt that includes a document resource")]
102102
public static IEnumerable<PromptMessage> ReviewDocument(
103-
[Description("The article ID to review")] string documentId)
103+
[Description("The document ID to review")] string documentId)
104104
{
105105
string content = LoadDocument(documentId); // Application logic to load by ID.
106106
return
107107
[
108108
new PromptMessage
109109
{
110110
Role = Role.User,
111-
Content = new TextContentBlock { Text = "Please review the following article:" }
111+
Content = new TextContentBlock { Text = "Please review the following document:" }
112112
},
113113
new PromptMessage
114114
{

docs/concepts/tools/tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Return an <xref:ModelContextProtocol.Protocol.EmbeddedResourceBlock> to embed a
9696
The resource can contain either text or binary data through <xref:ModelContextProtocol.Protocol.TextResourceContents> or <xref:ModelContextProtocol.Protocol.BlobResourceContents>:
9797

9898
```csharp
99-
[McpServerTool, Description("Returns a article as an embedded resource")]
99+
[McpServerTool, Description("Returns a document as an embedded resource")]
100100
public static EmbeddedResourceBlock GetDocument()
101101
{
102102
return new EmbeddedResourceBlock
@@ -105,7 +105,7 @@ public static EmbeddedResourceBlock GetDocument()
105105
{
106106
Uri = "docs://readme",
107107
MimeType = "text/plain",
108-
Text = "This is the article content."
108+
Text = "This is the document content."
109109
}
110110
};
111111
}

0 commit comments

Comments
 (0)