Skip to main content
The following objects can be passed to a step

ChatGeneration

List[Dict]
List of messages sent to the LLM. Following the openai chat format.
str
The provider of the LLM, like openai.
str
The model used for the generation, like gpt-4.
str
The error message if the generation failed.
Dict
The settings of the LLM, like temperature
Dict
The variables used to format the prompt.
List[str]
Optional tags to add to the generation.
str
The prompt used for the generation.
Dict
The tools used to generate the completion, following the openai format.
Dict
The message returned by the LLM, following the openai chat format.
int
The token count of the completion.
int
The token count of the input.
int
The token count of the output.
float
The time it took to generate the first token. Only available when streaming.
float
The token throughput in tokens per second. Only available when streaming.
float
The duration of the generation in ms.

CompletionGeneration

str
The provider of the LLM, like openai.
str
The model used for the generation, like gpt-4.
str
The error message if the generation failed.
Dict
The settings of the LLM, like temperature
Dict
The variables used to format the prompt.
List[str]
Optional tags to add to the generation.
str
The prompt used for the generation.
str
The completion returned by the LLM.
int
The token count of the completion.
int
The token count of the input.
int
The token count of the output.
float
The time it took to generate the first token. Only available when streaming.
float
The token throughput in tokens per second. Only available when streaming.
float
The duration of the generation in ms.