# 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");
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowly-ai.gitbook.io/langtorch/processor/input-and-output/pre-built-types/singletext.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
