Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion crates/rmcp/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,13 @@ pub enum Reference {
impl Reference {
/// Create a prompt reference
pub fn for_prompt(name: impl Into<String>) -> Self {
Self::Prompt(PromptReference { name: name.into() })
// Not accepting `title` currently as it'll break the API
// Until further decision, keep it `None`, modify later
// if required, add `title` to the API
Self::Prompt(PromptReference {
name: name.into(),
title: None,
})
}

/// Create a resource reference
Expand Down