> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# Function: compileLynxXmlFragment()

> **compileLynxXmlFragment**(`source`: `string`, `options?`: [`CompileLynxXmlFragmentOptions`](/next/zh/api/genui/lynx-xml/interfaces/CompileLynxXmlFragmentOptions.md)): `object`

编译模型输出的中间文档，不执行模型代码。

## Parameters

| Parameter | Type                                                                                                       |
| --------- | ---------------------------------------------------------------------------------------------------------- |
| `source`  | `string`                                                                                                   |
| `options` | [`CompileLynxXmlFragmentOptions`](/next/zh/api/genui/lynx-xml/interfaces/CompileLynxXmlFragmentOptions.md) |

## Returns

`object`

### text

> **text**: `string`

### xmlFragment

> **xmlFragment**: `string`
