Changed example

This commit is contained in:
Rishi Nandha Vanchi 2025-06-25 20:10:57 +05:30 • committed by GitHub
commit ca9924b20b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -393,7 +393,7 @@ import {CreateMessageResult} from "@modelcontextprotocol/sdk/types.js";
// Async Function to send a sampling request to the LLM at top-level
async function samplingExample(server: McpServer): Promise<CreateMessageResult> {
const samplingText = "Text prompt to send to LLM";
const samplingText = "Example Sampling Prompt";
const result = await McpServer.server.createMessage(
{
messages : [{