> 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: assembleLynxXmlArtifact()

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

组装已启用的模板、脚本与样式能力，不执行模型代码。

## Parameters

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

## Returns

`object`

### text

> **text**: `string`

### xmlFragment?

> `optional` **xmlFragment?**: `string`
