Prompt
Constructors
Types
Link copied to clipboard
class LLMParamsUpdateContext
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.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Returns a new instance of the Prompt
class with updated language model parameters.
Link copied to clipboard
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.