-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgentEventData.m
More file actions
24 lines (21 loc) · 864 Bytes
/
Copy pathAgentEventData.m
File metadata and controls
24 lines (21 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
classdef AgentEventData < event.EventData
% AgentEventData Custom event data class for Mage events
% Used to pass structured payloads (like text, tool call info, or errors)
% from the AgentLoop to subscribed UI adapters like CmdWindowAdapter.
properties
Data % Struct containing the event payload (e.g., text, name, message)
Response % Place for listeners to store a return value (e.g., user response)
end
methods
function obj = AgentEventData(dataStruct)
% AgentEventData Constructor for the event data.
% obj = AgentEventData(dataStruct) creates an event data object
% carrying the provided data struct.
if nargin > 0
obj.Data = dataStruct;
else
obj.Data = struct();
end
end
end
end