Codeunit 7778 AOAI Tools Impl

System Application, System.AI

Source AL, 215 lines

src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.allines 8 to 23 of 215, Copyright (c) Microsoft Corporation. MIT

codeunit 7778 "AOAI Tools Impl"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        AOAIToolInvokePreference: Enum "AOAI Tool Invoke Preference";        Functions: array[20] of Interface "AOAI Function";        FunctionNames: Dictionary of [Text, Integer];        Initialized: Boolean;        AddToolToPayload: Boolean;        [NonDebuggable]        ToolChoice: Text;        ToolObjectInvalidErr: Label '%1 object does not contain %2 property.', Comment = '%1 is the object name and %2 is the property that is missing.';        ToolTypeErr: Label 'Tool type must be of function type.';

All 215 lines

Public procedures 14 in 29

AddTool(Tool: Interface "AOAI Function")new in 24
GetTool(Name: Text; var Function: Interface "AOAI Function"): Booleannew in 24
GetFunctionTools(): Listnew in 24
DeleteTool(Name: Text): Booleannew in 24
ClearTools()new in 24
PrepareTools(): JsonArraynew in 24

All 20 procedures in 24-29

Changes 4 in 28

List17181920212223242526272829
Procedures44
AddTool(NewTool: JsonObject)24 to 27
gone
ModifyTool(Id: Integer; NewTool: JsonObject)24 to 27
gone
DeleteTool(Id: Integer)24 to 27
gone
GetTools(): List24 to 27
gone

All 8 changes in 24-29