Interface IAgentTaskExecution
Defines the contract for executing agent tasks which includes includes additional validation, user intervention suggestions, and contextual data retrieval.
Remarks
These procedures are executed in the context of the agent user and help fine-tuning how agents interact with the system during task execution.
Methods
AnalyzeAgentTaskMessage
Analyzes the content of an agent task message and its attachments. Returns the list of annotations to be displayed for the message. Annotations whose severity is set to Error will stop the execution of the related task. Annotations whose severity is set to Warning will enforce a review of the message.
procedure AnalyzeAgentTaskMessage(AgentTaskMessage: Record "Agent Task Message"; var Annotations: Record "Agent Annotation")
Parameters
| Name | Type | Description |
|---|---|---|
| AgentTaskMessage | Table System.Agents."Agent Task Message" |
The agent task message. |
| Annotations | Table System.Agents."Agent Annotation" |
The list of annotations for the message. |
Remarks
These annotations are persisted on the message. The server asks once for the message-level annotations.
GetAgentTaskUserInterventionSuggestions
Returns all agent task user intervention suggestions applicable to the specified agent task, page, and record.
procedure GetAgentTaskUserInterventionSuggestions(AgentTaskUserInterventionRequestDetails: Record "Agent User Int Request Details"; var Suggestions: Record "Agent Task User Int Suggestion")
Parameters
| Name | Type | Description |
|---|---|---|
| AgentTaskUserInterventionRequestDetails | Table System.Agents."Agent User Int Request Details" |
The agent user intervention request details. |
| Suggestions | Table System.Agents."Agent Task User Int Suggestion" |
The agent task user intervention suggestions. |
GetAgentTaskPageContext
Gets the current page context for the specified agent task, page, and record. This context is provided to the agent when interacting with the pages.
procedure GetAgentTaskPageContext(AgentTaskPageContextRequest: Record "Agent Task Page Context Req."; var AgentTaskPageContext: Record "Agent Task Page Context")
Parameters
| Name | Type | Description |
|---|---|---|
| AgentTaskPageContextRequest | Table System.Agents."Agent Task Page Context Req." |
The agent task page context request. |
| AgentTaskPageContext | Table System.Agents."Agent Task Page Context" |
The agent task page context request. |