Skip to content
Tracon

ISamplingSupport

Namespace Tracon · Assembly Tracon.Abstractions.dll

An optional interface of an IModelProvider that states which SamplingFields its API surface sends to the model.

public interface ISamplingSupport

The support belongs to the API surface, not to the model: openai and openai-responses reach the same models, and the Responses API drops ModelBinding.Seed where Chat Completions sends it. A provider registered under several names states each name’s own support.

A provider that does not implement this interface supports none of the fields: a definition that sets one fails to compile and the validation report names the field and the provider. A field is never dropped silently. The primary provider and every ModelBinding.Fallbacks link are checked, because a link receives the primary call’s request options.

Lifetime and threading

The registry reads the property from the provider’s singleton instance whenever it lists providers, which the compile path and the validation path do, so it may be read concurrently. Return a value that does not change after construction.

Tenant mode

The answer is tenant-independent: it describes the API surface, so every tenant gets the same one, including a tenant that brings its own credential.

Delivery

A read of a value, with no side effect: no delivery guarantee applies.

Gets the fields this provider’s API surface sends to the model. Report a field only when the wire request carries it.

SamplingFields SupportedSamplingFields { get; }

SamplingFields