diff --git a/BeWo/Styles/Features/AIChatStyles.xaml b/BeWo/Styles/Features/AIChatStyles.xaml index 7e1984275..82447a4d7 100644 --- a/BeWo/Styles/Features/AIChatStyles.xaml +++ b/BeWo/Styles/Features/AIChatStyles.xaml @@ -436,11 +436,12 @@ - + + + + + + (i) + + Prompt-Text des verwendeten Promptbausteins (nur befüllt, wenn ShowPrompt true). public string UsedPromptbausteinContent => DataContract.UsedPromptbausteinContent; + /// Hilfe-Link (OwnsoftRefLink) des verwendeten Ownsoft-Promptbausteins, sonst null. + public string OwnsoftRefLink => DataContract.OwnsoftRefLink; + + /// Steuert, ob der (i)-Hilfe-Link neben der Nachricht angezeigt wird (vgl. AiPromptbausteinPromptVM.IsInfoVisible). + public bool IsInfoVisible => !string.IsNullOrWhiteSpace(OwnsoftRefLink); + /// Schrittnummer innerhalb der Routine (0-basiert), sonst null. public int? StepCount => DataContract.StepCount; diff --git a/Service/DCEntityMapper/AiConversationMessageDC_AiConversationMessage.cs b/Service/DCEntityMapper/AiConversationMessageDC_AiConversationMessage.cs index 53d67649e..b7217d953 100644 --- a/Service/DCEntityMapper/AiConversationMessageDC_AiConversationMessage.cs +++ b/Service/DCEntityMapper/AiConversationMessageDC_AiConversationMessage.cs @@ -35,6 +35,10 @@ namespace BeWo.Service.DCEntityMapper pDataContract.ShowPrompt = promptbaustein != null && promptbaustein.ShowPrompt; // Prompt-Inhalt nur ausliefern, wenn sichtbar (sonst "Versteckt"). pDataContract.UsedPromptbausteinContent = pDataContract.ShowPrompt ? promptbaustein.Prompt : null; + // Hilfe-Link nur für Ownsoft-Promptbausteine mit hinterlegtem Link (vgl. AiPromptbausteinPromptVM.IsInfoVisible). + pDataContract.OwnsoftRefLink = promptbaustein != null && promptbaustein.IsOwnsoftPrompt && !string.IsNullOrWhiteSpace(promptbaustein.OwnsoftRefLink) + ? promptbaustein.OwnsoftRefLink + : null; pDataContract.Message = pDataContract.ShowMessage ? pEntity.Message : null; diff --git a/Shared/DataContracts/Feature/AI/AiConversationMessageDC.cs b/Shared/DataContracts/Feature/AI/AiConversationMessageDC.cs index fba4b7a4d..d2e83168c 100644 --- a/Shared/DataContracts/Feature/AI/AiConversationMessageDC.cs +++ b/Shared/DataContracts/Feature/AI/AiConversationMessageDC.cs @@ -23,6 +23,8 @@ namespace BS.Shared.DataContracts.Feature.AI [DataMember] public bool ShowPrompt { get; set; } /// Prompt-Text des verwendeten Promptbausteins. Nur befüllt, wenn ShowPrompt true ist (sonst null / "Versteckt"). [DataMember] public string UsedPromptbausteinContent { get; set; } + /// Hilfe-Link (OwnsoftRefLink) des verwendeten Ownsoft-Promptbausteins. Nur befüllt, wenn es ein Ownsoft-Promptbaustein mit hinterlegtem Link ist (sonst null). + [DataMember] public string OwnsoftRefLink { get; set; } /// Schrittnummer (0-basiert) innerhalb der Routine, falls die Conversation innerhalb einer Routine ausgeführt wurde (sonst null). [DataMember] public int? StepCount { get; set; } }