Fixed Tabs

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

View file

@ -393,20 +393,20 @@ 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 result = await McpServer.server.createMessage(
{
messages : [{
role: "user",
content: {
text: samplingText,
type: "text"
}
}],
maxTokens: 1000
}
);
return result;
const samplingText = "Text prompt to send to LLM";
const result = await McpServer.server.createMessage(
{
messages : [{
role: "user",
content: {
text: samplingText,
type: "text"
}
}],
maxTokens: 1000
}
);
return result;
}
// Sampling request just after connecting to MCP Client