Prompt
Constructors
Types
Represents a mutable context for updating the parameters of an LLM (Language Learning Model). The class is used internally to facilitate changes to various configurations, such as temperature, speculation, schema, and tool choice, before converting back to an immutable LLMParams
instance.
Functions
Creates a copy of the current Prompt instance with updated messages.
Returns a new instance of the Prompt
class with updated language model parameters.
Creates a copy of the Prompt
with updated messages, allowing modifications to the current messages.
Creates a new instance of Prompt
with updated parameters based on the modifications provided in the given update lambda. The update is applied to a mutable context representing the current LLM parameters, allowing selective modifications, which are then returned as a new set of parameters.