MCPcopy
hub / github.com/google/earthengine-api / decode_function_invocation

Function decode_function_invocation

python/ee/deserializer.py:221–230  ·  view source on GitHub ↗
(invoked: dict[str, Any])

Source from the content-addressed store, hash-verified

219 return customfunction.CustomFunction(signature, lambda *args: body)
220
221 def decode_function_invocation(invoked: dict[str, Any]) -> Any:
222 if 'functionReference' in invoked:
223 func = lookup(invoked['functionReference'], 'function')
224 else:
225 func = apifunction.ApiFunction.lookup(invoked['functionName'])
226 if 'arguments' in invoked:
227 args = {key: decode_node(x) for key, x in invoked['arguments'].items()}
228 else:
229 args = {}
230 return _invocation(func, args)
231
232 return lookup(json_obj['result'], 'result value')

Callers 1

decode_nodeFunction · 0.85

Calls 4

decode_nodeFunction · 0.85
_invocationFunction · 0.85
lookupMethod · 0.80
lookupFunction · 0.70

Tested by

no test coverage detected