Skip to content

innovate.invoke_registered_extension

All current Python definitions

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

def invoke_registered_extension(
callback: Callable[[dict[str, Any], Any], Any],
selection: dict[str, Any],
payload: Any,
) -> dict[str, Any]: ...

Resolve an extension, invoke its trusted callback, and validate the output.

The callback runs Python code in the current process without sandboxing. Manifest resolution happens before invocation; native ingestion, alias, diagnostic or artifact validation happens afterward. Validation does not establish the safety or scientific validity of arbitrary callback behaviour.

  • callback: Trusted callable receiving the resolved manifest and payload. Its return value must satisfy the selected extension point’s contract.
  • selection: JSON-compatible selection passed to resolve_extension_manifest.
  • payload: Application object passed unchanged to callback; it is not serialized by this wrapper before callback invocation.

Native validated result for the callback output, without the outer request envelope.

  • NativeError: If manifest resolution or output validation fails.
  • TypeError: If selection or callback output is not JSON-compatible.
  • ValueError: If serialized fields contain non-finite or circular values.
  • Exception: Any exception raised by the trusted callback propagates unchanged.