ProjectsAgentsModelFactory.ModelSamplingParams Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a set of parameters used to control the sampling behavior of a language model during text generation.
public static Azure.AI.Projects.Agents.ModelSamplingParams ModelSamplingParams(float? temperature = default, float? topP = default, int? seed = default, int? maxCompletionTokens = default);
static member ModelSamplingParams : Nullable<single> * Nullable<single> * Nullable<int> * Nullable<int> -> Azure.AI.Projects.Agents.ModelSamplingParams
Public Shared Function ModelSamplingParams (Optional temperature As Nullable(Of Single) = Nothing, Optional topP As Nullable(Of Single) = Nothing, Optional seed As Nullable(Of Integer) = Nothing, Optional maxCompletionTokens As Nullable(Of Integer) = Nothing) As ModelSamplingParams
Parameters
Returns
A new ModelSamplingParams instance for mocking.