Skip to content

Program

A Program is a synchronous execution of Steps on a Large Language Model.

Requirements:

  1. At least one step must be a Prompt.
  2. The last step must be a Prompt.

Constructors

new Program(model, stepOrSteps)

new Program(model, stepOrSteps): Program

Parameters

model: ModelSpecification

stepOrSteps: Step | Step[]

Returns

Program

Accessors

model

get model(): ModelSpecification

Returns

ModelSpecification


steps

get steps(): Stack<Step>

Returns

Stack<Step>


Generated using typedoc-plugin-markdown and TypeDoc