{"title":"Codeunit 132933 Azure OpenAI Test Library, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-30","object":{"type":"codeunit","id":132933,"name":"Azure OpenAI Test Library","app":"System Application Test Library","url":"https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/132933-azure-openai-test-library/source/","path":"src/System Application/Test Library/AI/src/AzureOpenAITestLibrary.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:7763":{"name":"AOAI Chat Messages","url":"https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/"},"codeunit:7761":{"name":"AOAI Chat Completion Params","url":"https://jonas-paprotka.de/ref/codeunit/7761-aoai-chat-completion-params/"},"codeunit:7758":{"name":"AOAI Function Response","url":"https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/"},"codeunit:7770":{"name":"AOAI Operation Response","url":"https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/"}},"procs":[{"name":"GetAOAIHistory","line":12,"kind":"procedure","params":2,"steps":[[17,"ext","codeunit",7763,"SetHistoryLength",1],[18,"ext","codeunit",7763,"AssembleHistory",2]]},{"name":"GetAOAIAssembleTools","line":21,"kind":"procedure","params":1,"steps":[[23,"ext","codeunit",7763,"AssembleTools",0]]},{"name":"CheckAOAIChatMessagesCompatibilityWithModel","line":26,"kind":"procedure","params":2,"steps":[[28,"ext","codeunit",7763,"CheckCompatibilityWithModel",1]]},{"name":"GetAOAIChatCompletionParametersPayload","line":31,"kind":"procedure","params":2,"steps":[[33,"ext","codeunit",7761,"AddChatCompletionsParametersToPayload",1]]},{"name":"SetAOAIFunctionResponse","line":36,"kind":"procedure","params":9,"steps":[[43,"ext","codeunit",7758,"SetFunctionCallingResponse",8]]},{"name":"AddAOAIFunctionResponse","line":46,"kind":"procedure","params":10,"steps":[[48,"ext","codeunit",7770,"GetStatusCode",0],[49,"ext","codeunit",7770,"SetOperationResponse",4],[50,"call","SetAOAIFunctionResponse",9],[51,"ext","codeunit",7770,"AddFunctionResponse",1]]},{"name":"SetToolCalls","line":59,"kind":"procedure","params":4,"steps":[[66,"ext","codeunit",7763,"AddToolCalls",1]]}]}