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

Function runSemantic

scripts/computer-use/runtime-model.mjs:40–60  ·  view source on GitHub ↗
(action)

Source from the content-addressed store, hash-verified

38 return toRuntimeObservation(result);
39 },
40 async runSemantic(action) {
41 if (action.type !== 'set_value') {
42 return {
43 outcome: {
44 ok: false,
45 error: 'unsupported_action',
46 message: `synthetic runtime E2E rejects ${action.type}`,
47 },
48 };
49 }
50 const result = scenario.execute({
51 action: 'set_value',
52 observation_id: action.observationId,
53 element_id: action.elementId,
54 value: action.value,
55 });
56 return {
57 outcome: result.outcome,
58 observation: toRuntimeObservation(result.fresh_observation),
59 };
60 },
61 async captureObservation(input) {
62 return toRuntimeObservation(
63 scenario.execute({

Callers

nothing calls this directly

Calls 2

toRuntimeObservationFunction · 0.85
executeMethod · 0.65

Tested by

no test coverage detected