MCPcopy
hub / github.com/agent0ai/agent-zero / output

Method output

agent.py:189–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187
188 # @extension.extensible
189 def output(self):
190 return {
191 "id": self.id,
192 "name": self.name,
193 "created_at": (
194 Localization.get().serialize_datetime(self.created_at)
195 if self.created_at
196 else Localization.get().serialize_datetime(datetime.fromtimestamp(0))
197 ),
198 "no": self.no,
199 "log_guid": self.log.guid,
200 "log_version": len(self.log.updates),
201 "log_length": len(self.log.logs),
202 "paused": self.paused,
203 "last_message": (
204 Localization.get().serialize_datetime(self.last_message)
205 if self.last_message
206 else Localization.get().serialize_datetime(datetime.fromtimestamp(0))
207 ),
208 "type": self.type.value,
209 "running": self.is_running(),
210 **self.output_data,
211 }
212
213 @staticmethod
214 def log_to_all(

Callers 3

prepare_promptMethod · 0.45

Calls 3

is_runningMethod · 0.95
serialize_datetimeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected