GoodMem
ReferenceClient SDKsGo SDKModels

LLMSamplingParams Model

LLMSamplingParams Model documentation for Go SDK

Properties

NameTypeDescriptionNotes
MaxTokensPointer to NullableInt32Maximum tokens to generate (>0 if set; provider-dependent limits apply)[optional]
TemperaturePointer to NullableFloat32Sampling temperature 0.0-2.0 (0.0=deterministic, 2.0=highly random)[optional]
TopPPointer to NullableFloat32Nucleus sampling threshold 0.0-1.0 (smaller values focus on higher probability tokens)[optional]
TopKPointer to NullableInt32Top-k sampling limit (>0 if set; primarily for local/open-source models)[optional]
FrequencyPenaltyPointer to NullableFloat32Frequency penalty -2.0 to 2.0 (positive values reduce repetition based on frequency)[optional]
PresencePenaltyPointer to NullableFloat32Presence penalty -2.0 to 2.0 (positive values encourage topic diversity)[optional]
StopSequencesPointer to []stringGeneration stop sequences (≤10 sequences; each ≤100 chars; generation halts on exact match)[optional]

Methods

NewLLMSamplingParams

func NewLLMSamplingParams() *LLMSamplingParams

NewLLMSamplingParams instantiates a new LLMSamplingParams object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewLLMSamplingParamsWithDefaults

func NewLLMSamplingParamsWithDefaults() *LLMSamplingParams

NewLLMSamplingParamsWithDefaults instantiates a new LLMSamplingParams object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetMaxTokens

func (o *LLMSamplingParams) GetMaxTokens() int32

GetMaxTokens returns the MaxTokens field if non-nil, zero value otherwise.

GetMaxTokensOk

func (o *LLMSamplingParams) GetMaxTokensOk() (*int32, bool)

GetMaxTokensOk returns a tuple with the MaxTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaxTokens

func (o *LLMSamplingParams) SetMaxTokens(v int32)

SetMaxTokens sets MaxTokens field to given value.

HasMaxTokens

func (o *LLMSamplingParams) HasMaxTokens() bool

HasMaxTokens returns a boolean if a field has been set.

SetMaxTokensNil

func (o *LLMSamplingParams) SetMaxTokensNil(b bool)

SetMaxTokensNil sets the value for MaxTokens to be an explicit nil

UnsetMaxTokens

func (o *LLMSamplingParams) UnsetMaxTokens()

UnsetMaxTokens ensures that no value is present for MaxTokens, not even an explicit nil

GetTemperature

func (o *LLMSamplingParams) GetTemperature() float32

GetTemperature returns the Temperature field if non-nil, zero value otherwise.

GetTemperatureOk

func (o *LLMSamplingParams) GetTemperatureOk() (*float32, bool)

GetTemperatureOk returns a tuple with the Temperature field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTemperature

func (o *LLMSamplingParams) SetTemperature(v float32)

SetTemperature sets Temperature field to given value.

HasTemperature

func (o *LLMSamplingParams) HasTemperature() bool

HasTemperature returns a boolean if a field has been set.

SetTemperatureNil

func (o *LLMSamplingParams) SetTemperatureNil(b bool)

SetTemperatureNil sets the value for Temperature to be an explicit nil

UnsetTemperature

func (o *LLMSamplingParams) UnsetTemperature()

UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil

GetTopP

func (o *LLMSamplingParams) GetTopP() float32

GetTopP returns the TopP field if non-nil, zero value otherwise.

GetTopPOk

func (o *LLMSamplingParams) GetTopPOk() (*float32, bool)

GetTopPOk returns a tuple with the TopP field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTopP

func (o *LLMSamplingParams) SetTopP(v float32)

SetTopP sets TopP field to given value.

HasTopP

func (o *LLMSamplingParams) HasTopP() bool

HasTopP returns a boolean if a field has been set.

SetTopPNil

func (o *LLMSamplingParams) SetTopPNil(b bool)

SetTopPNil sets the value for TopP to be an explicit nil

UnsetTopP

func (o *LLMSamplingParams) UnsetTopP()

UnsetTopP ensures that no value is present for TopP, not even an explicit nil

GetTopK

func (o *LLMSamplingParams) GetTopK() int32

GetTopK returns the TopK field if non-nil, zero value otherwise.

GetTopKOk

func (o *LLMSamplingParams) GetTopKOk() (*int32, bool)

GetTopKOk returns a tuple with the TopK field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTopK

func (o *LLMSamplingParams) SetTopK(v int32)

SetTopK sets TopK field to given value.

HasTopK

func (o *LLMSamplingParams) HasTopK() bool

HasTopK returns a boolean if a field has been set.

SetTopKNil

func (o *LLMSamplingParams) SetTopKNil(b bool)

SetTopKNil sets the value for TopK to be an explicit nil

UnsetTopK

func (o *LLMSamplingParams) UnsetTopK()

UnsetTopK ensures that no value is present for TopK, not even an explicit nil

GetFrequencyPenalty

func (o *LLMSamplingParams) GetFrequencyPenalty() float32

GetFrequencyPenalty returns the FrequencyPenalty field if non-nil, zero value otherwise.

GetFrequencyPenaltyOk

func (o *LLMSamplingParams) GetFrequencyPenaltyOk() (*float32, bool)

GetFrequencyPenaltyOk returns a tuple with the FrequencyPenalty field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFrequencyPenalty

func (o *LLMSamplingParams) SetFrequencyPenalty(v float32)

SetFrequencyPenalty sets FrequencyPenalty field to given value.

HasFrequencyPenalty

func (o *LLMSamplingParams) HasFrequencyPenalty() bool

HasFrequencyPenalty returns a boolean if a field has been set.

SetFrequencyPenaltyNil

func (o *LLMSamplingParams) SetFrequencyPenaltyNil(b bool)

SetFrequencyPenaltyNil sets the value for FrequencyPenalty to be an explicit nil

UnsetFrequencyPenalty

func (o *LLMSamplingParams) UnsetFrequencyPenalty()

UnsetFrequencyPenalty ensures that no value is present for FrequencyPenalty, not even an explicit nil

GetPresencePenalty

func (o *LLMSamplingParams) GetPresencePenalty() float32

GetPresencePenalty returns the PresencePenalty field if non-nil, zero value otherwise.

GetPresencePenaltyOk

func (o *LLMSamplingParams) GetPresencePenaltyOk() (*float32, bool)

GetPresencePenaltyOk returns a tuple with the PresencePenalty field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPresencePenalty

func (o *LLMSamplingParams) SetPresencePenalty(v float32)

SetPresencePenalty sets PresencePenalty field to given value.

HasPresencePenalty

func (o *LLMSamplingParams) HasPresencePenalty() bool

HasPresencePenalty returns a boolean if a field has been set.

SetPresencePenaltyNil

func (o *LLMSamplingParams) SetPresencePenaltyNil(b bool)

SetPresencePenaltyNil sets the value for PresencePenalty to be an explicit nil

UnsetPresencePenalty

func (o *LLMSamplingParams) UnsetPresencePenalty()

UnsetPresencePenalty ensures that no value is present for PresencePenalty, not even an explicit nil

GetStopSequences

func (o *LLMSamplingParams) GetStopSequences() []string

GetStopSequences returns the StopSequences field if non-nil, zero value otherwise.

GetStopSequencesOk

func (o *LLMSamplingParams) GetStopSequencesOk() (*[]string, bool)

GetStopSequencesOk returns a tuple with the StopSequences field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStopSequences

func (o *LLMSamplingParams) SetStopSequences(v []string)

SetStopSequences sets StopSequences field to given value.

HasStopSequences

func (o *LLMSamplingParams) HasStopSequences() bool

HasStopSequences returns a boolean if a field has been set.

SetStopSequencesNil

func (o *LLMSamplingParams) SetStopSequencesNil(b bool)

SetStopSequencesNil sets the value for StopSequences to be an explicit nil

UnsetStopSequences

func (o *LLMSamplingParams) UnsetStopSequences()

UnsetStopSequences ensures that no value is present for StopSequences, not even an explicit nil

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK