Codeunit 4315 "Agent Task Builder"
System Application · System.Agents
Across versions
- BC23-25not present
- BC26added
- BC279 procedures changed, 1 procedures added
- BC282 procedures added, 1 procedures changed
- BC29declaration changed
- BC30unchanged
Neighbourhood 7 connected objects and pages
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.
- Codeunit 4310 “Agent Task Builder Impl.” (8 calls:
AddTaskMessage → AddTaskMessage,Create → Create,GetAgentTaskMessageCreated → GetAgentTaskMessageCreated, …) - Codeunit 4300 “Agent Task Impl.” (1 call:
TaskExists → TaskExists)
Called by
- Codeunit 4582 “SOA Retrieve Emails” (4 calls:
AddEmailToAgentTask → TaskExists,AddEmailToNewAgentTask → Create,AddEmailToNewAgentTask → GetAgentTaskMessageCreated, …) - Codeunit 4361 “Agent Task Template” (3 calls:
RepeatTask → AddTaskMessage,RepeatTask → Create,RepeatTask → Initialize) - Page 4359 “Agent New Task Message” (3 calls:
CreateNewTask → AddTaskMessage,CreateNewTask → Create,CreateNewTask → Initialize) - Codeunit 4415 “SOA Create Task Impl” (2 calls:
CreateTask → Create,CreateTask → Initialize) - Codeunit 3303 “Payables Agent” (1 call:
BuildAgentTask → Initialize)
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.