Intrinsic component for invoking fine-tuned adapter capabilities.
An Intrinsic component references a named adapter from Mellea’s intrinsic catalog
and transforms a chat completion request — typically by injecting new messages,
modifying model parameters, or applying structured output constraints. It must be
paired with a backend that supports adapter loading (e.g. LocalHFBackend with an
attached IntrinsicAdapter).
Classes
CLASS Intrinsic
A component representing an intrinsic fine-tuned adapter capability.
Intrinsics transform a chat completion request by injecting messages,
modifying model parameters, or applying structured output constraints.
Must be paired with a backend that supports adapter loading.
Args:
intrinsic_name: The user-visible name of the intrinsic; must match a known name in Mellea’s intrinsics catalog.intrinsic_kwargs: Optional keyword arguments required by the intrinsic at invocation time.
metadata: The intrinsic metadata fetched from the catalog.intrinsic_kwargs: Keyword arguments passed to the intrinsic.intrinsic_name: User-visible name of this intrinsic (property).adapter_types: Available adapter types that implement this intrinsic (property).
FUNC intrinsic_name
FUNC adapter_types
FUNC parts
- list[Component | CBlock]: Always an empty list for the base class.
FUNC format_for_llm
Intrinsic class.
Intrinsic components are intended to be used as the action passed
directly to the backend, not as a part of the context rendered by the
formatter.
Returns:
- TemplateRepresentation | str: Never returns; always raises.
NotImplementedError: Always, becauseIntrinsicdoes not implementformat_for_llmby default.