codeunitSustainabilityofficial - Microsoftderived - from the source, no model text

Codeunit 6331 "Sustainability Chat Completion"

SustainabilityCopilotSuggestion · Microsoft.Sustainability.Copilot

Across versions

  1. BC23-28not present
  2. BC29-30present

Neighbourhood 9 connected objects and pages

Codeunit 8711 "Telemetry" (calls, 7 links)TelemetryCodeunit 7758 "AOAI Function Response" (calls, 6 links)AOAI Function ResponseCodeunit 7770 "AOAI Operation Response" (calls, 5 links)AOAI Operation ResponseCodeunit 7763 "AOAI Chat Messages" (calls, 4 links)AOAI Chat MessagesCodeunit 6297 "Sustainability Prompts" (calls, 3 links)Sustainability PromptsCodeunit 7771 "Azure OpenAI" (calls, 3 links)Azure OpenAICodeunit 6299 "Sustainability AI" (calls, 2 links)Sustainability AICodeunit 7761 "AOAI Chat Completion Params" (calls, 2 links)AOAI Chat Completion ParamsCodeunit 7768 "AOAI Deployments" (calls)AOAI Deployments

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

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.

Evidence 1 sources