From b2a8e1083cdeb7a87587e8c063c3a9895493ede0 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Mon, 8 Dec 2025 15:39:16 +0100 Subject: [PATCH] Rename + neue Attribute --- BeWo/ViewModel/AiPromptbausteinTreeVM.cs | 167 ++++++++++++------ .../AiPromptbausteinTreeListVM.cs | 41 +---- .../ListViewModel/ServiceRecordListVM.cs | 2 +- .../AI/AiPromptbausteinSelectionViewModel.cs | 4 +- .../AiPromptbausteinDetailViewModel.cs | 3 +- .../AiPromptbausteinTreeViewModel.cs | 28 +-- ...AiPromptbausteinTreeDC_AiPromptbaustein.cs | 8 +- Service/Plugins/AiFunctionService.cs | 2 +- Shared/BeWoEntityEnums.cs | 1 + .../Feature/AI/AiPromptbausteinDC.cs | 24 +++ .../Feature/AI/AiPromptbausteinTreeDC.cs | 61 ++++--- Shared/Shared.csproj | 1 + 12 files changed, 198 insertions(+), 144 deletions(-) create mode 100644 Shared/DataContracts/Feature/AI/AiPromptbausteinDC.cs diff --git a/BeWo/ViewModel/AiPromptbausteinTreeVM.cs b/BeWo/ViewModel/AiPromptbausteinTreeVM.cs index f17bc1ab9..c5dfdf0b0 100644 --- a/BeWo/ViewModel/AiPromptbausteinTreeVM.cs +++ b/BeWo/ViewModel/AiPromptbausteinTreeVM.cs @@ -7,6 +7,7 @@ using BeWo.ServiceProxy; using BeWo.Validation; using BeWo.ViewModel.ListViewModel; using BS.Shared; +using BS.Shared.DataContracts; using BS.Shared.DataContracts.Compact; using BS.Shared.DataContracts.Feature.AI; using BS.Shared.Extensions; @@ -15,51 +16,35 @@ namespace BeWo.ViewModel { public class AiPromptbausteinTreeVM : AbstractDCMapperVM { - private string _Name; - private string _Prompt; - private CompactEmployeeDC _Creator; - private bool _IsPublic; - private bool _IsKategorie; - private bool _IsExpanded; + private string _Displayname; + private string _Content; private ActivationTypeId _ActivationType; + private AiPromptbausteinType _PromptbausteinType; + private string _Metadata; + private AiActionType _AiActionType; + private CompactEmployeeDC _Creator; + private bool _IsOnlyForCreator; + private bool _ShowUserPrompt; + private bool _ShowUserPromptByTenant; + private int _Position; + private bool _IsExpanded; private AiPromptbausteinTreeListVM _Children; - public AiPromptbausteinTreeVM(AiPromptbausteinTreeDC pDataContract) : base(pDataContract, pDataContract?.Oid == null) {} - - public string Name + public AiPromptbausteinTreeVM(AiPromptbausteinTreeDC dc) : base(dc, dc.Oid) { - get => _Name; - set => SetProperty(ref _Name, value, nameof(Name), () => DataContract.Name); + } - public string Prompt + public string Displayname { - get => _Prompt; - set => SetProperty(ref _Prompt, value, nameof(Prompt), () => DataContract.Prompt); + get => _Displayname; + set => SetProperty(ref _Displayname, value, nameof(Displayname), () => DataContract.Displayname); } - public CompactEmployeeDC Creator + public string Content { - get => _Creator; - set => SetProperty(ref _Creator, value, nameof(Creator), () => DataContract.Creator); - } - - public bool IsPublic - { - get => _IsPublic; - set => SetProperty(ref _IsPublic, value, nameof(IsPublic), () => DataContract.IsPublic); - } - - public bool IsKategorie - { - get => _IsKategorie; - set => SetProperty(ref _IsKategorie, value, nameof(IsKategorie), () => DataContract.IsKategorie); - } - - public bool IsExpanded - { - get => _IsExpanded; - set => SetProperty(ref _IsExpanded, value, nameof(IsExpanded), () => DataContract.IsExpanded); + get => _Content; + set => SetProperty(ref _Content, value, nameof(Content), () => DataContract.Content); } public ActivationTypeId ActivationType @@ -68,13 +53,67 @@ namespace BeWo.ViewModel set => SetProperty(ref _ActivationType, value, nameof(ActivationType), () => DataContract.ActivationType); } + public AiPromptbausteinType PromptbausteinType + { + get => _PromptbausteinType; + set => SetProperty(ref _PromptbausteinType, value, nameof(PromptbausteinType), () => DataContract.PromptbausteinType); + } + + public string Metadata + { + get => _Metadata; + set => SetProperty(ref _Metadata, value, nameof(Metadata), () => DataContract.Metadata); + } + + public AiActionType AiActionType + { + get => _AiActionType; + set => SetProperty(ref _AiActionType, value, nameof(AiActionType), () => DataContract.AiActionType); + } + + public CompactEmployeeDC Creator + { + get => _Creator; + set => SetProperty(ref _Creator, value, nameof(Creator), () => DataContract.Creator); + } + + public bool IsOnlyForCreator + { + get => _IsOnlyForCreator; + set => SetProperty(ref _IsOnlyForCreator, value, nameof(IsOnlyForCreator), () => DataContract.IsOnlyForCreator); + } + + public bool ShowUserPrompt + { + get => _ShowUserPrompt; + set => SetProperty(ref _ShowUserPrompt, value, nameof(ShowUserPrompt), () => DataContract.ShowUserPrompt); + } + + public bool ShowUserPromptByTenant + { + get => _ShowUserPromptByTenant; + set => SetProperty(ref _ShowUserPromptByTenant, value, nameof(ShowUserPromptByTenant), () => DataContract.ShowUserPromptByTenant); + } + + public int Position + { + get => _Position; + set => SetProperty(ref _Position, value, nameof(Position), () => DataContract.Position); + } + + public bool IsExpanded + { + get => _IsExpanded; + set => SetProperty(ref _IsExpanded, value, nameof(IsExpanded), () => DataContract.IsExpanded); + } + public AiPromptbausteinTreeListVM Children { get => _Children; - private set => SetProperty(ref _Children, value, nameof(Children)); + set => SetProperty(ref _Children, value, nameof(Children)); } - public FontWeight FontWeight => IsKategorie ? FontWeights.Bold : FontWeights.Regular; + public FontWeight FontWeight => PromptbausteinType != AiPromptbausteinType.Prompt ? FontWeights.Bold : FontWeights.Regular; public AiPromptbausteinTreeVM Parent { get; set; } @@ -83,25 +122,36 @@ namespace BeWo.ViewModel if (pDataContract is null) return; - _Name = pDataContract.Name; - _Prompt = pDataContract.Prompt; - _Creator = pDataContract.Creator; - _IsPublic = pDataContract.IsPublic; - _IsKategorie = pDataContract.IsKategorie; - _IsExpanded = pDataContract.IsExpanded; + _Displayname = pDataContract.Displayname; + _Content = pDataContract.Content; _ActivationType = pDataContract.ActivationType; + _PromptbausteinType = pDataContract.PromptbausteinType; + _Metadata = pDataContract.Metadata; + _AiActionType = pDataContract.AiActionType; + _Creator = pDataContract.Creator; + _IsOnlyForCreator = pDataContract.IsOnlyForCreator; + _ShowUserPrompt = pDataContract.ShowUserPrompt; + _ShowUserPromptByTenant = pDataContract.ShowUserPromptByTenant; + _Position = pDataContract.Position; + _IsExpanded = pDataContract.IsExpanded; + _Children = new AiPromptbausteinTreeListVM(pDataContract.Children, this); } protected override AiPromptbausteinTreeDC MapToDataContract(AiPromptbausteinTreeDC pDataContract, bool doCommit) { - pDataContract.Name = _Name; - pDataContract.Prompt = _Prompt; - pDataContract.Creator = _Creator; - pDataContract.IsPublic = _IsPublic; - pDataContract.IsKategorie = _IsKategorie; - pDataContract.IsExpanded = _IsExpanded; + pDataContract.Displayname = _Displayname; + pDataContract.Content = _Content; pDataContract.ActivationType = _ActivationType; + pDataContract.PromptbausteinType = _PromptbausteinType; + pDataContract.Metadata = _Metadata; + pDataContract.AiActionType = _AiActionType; + pDataContract.Creator = _Creator; + pDataContract.IsOnlyForCreator = _IsOnlyForCreator; + pDataContract.ShowUserPrompt = _ShowUserPrompt; + pDataContract.ShowUserPromptByTenant = _ShowUserPromptByTenant; + pDataContract.Position = _Position; + pDataContract.IsExpanded = _IsExpanded; if (_Children != null) { @@ -115,14 +165,19 @@ namespace BeWo.ViewModel { var rtn = new AiPromptbausteinTreeVM(new AiPromptbausteinTreeDC()); - rtn.Name = _Name; - rtn.Prompt = _Prompt; - rtn.Creator = _Creator; - rtn.IsPublic = _IsPublic; - rtn.IsKategorie = _IsKategorie; - rtn.IsExpanded = _IsExpanded; + rtn.Displayname = _Displayname; + rtn.Content = _Content; rtn.ActivationType = _ActivationType; - + rtn.PromptbausteinType = _PromptbausteinType; + rtn.Metadata = _Metadata; + rtn.AiActionType = _AiActionType; + rtn.Creator = _Creator; + rtn.IsOnlyForCreator = _IsOnlyForCreator; + rtn.ShowUserPrompt = _ShowUserPrompt; + rtn.ShowUserPromptByTenant = _ShowUserPromptByTenant; + rtn.Position = _Position; + rtn.IsExpanded = _IsExpanded; + return rtn; } } diff --git a/BeWo/ViewModel/ListViewModel/AiPromptbausteinTreeListVM.cs b/BeWo/ViewModel/ListViewModel/AiPromptbausteinTreeListVM.cs index a669cb207..5bb7a0b2f 100644 --- a/BeWo/ViewModel/ListViewModel/AiPromptbausteinTreeListVM.cs +++ b/BeWo/ViewModel/ListViewModel/AiPromptbausteinTreeListVM.cs @@ -25,46 +25,9 @@ namespace BeWo.ViewModel.ListViewModel #region Designer private void InitDesigner() { - var prompt_1 = new AiPromptbausteinTreeDC() - { - Name = "Prompt 1", - Prompt = "Erstelle eine Zusammenfassung" - }; + var prompts = new PredefinedAiPromptbausteine(); - var prompt_2 = new AiPromptbausteinTreeDC() - { - Name = "Prompt 2", - Prompt = "Erstelle eine Stichpunktliste" - }; - - var prompt_3 = new AiPromptbausteinTreeDC() - { - Name = "Prompt 3", - Prompt = "Erstelle eine kurze Zusammenfassung" - }; - - var prompt_4 = new AiPromptbausteinTreeDC() - { - Name = "Prompt 4", - Prompt = "Erstelle eine kurze Stichpunktliste" - }; - - var kategorie_1 = new AiPromptbausteinTreeDC() - { - Name = "Kategorie 1", - IsKategorie = true, - Children = new List { prompt_1, prompt_2 } - }; - - var kategorie_2 = new AiPromptbausteinTreeDC() - { - Name = "Kategorie 2", - IsKategorie = true, - Children = new List { prompt_3, prompt_4 } - }; - - VMList.Add(new AiPromptbausteinTreeVM(kategorie_1)); - VMList.Add(new AiPromptbausteinTreeVM(kategorie_2)); + VMList.Add(new AiPromptbausteinTreeVM(prompts.Zeiterfassung)); } #endregion } diff --git a/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs b/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs index 8131193c7..732791e78 100644 --- a/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs +++ b/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs @@ -186,7 +186,7 @@ namespace BeWo.ViewModel.ListViewModel private void PromptAccepted(object sender, AiPromptbausteinTreeVM prompt) { - if (prompt is null || prompt.IsKategorie) + if (prompt is null || prompt.PromptbausteinType != AiPromptbausteinType.Prompt) throw new NotImplementedException(); // 1. Information aufbereiten diff --git a/BeWo/ViewModel/View/AI/AiPromptbausteinSelectionViewModel.cs b/BeWo/ViewModel/View/AI/AiPromptbausteinSelectionViewModel.cs index 8dbea62e1..f0106ae86 100644 --- a/BeWo/ViewModel/View/AI/AiPromptbausteinSelectionViewModel.cs +++ b/BeWo/ViewModel/View/AI/AiPromptbausteinSelectionViewModel.cs @@ -18,9 +18,9 @@ namespace BeWo.ViewModel.View.AI public AiPromptbausteinSelectionViewModel() { - Func isPrompt = () => SelectedNode is object && !SelectedNode.IsKategorie; + //Func isPrompt = () => SelectedNode is object && !SelectedNode.IsKategorie; - SendCommand = new DelegateCommand(Send, isPrompt); + //SendCommand = new DelegateCommand(Send, isPrompt); if (BeWoApp.IsInDesignMode) { diff --git a/BeWo/ViewModel/View/Administration/AiPromptbausteinDetailViewModel.cs b/BeWo/ViewModel/View/Administration/AiPromptbausteinDetailViewModel.cs index 3c0898b4c..ef400c40f 100644 --- a/BeWo/ViewModel/View/Administration/AiPromptbausteinDetailViewModel.cs +++ b/BeWo/ViewModel/View/Administration/AiPromptbausteinDetailViewModel.cs @@ -35,8 +35,7 @@ namespace BeWo.ViewModel.View.Administration public bool IsAdd { get; set; } public bool IsEditingMode { get; set; } - public bool IsKategorie => Node.IsKategorie; - public string PromptLabelDescription => IsKategorie ? "Beschreibung:" : "Prompt:"; + public string PromptLabelDescription => Node.PromptbausteinType.ToString() + ":"; public ICommand AddCommand { get; set; } public void Add() diff --git a/BeWo/ViewModel/View/Administration/AiPromptbausteinTreeViewModel.cs b/BeWo/ViewModel/View/Administration/AiPromptbausteinTreeViewModel.cs index fcdfafd38..1cd311300 100644 --- a/BeWo/ViewModel/View/Administration/AiPromptbausteinTreeViewModel.cs +++ b/BeWo/ViewModel/View/Administration/AiPromptbausteinTreeViewModel.cs @@ -21,20 +21,20 @@ namespace BeWo.ViewModel.View.Administration ListVM = new AiPromptbausteinTreeListVM(); } - Func isObject = () => SelectedNode is object; - Func isKategorie = () => SelectedNode?.IsKategorie ?? false; - Func canAdd = () => !isObject() || isKategorie(); - Func isNoLeaf = () => isObject() && isKategorie(); - Func isNotSame = () => !Contains(CopyTreeNode, SelectedNode); - Func canCopy = () => HasCopiedTreeNode && canAdd() && isNotSame(); + //Func isObject = () => SelectedNode is object; + //Func isKategorie = () => SelectedNode?.IsKategorie ?? false; + //Func canAdd = () => !isObject() || isKategorie(); + //Func isNoLeaf = () => isObject() && isKategorie(); + //Func isNotSame = () => !Contains(CopyTreeNode, SelectedNode); + //Func canCopy = () => HasCopiedTreeNode && canAdd() && isNotSame(); - AddPromptCommand = new DelegateCommand(() => Add(false), canAdd); - AddKategorieCommand = new DelegateCommand(() => Add(true), canAdd); - EditPromptbausteinCommand = new DelegateCommand(EditPromptbaustein, isObject); - CopyPromptbausteinCommand = new DelegateCommand(CopyPromptbaustein, isNoLeaf); - CopySinglePromptbausteinCommand = new DelegateCommand(CopySinglePromptbaustein, isObject); - PastePromptbausteinCommand = new DelegateCommand(PastePromptbaustein, canCopy); - DeletePromptbausteinCommand = new DelegateCommand(DeletePromptbaustein, isObject); + //AddPromptCommand = new DelegateCommand(() => Add(false), canAdd); + //AddKategorieCommand = new DelegateCommand(() => Add(true), canAdd); + //EditPromptbausteinCommand = new DelegateCommand(EditPromptbaustein, isObject); + //CopyPromptbausteinCommand = new DelegateCommand(CopyPromptbaustein, isNoLeaf); + //CopySinglePromptbausteinCommand = new DelegateCommand(CopySinglePromptbaustein, isObject); + //PastePromptbausteinCommand = new DelegateCommand(PastePromptbaustein, canCopy); + //DeletePromptbausteinCommand = new DelegateCommand(DeletePromptbaustein, isObject); } public AiPromptbausteinTreeViewModel(IWindowService windowService) : this() @@ -71,7 +71,7 @@ namespace BeWo.ViewModel.View.Administration { var parent = SelectedNode?.Children ?? ListVM; parent.NewVM = null; - parent.NewVM.IsKategorie = isKategorie; + //parent.NewVM.IsKategorie = isKategorie; WindowService.ShowAiPromptbausteinDetailWindow(AiPromptbausteinDetailViewModel.CreateAdd(this, parent.NewVM, parent)); } diff --git a/Service/DCEntityMapper/AiPromptbausteinTreeDC_AiPromptbaustein.cs b/Service/DCEntityMapper/AiPromptbausteinTreeDC_AiPromptbaustein.cs index 7a8c19d14..3e76a7819 100644 --- a/Service/DCEntityMapper/AiPromptbausteinTreeDC_AiPromptbaustein.cs +++ b/Service/DCEntityMapper/AiPromptbausteinTreeDC_AiPromptbaustein.cs @@ -12,8 +12,8 @@ namespace BeWo.Service.DCEntityMapper //dataContract.Position = entity.Position; to.Version = from.Version.Value; to.Oid = from.Oid.Value; - to.Prompt = from.Text; - to.Name = from.Name; + to.Content = from.Text; + to.Displayname = from.Name; //dataContract.IsOnlyForEmployee = entity.IsOnlyForEmployee; to.ActivationType = from.IsActive; @@ -29,8 +29,8 @@ namespace BeWo.Service.DCEntityMapper //entity.Position = dataContract.Position; to.Oid = from.Oid; - to.Text = from.Prompt; - to.Name = from.Name; + to.Text = from.Content; + to.Name = from.Displayname; //to.IsOnlyForEmployee = from.IsOnlyForEmployee; to.IsActive = from.ActivationType; diff --git a/Service/Plugins/AiFunctionService.cs b/Service/Plugins/AiFunctionService.cs index 711e06fc2..edaa6900d 100644 --- a/Service/Plugins/AiFunctionService.cs +++ b/Service/Plugins/AiFunctionService.cs @@ -42,7 +42,7 @@ namespace BeWo.Service.Plugins var predefined = new PredefinedAiPromptbausteine(); var prompts = predefined.GetAllPromptbausteine(); - var prompt = prompts.First(x => x.Oid == user_prompt_oid).Prompt; + var prompt = prompts.First(x => x.Oid == user_prompt_oid).Content; // Anfrage abschicken var result = getResult(system_prompt, prompt); diff --git a/Shared/BeWoEntityEnums.cs b/Shared/BeWoEntityEnums.cs index 6a2af294e..5ff4938e4 100644 --- a/Shared/BeWoEntityEnums.cs +++ b/Shared/BeWoEntityEnums.cs @@ -1401,6 +1401,7 @@ namespace BS.Shared public enum AiActionType { + ServiceRecord, ServiceRecordConversation, ServiceRecordDocumentation } diff --git a/Shared/DataContracts/Feature/AI/AiPromptbausteinDC.cs b/Shared/DataContracts/Feature/AI/AiPromptbausteinDC.cs new file mode 100644 index 000000000..222fd9cab --- /dev/null +++ b/Shared/DataContracts/Feature/AI/AiPromptbausteinDC.cs @@ -0,0 +1,24 @@ +using System.Runtime.Serialization; + +using BS.Shared.DataContracts.Compact; + +namespace BS.Shared.DataContracts.Feature.AI +{ + [DataContract] + public partial class AiPromptbausteinDC : BeWoDataContract + { + [DataMember] public string Displayname { get; set; } + [DataMember] public string Content { get; set; } + [DataMember] public ActivationTypeId ActivationType { get; set; } + [DataMember] public AiPromptbausteinType PromptbausteinType { get; set; } + [DataMember] public string Metadata { get; set; } + [DataMember] public AiActionType AiActionType { get; set; } + [DataMember] public CompactEmployeeDC Creator { get; set; } + [DataMember] public bool IsOnlyForCreator { get; set; } + [DataMember] public long ParentOid { get; set; } + [DataMember] public bool ShowUserPrompt { get; set; } + [DataMember] public bool ShowUserPromptByTenant { get; set; } + [DataMember] public int Position { get; set; } + [DataMember] public bool IsExpanded { get; set; } + } +} diff --git a/Shared/DataContracts/Feature/AI/AiPromptbausteinTreeDC.cs b/Shared/DataContracts/Feature/AI/AiPromptbausteinTreeDC.cs index e775097c0..85c0dcfde 100644 --- a/Shared/DataContracts/Feature/AI/AiPromptbausteinTreeDC.cs +++ b/Shared/DataContracts/Feature/AI/AiPromptbausteinTreeDC.cs @@ -9,16 +9,20 @@ namespace BS.Shared.DataContracts.Feature.AI [DataContract] public partial class AiPromptbausteinTreeDC : BeWoDataContract { - [DataMember] public string Name { get; set; } - [DataMember] public string Prompt { get; set; } - [DataMember] public bool IsKategorie { get; set; } - [DataMember] public bool IsExpanded { get; set; } - [DataMember] public bool IsSystemPrompt { get; set; } - - [DataMember] public CompactEmployeeDC Creator { get; set; } - [DataMember] public bool IsPublic { get; set; } + [DataMember] public string Displayname { get; set; } + [DataMember] public string Content { get; set; } [DataMember] public ActivationTypeId ActivationType { get; set; } + [DataMember] public AiPromptbausteinType PromptbausteinType { get; set; } + [DataMember] public string Metadata { get; set; } + [DataMember] public AiActionType AiActionType { get; set; } + [DataMember] public CompactEmployeeDC Creator { get; set; } + [DataMember] public bool IsOnlyForCreator { get; set; } + [DataMember] public bool ShowUserPrompt { get; set; } + [DataMember] public bool ShowUserPromptByTenant { get; set; } + [DataMember] public int Position { get; set; } + [DataMember] public bool IsExpanded { get; set; } + [DataMember] public List Children { get; set; } } @@ -39,41 +43,46 @@ namespace BS.Shared.DataContracts.Feature.AI { Oid = 7, Version = 1, - Name = "Problemzusammenfassung", - Prompt = "Nenne mir die 3 größten Probleme des Klienten" + Displayname = "Problemzusammenfassung", + AiActionType = AiActionType.ServiceRecordConversation, + Content = "Nenne mir die 3 größten Probleme des Klienten" }; Zeiterfassung_Conversation_2 = new AiPromptbausteinTreeDC() { Oid = 6, Version = 1, - Name = "Zielezusammenfassung", - Prompt = "Fasse mir alle erreichten Ziele des Klienten zusammen" + Displayname = "Zielezusammenfassung", + AiActionType = AiActionType.ServiceRecordConversation, + Content = "Fasse mir alle erreichten Ziele des Klienten zusammen" }; Zeiterfassung_Doku_1 = new AiPromptbausteinTreeDC() { Oid = 5, Version = 1, - Name = "Vollständiger Text", - Prompt = "Erstelle aus dem vorliegenden Text einen fließenden Text." + Displayname = "Vollständiger Text", + AiActionType = AiActionType.ServiceRecordDocumentation, + Content = "Erstelle aus dem vorliegenden Text einen fließenden Text." }; Zeiterfassung_Doku_2 = new AiPromptbausteinTreeDC() { Oid = 4, Version = 1, - Name = "Stichpunkte", - Prompt = "Übersetze den vorliegenden Text in Stichpunkte" + Displayname = "Stichpunkte", + AiActionType = AiActionType.ServiceRecordDocumentation, + Content = "Übersetze den vorliegenden Text in Stichpunkte" }; Zeiterfassung_Conversation = new AiPromptbausteinTreeDC() { Oid = 3, Version = 1, - Name = "Konversation", - Prompt = "Kategorie der Zeiterfassung->Konversation", - IsKategorie = true, + Displayname = "Konversation", + Content = "Kategorie der Zeiterfassung->Konversation", + AiActionType = AiActionType.ServiceRecordConversation, + PromptbausteinType = AiPromptbausteinType.Ordner, Children = new List { Zeiterfassung_Conversation_1, @@ -85,9 +94,10 @@ namespace BS.Shared.DataContracts.Feature.AI { Oid = 2, Version = 1, - Name = "Dokumentation", - Prompt = "Kategorie der Zeiterfassung->Dokumentation", - IsKategorie = true, + Displayname = "Dokumentation", + Content = "Kategorie der Zeiterfassung->Dokumentation", + AiActionType = AiActionType.ServiceRecordDocumentation, + PromptbausteinType = AiPromptbausteinType.Ordner, Children = new List { Zeiterfassung_Doku_1, @@ -99,9 +109,10 @@ namespace BS.Shared.DataContracts.Feature.AI { Oid = 1, Version = 1, - Name = "Zeiterfassung", - Prompt = "Kategorie der Zeiterfassung", - IsKategorie = true, + Displayname = "Zeiterfassung", + Content = "Kategorie der Zeiterfassung", + AiActionType = AiActionType.ServiceRecord, + PromptbausteinType = AiPromptbausteinType.Ordner, Children = new List { Zeiterfassung_Doku, diff --git a/Shared/Shared.csproj b/Shared/Shared.csproj index 026976987..1814b7294 100644 --- a/Shared/Shared.csproj +++ b/Shared/Shared.csproj @@ -187,6 +187,7 @@ +