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

Codeunit 4315 "Agent Task Builder"

System Application · System.Agents

Across versions

  1. BC23-25not present
  2. BC26added
  3. BC279 procedures changed, 1 procedures added
  4. BC282 procedures added, 1 procedures changed
  5. BC29declaration changed
  6. BC30unchanged

Neighbourhood 7 connected objects and pages

Codeunit 4310 "Agent Task Builder Impl." (calls, 8 links)Agent Task Builder Impl.Codeunit 4582 "SOA Retrieve Emails" (calls, 4 links)SOA Retrieve EmailsCodeunit 4361 "Agent Task Template" (calls, 3 links)Agent Task TemplatePage 4359 "Agent New Task Message" (calls, 3 links)Agent New Task MessageCodeunit 4415 "SOA Create Task Impl" (calls, 2 links)SOA Create Task ImplCodeunit 3303 "Payables Agent" (calls)Payables AgentCodeunit 4300 "Agent Task Impl." (calls)Agent Task Impl.

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.Agents · BC26-30 · source at ea08af5e · facts from BC29

Procedures

  • Initialize(NewAgentUserSecurityId: Guid; NewTaskTitle: Text[150]): codeunit "Agent Task Builder" Δ BC27: Initialize the agent task builder with the mandatory parameters.
  • Create(): Record "Agent Task" Δ BC27 Δ BC27 + BC27 Δ BC28: Create a new task for the agent.
  • Create(SetTaskStatusToReady: Boolean): Record "Agent Task" Δ BC27 Δ BC27 + BC27 Δ BC28: Create a new task for the agent.
  • Create(SetTaskStatusToReady: Boolean; RequiresMessage: Boolean): Record "Agent Task" Δ BC27 Δ BC27 + BC27 Δ BC28: Create a new task for the agent.
  • GetAgentTaskMessageCreated(): Record "Agent Task Message" Δ BC27: Get the agent task message that was created.
  • SetExternalId(ExternalId: Text[2048]): codeunit "Agent Task Builder" Δ BC27: Set the external ID of the task.
  • SetModelId(ModelId: Code[30]): codeunit "Agent Task Builder" + BC28: Set the model ID that will be used to process the task. If the model ID is not set, the model from the agent will be used, if any. If the agent does not have a model, the default model will be used.
  • SetBillingContext(BillingContext: Enum "Agent Task Billing Context"): codeunit "Agent Task Builder" + BC28: Set the billing context for the task.
  • AddTaskMessage(From: Text[250]; MessageText: Text): codeunit "Agent Task Builder" Δ BC27 Δ BC27: Add a task message to the task. Only a single message can be added to the task.
  • AddTaskMessage(var AgentTaskMessageBuilder: Codeunit "Agent Task Message Builder"): codeunit "Agent Task Builder" Δ BC27 Δ BC27: Add a task message to the task. Only a single message can be added to the task.
  • GetTaskMessageBuilder(): Codeunit "Agent Task Message Builder" Δ BC27: Get the agent task message builder.
  • TaskExists(AgentUserSecurityId: Guid; ConversationId: Text): Boolean Δ BC27: Check if a task exists for the given agent user and conversation

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

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

Evidence 1 sources