Codeunit 7764 "AOAI Chat Messages Impl"
System Application · System.AI
Across versions
- BC23present
- BC245 procedures added
- BC253 procedures added
- BC26unchanged
- BC271 procedures added
- BC285 procedures added, 1 procedures removed
- BC29-30unchanged
Neighbourhood 8 connected objects and pages
System Application · System.AI · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
SetPrimarySystemMessage(NewPrimaryMessage: SecretText)AddSystemMessage(NewMessage: Text)AddUserMessage(NewMessage: Text)+ BC28 + BC28AddUserMessage(NewMessage: Text; NewName: Text[2048])+ BC28 + BC28AddUserMessage(AOAIUserMessage: Codeunit "AOAI User Message")+ BC28 + BC28AddUserMessage(AOAIUserMessage: Codeunit "AOAI User Message"; NewName: Text[2048])+ BC28 + BC28AddAssistantMessage(NewMessage: Text)AddToolCalls(ToolCalls: JsonArray)+ BC25AddToolMessage(ToolCallId: Text; FunctionName: Text; FunctionResult: Text)+ BC24ModifyMessage(Id: Integer; NewMessage: Text; NewRole: Enum "AOAI Chat Roles"; NewName: Text[2048])DeleteMessage(Id: Integer)GetHistory(): List of [Text]GetHistoryNames(): List of [Text[2048]]GetHistoryRoles(): List of [Enum "AOAI Chat Roles"]GetHistoryToolCallIds(): List of [Text]+ BC24GetLastMessage(): TextGetLastRole(): Enum "AOAI Chat Roles"GetLastName(): Text[2048]GetLastToolCalls(): JsonArray+ BC25GetLastToolCallId(): Text+ BC24SetHistoryLength(NewHistoryLength: Integer)GetHistoryTokenCount(): Integer+ BC24PrepareHistory(var SystemMessageTokenCount: Integer; var MessagesTokenCount: Integer): JsonArrayAddXPIADetectionTags(var Input: Text)+ BC27CheckCompatibilityWithModel(Deployment: SecretText)+ BC28
Plus 8 local procedures.
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 7783 “AOAI User Message” (3 calls:
CheckCompatibilityWithModel → HasFilePart,PrepareHistory → GetContentParts,PrepareHistory → IsSet) - Codeunit 8711 “Telemetry” (3 calls:
CheckandAddMetaprompt → LogMessage,GetChatMetaprompt → LogMessage,PrepareMessage → LogMessage) - Codeunit 2200 “Azure Key Vault” (2 calls:
GetChatMetaprompt → GetAzureKeyVaultSecret,PrepareMessage → GetAzureKeyVaultSecret) - Codeunit 457 “Environment Information” (1 call:
GetChatMetaprompt → IsSaaSInfrastructure) - Codeunit 7759 “AOAI Token” (1 call:
PrepareHistory → GetGPT4TokenCount) - Codeunit 7769 “AOAI Deployments Impl” (1 call:
CheckCompatibilityWithModel → IsFileContentSupported) - Codeunit 7772 “Azure OpenAI Impl” (1 call:
PrepareMessage → RemoveProhibitedCharacters)
Called by
- Codeunit 7763 “AOAI Chat Messages” (20 calls:
AddAssistantMessage → AddAssistantMessage,AddSystemMessage → AddSystemMessage,AddToolCalls → AddToolCalls, …)
Recent changes
- 2026-09-23 #11375 Obsolete GPT-5.5 chat and add GPT-5.6 Ceres deployments (main, BC30, obsoletion)
- 2026-08-15 #9910 [SOA] Move attachment processing to direct model reading (main, BC30, feature)
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 Chat Messages Impl"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.