codeunitCopilot & Agentsofficial - Microsoftderived - from the source, no model text

Codeunit 7771 "Azure OpenAI"

System Application · System.AI

Across versions

  1. BC23present
  2. BC241 procedures added, 1 procedures changed
  3. BC251 procedures added
  4. BC261 procedures changed, 1 procedures added
  5. BC271 procedures removed
  6. BC281 procedures changed, 1 procedures added
  7. BC294 procedures changed, 1 procedures added
  8. BC30unchanged

Neighbourhood 22 connected objects and pages

Codeunit 7772 "Azure OpenAI Impl" (calls, 9 links)Azure OpenAI ImplCodeunit 324 "No. Series Copilot Impl." (calls, 6 links)No. Series Copilot Impl.Codeunit 4402 "SOA Output Message Setup" (calls, 6 links)SOA Output Message SetupCodeunit 7275 "Sales Lines Suggestions Impl." (calls, 5 links)Sales Lines Suggestions Impl.Codeunit 7330 "Item Subst. Suggestion Impl." (calls, 5 links)Item Subst. Suggestion Impl.Codeunit 2012 "Entity Text Impl." (calls, 4 links)Entity Text Impl.Codeunit 7251 "Bank Acc. Rec. Trans. to Acc." (calls, 4 links)Bank Acc. Rec. Trans. to Acc.Codeunit 4399 "SOA Annotation" (calls, 3 links)SOA AnnotationCodeunit 4417 "SOA Item Selector" (calls, 3 links)SOA Item SelectorCodeunit 4421 "SOA Attachment MLLM" (calls, 3 links)SOA Attachment MLLMCodeunit 4596 "SOA Broader Item Search" (calls, 3 links)SOA Broader Item SearchCodeunit 6331 "Sustainability Chat Completion" (calls, 3 links)Sustainability Chat CompletionCodeunit 7774 "Copilot Capability Impl" (calls, 2 links)Copilot Capability ImplPage 6991 "Expense Agent Setup Wizard" (calls, 2 links)Expense Agent Setup WizardCodeunit 2011 "Entity Text AOAI Settings" (calls)Codeunit 4584 "SOA Recovery" (calls)Codeunit 4586 "SOA Dispatcher" (calls)Codeunit 6299 "Sustainability AI" (calls)Codeunit 6938 "EA Agent Dispatcher" (calls)Page 3304 "Payables Agent Setup" (calls)Page 4350 "Custom Agent Setup" (calls)Page 4400 "SOA Setup" (calls)

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.

System Application · System.AI · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Access Public

Procedures

  • IsEnabled(CopilotCapability: Enum "Copilot Capability"): Boolean + BC25: Checks if the Azure OpenAI API is enabled for the environment and if the capability is active on the environment.
  • IsEnabled(CopilotCapability: Enum "Copilot Capability"; Silent: Boolean): Boolean + BC25: Checks if the Azure OpenAI API is enabled for the environment and if the capability is active on the environment.
  • IsEnabled(CopilotCapability: Enum "Copilot Capability"; Silent: Boolean; AppId: Guid): Boolean + BC25: Checks if the Azure OpenAI API is enabled for the environment and if the capability is active on the environment.
  • IsAuthorizationConfigured(ModelType: Enum "AOAI Model Type"): Boolean: Checks if the Azure OpenAI API authorization is configured for the environment.
  • IsInitialized(CopilotCapability: Enum "Copilot Capability"; ModelType: Enum "AOAI Model Type"): Boolean: Checks if the Azure OpenAI API is enabled for the environment and authorization is configured for the modeltype.
  • GetFastPrompt(ConfigKey: Text; var Response: Codeunit "AOAI Fast Prompt Response"): Boolean + BC29: Resolves fast prompt settings using a configuration key.
  • SetManagedResourceAuthorization(ModelType: Enum "AOAI Model Type"; Endpoint: Text; Deployment: Text; ApiKey: SecretText; ManagedResourceDeployment: Text) + BC24 Δ BC26 + BC26 Δ BC28 + BC28 (obsolete 26.0: Using Managed AI resources now requires different input parameters. Use the other overload for SetManagedResourceAuthorization instead.): Sets the managed Azure OpenAI API authorization to use for a specific model type. This will send the Azure OpenAI call to the deployment specified in , and will use the other parameters to verify that you have access to Azure OpenAI.
  • SetManagedResourceAuthorization(ModelType: Enum "AOAI Model Type"; AOAIAccountName: Text; ApiKey: SecretText; ManagedResourceDeployment: Text) + BC24 Δ BC26 + BC26 Δ BC28 + BC28 (obsolete 28.0: Using Managed AI resources now requires only Model Type & Deployment Text as input parameters. Use the other overload for SetManagedResourceAuthorization instead. AOAIAccountName & ApiKey are ignored in the current version of SetManagedResourceAuthorization.): Sets the managed Azure OpenAI API authorization to use for a specific model type. This will send the Azure OpenAI call to the deployment specified in , and will use the other parameters to verify that you have access to Azure OpenAI.
  • SetManagedResourceAuthorization(ModelType: Enum "AOAI Model Type"; ManagedResourceDeployment: Text) + BC24 Δ BC26 + BC26 Δ BC28 + BC28: Sets the managed Azure OpenAI API authorization to use for a specific model type. This will send the Azure OpenAI call to the deployment specified in , and will use the other parameters to verify that you have access to Azure OpenAI.
  • SetAuthorization(ModelType: Enum "AOAI Model Type"; Endpoint: Text; Deployment: Text; ApiKey: SecretText): Sets the Azure OpenAI API authorization to use for a specific model type and endpoint.
  • SetAuthorization(ModelType: Enum "AOAI Model Type"; Deployment: Text): Sets the Azure OpenAI API authorization to use for a specific model type.
  • GenerateTextCompletion(Prompt: SecretText; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text Δ BC29 Δ BC29 Δ BC29 Δ BC29 (obsolete 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.): Generates a text completion given a prompt.
  • GenerateTextCompletion(Prompt: SecretText; AOAICompletionParams: Codeunit "AOAI Text Completion Params"; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text Δ BC29 Δ BC29 Δ BC29 Δ BC29 (obsolete 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.): Generates a completion given a prompt and completion parameters.
  • GenerateTextCompletion(Metaprompt: SecretText; Prompt: SecretText; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text Δ BC29 Δ BC29 Δ BC29 Δ BC29 (obsolete 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.): Generates a text completion given a prompt.
  • GenerateTextCompletion(Metaprompt: SecretText; Prompt: SecretText; AOAICompletionParams: Codeunit "AOAI Text Completion Params"; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text Δ BC29 Δ BC29 Δ BC29 Δ BC29 (obsolete 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.): Generates a completion given a prompt and completion parameters.
  • GenerateEmbeddings(Input: SecretText; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): List of [Decimal]: Generates embeddings given an input.
  • GenerateChatCompletion(var AOAIChatMessages: Codeunit "AOAI Chat Messages"; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Generates a chat completion given a list of chat messages.
  • GenerateChatCompletion(var AOAIChatMessages: Codeunit "AOAI Chat Messages"; AOAIChatCompletionParams: Codeunit "AOAI Chat Completion Params"; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Generates a chat completion given a list of chat messages and completion parameters.
  • SetCopilotCapability(CopilotCapability: Enum "Copilot Capability"): Sets the copilot capability that the API is running for.

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.

Called by

Recent changes

Deprecations

  • procedure SetManagedResourceAuthorization: Pending 26.0 (#if not CLEAN26), “Using Managed AI resources now requires different input parameters. Use the other overload for SetManagedResourceAuthorization instead.”
  • procedure SetManagedResourceAuthorization: Pending 28.0 (#if not CLEAN28), “Using Managed AI resources now requires only Model Type & Deployment Text as input parameters. Use the other overload for SetManagedResourceAuthorization instead. AOAIAccountName & ApiKey are ignored in the current version of SetManagedResourceAuthorization.”
  • procedure GenerateTextCompletion: Pending 29.0 (#if not CLEAN29), “Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.”
  • procedure GenerateTextCompletion: Pending 29.0 (#if not CLEAN29), “Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.”
  • procedure GenerateTextCompletion: Pending 29.0 (#if not CLEAN29), “Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.”
  • procedure GenerateTextCompletion: Pending 29.0 (#if not CLEAN29), “Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead.”

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

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: "Azure OpenAI"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources