interface SamplingParams {
    max_completion_tokens?: number;
    seed?: number;
    temperature?: number;
    text?: OpenAIClient.Evals.Runs.RunListResponse.Responses.SamplingParams.Text;
    tools?: OpenAIClient.Responses.Tool[];
    top_p?: number;
}

Properties

max_completion_tokens?: number

The maximum number of tokens in the generated output.

seed?: number

A seed value to initialize the randomness, during sampling.

temperature?: number

A higher temperature increases randomness in the outputs.

Configuration options for a text response from the model. Can be plain text or structured JSON data. Learn more:

An array of tools the model may call while generating a response. You can specify which tool to use by setting the tool_choice parameter.

The two categories of tools you can provide the model are:

  • Built-in tools: Tools that are provided by OpenAI that extend the model's capabilities, like web search or file search. Learn more about built-in tools.
  • Function calls (custom tools): Functions that are defined by you, enabling the model to call your own code. Learn more about function calling.
top_p?: number

An alternative to temperature for nucleus sampling; 1.0 includes all tokens.