Codeunit 7758 "AOAI Function Response"
System Application · System.AI
Across versions
- BC23not present
- BC24added
- BC254 procedures added, 1 procedures removed
- BC26-30unchanged
Neighbourhood 11 connected objects and pages
System Application · System.AI · BC24-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Procedures
IsSuccess(): Boolean: Get whether the function call was successful.GetStatus(): Enum "AOAI Function Response Status"+ BC25: Gets the function response status.GetResult(): Variant: Get the return value of the function that was called.GetArguments(): JsonObject+ BC25: Get the arguments for the function call.GetError(): Text: Get the error message from the function that was called.GetFunctionName(): Text: Get the name of the function that was called.GetFunctionId(): Text: Get the id of the function that was called.GetErrorCallstack(): Text: Get the error call stack from the function that was called.AppendResultToChatMessages(var AOAIChatMessages: Codeunit "AOAI Chat Messages")+ BC25 (internal): Appends the function result to the provided AOAIChatMessages instance.IsFunctionCall(): Boolean(internal)SetFunctionCallingResponse(NewIsFunctionCall: Boolean; NewAOAIFunctionResponseStatus: Enum "AOAI Function Response Status"; NewFunctionCalled: Text; NewFunctionId: Text; NewArguments: JsonObject; NewFunctionResult: Variant; NewFunctionError: Text; NewFunctionErrorCallStack: Text)+ BC25 − BC25 (internal)
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 7763 “AOAI Chat Messages” (1 call:
AppendResultToChatMessages → AddToolMessage)
Called by
- Codeunit 324 “No. Series Copilot Impl.” (7 calls:
GenerateAndReviewToolCompletionWithRetry → GetError,GenerateAndReviewToolCompletionWithRetry → GetFunctionName,GenerateAndReviewToolCompletionWithRetry → GetResult, …) - Codeunit 6331 “Sustainability Chat Completion” (6 calls:
CopyAOAIFunctionResponseToFormulaBreakdownTempSourceCO2EmissionBuffer → GetResult,GenerateFormulaBreakdownChatCompletion → GetFunctionName,GenerateMatchCategoryToInputChatCompletion → GetFunctionName, …) - Codeunit 7770 “AOAI Operation Response” (6 calls:
AppendFunctionResponsesToChatMessages → AppendResultToChatMessages,AppendFunctionResponsesToChatMessages → GetFunctionId,AppendFunctionResponsesToChatMessages → GetFunctionName, …) - Codeunit 7772 “Azure OpenAI Impl” (6 calls:
ProcessChatCompletionResponse → GetError,ProcessChatCompletionResponse → GetErrorCallstack,ProcessChatCompletionResponse → GetFunctionName, …) - Codeunit 2012 “Entity Text Impl.” (3 calls:
GenerateCompletion → GetFunctionName,GenerateCompletion → GetResult,GenerateCompletion → IsSuccess) - Codeunit 7275 “Sales Lines Suggestions Impl.” (3 calls:
AICall → GetFunctionName,AICall → GetResult,AICall → IsSuccess) - Codeunit 7330 “Item Subst. Suggestion Impl.” (3 calls:
AICall → GetFunctionName,AICall → GetResult,AICall → IsSuccess) - Codeunit 4402 “SOA Output Message Setup” (2 calls:
AddSignatureToMessageBody → GetArguments,CheckMailTemplate → GetArguments) - Codeunit 4417 “SOA Item Selector” (1 call:
TrySelectBestMatchingItems → GetArguments) - Codeunit 4596 “SOA Broader Item Search” (1 call:
AICall → GetArguments)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "AOAI Function Response"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.