# SyncTextProjection

> **Class** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/language_models/chat_model_stream/SyncTextProjection)

String-specialized sync projection.

Adds typed string producers and consumers, plus `__str__`, `__bool__`,
`__repr__` for ergonomic use with `.text` and `.reasoning` projections.

## Signature

```python
SyncTextProjection(
    self,
)
```

## Extends

- `SyncProjection`

## Methods

- [`push()`](https://reference.langchain.com/python/langchain-core/language_models/chat_model_stream/SyncTextProjection/push)
- [`complete()`](https://reference.langchain.com/python/langchain-core/language_models/chat_model_stream/SyncTextProjection/complete)
- [`get()`](https://reference.langchain.com/python/langchain-core/language_models/chat_model_stream/SyncTextProjection/get)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/a4b4a7b9a6d8b5eb2352e26e110f1b7beffc6f62/libs/core/langchain_core/language_models/chat_model_stream.py#L284)