Monoize
Transforms

Reasoning: from think XML

Parse think-tag XML out of assistant text and restore it as reasoning.

What it does

This transform parses the configured XML tag, for example <think>...</think>, out of assistant text and restores the content as reasoning nodes. It is the inverse of reasoning_to_think_xml.

Reference

PropertyValue
Type IDreasoning_from_think_xml
Phaseresponse
ScopesProvider, API key

When to use

  • An upstream emits reasoning inline as think-tag text, and clients expect structured reasoning.

Configuration

OptionTypeRequiredDefaultDescription
tagstringYesThe XML tag name to parse, for example think.

Example rule

{
  "transform": "reasoning_from_think_xml",
  "enabled": true,
  "phase": "response",
  "models": [
    "*"
  ],
  "config": {
    "tag": "think"
  }
}

On this page