Runs

Allows you to start a new run, i.e. resolve templates and send the fully formatted prompt to an LLM of your choice.

  • Select the active template set version based on version and environment as described in Flows

  • Take the prompt entrypoint and start recursively replacing tokens given in parameters. Parameters always precede descending into a template of the same name

  • Send the prompt to the LLM chosen as default for the selected entrypoint in the respective version, unless overrideModel is specified. The model must be one of Models

  • Waits until the request is finished and returns both the formatted request and the LLM response, along with some metadata

Last updated