Codeunit 6331 "Sustainability Chat Completion"
SustainabilityCopilotSuggestion · Microsoft.Sustainability.Copilot
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 9 connected objects and pages
SustainabilityCopilotSuggestion · Microsoft.Sustainability.Copilot · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
GenerateRawFormulaChatCompletion(var SustainEmissionSuggestion: Record "Sustain. Emission Suggestion"; UserMessage: Text)(internal)GenerateFormulaBreakdownChatCompletion(var SustainEmissionSuggestion: Record "Sustain. Emission Suggestion"; UserMessage: Text)(internal)GenerateMatchCategoryToInputChatCompletion(var SustainEmissionSuggestion: Record "Sustain. Emission Suggestion"; var SourceCO2EmissionBuffer: Record "Source CO2 Emission Buffer"; UserMessage: Text)(internal)
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 8711 “Telemetry” (7 calls:
CopyAOAIFunctionResponseToFormulaBreakdownTempSourceCO2EmissionBuffer → LogMessage,CopyAOAIFunctionResponseToRawFormulaTempSustainEmissionSuggestion → LogMessage,CopyAOAIFunctionResponseToTempSustainEmissionSuggestion → LogMessage, …) - Codeunit 7758 “AOAI Function Response” (6 calls:
CopyAOAIFunctionResponseToFormulaBreakdownTempSourceCO2EmissionBuffer → GetResult,GenerateFormulaBreakdownChatCompletion → GetFunctionName,GenerateMatchCategoryToInputChatCompletion → GetFunctionName, …) - Codeunit 7770 “AOAI Operation Response” (5 calls:
GenerateFormulaBreakdownChatCompletion → GetFunctionResponses,GenerateMatchCategoryToInputChatCompletion → GetFunctionResponses,GenerateRawFormulaChatCompletion → GetFunctionResponses, …) - Codeunit 7763 “AOAI Chat Messages” (4 calls:
GenerateChatCompletion → AddTool,GenerateChatCompletion → AddUserMessage,GenerateChatCompletion → SetPrimarySystemMessage, …) - Codeunit 6297 “Sustainability Prompts” (3 calls:
GenerateFormulaBreakdownChatCompletion → GetFormulaBreakdownSystemPrompt,GenerateMatchCategoryToInputChatCompletion → GetMatchCategoryToInputSystemPrompt,GenerateRawFormulaChatCompletion → GetRawFormulaSystemPrompt) - Codeunit 7771 “Azure OpenAI” (3 calls:
GenerateChatCompletion → GenerateChatCompletion,GenerateChatCompletion → SetAuthorization,GenerateChatCompletion → SetCopilotCapability) - Codeunit 7761 “AOAI Chat Completion Params” (2 calls:
GenerateChatCompletion → SetMaxTokens,GenerateChatCompletion → SetTemperature) - Codeunit 7768 “AOAI Deployments” (1 call:
GenerateChatCompletion → GetGPT41Latest)
Called by
- Codeunit 6299 “Sustainability AI” (2 calls:
AICallForFilteredLines → GenerateFormulaBreakdownChatCompletion,MatchCategoryToInput → GenerateMatchCategoryToInputChatCompletion)
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: "Sustainability Chat Completion"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.