Monoize
Transforms

Reasoning: to think XML

Wrap reasoning content in a think tag inside assistant text.

What it does

This transform converts reasoning node content into assistant text wrapped in the configured tag, for example <think>...</think>. It is the inverse of reasoning_from_think_xml.

Reference

PropertyValue
Type IDreasoning_to_think_xml
Phaseresponse
ScopesProvider, API key

When to use

  • Clients render only assistant text and you still want reasoning visible.
  • A downstream tool parses think tags from text.

Configuration

OptionTypeRequiredDefaultDescription
tagstringYesThe XML tag that wraps reasoning text, for example think.

Example rule

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

On this page