2025-04-14 12:17:09 +02:00
|
|
|
|
using BeWo.Data.Entities;
|
2025-06-03 15:46:41 +02:00
|
|
|
|
using BeWo.Service.Attributes;
|
2026-03-25 11:38:24 +01:00
|
|
|
|
using BeWo.Service.DCEntityMapper;
|
2025-04-14 12:17:09 +02:00
|
|
|
|
using BS.Shared;
|
2025-06-02 12:33:14 +02:00
|
|
|
|
using BS.Shared.Core;
|
2025-04-14 12:17:09 +02:00
|
|
|
|
using BS.Shared.DataContracts.Feature.AI;
|
2025-11-24 15:47:45 +01:00
|
|
|
|
using BS.Shared.DataContracts.Feature.AI.Functions.ServiceRecords;
|
2025-04-14 12:17:09 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.ServiceModel;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2025-06-02 11:16:35 +02:00
|
|
|
|
namespace BeWo.Service.ServiceContracts.Enhanced
|
2025-04-14 12:17:09 +02:00
|
|
|
|
{
|
|
|
|
|
|
[ServiceContract]
|
|
|
|
|
|
public interface IAiEnhancedService : IService
|
|
|
|
|
|
{
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConfigDC GetAiConfig();
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConfigDC UpdateAiConfig(AiConfigDC toUpdate);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
IEnumerable<AiModelDC> GetAiModels();
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-07-25 14:27:57 +02:00
|
|
|
|
IEnumerable<AiConversationDC> GetAiConversations(AiContextType uicontext, long? oid);
|
2025-04-14 12:17:09 +02:00
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConversationDC CreateAiConversation(AiConversationDC conversation, long modell_oid);
|
|
|
|
|
|
|
2025-05-13 11:10:24 +02:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-05-13 11:10:24 +02:00
|
|
|
|
AiConversationDC CreateAiConversationWithMessage(AiConversationDC conversation, long modell_oid, string message);
|
|
|
|
|
|
|
2025-04-22 14:05:51 +02:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-04-22 14:05:51 +02:00
|
|
|
|
AiConversationDC CloneAiConversation(long conversation_oid, long? message_oid);
|
|
|
|
|
|
|
2025-07-08 16:30:58 +02:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-07-08 16:30:58 +02:00
|
|
|
|
long UpdateAiConversationDisplayname(long oid, long version, string displayname);
|
|
|
|
|
|
|
2025-04-14 12:17:09 +02:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-04-24 16:02:13 +02:00
|
|
|
|
void DeleteAiConversation(long conversation_oid);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConversationMessageDC[] SendNewMessage(long conversation, string message);
|
2025-10-27 08:32:36 +01:00
|
|
|
|
|
2026-02-20 11:41:26 +01:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 13:11:46 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordChat)]
|
2026-02-20 11:41:26 +01:00
|
|
|
|
bool CheckContextSize(AiContextType aiContextType, Dictionary<TableID, long[]> context, long? modell_oid);
|
|
|
|
|
|
|
2026-01-12 16:53:47 +01:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
|
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModulePromptbausteineView)]
|
|
|
|
|
|
IEnumerable<AiPromptbausteinFolderDC> GetAiPromptbausteinFolder(AiActionType aiActionType);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 12:00:05 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModulePromptbausteineEdit)]
|
2026-01-12 16:53:47 +01:00
|
|
|
|
IEnumerable<AiPromptbausteinFolderDC> InsertAiPromptbausteinFolder(IEnumerable<AiPromptbausteinFolderDC> folders);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 12:00:05 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModulePromptbausteineEdit)]
|
2026-01-12 16:53:47 +01:00
|
|
|
|
IEnumerable<AiPromptbausteinPromptDC> InsertAiPromptbausteinPrompt(IEnumerable<AiPromptbausteinPromptDC> prompts);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
|
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModulePromptbausteineEdit)]
|
|
|
|
|
|
IEnumerable<AiPromptbausteinFolderDC> UpdateAiPromptbausteinFolder(IEnumerable<AiPromptbausteinFolderDC> folders);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 15:36:55 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModulePromptbausteineView)]
|
2026-01-12 16:53:47 +01:00
|
|
|
|
IEnumerable<AiPromptbausteinPromptDC> UpdateAiPromptbausteinPrompt(IEnumerable<AiPromptbausteinPromptDC> prompts);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 12:00:05 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModulePromptbausteineEdit)]
|
2026-01-12 16:53:47 +01:00
|
|
|
|
void DeleteAiPromptbausteinFolder(Dictionary<long, long> oid2version);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 12:00:05 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModulePromptbausteineEdit)]
|
2026-01-12 16:53:47 +01:00
|
|
|
|
void DeleteAiPromptbausteinPrompt(Dictionary<long, long> oid2version);
|
|
|
|
|
|
|
2025-11-24 15:47:45 +01:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2026-03-04 15:36:55 +01:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleServiceRecordDocu)]
|
2025-11-24 15:47:45 +01:00
|
|
|
|
AiFunctionDocResponse ExecuteAiFunctionServiceRecordDocumentation(AiFunctionDocRequest request);
|
2026-03-25 11:38:24 +01:00
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
|
|
|
|
|
AiUserSettingDC GetUserSetting();
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
|
|
|
|
|
AiUserSettingDC UpdateUserSetting(AiUserSettingDC aiUserSettingDC);
|
2025-04-14 12:17:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|