Generation
ChatGeneration
A ChatGeneration
contains all of the data that has been sent to a message-based LLM (like GPT-4) as well as the response from the LLM.
It is designed to be passed to a Step to enable the Prompt Playground.
Attributes
The completion of the prompt.
The inputs (variables) to the prompt, represented as a dictionary.
The list of messages that form the prompt if in chat mode.
The provider of the LLM, such as “openai-chat”.
The settings the LLM provider was called with. Can include OpenAI tools and functions.
Example
A chat completion displayed in the Prompt Playground
Was this page helpful?