Preprocess and postprocess messages with transform pipelines
mode
parameter, Rigging automatically applies sophisticated transforms that handle the entire tool calling lifecycle. These built-in transforms are prime examples of the power of the transform system—they seamlessly convert between native Python function calls and model-specific formats.
Tool Transform Process:
ToolCall
objects to JSON/XML representationsToolCall
objectstools_to_json_with_tag_transform
based on the mode"json-with-tag"
- JSON wrapped in XML tags (most reliable for open source models)"json"
- Raw JSON format (compact but can be harder to parse)"json-in-xml"
- XML structure with JSON parameters"xml"
- Pure XML format (verbose but very explicit).transform()
on ChatPipeline
applies during generation.transform()
on Chat
applies to existing conversationsNone
values gracefully and respect parameter constraints (like temperature ∈ [0, 1]). The original params object may have None
values for unset parameters.