Skip to main content

Env

The Env type represents an environment consisting of inputs and desired outputs, for use by an LLM. For example, an environment might provide a Directory, a Container, a custom module, and a string variable as inputs, and request a Container as output.

Common operations​

Some of the common operations available on the Env type include:

FieldDescription
inputRetrieves an input value by name
inputsRetrieves all input values
outputRetrieves an output value by name
outputsRetrieves all output values
withContainerInputCreates or updates an input of type Container
withContainerOutputDeclare a desired output of type Container
withDirectoryInputCreates or updates an input of type Directory
withDirectoryOutputDeclare a desired output of type Directory
withFileInputCreates or updates an input of type File
withFileOutputDeclare a desired output of type File
with[Object]InputCreates or updates an input of type Object
with[Object]OutputDeclare a desired output of type Object