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.
Properties
Represents the total token usage of the most recent response message in the current prompt.
The list of ai.koog.prompt.message.Message objects associated with the prompt.
The language model parameters associated with the prompt. Defaults to ai.koog.prompt.params.LLMParams.
Represents the total time spent across all messages within the prompt (measured in milliseconds)
Functions
Returns a new instance of the Prompt class with updated language model parameters.
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.