Why doesn't the Prompt type have a messages property?
#1981
Unanswered
glen-84
asked this question in
Q&A - Server implementation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://modelcontextprotocol.io/specification/draft/server/prompts#prompt
Why is there no relationship between the
Promptand thePromptMessage?Imagine that you have
PromptandPromptMessageentities in your code, and a list ofPrompts. To handleprompts/list, you simply projectPrompts into theListPromptsResult.However, for
prompts/get, you would want to project thePromptdescription along with the messages, but there is no connection between aPromptand its messages. You would now need to create some kind of awkwardPromptWithMessagesentity withpromptandmessagesproperties to represent this relationship, or perhaps use a tuple(prompt, messages).Is there a reason why the messages are not connected to the prompt?
Beta Was this translation helpful? Give feedback.
All reactions