Codeunit 7764 AOAI Chat Messages Impl

System Application, System.AI

Source AL, 482 lines

src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIChatMessagesImpl.Codeunit.allines 12 to 27 of 482, Copyright (c) Microsoft Corporation. MIT

codeunit 7764 "AOAI Chat Messages Impl"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        AOAIToken: Codeunit "AOAI Token";        Telemetry: Codeunit Telemetry;        Initialized: Boolean;        HistoryLength: Integer;        SystemMessage: SecretText;        [NonDebuggable]        History: List of [Text];        [NonDebuggable]        HistoryRoles: List of [Enum "AOAI Chat Roles"];

All 482 lines

Public procedures 25 in 29

SetPrimarySystemMessage(NewPrimaryMessage: SecretText)new in 23
AddSystemMessage(NewMessage: Text)new in 23
AddUserMessage(NewMessage: Text)new in 23
AddUserMessage(NewMessage: Text; NewName: Text[2048])new in 23
AddAssistantMessage(NewMessage: Text)new in 23
ModifyMessage(Id: Integer; NewMessage: Text; NewRole: Enum "AOAI Chat Roles"; NewName: Text[2048])new in 23

All 25 procedures

Changes 3 in 28

List17181920212223242526272829
Procedures4213
AddUserMessage(AOAIUserMessage: Codeunit "AOAI User Message")new in 28
added
AddUserMessage(AOAIUserMessage: Codeunit "AOAI User Message"; NewName: Text[2048])new in 28
added
CheckCompatibilityWithModel(Deployment: SecretText)new in 28
added

All 10 changes in 23-29