# `Vllm.SamplingParams.PydanticMsgspecMixin`
[🔗](https://github.com/nshkrdotcom/vllm/blob/v0.3.0/lib/snakebridge_generated/vllm/sampling_params/pydantic_msgspec_mixin.ex#L7)

Sampling parameters for text generation.

# `t`

```elixir
@opaque t()
```

# `_validate_msgspec`

```elixir
@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()`

# `new`

```elixir
@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())

---

*Consult [api-reference.md](api-reference.md) for complete listing*
