Skip to content

Commit fb068ae

Browse files
authored
problems(elicitations): Fix comment typo from 'elicitInput' to 'elicitation' (#11)
1 parent bd37b65 commit fb068ae

File tree

1 file changed

+2
-2
lines changed
  • exercises/02.elicitation/01.problem/src

1 file changed

+2
-2
lines changed

exercises/02.elicitation/01.problem/src/tools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,12 @@ export async function initializeTools(agent: EpicMeMCP) {
290290
const existingTag = await agent.db.getTag(id)
291291
invariant(existingTag, `Tag ID "${id}" not found`)
292292

293-
// 🐨 first check whether the client has the elicitInput capability, if it does then:
293+
// 🐨 first check whether the client has the elicitation capability, if it does then:
294294
// 🐨 Use agent.server.server.elicitInput to ask the user to confirm deletion of the tag.
295295
// - The message should be: `Are you sure you want to delete tag "${existingTag.name}" (ID: ${id})?`
296296
// - The requestedSchema should be an object with a boolean property "confirmed".
297297
// 🐨 If the user does not confirm, return structuredContent with success: false and the tag.
298-
// - Also return content with a text block saying "Tag deletion cancelled", the tag resource link, and the structuredContent.
298+
// - Also return content with a text block saying `Deleting tag "${existingTag.name}" (ID: ${id}) rejected by the user.`, the tag resource link, and the structuredContent.
299299

300300
await agent.db.deleteTag(id)
301301
const structuredContent = { success: true, tag: existingTag }

0 commit comments

Comments
 (0)