> For the complete documentation index, see [llms.txt](https://knowly-ai.gitbook.io/langtorch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowly-ai.gitbook.io/langtorch/processor/input-and-output/pre-built-types/singletext.md).

# SingleText

### SingleText Class

```java
public class SingleText implements Input, Output { ... }
```

`SingleText` is a simple wrapper class for a text string that implements both the `Input` and `Output` interfaces. It provides a factory method to create instances:

```java
public static SingleText of(String text) { ... }
```

### Example:

```java
SingleText hello = SingleText.of("Hello World");
```
