Codeunit 7763 AOAI Chat Messages

System Application, System.AI

41 procedures

ProcedureVersions
SetPrimarySystemMessage(Message: 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
DeleteMessage(Id: Integer)new in 23
GetHistory(): Listnew in 23
GetHistoryNames(): Listnew in 23
GetHistoryRoles(): Listnew in 23
GetLastMessage(): Textnew in 23
GetLastRole(): Enum "AOAI Chat Roles"new in 23
GetLastName(): Text[2048]new in 23
SetHistoryLength(NewLength: Integer)new in 23
internal AssembleHistory(var SystemMessageTokenCount: Integer; var MessagesTokenCount: Integer): JsonArraynew in 23
AddToolMessage(ToolCallId: Text; FunctionName: Text; FunctionResult: Text)new in 24
GetHistoryTokenCount(): Integernew in 24
AddTool(NewTool: JsonObject)24 to 27
Pending, tag 25.0, obsolete since 24: Use AddTool that takes in an AOAI Function interface.
ModifyTool(Id: Integer; NewTool: JsonObject)24 to 27
Pending, tag 25.0, obsolete since 24: Deprecated with no replacement. Use DeleteFunctionTool and AddTool.
DeleteTool(Id: Integer)24 to 27
Pending, tag 25.0, obsolete since 24: Use DeleteFunctionTool that takes in a function name instead.
AddTool(Function: Interface "AOAI Function")new in 24
DeleteFunctionTool(Name: Text): Booleannew in 24
ClearTools()new in 24
GetFunctionTool(Name: Text; var Function: Interface "AOAI Function"): Booleannew in 24
GetFunctionTools(): Listnew in 24
GetTools(): List24 to 27
Pending, tag 25.0, obsolete since 24: Use GetFunctionTool() that takes in a function name and returns the interface.
ToolsExists(): Booleannew in 24
SetAddToolsToPayload(AddToolsToPayload: Boolean)new in 24
SetToolChoice(ToolChoice: Text)new in 24
SetFunctionAsToolChoice(FunctionName: Text)new in 24
SetFunctionAsToolChoice(Function: Interface "AOAI Function")new in 24
GetToolChoice(): Textnew in 24
internal AssembleTools(): JsonArraynew in 24
internal AddToolCalls(ToolCalls: JsonArray)new in 25
GetLastToolCalls(): JsonArraynew in 25
SetToolInvokePreference(AOAIToolInvokePreference: Enum "AOAI Tool Invoke Preference")new in 25
GetToolInvokePreference(): Enum "AOAI Tool Invoke Preference"new in 25
AddXPIADetectionTags(var Input: Text)new in 27
AddUserMessage(AOAIUserMessage: Codeunit "AOAI User Message")new in 28
AddUserMessage(AOAIUserMessage: Codeunit "AOAI User Message"; NewName: Text[2048])new in 28
internal CheckCompatibilityWithModel(Deployment: SecretText)new in 28