fix: build issue due to missing struct field (#427)

Commit 452fe2c broke `Reference::for_prompt` where it missed
the field `title` for `struct PromptReference`, which broke
the build.

This commit fixes that.
This commit is contained in:
sktrpathi 2025-09-08 13:06:36 +05:30 • committed by GitHub
commit 926cb33845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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