gen

Contents

gen#

class langworks.dsl.constraints.gen.Gen#

A non-constraint, actually specifying no restriction on generation, instead instructing the LLM to generate as it sees fit. They may be embedded in queries as follows:

```
Today I'm feeling {% gen %}
```

As subclass of Constraint, any of the default arguments may also be passed:

```
Today I'm feeling {% gen var = "answer", params = Params(max_tokens = 1) %}.
```