Fixed Tabs
This commit is contained in:
parent
7a64f97493
commit
b232faf798
1 changed files with 14 additions and 14 deletions
28
README.md
28
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue