---
title: "clika_runtime.tokenizer functions"
sidebar_label: "Functions"
description: "Module-level functions of clika_runtime.tokenizer."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

## `messages_json`

```python
messages_json(messages: 'Messages') -> 'str'
```

messages_json(messages) -> str

The conversation as JSON text, whichever form it arrived in: JSON text
passes through; a sequence of ``{"role": ..., "content": ...}`` mappings
serializes to a JSON list.
