Codeunit 7770 AOAI Operation Response

System Application, System.AI

Source AL, 175 lines

src/System Application/App/AI/src/Azure OpenAI/Operation Response/AOAIOperationResponse.Codeunit.allines 10 to 25 of 175, Copyright (c) Microsoft Corporation. MIT

codeunit 7770 "AOAI Operation Response"{    Access = Public;    InherentEntitlements = X;    InherentPermissions = X;    var        AOAIFunctionResponses: List of [Codeunit "AOAI Function Response"];        StatusCode: Integer;        Success: Boolean;        Result: Text;        Error: Text;        IncorrectRoleErr: Label 'The last chat message must have a role of assistant.';        IncorrectToolCallsErr: Label 'The last chat message does not contain any tool calls to respond to.';        IncorrectToolCountsErr: Label 'The provided number of tool calls do not match the number of function calls. There may be unsupported tool call types.';        FunctionCallDoesNotExistErr: Label 'The provided function response (%1 - %2) does not exist in the tool calls property', Comment = '%1 = the tool call id, e.g. call_1234567890, %2 = the function name, e.g. GetWeather';

All 175 lines

Public procedures 9 in 29

IsSuccess(): Booleannew in 23
GetStatusCode(): Integernew in 23
GetResult(): Textnew in 23
GetError(): Textnew in 23
IsFunctionCall(): Booleannew in 24
HasFunctionResponsesByName(FunctionName: Text): Booleannew in 25

All 13 procedures in 23-29

Changes 1 in 28

List17181920212223242526272829
Procedures461
GetFunctionResponse(): Codeunit "AOAI Function Response"24 to 27
gone

All 11 changes in 23-29