Sampling parameters for text generation.
Summary
Functions
Validate and convert input to msgspec.Struct instance.
Initialize self. See help(type(self)) for accurate signature.
Types
Functions
@spec _validate_msgspec(SnakeBridge.Ref.t(), term(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
Validate and convert input to msgspec.Struct instance.
Parameters
value(term())
Returns
term()
@spec new( [term()], keyword() ) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
Initialize self. See help(type(self)) for accurate signature.
Parameters
args(term())kwargs(term())