toParams

Converts the current context of parameters into an instance of LLMParams.

Return

A new instance of LLMParams populated with the values of the current context, including temperature, speculation, schema, and toolChoice options.