clabe.workflow.codecs ¶
Codecs: how a step's output is recorded in outputs.jsonl.
A codec is any callable value -> JSON-able; pass it as @wf.step(codec=...). It runs inside the step's
context, so it may call export_artifact and return the artifact's path.
jsonable ¶
auto ¶
The default: model_dump for pydantic models, jsonable for anything else.
text ¶
codec_name ¶
codec_name(codec: Codec) -> str
The name recorded for codec: its native name, or module.qualname for a custom callable.
Callables without a __qualname__ (e.g. functools.partial) are named after their type, which is stable
across runs.