MCPcopy Create free account
hub / github.com/apache/maka / toRuntimeObservation

Function toRuntimeObservation

scripts/computer-use/runtime-model.mjs:192–219  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

190);
191
192function toRuntimeObservation(input) {
193 return {
194 observationId: input.observation_id,
195 appId: input.app,
196 pid: input.pid,
197 windowId: input.window_id,
198 windowTitle: 'Codex CUA Lab',
199 contentFingerprint: 'synthetic-runtime-model-e2e',
200 elements: input.elements.map((element) => ({
201 elementId: element.element_id,
202 role: element.role,
203 label: element.label,
204 value: element.value,
205 identity: {
206 role: element.role,
207 label: element.label,
208 value: element.value,
209 },
210 })),
211 screenshot: {
212 base64:
213 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=',
214 mimeType: 'image/png',
215 widthPx: 1,
216 heightPx: 1,
217 },
218 };
219}

Callers 3

observeAppFunction · 0.85
runSemanticFunction · 0.85
captureObservationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected