Skip to content

Commit d35200f

Browse files
committed
todos
1 parent fbda857 commit d35200f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/prompts.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ export function registerPrompts(server: Server) {
4646
});
4747

4848
server.setRequestHandler(GetPromptRequestSchema, async (request) => {
49+
// if (request.params.name == "examples") {
50+
// return GetExamplePromptMessages();
51+
// } else
4952
if (request.params.name !== "run_command") {
50-
throw new Error("Unknown prompt");
53+
throw new Error(
54+
"Unknown or not implemented prompt: " + request.params.name
55+
);
5156
}
5257
verbose_log("INFO: PromptRequest", request);
5358

5459
const command = String(request.params.arguments?.command);
5560
if (!command) {
61+
// TODO is there a format to follow for reporting failure like isError for tools?
5662
throw new Error("Command is required");
5763
}
5864
// Is it possible/feasible to pass a path for the workdir when running the command?
@@ -96,3 +102,6 @@ export function registerPrompts(server: Server) {
96102
return { messages };
97103
});
98104
}
105+
function GetExamplePromptMessages(): PromptMessage[] {
106+
throw new Error("Function not implemented.");
107+
}

0 commit comments

Comments
 (0)