Skip to content

Commit 55e1cca

Browse files
anakin87github-actions[bot]
authored andcommitted
Sync Haystack API reference on Docusaurus
1 parent 6958876 commit 55e1cca

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs-website/reference/haystack-api/utils_api.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,18 +836,21 @@ This method handles the parsing of role (mandatory), name (optional), meta (opti
836836
### templatize_part
837837

838838
```python
839-
templatize_part(value: ChatMessageContentT) -> Markup
839+
templatize_part(
840+
environment: Any, value: ChatMessageContentT
841+
) -> _TemplatizedPart
840842
```
841843

842-
Jinja filter to convert an ChatMessageContentT object into JSON string wrapped in special XML content tags.
844+
Jinja filter to convert a ChatMessageContentT object into a JSON string wrapped in sentinel content tags.
843845

844846
**Parameters:**
845847

848+
- **environment** (<code>Any</code>) – The Jinja2 environment
846849
- **value** (<code>ChatMessageContentT</code>) – The ChatMessageContentT object to convert
847850

848851
**Returns:**
849852

850-
- <code>Markup</code> – A JSON string wrapped in special XML content tags marked as safe
853+
- <code>\_TemplatizedPart</code> – A `_TemplatizedPart` holding a JSON string wrapped in special XML content tags
851854

852855
**Raises:**
853856

0 commit comments

Comments
 (0)