Skip to main content
Version: Next

mellea.plugins.hooks.adapter_function

Adapter function invocation hook payloads.

Classes

CLASS AdapterFunctionInvocationCompletePayload

Payload for adapter_function_invocation_complete — after an adapter function invocation finishes.

Attributes:

  • name: Adapter function name (e.g. "answerability").
  • revision: Catalog revision of the adapter, or None if unpinned.
  • binding_type: Weight-binding reality the adapter ran under (e.g. "local_file", "embedded", "server_mediated").
  • adapter_type: Adapter mechanism (e.g. "lora", "alora").
  • outcome: "success", "schema_error", or "error".
  • error: The exception raised during invocation, or None on success.

CLASS AdapterFunctionPhaseCompletePayload

Payload for adapter_function_phase_complete — after one lifecycle phase finishes.

Attributes:

  • name: Adapter function name (e.g. "answerability").
  • phase: Lifecycle phase ("prepare", "activate", "generate", "parse", or "deactivate").
  • duration_ms: Wall-clock duration of the phase in milliseconds.