Remove comments
This commit is contained in:
parent
a2a83cc40e
commit
0670875117
1 changed files with 1 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ export const createServer = () => {
|
||||||
name: "example-servers/everything",
|
name: "example-servers/everything",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
capabilities: {
|
capabilities: {
|
||||||
prompts: {},
|
prompts: {},
|
||||||
resources: { subscribe: true },
|
resources: { subscribe: true },
|
||||||
|
|
@ -216,7 +216,6 @@ export const createServer = () => {
|
||||||
return await server.request(request, CreateMessageResultSchema);
|
return await server.request(request, CreateMessageResultSchema);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Helper method to make elicitation requests
|
|
||||||
const requestElicitation = async (
|
const requestElicitation = async (
|
||||||
message: string,
|
message: string,
|
||||||
requestedSchema: any
|
requestedSchema: any
|
||||||
|
|
@ -682,7 +681,6 @@ export const createServer = () => {
|
||||||
if (name === ToolName.ELICITATION_DEMO) {
|
if (name === ToolName.ELICITATION_DEMO) {
|
||||||
const { message, includeSchema } = ElicitationSchema.parse(args);
|
const { message, includeSchema } = ElicitationSchema.parse(args);
|
||||||
|
|
||||||
// Make the elicitation request like in your example
|
|
||||||
const elicitationResult = await requestElicitation(
|
const elicitationResult = await requestElicitation(
|
||||||
'What are your favorite things?',
|
'What are your favorite things?',
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue