MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / output

Method output

helpers/notification.py:158–173  ·  view source on GitHub ↗
(self, start: int | None = None, end: int | None = None)

Source from the content-addressed store, hash-verified

156 return [n for n in self.notifications if n.timestamp >= cutoff]
157
158 def output(self, start: int | None = None, end: int | None = None) -> list[dict]:
159 with self._lock:
160 if start is None:
161 start = 0
162 if end is None:
163 end = len(self.updates)
164 updates = self.updates[start:end]
165 notifications = list(self.notifications)
166
167 out = []
168 seen = set()
169 for update in updates:
170 if update not in seen and update < len(notifications):
171 out.append(notifications[update].output())
172 seen.add(update)
173 return out
174
175 def output_all(self) -> list[dict]:
176 with self._lock:

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
outputMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected