Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type ApiHandleEmbeddingModelGetRequestRequest
- type ApiHandleEmbeddingModelsListRequestRequest
- type ApiHandleEmbeddingRequestRequest
- type ApiHandleGenerateImageRequestRequest
- type ApiHandleGenericCompleteRequestRequest
- type ApiHandleGenericCompletionRequestRequest
- type ApiHandleGenericMessagesRequestRequest
- type ApiHandleGetApiKeyInfoRequestRequest
- type ApiHandleGetDeferredCompletionRequestRequest
- type ApiHandleImageGenerationModelGetRequestRequest
- type ApiHandleImageGenerationModelsListRequestRequest
- type ApiHandleLanguageModelGetRequestRequest
- type ApiHandleLanguageModelsListRequestRequest
- type ApiHandleModelGetRequestRequest
- type ApiHandleModelsListRequestRequest
- type ApiHandleSampleRequestRequest
- type ApiHandleTokenizeTextRequestRequest
- type ApiKey
- func (o *ApiKey) GetAcls() []string
- func (o *ApiKey) GetAclsOk() ([]string, bool)
- func (o *ApiKey) GetApiKeyBlocked() bool
- func (o *ApiKey) GetApiKeyBlockedOk() (*bool, bool)
- func (o *ApiKey) GetApiKeyDisabled() bool
- func (o *ApiKey) GetApiKeyDisabledOk() (*bool, bool)
- func (o *ApiKey) GetApiKeyId() string
- func (o *ApiKey) GetApiKeyIdOk() (*string, bool)
- func (o *ApiKey) GetCreateTime() string
- func (o *ApiKey) GetCreateTimeOk() (*string, bool)
- func (o *ApiKey) GetModifiedBy() string
- func (o *ApiKey) GetModifiedByOk() (*string, bool)
- func (o *ApiKey) GetModifyTime() string
- func (o *ApiKey) GetModifyTimeOk() (*string, bool)
- func (o *ApiKey) GetName() string
- func (o *ApiKey) GetNameOk() (*string, bool)
- func (o *ApiKey) GetRedactedApiKey() string
- func (o *ApiKey) GetRedactedApiKeyOk() (*string, bool)
- func (o *ApiKey) GetTeamBlocked() bool
- func (o *ApiKey) GetTeamBlockedOk() (*bool, bool)
- func (o *ApiKey) GetTeamId() string
- func (o *ApiKey) GetTeamIdOk() (*string, bool)
- func (o *ApiKey) GetUserId() string
- func (o *ApiKey) GetUserIdOk() (*string, bool)
- func (o ApiKey) MarshalJSON() ([]byte, error)
- func (o *ApiKey) SetAcls(v []string)
- func (o *ApiKey) SetApiKeyBlocked(v bool)
- func (o *ApiKey) SetApiKeyDisabled(v bool)
- func (o *ApiKey) SetApiKeyId(v string)
- func (o *ApiKey) SetCreateTime(v string)
- func (o *ApiKey) SetModifiedBy(v string)
- func (o *ApiKey) SetModifyTime(v string)
- func (o *ApiKey) SetName(v string)
- func (o *ApiKey) SetRedactedApiKey(v string)
- func (o *ApiKey) SetTeamBlocked(v bool)
- func (o *ApiKey) SetTeamId(v string)
- func (o *ApiKey) SetUserId(v string)
- func (o ApiKey) ToMap() (map[string]interface{}, error)
- func (o *ApiKey) UnmarshalJSON(data []byte) (err error)
- type BasicAuth
- type ChatRequest
- func (o *ChatRequest) GetDeferred() bool
- func (o *ChatRequest) GetDeferredOk() (*bool, bool)
- func (o *ChatRequest) GetFrequencyPenalty() float32
- func (o *ChatRequest) GetFrequencyPenaltyOk() (*float32, bool)
- func (o *ChatRequest) GetLogitBias() map[string]float32
- func (o *ChatRequest) GetLogitBiasOk() (map[string]float32, bool)
- func (o *ChatRequest) GetLogprobs() bool
- func (o *ChatRequest) GetLogprobsOk() (*bool, bool)
- func (o *ChatRequest) GetMaxCompletionTokens() int32
- func (o *ChatRequest) GetMaxCompletionTokensOk() (*int32, bool)
- func (o *ChatRequest) GetMaxTokens() int32
- func (o *ChatRequest) GetMaxTokensOk() (*int32, bool)
- func (o *ChatRequest) GetMessages() []Message
- func (o *ChatRequest) GetMessagesOk() ([]Message, bool)
- func (o *ChatRequest) GetModel() string
- func (o *ChatRequest) GetModelOk() (*string, bool)
- func (o *ChatRequest) GetN() int32
- func (o *ChatRequest) GetNOk() (*int32, bool)
- func (o *ChatRequest) GetParallelToolCalls() bool
- func (o *ChatRequest) GetParallelToolCallsOk() (*bool, bool)
- func (o *ChatRequest) GetPresencePenalty() float32
- func (o *ChatRequest) GetPresencePenaltyOk() (*float32, bool)
- func (o *ChatRequest) GetReasoningEffort() string
- func (o *ChatRequest) GetReasoningEffortOk() (*string, bool)
- func (o *ChatRequest) GetResponseFormat() ResponseFormat
- func (o *ChatRequest) GetResponseFormatOk() (*ResponseFormat, bool)
- func (o *ChatRequest) GetSearchParameters() SearchParameters
- func (o *ChatRequest) GetSearchParametersOk() (*SearchParameters, bool)
- func (o *ChatRequest) GetSeed() int32
- func (o *ChatRequest) GetSeedOk() (*int32, bool)
- func (o *ChatRequest) GetStop() []string
- func (o *ChatRequest) GetStopOk() ([]string, bool)
- func (o *ChatRequest) GetStream() bool
- func (o *ChatRequest) GetStreamOk() (*bool, bool)
- func (o *ChatRequest) GetStreamOptions() StreamOptions
- func (o *ChatRequest) GetStreamOptionsOk() (*StreamOptions, bool)
- func (o *ChatRequest) GetTemperature() float32
- func (o *ChatRequest) GetTemperatureOk() (*float32, bool)
- func (o *ChatRequest) GetToolChoice() ToolChoice
- func (o *ChatRequest) GetToolChoiceOk() (*ToolChoice, bool)
- func (o *ChatRequest) GetTools() []Tool
- func (o *ChatRequest) GetToolsOk() ([]Tool, bool)
- func (o *ChatRequest) GetTopLogprobs() int32
- func (o *ChatRequest) GetTopLogprobsOk() (*int32, bool)
- func (o *ChatRequest) GetTopP() float32
- func (o *ChatRequest) GetTopPOk() (*float32, bool)
- func (o *ChatRequest) GetUser() string
- func (o *ChatRequest) GetUserOk() (*string, bool)
- func (o *ChatRequest) GetWebSearchOptions() WebSearchOptions
- func (o *ChatRequest) GetWebSearchOptionsOk() (*WebSearchOptions, bool)
- func (o *ChatRequest) HasDeferred() bool
- func (o *ChatRequest) HasFrequencyPenalty() bool
- func (o *ChatRequest) HasLogitBias() bool
- func (o *ChatRequest) HasLogprobs() bool
- func (o *ChatRequest) HasMaxCompletionTokens() bool
- func (o *ChatRequest) HasMaxTokens() bool
- func (o *ChatRequest) HasMessages() bool
- func (o *ChatRequest) HasModel() bool
- func (o *ChatRequest) HasN() bool
- func (o *ChatRequest) HasParallelToolCalls() bool
- func (o *ChatRequest) HasPresencePenalty() bool
- func (o *ChatRequest) HasReasoningEffort() bool
- func (o *ChatRequest) HasResponseFormat() bool
- func (o *ChatRequest) HasSearchParameters() bool
- func (o *ChatRequest) HasSeed() bool
- func (o *ChatRequest) HasStop() bool
- func (o *ChatRequest) HasStream() bool
- func (o *ChatRequest) HasStreamOptions() bool
- func (o *ChatRequest) HasTemperature() bool
- func (o *ChatRequest) HasToolChoice() bool
- func (o *ChatRequest) HasTools() bool
- func (o *ChatRequest) HasTopLogprobs() bool
- func (o *ChatRequest) HasTopP() bool
- func (o *ChatRequest) HasUser() bool
- func (o *ChatRequest) HasWebSearchOptions() bool
- func (o ChatRequest) MarshalJSON() ([]byte, error)
- func (o *ChatRequest) SetDeferred(v bool)
- func (o *ChatRequest) SetDeferredNil()
- func (o *ChatRequest) SetFrequencyPenalty(v float32)
- func (o *ChatRequest) SetFrequencyPenaltyNil()
- func (o *ChatRequest) SetLogitBias(v map[string]float32)
- func (o *ChatRequest) SetLogprobs(v bool)
- func (o *ChatRequest) SetLogprobsNil()
- func (o *ChatRequest) SetMaxCompletionTokens(v int32)
- func (o *ChatRequest) SetMaxCompletionTokensNil()
- func (o *ChatRequest) SetMaxTokens(v int32)
- func (o *ChatRequest) SetMaxTokensNil()
- func (o *ChatRequest) SetMessages(v []Message)
- func (o *ChatRequest) SetModel(v string)
- func (o *ChatRequest) SetN(v int32)
- func (o *ChatRequest) SetNNil()
- func (o *ChatRequest) SetParallelToolCalls(v bool)
- func (o *ChatRequest) SetParallelToolCallsNil()
- func (o *ChatRequest) SetPresencePenalty(v float32)
- func (o *ChatRequest) SetPresencePenaltyNil()
- func (o *ChatRequest) SetReasoningEffort(v string)
- func (o *ChatRequest) SetReasoningEffortNil()
- func (o *ChatRequest) SetResponseFormat(v ResponseFormat)
- func (o *ChatRequest) SetResponseFormatNil()
- func (o *ChatRequest) SetSearchParameters(v SearchParameters)
- func (o *ChatRequest) SetSearchParametersNil()
- func (o *ChatRequest) SetSeed(v int32)
- func (o *ChatRequest) SetSeedNil()
- func (o *ChatRequest) SetStop(v []string)
- func (o *ChatRequest) SetStream(v bool)
- func (o *ChatRequest) SetStreamNil()
- func (o *ChatRequest) SetStreamOptions(v StreamOptions)
- func (o *ChatRequest) SetStreamOptionsNil()
- func (o *ChatRequest) SetTemperature(v float32)
- func (o *ChatRequest) SetTemperatureNil()
- func (o *ChatRequest) SetToolChoice(v ToolChoice)
- func (o *ChatRequest) SetToolChoiceNil()
- func (o *ChatRequest) SetTools(v []Tool)
- func (o *ChatRequest) SetTopLogprobs(v int32)
- func (o *ChatRequest) SetTopLogprobsNil()
- func (o *ChatRequest) SetTopP(v float32)
- func (o *ChatRequest) SetTopPNil()
- func (o *ChatRequest) SetUser(v string)
- func (o *ChatRequest) SetUserNil()
- func (o *ChatRequest) SetWebSearchOptions(v WebSearchOptions)
- func (o *ChatRequest) SetWebSearchOptionsNil()
- func (o ChatRequest) ToMap() (map[string]interface{}, error)
- func (o *ChatRequest) UnmarshalJSON(data []byte) (err error)
- func (o *ChatRequest) UnsetDeferred()
- func (o *ChatRequest) UnsetFrequencyPenalty()
- func (o *ChatRequest) UnsetLogprobs()
- func (o *ChatRequest) UnsetMaxCompletionTokens()
- func (o *ChatRequest) UnsetMaxTokens()
- func (o *ChatRequest) UnsetN()
- func (o *ChatRequest) UnsetParallelToolCalls()
- func (o *ChatRequest) UnsetPresencePenalty()
- func (o *ChatRequest) UnsetReasoningEffort()
- func (o *ChatRequest) UnsetResponseFormat()
- func (o *ChatRequest) UnsetSearchParameters()
- func (o *ChatRequest) UnsetSeed()
- func (o *ChatRequest) UnsetStream()
- func (o *ChatRequest) UnsetStreamOptions()
- func (o *ChatRequest) UnsetTemperature()
- func (o *ChatRequest) UnsetToolChoice()
- func (o *ChatRequest) UnsetTopLogprobs()
- func (o *ChatRequest) UnsetTopP()
- func (o *ChatRequest) UnsetUser()
- func (o *ChatRequest) UnsetWebSearchOptions()
- type ChatResponse
- func (o *ChatResponse) GetChoices() []Choice
- func (o *ChatResponse) GetChoicesOk() ([]Choice, bool)
- func (o *ChatResponse) GetCitations() []string
- func (o *ChatResponse) GetCitationsOk() ([]string, bool)
- func (o *ChatResponse) GetCreated() int64
- func (o *ChatResponse) GetCreatedOk() (*int64, bool)
- func (o *ChatResponse) GetDebugOutput() DebugOutput
- func (o *ChatResponse) GetDebugOutputOk() (*DebugOutput, bool)
- func (o *ChatResponse) GetId() string
- func (o *ChatResponse) GetIdOk() (*string, bool)
- func (o *ChatResponse) GetModel() string
- func (o *ChatResponse) GetModelOk() (*string, bool)
- func (o *ChatResponse) GetObject() string
- func (o *ChatResponse) GetObjectOk() (*string, bool)
- func (o *ChatResponse) GetSystemFingerprint() string
- func (o *ChatResponse) GetSystemFingerprintOk() (*string, bool)
- func (o *ChatResponse) GetUsage() Usage
- func (o *ChatResponse) GetUsageOk() (*Usage, bool)
- func (o *ChatResponse) HasCitations() bool
- func (o *ChatResponse) HasDebugOutput() bool
- func (o *ChatResponse) HasSystemFingerprint() bool
- func (o *ChatResponse) HasUsage() bool
- func (o ChatResponse) MarshalJSON() ([]byte, error)
- func (o *ChatResponse) SetChoices(v []Choice)
- func (o *ChatResponse) SetCitations(v []string)
- func (o *ChatResponse) SetCreated(v int64)
- func (o *ChatResponse) SetDebugOutput(v DebugOutput)
- func (o *ChatResponse) SetDebugOutputNil()
- func (o *ChatResponse) SetId(v string)
- func (o *ChatResponse) SetModel(v string)
- func (o *ChatResponse) SetObject(v string)
- func (o *ChatResponse) SetSystemFingerprint(v string)
- func (o *ChatResponse) SetSystemFingerprintNil()
- func (o *ChatResponse) SetUsage(v Usage)
- func (o *ChatResponse) SetUsageNil()
- func (o ChatResponse) ToMap() (map[string]interface{}, error)
- func (o *ChatResponse) UnmarshalJSON(data []byte) (err error)
- func (o *ChatResponse) UnsetDebugOutput()
- func (o *ChatResponse) UnsetSystemFingerprint()
- func (o *ChatResponse) UnsetUsage()
- type ChatResponseChunk
- func (o *ChatResponseChunk) GetChoices() []ChoiceChunk
- func (o *ChatResponseChunk) GetChoicesOk() ([]ChoiceChunk, bool)
- func (o *ChatResponseChunk) GetCitations() []string
- func (o *ChatResponseChunk) GetCitationsOk() ([]string, bool)
- func (o *ChatResponseChunk) GetCreated() int64
- func (o *ChatResponseChunk) GetCreatedOk() (*int64, bool)
- func (o *ChatResponseChunk) GetDebugOutput() DebugOutput
- func (o *ChatResponseChunk) GetDebugOutputOk() (*DebugOutput, bool)
- func (o *ChatResponseChunk) GetId() string
- func (o *ChatResponseChunk) GetIdOk() (*string, bool)
- func (o *ChatResponseChunk) GetModel() string
- func (o *ChatResponseChunk) GetModelOk() (*string, bool)
- func (o *ChatResponseChunk) GetObject() string
- func (o *ChatResponseChunk) GetObjectOk() (*string, bool)
- func (o *ChatResponseChunk) GetSystemFingerprint() string
- func (o *ChatResponseChunk) GetSystemFingerprintOk() (*string, bool)
- func (o *ChatResponseChunk) GetUsage() Usage
- func (o *ChatResponseChunk) GetUsageOk() (*Usage, bool)
- func (o *ChatResponseChunk) HasCitations() bool
- func (o *ChatResponseChunk) HasDebugOutput() bool
- func (o *ChatResponseChunk) HasSystemFingerprint() bool
- func (o *ChatResponseChunk) HasUsage() bool
- func (o ChatResponseChunk) MarshalJSON() ([]byte, error)
- func (o *ChatResponseChunk) SetChoices(v []ChoiceChunk)
- func (o *ChatResponseChunk) SetCitations(v []string)
- func (o *ChatResponseChunk) SetCreated(v int64)
- func (o *ChatResponseChunk) SetDebugOutput(v DebugOutput)
- func (o *ChatResponseChunk) SetDebugOutputNil()
- func (o *ChatResponseChunk) SetId(v string)
- func (o *ChatResponseChunk) SetModel(v string)
- func (o *ChatResponseChunk) SetObject(v string)
- func (o *ChatResponseChunk) SetSystemFingerprint(v string)
- func (o *ChatResponseChunk) SetSystemFingerprintNil()
- func (o *ChatResponseChunk) SetUsage(v Usage)
- func (o *ChatResponseChunk) SetUsageNil()
- func (o ChatResponseChunk) ToMap() (map[string]interface{}, error)
- func (o *ChatResponseChunk) UnmarshalJSON(data []byte) (err error)
- func (o *ChatResponseChunk) UnsetDebugOutput()
- func (o *ChatResponseChunk) UnsetSystemFingerprint()
- func (o *ChatResponseChunk) UnsetUsage()
- type Choice
- func (o *Choice) GetFinishReason() string
- func (o *Choice) GetFinishReasonOk() (*string, bool)
- func (o *Choice) GetIndex() int32
- func (o *Choice) GetIndexOk() (*int32, bool)
- func (o *Choice) GetLogprobs() LogProbs
- func (o *Choice) GetLogprobsOk() (*LogProbs, bool)
- func (o *Choice) GetMessage() ChoiceMessage
- func (o *Choice) GetMessageOk() (*ChoiceMessage, bool)
- func (o *Choice) HasFinishReason() bool
- func (o *Choice) HasLogprobs() bool
- func (o Choice) MarshalJSON() ([]byte, error)
- func (o *Choice) SetFinishReason(v string)
- func (o *Choice) SetFinishReasonNil()
- func (o *Choice) SetIndex(v int32)
- func (o *Choice) SetLogprobs(v LogProbs)
- func (o *Choice) SetLogprobsNil()
- func (o *Choice) SetMessage(v ChoiceMessage)
- func (o Choice) ToMap() (map[string]interface{}, error)
- func (o *Choice) UnmarshalJSON(data []byte) (err error)
- func (o *Choice) UnsetFinishReason()
- func (o *Choice) UnsetLogprobs()
- type ChoiceChunk
- func (o *ChoiceChunk) GetDelta() Delta
- func (o *ChoiceChunk) GetDeltaOk() (*Delta, bool)
- func (o *ChoiceChunk) GetFinishReason() string
- func (o *ChoiceChunk) GetFinishReasonOk() (*string, bool)
- func (o *ChoiceChunk) GetIndex() int32
- func (o *ChoiceChunk) GetIndexOk() (*int32, bool)
- func (o *ChoiceChunk) GetLogprobs() LogProbs
- func (o *ChoiceChunk) GetLogprobsOk() (*LogProbs, bool)
- func (o *ChoiceChunk) HasFinishReason() bool
- func (o *ChoiceChunk) HasLogprobs() bool
- func (o ChoiceChunk) MarshalJSON() ([]byte, error)
- func (o *ChoiceChunk) SetDelta(v Delta)
- func (o *ChoiceChunk) SetFinishReason(v string)
- func (o *ChoiceChunk) SetFinishReasonNil()
- func (o *ChoiceChunk) SetIndex(v int32)
- func (o *ChoiceChunk) SetLogprobs(v LogProbs)
- func (o *ChoiceChunk) SetLogprobsNil()
- func (o ChoiceChunk) ToMap() (map[string]interface{}, error)
- func (o *ChoiceChunk) UnmarshalJSON(data []byte) (err error)
- func (o *ChoiceChunk) UnsetFinishReason()
- func (o *ChoiceChunk) UnsetLogprobs()
- type ChoiceMessage
- func (o *ChoiceMessage) GetContent() string
- func (o *ChoiceMessage) GetContentOk() (*string, bool)
- func (o *ChoiceMessage) GetReasoningContent() string
- func (o *ChoiceMessage) GetReasoningContentOk() (*string, bool)
- func (o *ChoiceMessage) GetRefusal() string
- func (o *ChoiceMessage) GetRefusalOk() (*string, bool)
- func (o *ChoiceMessage) GetRole() string
- func (o *ChoiceMessage) GetRoleOk() (*string, bool)
- func (o *ChoiceMessage) GetToolCalls() []ToolCall
- func (o *ChoiceMessage) GetToolCallsOk() ([]ToolCall, bool)
- func (o *ChoiceMessage) HasContent() bool
- func (o *ChoiceMessage) HasReasoningContent() bool
- func (o *ChoiceMessage) HasRefusal() bool
- func (o *ChoiceMessage) HasToolCalls() bool
- func (o ChoiceMessage) MarshalJSON() ([]byte, error)
- func (o *ChoiceMessage) SetContent(v string)
- func (o *ChoiceMessage) SetContentNil()
- func (o *ChoiceMessage) SetReasoningContent(v string)
- func (o *ChoiceMessage) SetReasoningContentNil()
- func (o *ChoiceMessage) SetRefusal(v string)
- func (o *ChoiceMessage) SetRefusalNil()
- func (o *ChoiceMessage) SetRole(v string)
- func (o *ChoiceMessage) SetToolCalls(v []ToolCall)
- func (o ChoiceMessage) ToMap() (map[string]interface{}, error)
- func (o *ChoiceMessage) UnmarshalJSON(data []byte) (err error)
- func (o *ChoiceMessage) UnsetContent()
- func (o *ChoiceMessage) UnsetReasoningContent()
- func (o *ChoiceMessage) UnsetRefusal()
- type CompleteRequest
- func (o *CompleteRequest) GetMaxTokensToSample() int32
- func (o *CompleteRequest) GetMaxTokensToSampleOk() (*int32, bool)
- func (o *CompleteRequest) GetMetadata() MessageMetadata
- func (o *CompleteRequest) GetMetadataOk() (*MessageMetadata, bool)
- func (o *CompleteRequest) GetModel() string
- func (o *CompleteRequest) GetModelOk() (*string, bool)
- func (o *CompleteRequest) GetPrompt() string
- func (o *CompleteRequest) GetPromptOk() (*string, bool)
- func (o *CompleteRequest) GetStopSequences() []string
- func (o *CompleteRequest) GetStopSequencesOk() ([]string, bool)
- func (o *CompleteRequest) GetStream() bool
- func (o *CompleteRequest) GetStreamOk() (*bool, bool)
- func (o *CompleteRequest) GetTemperature() float32
- func (o *CompleteRequest) GetTemperatureOk() (*float32, bool)
- func (o *CompleteRequest) GetTopK() int32
- func (o *CompleteRequest) GetTopKOk() (*int32, bool)
- func (o *CompleteRequest) GetTopP() float32
- func (o *CompleteRequest) GetTopPOk() (*float32, bool)
- func (o *CompleteRequest) HasMaxTokensToSample() bool
- func (o *CompleteRequest) HasMetadata() bool
- func (o *CompleteRequest) HasModel() bool
- func (o *CompleteRequest) HasPrompt() bool
- func (o *CompleteRequest) HasStopSequences() bool
- func (o *CompleteRequest) HasStream() bool
- func (o *CompleteRequest) HasTemperature() bool
- func (o *CompleteRequest) HasTopK() bool
- func (o *CompleteRequest) HasTopP() bool
- func (o CompleteRequest) MarshalJSON() ([]byte, error)
- func (o *CompleteRequest) SetMaxTokensToSample(v int32)
- func (o *CompleteRequest) SetMetadata(v MessageMetadata)
- func (o *CompleteRequest) SetMetadataNil()
- func (o *CompleteRequest) SetModel(v string)
- func (o *CompleteRequest) SetPrompt(v string)
- func (o *CompleteRequest) SetStopSequences(v []string)
- func (o *CompleteRequest) SetStream(v bool)
- func (o *CompleteRequest) SetStreamNil()
- func (o *CompleteRequest) SetTemperature(v float32)
- func (o *CompleteRequest) SetTemperatureNil()
- func (o *CompleteRequest) SetTopK(v int32)
- func (o *CompleteRequest) SetTopKNil()
- func (o *CompleteRequest) SetTopP(v float32)
- func (o *CompleteRequest) SetTopPNil()
- func (o CompleteRequest) ToMap() (map[string]interface{}, error)
- func (o *CompleteRequest) UnmarshalJSON(data []byte) (err error)
- func (o *CompleteRequest) UnsetMetadata()
- func (o *CompleteRequest) UnsetStream()
- func (o *CompleteRequest) UnsetTemperature()
- func (o *CompleteRequest) UnsetTopK()
- func (o *CompleteRequest) UnsetTopP()
- type CompleteResponse
- func (o *CompleteResponse) GetCompletion() string
- func (o *CompleteResponse) GetCompletionOk() (*string, bool)
- func (o *CompleteResponse) GetId() string
- func (o *CompleteResponse) GetIdOk() (*string, bool)
- func (o *CompleteResponse) GetModel() string
- func (o *CompleteResponse) GetModelOk() (*string, bool)
- func (o *CompleteResponse) GetStopReason() string
- func (o *CompleteResponse) GetStopReasonOk() (*string, bool)
- func (o *CompleteResponse) GetType() string
- func (o *CompleteResponse) GetTypeOk() (*string, bool)
- func (o *CompleteResponse) HasStopReason() bool
- func (o CompleteResponse) MarshalJSON() ([]byte, error)
- func (o *CompleteResponse) SetCompletion(v string)
- func (o *CompleteResponse) SetId(v string)
- func (o *CompleteResponse) SetModel(v string)
- func (o *CompleteResponse) SetStopReason(v string)
- func (o *CompleteResponse) SetStopReasonNil()
- func (o *CompleteResponse) SetType(v string)
- func (o CompleteResponse) ToMap() (map[string]interface{}, error)
- func (o *CompleteResponse) UnmarshalJSON(data []byte) (err error)
- func (o *CompleteResponse) UnsetStopReason()
- type CompletionUsageDetail
- func (o *CompletionUsageDetail) GetAcceptedPredictionTokens() int32
- func (o *CompletionUsageDetail) GetAcceptedPredictionTokensOk() (*int32, bool)
- func (o *CompletionUsageDetail) GetAudioTokens() int32
- func (o *CompletionUsageDetail) GetAudioTokensOk() (*int32, bool)
- func (o *CompletionUsageDetail) GetReasoningTokens() int32
- func (o *CompletionUsageDetail) GetReasoningTokensOk() (*int32, bool)
- func (o *CompletionUsageDetail) GetRejectedPredictionTokens() int32
- func (o *CompletionUsageDetail) GetRejectedPredictionTokensOk() (*int32, bool)
- func (o CompletionUsageDetail) MarshalJSON() ([]byte, error)
- func (o *CompletionUsageDetail) SetAcceptedPredictionTokens(v int32)
- func (o *CompletionUsageDetail) SetAudioTokens(v int32)
- func (o *CompletionUsageDetail) SetReasoningTokens(v int32)
- func (o *CompletionUsageDetail) SetRejectedPredictionTokens(v int32)
- func (o CompletionUsageDetail) ToMap() (map[string]interface{}, error)
- func (o *CompletionUsageDetail) UnmarshalJSON(data []byte) (err error)
- type Configuration
- type Content
- type ContentPart
- func (o *ContentPart) GetDetail() string
- func (o *ContentPart) GetDetailOk() (*string, bool)
- func (o *ContentPart) GetImageUrl() ImageUrl
- func (o *ContentPart) GetImageUrlOk() (*ImageUrl, bool)
- func (o *ContentPart) GetText() string
- func (o *ContentPart) GetTextFile() string
- func (o *ContentPart) GetTextFileOk() (*string, bool)
- func (o *ContentPart) GetTextOk() (*string, bool)
- func (o *ContentPart) GetType() string
- func (o *ContentPart) GetTypeOk() (*string, bool)
- func (o *ContentPart) HasDetail() bool
- func (o *ContentPart) HasImageUrl() bool
- func (o *ContentPart) HasText() bool
- func (o *ContentPart) HasTextFile() bool
- func (o ContentPart) MarshalJSON() ([]byte, error)
- func (o *ContentPart) SetDetail(v string)
- func (o *ContentPart) SetDetailNil()
- func (o *ContentPart) SetImageUrl(v ImageUrl)
- func (o *ContentPart) SetImageUrlNil()
- func (o *ContentPart) SetText(v string)
- func (o *ContentPart) SetTextFile(v string)
- func (o *ContentPart) SetTextFileNil()
- func (o *ContentPart) SetTextNil()
- func (o *ContentPart) SetType(v string)
- func (o ContentPart) ToMap() (map[string]interface{}, error)
- func (o *ContentPart) UnmarshalJSON(data []byte) (err error)
- func (o *ContentPart) UnsetDetail()
- func (o *ContentPart) UnsetImageUrl()
- func (o *ContentPart) UnsetText()
- func (o *ContentPart) UnsetTextFile()
- type DebugOutput
- func (o *DebugOutput) GetAttempts() int32
- func (o *DebugOutput) GetAttemptsOk() (*int32, bool)
- func (o *DebugOutput) GetCacheReadCount() int32
- func (o *DebugOutput) GetCacheReadCountOk() (*int32, bool)
- func (o *DebugOutput) GetCacheReadInputBytes() int64
- func (o *DebugOutput) GetCacheReadInputBytesOk() (*int64, bool)
- func (o *DebugOutput) GetCacheWriteCount() int32
- func (o *DebugOutput) GetCacheWriteCountOk() (*int32, bool)
- func (o *DebugOutput) GetCacheWriteInputBytes() int64
- func (o *DebugOutput) GetCacheWriteInputBytesOk() (*int64, bool)
- func (o *DebugOutput) GetEngineRequest() string
- func (o *DebugOutput) GetEngineRequestOk() (*string, bool)
- func (o *DebugOutput) GetLbAddress() string
- func (o *DebugOutput) GetLbAddressOk() (*string, bool)
- func (o *DebugOutput) GetPrompt() string
- func (o *DebugOutput) GetPromptOk() (*string, bool)
- func (o *DebugOutput) GetRequest() string
- func (o *DebugOutput) GetRequestOk() (*string, bool)
- func (o *DebugOutput) GetResponses() []string
- func (o *DebugOutput) GetResponsesOk() ([]string, bool)
- func (o DebugOutput) MarshalJSON() ([]byte, error)
- func (o *DebugOutput) SetAttempts(v int32)
- func (o *DebugOutput) SetCacheReadCount(v int32)
- func (o *DebugOutput) SetCacheReadInputBytes(v int64)
- func (o *DebugOutput) SetCacheWriteCount(v int32)
- func (o *DebugOutput) SetCacheWriteInputBytes(v int64)
- func (o *DebugOutput) SetEngineRequest(v string)
- func (o *DebugOutput) SetLbAddress(v string)
- func (o *DebugOutput) SetPrompt(v string)
- func (o *DebugOutput) SetRequest(v string)
- func (o *DebugOutput) SetResponses(v []string)
- func (o DebugOutput) ToMap() (map[string]interface{}, error)
- func (o *DebugOutput) UnmarshalJSON(data []byte) (err error)
- type Delta
- func (o *Delta) GetContent() string
- func (o *Delta) GetContentOk() (*string, bool)
- func (o *Delta) GetImages() []string
- func (o *Delta) GetImagesOk() ([]string, bool)
- func (o *Delta) GetReasoningContent() string
- func (o *Delta) GetReasoningContentOk() (*string, bool)
- func (o *Delta) GetRole() string
- func (o *Delta) GetRoleOk() (*string, bool)
- func (o *Delta) GetToolCalls() []ToolCall
- func (o *Delta) GetToolCallsOk() ([]ToolCall, bool)
- func (o *Delta) HasContent() bool
- func (o *Delta) HasImages() bool
- func (o *Delta) HasReasoningContent() bool
- func (o *Delta) HasRole() bool
- func (o *Delta) HasToolCalls() bool
- func (o Delta) MarshalJSON() ([]byte, error)
- func (o *Delta) SetContent(v string)
- func (o *Delta) SetContentNil()
- func (o *Delta) SetImages(v []string)
- func (o *Delta) SetReasoningContent(v string)
- func (o *Delta) SetReasoningContentNil()
- func (o *Delta) SetRole(v string)
- func (o *Delta) SetRoleNil()
- func (o *Delta) SetToolCalls(v []ToolCall)
- func (o Delta) ToMap() (map[string]interface{}, error)
- func (o *Delta) UnmarshalJSON(data []byte) (err error)
- func (o *Delta) UnsetContent()
- func (o *Delta) UnsetReasoningContent()
- func (o *Delta) UnsetRole()
- type EditImageRequest
- func (o *EditImageRequest) GetImage() ImageUrl
- func (o *EditImageRequest) GetImageOk() (*ImageUrl, bool)
- func (o *EditImageRequest) GetMask() ImageUrl
- func (o *EditImageRequest) GetMaskOk() (*ImageUrl, bool)
- func (o *EditImageRequest) GetModel() string
- func (o *EditImageRequest) GetModelOk() (*string, bool)
- func (o *EditImageRequest) GetN() int32
- func (o *EditImageRequest) GetNOk() (*int32, bool)
- func (o *EditImageRequest) GetPrompt() string
- func (o *EditImageRequest) GetPromptOk() (*string, bool)
- func (o *EditImageRequest) GetResponseFormat() string
- func (o *EditImageRequest) GetResponseFormatOk() (*string, bool)
- func (o *EditImageRequest) GetSize() string
- func (o *EditImageRequest) GetSizeOk() (*string, bool)
- func (o *EditImageRequest) GetStyle() string
- func (o *EditImageRequest) GetStyleOk() (*string, bool)
- func (o *EditImageRequest) GetUser() string
- func (o *EditImageRequest) GetUserOk() (*string, bool)
- func (o *EditImageRequest) HasMask() bool
- func (o *EditImageRequest) HasModel() bool
- func (o *EditImageRequest) HasN() bool
- func (o *EditImageRequest) HasResponseFormat() bool
- func (o *EditImageRequest) HasSize() bool
- func (o *EditImageRequest) HasStyle() bool
- func (o *EditImageRequest) HasUser() bool
- func (o EditImageRequest) MarshalJSON() ([]byte, error)
- func (o *EditImageRequest) SetImage(v ImageUrl)
- func (o *EditImageRequest) SetMask(v ImageUrl)
- func (o *EditImageRequest) SetMaskNil()
- func (o *EditImageRequest) SetModel(v string)
- func (o *EditImageRequest) SetModelNil()
- func (o *EditImageRequest) SetN(v int32)
- func (o *EditImageRequest) SetNNil()
- func (o *EditImageRequest) SetPrompt(v string)
- func (o *EditImageRequest) SetResponseFormat(v string)
- func (o *EditImageRequest) SetResponseFormatNil()
- func (o *EditImageRequest) SetSize(v string)
- func (o *EditImageRequest) SetSizeNil()
- func (o *EditImageRequest) SetStyle(v string)
- func (o *EditImageRequest) SetStyleNil()
- func (o *EditImageRequest) SetUser(v string)
- func (o *EditImageRequest) SetUserNil()
- func (o EditImageRequest) ToMap() (map[string]interface{}, error)
- func (o *EditImageRequest) UnmarshalJSON(data []byte) (err error)
- func (o *EditImageRequest) UnsetMask()
- func (o *EditImageRequest) UnsetModel()
- func (o *EditImageRequest) UnsetN()
- func (o *EditImageRequest) UnsetResponseFormat()
- func (o *EditImageRequest) UnsetSize()
- func (o *EditImageRequest) UnsetStyle()
- func (o *EditImageRequest) UnsetUser()
- type Embedding
- func (o *Embedding) GetEmbedding() EmbeddingContent
- func (o *Embedding) GetEmbeddingOk() (*EmbeddingContent, bool)
- func (o *Embedding) GetIndex() int32
- func (o *Embedding) GetIndexOk() (*int32, bool)
- func (o *Embedding) GetObject() string
- func (o *Embedding) GetObjectOk() (*string, bool)
- func (o Embedding) MarshalJSON() ([]byte, error)
- func (o *Embedding) SetEmbedding(v EmbeddingContent)
- func (o *Embedding) SetIndex(v int32)
- func (o *Embedding) SetObject(v string)
- func (o Embedding) ToMap() (map[string]interface{}, error)
- func (o *Embedding) UnmarshalJSON(data []byte) (err error)
- type EmbeddingContent
- type EmbeddingInput
- func EmbeddingInputOneOf1AsEmbeddingInput(v *EmbeddingInputOneOf1) EmbeddingInput
- func EmbeddingInputOneOf2AsEmbeddingInput(v *EmbeddingInputOneOf2) EmbeddingInput
- func EmbeddingInputOneOf3AsEmbeddingInput(v *EmbeddingInputOneOf3) EmbeddingInput
- func EmbeddingInputOneOfAsEmbeddingInput(v *EmbeddingInputOneOf) EmbeddingInput
- type EmbeddingInputOneOf
- func (o *EmbeddingInputOneOf) GetString() string
- func (o *EmbeddingInputOneOf) GetStringOk() (*string, bool)
- func (o EmbeddingInputOneOf) MarshalJSON() ([]byte, error)
- func (o *EmbeddingInputOneOf) SetString(v string)
- func (o EmbeddingInputOneOf) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingInputOneOf) UnmarshalJSON(data []byte) (err error)
- type EmbeddingInputOneOf1
- func (o *EmbeddingInputOneOf1) GetStringArray() []string
- func (o *EmbeddingInputOneOf1) GetStringArrayOk() ([]string, bool)
- func (o EmbeddingInputOneOf1) MarshalJSON() ([]byte, error)
- func (o *EmbeddingInputOneOf1) SetStringArray(v []string)
- func (o EmbeddingInputOneOf1) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingInputOneOf1) UnmarshalJSON(data []byte) (err error)
- type EmbeddingInputOneOf2
- func (o *EmbeddingInputOneOf2) GetInts() []int32
- func (o *EmbeddingInputOneOf2) GetIntsOk() ([]int32, bool)
- func (o EmbeddingInputOneOf2) MarshalJSON() ([]byte, error)
- func (o *EmbeddingInputOneOf2) SetInts(v []int32)
- func (o EmbeddingInputOneOf2) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingInputOneOf2) UnmarshalJSON(data []byte) (err error)
- type EmbeddingInputOneOf3
- func (o *EmbeddingInputOneOf3) GetIntsArray() [][]int32
- func (o *EmbeddingInputOneOf3) GetIntsArrayOk() ([][]int32, bool)
- func (o EmbeddingInputOneOf3) MarshalJSON() ([]byte, error)
- func (o *EmbeddingInputOneOf3) SetIntsArray(v [][]int32)
- func (o EmbeddingInputOneOf3) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingInputOneOf3) UnmarshalJSON(data []byte) (err error)
- type EmbeddingModel
- func (o *EmbeddingModel) GetAliases() []string
- func (o *EmbeddingModel) GetAliasesOk() ([]string, bool)
- func (o *EmbeddingModel) GetCreated() int64
- func (o *EmbeddingModel) GetCreatedOk() (*int64, bool)
- func (o *EmbeddingModel) GetFingerprint() string
- func (o *EmbeddingModel) GetFingerprintOk() (*string, bool)
- func (o *EmbeddingModel) GetId() string
- func (o *EmbeddingModel) GetIdOk() (*string, bool)
- func (o *EmbeddingModel) GetInputModalities() []string
- func (o *EmbeddingModel) GetInputModalitiesOk() ([]string, bool)
- func (o *EmbeddingModel) GetObject() string
- func (o *EmbeddingModel) GetObjectOk() (*string, bool)
- func (o *EmbeddingModel) GetOutputModalities() []string
- func (o *EmbeddingModel) GetOutputModalitiesOk() ([]string, bool)
- func (o *EmbeddingModel) GetOwnedBy() string
- func (o *EmbeddingModel) GetOwnedByOk() (*string, bool)
- func (o *EmbeddingModel) GetPromptImageTokenPrice() int64
- func (o *EmbeddingModel) GetPromptImageTokenPriceOk() (*int64, bool)
- func (o *EmbeddingModel) GetPromptTextTokenPrice() int64
- func (o *EmbeddingModel) GetPromptTextTokenPriceOk() (*int64, bool)
- func (o *EmbeddingModel) GetVersion() string
- func (o *EmbeddingModel) GetVersionOk() (*string, bool)
- func (o EmbeddingModel) MarshalJSON() ([]byte, error)
- func (o *EmbeddingModel) SetAliases(v []string)
- func (o *EmbeddingModel) SetCreated(v int64)
- func (o *EmbeddingModel) SetFingerprint(v string)
- func (o *EmbeddingModel) SetId(v string)
- func (o *EmbeddingModel) SetInputModalities(v []string)
- func (o *EmbeddingModel) SetObject(v string)
- func (o *EmbeddingModel) SetOutputModalities(v []string)
- func (o *EmbeddingModel) SetOwnedBy(v string)
- func (o *EmbeddingModel) SetPromptImageTokenPrice(v int64)
- func (o *EmbeddingModel) SetPromptTextTokenPrice(v int64)
- func (o *EmbeddingModel) SetVersion(v string)
- func (o EmbeddingModel) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingModel) UnmarshalJSON(data []byte) (err error)
- type EmbeddingRequest
- func (o *EmbeddingRequest) GetDimensions() int32
- func (o *EmbeddingRequest) GetDimensionsOk() (*int32, bool)
- func (o *EmbeddingRequest) GetEncodingFormat() string
- func (o *EmbeddingRequest) GetEncodingFormatOk() (*string, bool)
- func (o *EmbeddingRequest) GetInput() EmbeddingInput
- func (o *EmbeddingRequest) GetInputOk() (*EmbeddingInput, bool)
- func (o *EmbeddingRequest) GetModel() string
- func (o *EmbeddingRequest) GetModelOk() (*string, bool)
- func (o *EmbeddingRequest) GetPreview() bool
- func (o *EmbeddingRequest) GetPreviewOk() (*bool, bool)
- func (o *EmbeddingRequest) GetUser() string
- func (o *EmbeddingRequest) GetUserOk() (*string, bool)
- func (o *EmbeddingRequest) HasDimensions() bool
- func (o *EmbeddingRequest) HasEncodingFormat() bool
- func (o *EmbeddingRequest) HasInput() bool
- func (o *EmbeddingRequest) HasModel() bool
- func (o *EmbeddingRequest) HasPreview() bool
- func (o *EmbeddingRequest) HasUser() bool
- func (o EmbeddingRequest) MarshalJSON() ([]byte, error)
- func (o *EmbeddingRequest) SetDimensions(v int32)
- func (o *EmbeddingRequest) SetDimensionsNil()
- func (o *EmbeddingRequest) SetEncodingFormat(v string)
- func (o *EmbeddingRequest) SetEncodingFormatNil()
- func (o *EmbeddingRequest) SetInput(v EmbeddingInput)
- func (o *EmbeddingRequest) SetModel(v string)
- func (o *EmbeddingRequest) SetPreview(v bool)
- func (o *EmbeddingRequest) SetPreviewNil()
- func (o *EmbeddingRequest) SetUser(v string)
- func (o *EmbeddingRequest) SetUserNil()
- func (o EmbeddingRequest) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingRequest) UnmarshalJSON(data []byte) (err error)
- func (o *EmbeddingRequest) UnsetDimensions()
- func (o *EmbeddingRequest) UnsetEncodingFormat()
- func (o *EmbeddingRequest) UnsetPreview()
- func (o *EmbeddingRequest) UnsetUser()
- type EmbeddingResponse
- func (o *EmbeddingResponse) GetData() []Embedding
- func (o *EmbeddingResponse) GetDataOk() ([]Embedding, bool)
- func (o *EmbeddingResponse) GetModel() string
- func (o *EmbeddingResponse) GetModelOk() (*string, bool)
- func (o *EmbeddingResponse) GetObject() string
- func (o *EmbeddingResponse) GetObjectOk() (*string, bool)
- func (o *EmbeddingResponse) GetUsage() EmbeddingUsage
- func (o *EmbeddingResponse) GetUsageOk() (*EmbeddingUsage, bool)
- func (o *EmbeddingResponse) HasUsage() bool
- func (o EmbeddingResponse) MarshalJSON() ([]byte, error)
- func (o *EmbeddingResponse) SetData(v []Embedding)
- func (o *EmbeddingResponse) SetModel(v string)
- func (o *EmbeddingResponse) SetObject(v string)
- func (o *EmbeddingResponse) SetUsage(v EmbeddingUsage)
- func (o *EmbeddingResponse) SetUsageNil()
- func (o EmbeddingResponse) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingResponse) UnmarshalJSON(data []byte) (err error)
- func (o *EmbeddingResponse) UnsetUsage()
- type EmbeddingUsage
- func (o *EmbeddingUsage) GetPromptTokens() int32
- func (o *EmbeddingUsage) GetPromptTokensOk() (*int32, bool)
- func (o *EmbeddingUsage) GetTotalTokens() int32
- func (o *EmbeddingUsage) GetTotalTokensOk() (*int32, bool)
- func (o EmbeddingUsage) MarshalJSON() ([]byte, error)
- func (o *EmbeddingUsage) SetPromptTokens(v int32)
- func (o *EmbeddingUsage) SetTotalTokens(v int32)
- func (o EmbeddingUsage) ToMap() (map[string]interface{}, error)
- func (o *EmbeddingUsage) UnmarshalJSON(data []byte) (err error)
- type Function
- func (o *Function) GetArguments() string
- func (o *Function) GetArgumentsOk() (*string, bool)
- func (o *Function) GetName() string
- func (o *Function) GetNameOk() (*string, bool)
- func (o Function) MarshalJSON() ([]byte, error)
- func (o *Function) SetArguments(v string)
- func (o *Function) SetName(v string)
- func (o Function) ToMap() (map[string]interface{}, error)
- func (o *Function) UnmarshalJSON(data []byte) (err error)
- type FunctionCall
- func (o *FunctionCall) GetArguments() string
- func (o *FunctionCall) GetArgumentsOk() (*string, bool)
- func (o *FunctionCall) GetName() string
- func (o *FunctionCall) GetNameOk() (*string, bool)
- func (o FunctionCall) MarshalJSON() ([]byte, error)
- func (o *FunctionCall) SetArguments(v string)
- func (o *FunctionCall) SetName(v string)
- func (o FunctionCall) ToMap() (map[string]interface{}, error)
- func (o *FunctionCall) UnmarshalJSON(data []byte) (err error)
- type FunctionChoice
- func (o *FunctionChoice) GetName() string
- func (o *FunctionChoice) GetNameOk() (*string, bool)
- func (o FunctionChoice) MarshalJSON() ([]byte, error)
- func (o *FunctionChoice) SetName(v string)
- func (o FunctionChoice) ToMap() (map[string]interface{}, error)
- func (o *FunctionChoice) UnmarshalJSON(data []byte) (err error)
- type FunctionDefinition
- func (o *FunctionDefinition) GetDescription() string
- func (o *FunctionDefinition) GetDescriptionOk() (*string, bool)
- func (o *FunctionDefinition) GetName() string
- func (o *FunctionDefinition) GetNameOk() (*string, bool)
- func (o *FunctionDefinition) GetParameters() interface{}
- func (o *FunctionDefinition) GetParametersOk() (*interface{}, bool)
- func (o *FunctionDefinition) GetStrict() bool
- func (o *FunctionDefinition) GetStrictOk() (*bool, bool)
- func (o *FunctionDefinition) HasDescription() bool
- func (o *FunctionDefinition) HasStrict() bool
- func (o FunctionDefinition) MarshalJSON() ([]byte, error)
- func (o *FunctionDefinition) SetDescription(v string)
- func (o *FunctionDefinition) SetDescriptionNil()
- func (o *FunctionDefinition) SetName(v string)
- func (o *FunctionDefinition) SetParameters(v interface{})
- func (o *FunctionDefinition) SetStrict(v bool)
- func (o *FunctionDefinition) SetStrictNil()
- func (o FunctionDefinition) ToMap() (map[string]interface{}, error)
- func (o *FunctionDefinition) UnmarshalJSON(data []byte) (err error)
- func (o *FunctionDefinition) UnsetDescription()
- func (o *FunctionDefinition) UnsetStrict()
- type GenerateImageRequest
- func (o *GenerateImageRequest) GetModel() string
- func (o *GenerateImageRequest) GetModelOk() (*string, bool)
- func (o *GenerateImageRequest) GetN() int32
- func (o *GenerateImageRequest) GetNOk() (*int32, bool)
- func (o *GenerateImageRequest) GetPrompt() string
- func (o *GenerateImageRequest) GetPromptOk() (*string, bool)
- func (o *GenerateImageRequest) GetQuality() string
- func (o *GenerateImageRequest) GetQualityOk() (*string, bool)
- func (o *GenerateImageRequest) GetResponseFormat() string
- func (o *GenerateImageRequest) GetResponseFormatOk() (*string, bool)
- func (o *GenerateImageRequest) GetSize() string
- func (o *GenerateImageRequest) GetSizeOk() (*string, bool)
- func (o *GenerateImageRequest) GetStyle() string
- func (o *GenerateImageRequest) GetStyleOk() (*string, bool)
- func (o *GenerateImageRequest) GetUser() string
- func (o *GenerateImageRequest) GetUserOk() (*string, bool)
- func (o *GenerateImageRequest) HasModel() bool
- func (o *GenerateImageRequest) HasN() bool
- func (o *GenerateImageRequest) HasPrompt() bool
- func (o *GenerateImageRequest) HasQuality() bool
- func (o *GenerateImageRequest) HasResponseFormat() bool
- func (o *GenerateImageRequest) HasSize() bool
- func (o *GenerateImageRequest) HasStyle() bool
- func (o *GenerateImageRequest) HasUser() bool
- func (o GenerateImageRequest) MarshalJSON() ([]byte, error)
- func (o *GenerateImageRequest) SetModel(v string)
- func (o *GenerateImageRequest) SetModelNil()
- func (o *GenerateImageRequest) SetN(v int32)
- func (o *GenerateImageRequest) SetNNil()
- func (o *GenerateImageRequest) SetPrompt(v string)
- func (o *GenerateImageRequest) SetQuality(v string)
- func (o *GenerateImageRequest) SetQualityNil()
- func (o *GenerateImageRequest) SetResponseFormat(v string)
- func (o *GenerateImageRequest) SetResponseFormatNil()
- func (o *GenerateImageRequest) SetSize(v string)
- func (o *GenerateImageRequest) SetSizeNil()
- func (o *GenerateImageRequest) SetStyle(v string)
- func (o *GenerateImageRequest) SetStyleNil()
- func (o *GenerateImageRequest) SetUser(v string)
- func (o *GenerateImageRequest) SetUserNil()
- func (o GenerateImageRequest) ToMap() (map[string]interface{}, error)
- func (o *GenerateImageRequest) UnmarshalJSON(data []byte) (err error)
- func (o *GenerateImageRequest) UnsetModel()
- func (o *GenerateImageRequest) UnsetN()
- func (o *GenerateImageRequest) UnsetQuality()
- func (o *GenerateImageRequest) UnsetResponseFormat()
- func (o *GenerateImageRequest) UnsetSize()
- func (o *GenerateImageRequest) UnsetStyle()
- func (o *GenerateImageRequest) UnsetUser()
- type GeneratedImage
- func (o *GeneratedImage) GetB64Json() string
- func (o *GeneratedImage) GetB64JsonOk() (*string, bool)
- func (o *GeneratedImage) GetRevisedPrompt() string
- func (o *GeneratedImage) GetRevisedPromptOk() (*string, bool)
- func (o *GeneratedImage) GetUrl() string
- func (o *GeneratedImage) GetUrlOk() (*string, bool)
- func (o *GeneratedImage) HasB64Json() bool
- func (o *GeneratedImage) HasUrl() bool
- func (o GeneratedImage) MarshalJSON() ([]byte, error)
- func (o *GeneratedImage) SetB64Json(v string)
- func (o *GeneratedImage) SetB64JsonNil()
- func (o *GeneratedImage) SetRevisedPrompt(v string)
- func (o *GeneratedImage) SetUrl(v string)
- func (o *GeneratedImage) SetUrlNil()
- func (o GeneratedImage) ToMap() (map[string]interface{}, error)
- func (o *GeneratedImage) UnmarshalJSON(data []byte) (err error)
- func (o *GeneratedImage) UnsetB64Json()
- func (o *GeneratedImage) UnsetUrl()
- type GeneratedImageResponse
- func (o *GeneratedImageResponse) GetData() []GeneratedImage
- func (o *GeneratedImageResponse) GetDataOk() ([]GeneratedImage, bool)
- func (o GeneratedImageResponse) MarshalJSON() ([]byte, error)
- func (o *GeneratedImageResponse) SetData(v []GeneratedImage)
- func (o GeneratedImageResponse) ToMap() (map[string]interface{}, error)
- func (o *GeneratedImageResponse) UnmarshalJSON(data []byte) (err error)
- type GenericOpenAPIError
- type ImageGenerationModel
- func (o *ImageGenerationModel) GetAliases() []string
- func (o *ImageGenerationModel) GetAliasesOk() ([]string, bool)
- func (o *ImageGenerationModel) GetCreated() int64
- func (o *ImageGenerationModel) GetCreatedOk() (*int64, bool)
- func (o *ImageGenerationModel) GetFingerprint() string
- func (o *ImageGenerationModel) GetFingerprintOk() (*string, bool)
- func (o *ImageGenerationModel) GetId() string
- func (o *ImageGenerationModel) GetIdOk() (*string, bool)
- func (o *ImageGenerationModel) GetImagePrice() int64
- func (o *ImageGenerationModel) GetImagePriceOk() (*int64, bool)
- func (o *ImageGenerationModel) GetInputModalities() []string
- func (o *ImageGenerationModel) GetInputModalitiesOk() ([]string, bool)
- func (o *ImageGenerationModel) GetMaxPromptLength() int64
- func (o *ImageGenerationModel) GetMaxPromptLengthOk() (*int64, bool)
- func (o *ImageGenerationModel) GetObject() string
- func (o *ImageGenerationModel) GetObjectOk() (*string, bool)
- func (o *ImageGenerationModel) GetOutputModalities() []string
- func (o *ImageGenerationModel) GetOutputModalitiesOk() ([]string, bool)
- func (o *ImageGenerationModel) GetOwnedBy() string
- func (o *ImageGenerationModel) GetOwnedByOk() (*string, bool)
- func (o *ImageGenerationModel) GetVersion() string
- func (o *ImageGenerationModel) GetVersionOk() (*string, bool)
- func (o ImageGenerationModel) MarshalJSON() ([]byte, error)
- func (o *ImageGenerationModel) SetAliases(v []string)
- func (o *ImageGenerationModel) SetCreated(v int64)
- func (o *ImageGenerationModel) SetFingerprint(v string)
- func (o *ImageGenerationModel) SetId(v string)
- func (o *ImageGenerationModel) SetImagePrice(v int64)
- func (o *ImageGenerationModel) SetInputModalities(v []string)
- func (o *ImageGenerationModel) SetMaxPromptLength(v int64)
- func (o *ImageGenerationModel) SetObject(v string)
- func (o *ImageGenerationModel) SetOutputModalities(v []string)
- func (o *ImageGenerationModel) SetOwnedBy(v string)
- func (o *ImageGenerationModel) SetVersion(v string)
- func (o ImageGenerationModel) ToMap() (map[string]interface{}, error)
- func (o *ImageGenerationModel) UnmarshalJSON(data []byte) (err error)
- type ImageUrl
- func (o *ImageUrl) GetDetail() string
- func (o *ImageUrl) GetDetailOk() (*string, bool)
- func (o *ImageUrl) GetUrl() string
- func (o *ImageUrl) GetUrlOk() (*string, bool)
- func (o *ImageUrl) HasDetail() bool
- func (o ImageUrl) MarshalJSON() ([]byte, error)
- func (o *ImageUrl) SetDetail(v string)
- func (o *ImageUrl) SetDetailNil()
- func (o *ImageUrl) SetUrl(v string)
- func (o ImageUrl) ToMap() (map[string]interface{}, error)
- func (o *ImageUrl) UnmarshalJSON(data []byte) (err error)
- func (o *ImageUrl) UnsetDetail()
- type LanguageModel
- func (o *LanguageModel) GetAliases() []string
- func (o *LanguageModel) GetAliasesOk() ([]string, bool)
- func (o *LanguageModel) GetCachedPromptTextTokenPrice() int64
- func (o *LanguageModel) GetCachedPromptTextTokenPriceOk() (*int64, bool)
- func (o *LanguageModel) GetCompletionTextTokenPrice() int64
- func (o *LanguageModel) GetCompletionTextTokenPriceOk() (*int64, bool)
- func (o *LanguageModel) GetCreated() int64
- func (o *LanguageModel) GetCreatedOk() (*int64, bool)
- func (o *LanguageModel) GetFingerprint() string
- func (o *LanguageModel) GetFingerprintOk() (*string, bool)
- func (o *LanguageModel) GetId() string
- func (o *LanguageModel) GetIdOk() (*string, bool)
- func (o *LanguageModel) GetInputModalities() []string
- func (o *LanguageModel) GetInputModalitiesOk() ([]string, bool)
- func (o *LanguageModel) GetObject() string
- func (o *LanguageModel) GetObjectOk() (*string, bool)
- func (o *LanguageModel) GetOutputModalities() []string
- func (o *LanguageModel) GetOutputModalitiesOk() ([]string, bool)
- func (o *LanguageModel) GetOwnedBy() string
- func (o *LanguageModel) GetOwnedByOk() (*string, bool)
- func (o *LanguageModel) GetPromptImageTokenPrice() int64
- func (o *LanguageModel) GetPromptImageTokenPriceOk() (*int64, bool)
- func (o *LanguageModel) GetPromptTextTokenPrice() int64
- func (o *LanguageModel) GetPromptTextTokenPriceOk() (*int64, bool)
- func (o *LanguageModel) GetSearchPrice() int64
- func (o *LanguageModel) GetSearchPriceOk() (*int64, bool)
- func (o *LanguageModel) GetVersion() string
- func (o *LanguageModel) GetVersionOk() (*string, bool)
- func (o LanguageModel) MarshalJSON() ([]byte, error)
- func (o *LanguageModel) SetAliases(v []string)
- func (o *LanguageModel) SetCachedPromptTextTokenPrice(v int64)
- func (o *LanguageModel) SetCompletionTextTokenPrice(v int64)
- func (o *LanguageModel) SetCreated(v int64)
- func (o *LanguageModel) SetFingerprint(v string)
- func (o *LanguageModel) SetId(v string)
- func (o *LanguageModel) SetInputModalities(v []string)
- func (o *LanguageModel) SetObject(v string)
- func (o *LanguageModel) SetOutputModalities(v []string)
- func (o *LanguageModel) SetOwnedBy(v string)
- func (o *LanguageModel) SetPromptImageTokenPrice(v int64)
- func (o *LanguageModel) SetPromptTextTokenPrice(v int64)
- func (o *LanguageModel) SetSearchPrice(v int64)
- func (o *LanguageModel) SetVersion(v string)
- func (o LanguageModel) ToMap() (map[string]interface{}, error)
- func (o *LanguageModel) UnmarshalJSON(data []byte) (err error)
- type ListEmbeddingModelsResponse
- func (o *ListEmbeddingModelsResponse) GetModels() []EmbeddingModel
- func (o *ListEmbeddingModelsResponse) GetModelsOk() ([]EmbeddingModel, bool)
- func (o ListEmbeddingModelsResponse) MarshalJSON() ([]byte, error)
- func (o *ListEmbeddingModelsResponse) SetModels(v []EmbeddingModel)
- func (o ListEmbeddingModelsResponse) ToMap() (map[string]interface{}, error)
- func (o *ListEmbeddingModelsResponse) UnmarshalJSON(data []byte) (err error)
- type ListImageGenerationModelsResponse
- func (o *ListImageGenerationModelsResponse) GetModels() []ImageGenerationModel
- func (o *ListImageGenerationModelsResponse) GetModelsOk() ([]ImageGenerationModel, bool)
- func (o ListImageGenerationModelsResponse) MarshalJSON() ([]byte, error)
- func (o *ListImageGenerationModelsResponse) SetModels(v []ImageGenerationModel)
- func (o ListImageGenerationModelsResponse) ToMap() (map[string]interface{}, error)
- func (o *ListImageGenerationModelsResponse) UnmarshalJSON(data []byte) (err error)
- type ListLanguageModelsResponse
- func (o *ListLanguageModelsResponse) GetModels() []LanguageModel
- func (o *ListLanguageModelsResponse) GetModelsOk() ([]LanguageModel, bool)
- func (o ListLanguageModelsResponse) MarshalJSON() ([]byte, error)
- func (o *ListLanguageModelsResponse) SetModels(v []LanguageModel)
- func (o ListLanguageModelsResponse) ToMap() (map[string]interface{}, error)
- func (o *ListLanguageModelsResponse) UnmarshalJSON(data []byte) (err error)
- type ListModelsResponse
- func (o *ListModelsResponse) GetData() []Model
- func (o *ListModelsResponse) GetDataOk() ([]Model, bool)
- func (o *ListModelsResponse) GetObject() string
- func (o *ListModelsResponse) GetObjectOk() (*string, bool)
- func (o ListModelsResponse) MarshalJSON() ([]byte, error)
- func (o *ListModelsResponse) SetData(v []Model)
- func (o *ListModelsResponse) SetObject(v string)
- func (o ListModelsResponse) ToMap() (map[string]interface{}, error)
- func (o *ListModelsResponse) UnmarshalJSON(data []byte) (err error)
- type LogProbs
- func (o *LogProbs) GetContent() []TokenLogProb
- func (o *LogProbs) GetContentOk() ([]TokenLogProb, bool)
- func (o *LogProbs) HasContent() bool
- func (o LogProbs) MarshalJSON() ([]byte, error)
- func (o *LogProbs) SetContent(v []TokenLogProb)
- func (o LogProbs) ToMap() (map[string]interface{}, error)
- func (o *LogProbs) UnmarshalJSON(data []byte) (err error)
- type MappedNullable
- type Message
- type MessageBody
- func (o *MessageBody) GetContent() MessageContent
- func (o *MessageBody) GetContentOk() (*MessageContent, bool)
- func (o *MessageBody) GetRole() string
- func (o *MessageBody) GetRoleOk() (*string, bool)
- func (o MessageBody) MarshalJSON() ([]byte, error)
- func (o *MessageBody) SetContent(v MessageContent)
- func (o *MessageBody) SetRole(v string)
- func (o MessageBody) ToMap() (map[string]interface{}, error)
- func (o *MessageBody) UnmarshalJSON(data []byte) (err error)
- type MessageContent
- type MessageContentPart
- func MessageContentPartOneOf1AsMessageContentPart(v *MessageContentPartOneOf1) MessageContentPart
- func MessageContentPartOneOf2AsMessageContentPart(v *MessageContentPartOneOf2) MessageContentPart
- func MessageContentPartOneOf3AsMessageContentPart(v *MessageContentPartOneOf3) MessageContentPart
- func MessageContentPartOneOf4AsMessageContentPart(v *MessageContentPartOneOf4) MessageContentPart
- func MessageContentPartOneOf5AsMessageContentPart(v *MessageContentPartOneOf5) MessageContentPart
- func MessageContentPartOneOfAsMessageContentPart(v *MessageContentPartOneOf) MessageContentPart
- type MessageContentPartOneOf
- func (o *MessageContentPartOneOf) GetCacheControl() interface{}
- func (o *MessageContentPartOneOf) GetCacheControlOk() (*interface{}, bool)
- func (o *MessageContentPartOneOf) GetText() string
- func (o *MessageContentPartOneOf) GetTextOk() (*string, bool)
- func (o *MessageContentPartOneOf) GetType() string
- func (o *MessageContentPartOneOf) GetTypeOk() (*string, bool)
- func (o *MessageContentPartOneOf) HasCacheControl() bool
- func (o MessageContentPartOneOf) MarshalJSON() ([]byte, error)
- func (o *MessageContentPartOneOf) SetCacheControl(v interface{})
- func (o *MessageContentPartOneOf) SetText(v string)
- func (o *MessageContentPartOneOf) SetType(v string)
- func (o MessageContentPartOneOf) ToMap() (map[string]interface{}, error)
- func (o *MessageContentPartOneOf) UnmarshalJSON(data []byte) (err error)
- type MessageContentPartOneOf1
- func (o *MessageContentPartOneOf1) GetCacheControl() interface{}
- func (o *MessageContentPartOneOf1) GetCacheControlOk() (*interface{}, bool)
- func (o *MessageContentPartOneOf1) GetSource() MessageImageContent
- func (o *MessageContentPartOneOf1) GetSourceOk() (*MessageImageContent, bool)
- func (o *MessageContentPartOneOf1) GetType() string
- func (o *MessageContentPartOneOf1) GetTypeOk() (*string, bool)
- func (o *MessageContentPartOneOf1) HasCacheControl() bool
- func (o MessageContentPartOneOf1) MarshalJSON() ([]byte, error)
- func (o *MessageContentPartOneOf1) SetCacheControl(v interface{})
- func (o *MessageContentPartOneOf1) SetSource(v MessageImageContent)
- func (o *MessageContentPartOneOf1) SetType(v string)
- func (o MessageContentPartOneOf1) ToMap() (map[string]interface{}, error)
- func (o *MessageContentPartOneOf1) UnmarshalJSON(data []byte) (err error)
- type MessageContentPartOneOf2
- func (o *MessageContentPartOneOf2) GetCacheControl() interface{}
- func (o *MessageContentPartOneOf2) GetCacheControlOk() (*interface{}, bool)
- func (o *MessageContentPartOneOf2) GetId() string
- func (o *MessageContentPartOneOf2) GetIdOk() (*string, bool)
- func (o *MessageContentPartOneOf2) GetInput() interface{}
- func (o *MessageContentPartOneOf2) GetInputOk() (*interface{}, bool)
- func (o *MessageContentPartOneOf2) GetName() string
- func (o *MessageContentPartOneOf2) GetNameOk() (*string, bool)
- func (o *MessageContentPartOneOf2) GetType() string
- func (o *MessageContentPartOneOf2) GetTypeOk() (*string, bool)
- func (o *MessageContentPartOneOf2) HasCacheControl() bool
- func (o MessageContentPartOneOf2) MarshalJSON() ([]byte, error)
- func (o *MessageContentPartOneOf2) SetCacheControl(v interface{})
- func (o *MessageContentPartOneOf2) SetId(v string)
- func (o *MessageContentPartOneOf2) SetInput(v interface{})
- func (o *MessageContentPartOneOf2) SetName(v string)
- func (o *MessageContentPartOneOf2) SetType(v string)
- func (o MessageContentPartOneOf2) ToMap() (map[string]interface{}, error)
- func (o *MessageContentPartOneOf2) UnmarshalJSON(data []byte) (err error)
- type MessageContentPartOneOf3
- func (o *MessageContentPartOneOf3) GetCacheControl() interface{}
- func (o *MessageContentPartOneOf3) GetCacheControlOk() (*interface{}, bool)
- func (o *MessageContentPartOneOf3) GetContent() string
- func (o *MessageContentPartOneOf3) GetContentOk() (*string, bool)
- func (o *MessageContentPartOneOf3) GetIsError() bool
- func (o *MessageContentPartOneOf3) GetIsErrorOk() (*bool, bool)
- func (o *MessageContentPartOneOf3) GetToolUseId() string
- func (o *MessageContentPartOneOf3) GetToolUseIdOk() (*string, bool)
- func (o *MessageContentPartOneOf3) GetType() string
- func (o *MessageContentPartOneOf3) GetTypeOk() (*string, bool)
- func (o *MessageContentPartOneOf3) HasCacheControl() bool
- func (o *MessageContentPartOneOf3) HasIsError() bool
- func (o MessageContentPartOneOf3) MarshalJSON() ([]byte, error)
- func (o *MessageContentPartOneOf3) SetCacheControl(v interface{})
- func (o *MessageContentPartOneOf3) SetContent(v string)
- func (o *MessageContentPartOneOf3) SetIsError(v bool)
- func (o *MessageContentPartOneOf3) SetIsErrorNil()
- func (o *MessageContentPartOneOf3) SetToolUseId(v string)
- func (o *MessageContentPartOneOf3) SetType(v string)
- func (o MessageContentPartOneOf3) ToMap() (map[string]interface{}, error)
- func (o *MessageContentPartOneOf3) UnmarshalJSON(data []byte) (err error)
- func (o *MessageContentPartOneOf3) UnsetIsError()
- type MessageContentPartOneOf4
- func (o *MessageContentPartOneOf4) GetData() string
- func (o *MessageContentPartOneOf4) GetDataOk() (*string, bool)
- func (o *MessageContentPartOneOf4) GetType() string
- func (o *MessageContentPartOneOf4) GetTypeOk() (*string, bool)
- func (o MessageContentPartOneOf4) MarshalJSON() ([]byte, error)
- func (o *MessageContentPartOneOf4) SetData(v string)
- func (o *MessageContentPartOneOf4) SetType(v string)
- func (o MessageContentPartOneOf4) ToMap() (map[string]interface{}, error)
- func (o *MessageContentPartOneOf4) UnmarshalJSON(data []byte) (err error)
- type MessageContentPartOneOf5
- func (o *MessageContentPartOneOf5) GetThinking() string
- func (o *MessageContentPartOneOf5) GetThinkingOk() (*string, bool)
- func (o *MessageContentPartOneOf5) GetType() string
- func (o *MessageContentPartOneOf5) GetTypeOk() (*string, bool)
- func (o MessageContentPartOneOf5) MarshalJSON() ([]byte, error)
- func (o *MessageContentPartOneOf5) SetThinking(v string)
- func (o *MessageContentPartOneOf5) SetType(v string)
- func (o MessageContentPartOneOf5) ToMap() (map[string]interface{}, error)
- func (o *MessageContentPartOneOf5) UnmarshalJSON(data []byte) (err error)
- type MessageImageContent
- type MessageImageContentOneOf
- func (o *MessageImageContentOneOf) GetData() string
- func (o *MessageImageContentOneOf) GetDataOk() (*string, bool)
- func (o *MessageImageContentOneOf) GetMediaType() string
- func (o *MessageImageContentOneOf) GetMediaTypeOk() (*string, bool)
- func (o *MessageImageContentOneOf) GetType() string
- func (o *MessageImageContentOneOf) GetTypeOk() (*string, bool)
- func (o MessageImageContentOneOf) MarshalJSON() ([]byte, error)
- func (o *MessageImageContentOneOf) SetData(v string)
- func (o *MessageImageContentOneOf) SetMediaType(v string)
- func (o *MessageImageContentOneOf) SetType(v string)
- func (o MessageImageContentOneOf) ToMap() (map[string]interface{}, error)
- func (o *MessageImageContentOneOf) UnmarshalJSON(data []byte) (err error)
- type MessageImageContentOneOf1
- func (o *MessageImageContentOneOf1) GetType() string
- func (o *MessageImageContentOneOf1) GetTypeOk() (*string, bool)
- func (o *MessageImageContentOneOf1) GetUrl() string
- func (o *MessageImageContentOneOf1) GetUrlOk() (*string, bool)
- func (o MessageImageContentOneOf1) MarshalJSON() ([]byte, error)
- func (o *MessageImageContentOneOf1) SetType(v string)
- func (o *MessageImageContentOneOf1) SetUrl(v string)
- func (o MessageImageContentOneOf1) ToMap() (map[string]interface{}, error)
- func (o *MessageImageContentOneOf1) UnmarshalJSON(data []byte) (err error)
- type MessageMetadata
- func (o *MessageMetadata) GetUserId() string
- func (o *MessageMetadata) GetUserIdOk() (*string, bool)
- func (o *MessageMetadata) HasUserId() bool
- func (o MessageMetadata) MarshalJSON() ([]byte, error)
- func (o *MessageMetadata) SetUserId(v string)
- func (o *MessageMetadata) SetUserIdNil()
- func (o MessageMetadata) ToMap() (map[string]interface{}, error)
- func (o *MessageMetadata) UnmarshalJSON(data []byte) (err error)
- func (o *MessageMetadata) UnsetUserId()
- type MessageOneOf
- func (o *MessageOneOf) GetContent() Content
- func (o *MessageOneOf) GetContentOk() (*Content, bool)
- func (o *MessageOneOf) GetName() string
- func (o *MessageOneOf) GetNameOk() (*string, bool)
- func (o *MessageOneOf) GetRole() string
- func (o *MessageOneOf) GetRoleOk() (*string, bool)
- func (o *MessageOneOf) HasName() bool
- func (o MessageOneOf) MarshalJSON() ([]byte, error)
- func (o *MessageOneOf) SetContent(v Content)
- func (o *MessageOneOf) SetName(v string)
- func (o *MessageOneOf) SetNameNil()
- func (o *MessageOneOf) SetRole(v string)
- func (o MessageOneOf) ToMap() (map[string]interface{}, error)
- func (o *MessageOneOf) UnmarshalJSON(data []byte) (err error)
- func (o *MessageOneOf) UnsetName()
- type MessageOneOf1
- func (o *MessageOneOf1) GetContent() Content
- func (o *MessageOneOf1) GetContentOk() (*Content, bool)
- func (o *MessageOneOf1) GetName() string
- func (o *MessageOneOf1) GetNameOk() (*string, bool)
- func (o *MessageOneOf1) GetRole() string
- func (o *MessageOneOf1) GetRoleOk() (*string, bool)
- func (o *MessageOneOf1) HasName() bool
- func (o MessageOneOf1) MarshalJSON() ([]byte, error)
- func (o *MessageOneOf1) SetContent(v Content)
- func (o *MessageOneOf1) SetName(v string)
- func (o *MessageOneOf1) SetNameNil()
- func (o *MessageOneOf1) SetRole(v string)
- func (o MessageOneOf1) ToMap() (map[string]interface{}, error)
- func (o *MessageOneOf1) UnmarshalJSON(data []byte) (err error)
- func (o *MessageOneOf1) UnsetName()
- type MessageOneOf2
- func (o *MessageOneOf2) GetContent() Content
- func (o *MessageOneOf2) GetContentOk() (*Content, bool)
- func (o *MessageOneOf2) GetName() string
- func (o *MessageOneOf2) GetNameOk() (*string, bool)
- func (o *MessageOneOf2) GetReasoningContent() string
- func (o *MessageOneOf2) GetReasoningContentOk() (*string, bool)
- func (o *MessageOneOf2) GetRole() string
- func (o *MessageOneOf2) GetRoleOk() (*string, bool)
- func (o *MessageOneOf2) GetToolCalls() []ToolCall
- func (o *MessageOneOf2) GetToolCallsOk() ([]ToolCall, bool)
- func (o *MessageOneOf2) HasContent() bool
- func (o *MessageOneOf2) HasName() bool
- func (o *MessageOneOf2) HasReasoningContent() bool
- func (o *MessageOneOf2) HasToolCalls() bool
- func (o MessageOneOf2) MarshalJSON() ([]byte, error)
- func (o *MessageOneOf2) SetContent(v Content)
- func (o *MessageOneOf2) SetContentNil()
- func (o *MessageOneOf2) SetName(v string)
- func (o *MessageOneOf2) SetNameNil()
- func (o *MessageOneOf2) SetReasoningContent(v string)
- func (o *MessageOneOf2) SetReasoningContentNil()
- func (o *MessageOneOf2) SetRole(v string)
- func (o *MessageOneOf2) SetToolCalls(v []ToolCall)
- func (o MessageOneOf2) ToMap() (map[string]interface{}, error)
- func (o *MessageOneOf2) UnmarshalJSON(data []byte) (err error)
- func (o *MessageOneOf2) UnsetContent()
- func (o *MessageOneOf2) UnsetName()
- func (o *MessageOneOf2) UnsetReasoningContent()
- type MessageOneOf3
- func (o *MessageOneOf3) GetContent() Content
- func (o *MessageOneOf3) GetContentOk() (*Content, bool)
- func (o *MessageOneOf3) GetRole() string
- func (o *MessageOneOf3) GetRoleOk() (*string, bool)
- func (o *MessageOneOf3) GetToolCallId() string
- func (o *MessageOneOf3) GetToolCallIdOk() (*string, bool)
- func (o *MessageOneOf3) HasToolCallId() bool
- func (o MessageOneOf3) MarshalJSON() ([]byte, error)
- func (o *MessageOneOf3) SetContent(v Content)
- func (o *MessageOneOf3) SetRole(v string)
- func (o *MessageOneOf3) SetToolCallId(v string)
- func (o *MessageOneOf3) SetToolCallIdNil()
- func (o MessageOneOf3) ToMap() (map[string]interface{}, error)
- func (o *MessageOneOf3) UnmarshalJSON(data []byte) (err error)
- func (o *MessageOneOf3) UnsetToolCallId()
- type MessageOneOf4
- func (o *MessageOneOf4) GetContent() Content
- func (o *MessageOneOf4) GetContentOk() (*Content, bool)
- func (o *MessageOneOf4) GetName() string
- func (o *MessageOneOf4) GetNameOk() (*string, bool)
- func (o *MessageOneOf4) GetRole() string
- func (o *MessageOneOf4) GetRoleOk() (*string, bool)
- func (o *MessageOneOf4) HasName() bool
- func (o MessageOneOf4) MarshalJSON() ([]byte, error)
- func (o *MessageOneOf4) SetContent(v Content)
- func (o *MessageOneOf4) SetName(v string)
- func (o *MessageOneOf4) SetNameNil()
- func (o *MessageOneOf4) SetRole(v string)
- func (o MessageOneOf4) ToMap() (map[string]interface{}, error)
- func (o *MessageOneOf4) UnmarshalJSON(data []byte) (err error)
- func (o *MessageOneOf4) UnsetName()
- type MessageRequest
- func (o *MessageRequest) GetMaxTokens() int32
- func (o *MessageRequest) GetMaxTokensOk() (*int32, bool)
- func (o *MessageRequest) GetMessages() []MessageBody
- func (o *MessageRequest) GetMessagesOk() ([]MessageBody, bool)
- func (o *MessageRequest) GetMetadata() MessageMetadata
- func (o *MessageRequest) GetMetadataOk() (*MessageMetadata, bool)
- func (o *MessageRequest) GetModel() string
- func (o *MessageRequest) GetModelOk() (*string, bool)
- func (o *MessageRequest) GetStopSequences() []string
- func (o *MessageRequest) GetStopSequencesOk() ([]string, bool)
- func (o *MessageRequest) GetStream() bool
- func (o *MessageRequest) GetStreamOk() (*bool, bool)
- func (o *MessageRequest) GetSystem() SystemMessageContent
- func (o *MessageRequest) GetSystemOk() (*SystemMessageContent, bool)
- func (o *MessageRequest) GetTemperature() float32
- func (o *MessageRequest) GetTemperatureOk() (*float32, bool)
- func (o *MessageRequest) GetToolChoice() MessageToolChoice
- func (o *MessageRequest) GetToolChoiceOk() (*MessageToolChoice, bool)
- func (o *MessageRequest) GetTools() []MessageTools
- func (o *MessageRequest) GetToolsOk() ([]MessageTools, bool)
- func (o *MessageRequest) GetTopK() int32
- func (o *MessageRequest) GetTopKOk() (*int32, bool)
- func (o *MessageRequest) GetTopP() float32
- func (o *MessageRequest) GetTopPOk() (*float32, bool)
- func (o *MessageRequest) HasMaxTokens() bool
- func (o *MessageRequest) HasMessages() bool
- func (o *MessageRequest) HasMetadata() bool
- func (o *MessageRequest) HasModel() bool
- func (o *MessageRequest) HasStopSequences() bool
- func (o *MessageRequest) HasStream() bool
- func (o *MessageRequest) HasSystem() bool
- func (o *MessageRequest) HasTemperature() bool
- func (o *MessageRequest) HasToolChoice() bool
- func (o *MessageRequest) HasTools() bool
- func (o *MessageRequest) HasTopK() bool
- func (o *MessageRequest) HasTopP() bool
- func (o MessageRequest) MarshalJSON() ([]byte, error)
- func (o *MessageRequest) SetMaxTokens(v int32)
- func (o *MessageRequest) SetMessages(v []MessageBody)
- func (o *MessageRequest) SetMetadata(v MessageMetadata)
- func (o *MessageRequest) SetMetadataNil()
- func (o *MessageRequest) SetModel(v string)
- func (o *MessageRequest) SetStopSequences(v []string)
- func (o *MessageRequest) SetStream(v bool)
- func (o *MessageRequest) SetStreamNil()
- func (o *MessageRequest) SetSystem(v SystemMessageContent)
- func (o *MessageRequest) SetSystemNil()
- func (o *MessageRequest) SetTemperature(v float32)
- func (o *MessageRequest) SetTemperatureNil()
- func (o *MessageRequest) SetToolChoice(v MessageToolChoice)
- func (o *MessageRequest) SetToolChoiceNil()
- func (o *MessageRequest) SetTools(v []MessageTools)
- func (o *MessageRequest) SetTopK(v int32)
- func (o *MessageRequest) SetTopKNil()
- func (o *MessageRequest) SetTopP(v float32)
- func (o *MessageRequest) SetTopPNil()
- func (o MessageRequest) ToMap() (map[string]interface{}, error)
- func (o *MessageRequest) UnmarshalJSON(data []byte) (err error)
- func (o *MessageRequest) UnsetMetadata()
- func (o *MessageRequest) UnsetStream()
- func (o *MessageRequest) UnsetSystem()
- func (o *MessageRequest) UnsetTemperature()
- func (o *MessageRequest) UnsetToolChoice()
- func (o *MessageRequest) UnsetTopK()
- func (o *MessageRequest) UnsetTopP()
- type MessageResponse
- func (o *MessageResponse) GetContent() []MessageResponseContent
- func (o *MessageResponse) GetContentOk() ([]MessageResponseContent, bool)
- func (o *MessageResponse) GetId() string
- func (o *MessageResponse) GetIdOk() (*string, bool)
- func (o *MessageResponse) GetModel() string
- func (o *MessageResponse) GetModelOk() (*string, bool)
- func (o *MessageResponse) GetRole() string
- func (o *MessageResponse) GetRoleOk() (*string, bool)
- func (o *MessageResponse) GetStopReason() string
- func (o *MessageResponse) GetStopReasonOk() (*string, bool)
- func (o *MessageResponse) GetStopSequence() string
- func (o *MessageResponse) GetStopSequenceOk() (*string, bool)
- func (o *MessageResponse) GetType() string
- func (o *MessageResponse) GetTypeOk() (*string, bool)
- func (o *MessageResponse) GetUsage() MessageUsage
- func (o *MessageResponse) GetUsageOk() (*MessageUsage, bool)
- func (o *MessageResponse) HasStopReason() bool
- func (o *MessageResponse) HasStopSequence() bool
- func (o MessageResponse) MarshalJSON() ([]byte, error)
- func (o *MessageResponse) SetContent(v []MessageResponseContent)
- func (o *MessageResponse) SetId(v string)
- func (o *MessageResponse) SetModel(v string)
- func (o *MessageResponse) SetRole(v string)
- func (o *MessageResponse) SetStopReason(v string)
- func (o *MessageResponse) SetStopReasonNil()
- func (o *MessageResponse) SetStopSequence(v string)
- func (o *MessageResponse) SetStopSequenceNil()
- func (o *MessageResponse) SetType(v string)
- func (o *MessageResponse) SetUsage(v MessageUsage)
- func (o MessageResponse) ToMap() (map[string]interface{}, error)
- func (o *MessageResponse) UnmarshalJSON(data []byte) (err error)
- func (o *MessageResponse) UnsetStopReason()
- func (o *MessageResponse) UnsetStopSequence()
- type MessageResponseContent
- func MessageResponseContentOneOf1AsMessageResponseContent(v *MessageResponseContentOneOf1) MessageResponseContent
- func MessageResponseContentOneOf2AsMessageResponseContent(v *MessageResponseContentOneOf2) MessageResponseContent
- func MessageResponseContentOneOf3AsMessageResponseContent(v *MessageResponseContentOneOf3) MessageResponseContent
- func MessageResponseContentOneOfAsMessageResponseContent(v *MessageResponseContentOneOf) MessageResponseContent
- type MessageResponseContentOneOf
- func (o *MessageResponseContentOneOf) GetText() string
- func (o *MessageResponseContentOneOf) GetTextOk() (*string, bool)
- func (o *MessageResponseContentOneOf) GetType() string
- func (o *MessageResponseContentOneOf) GetTypeOk() (*string, bool)
- func (o MessageResponseContentOneOf) MarshalJSON() ([]byte, error)
- func (o *MessageResponseContentOneOf) SetText(v string)
- func (o *MessageResponseContentOneOf) SetType(v string)
- func (o MessageResponseContentOneOf) ToMap() (map[string]interface{}, error)
- func (o *MessageResponseContentOneOf) UnmarshalJSON(data []byte) (err error)
- type MessageResponseContentOneOf1
- func (o *MessageResponseContentOneOf1) GetSignature() string
- func (o *MessageResponseContentOneOf1) GetSignatureOk() (*string, bool)
- func (o *MessageResponseContentOneOf1) GetThinking() string
- func (o *MessageResponseContentOneOf1) GetThinkingOk() (*string, bool)
- func (o *MessageResponseContentOneOf1) GetType() string
- func (o *MessageResponseContentOneOf1) GetTypeOk() (*string, bool)
- func (o MessageResponseContentOneOf1) MarshalJSON() ([]byte, error)
- func (o *MessageResponseContentOneOf1) SetSignature(v string)
- func (o *MessageResponseContentOneOf1) SetThinking(v string)
- func (o *MessageResponseContentOneOf1) SetType(v string)
- func (o MessageResponseContentOneOf1) ToMap() (map[string]interface{}, error)
- func (o *MessageResponseContentOneOf1) UnmarshalJSON(data []byte) (err error)
- type MessageResponseContentOneOf2
- func (o *MessageResponseContentOneOf2) GetData() string
- func (o *MessageResponseContentOneOf2) GetDataOk() (*string, bool)
- func (o *MessageResponseContentOneOf2) GetType() string
- func (o *MessageResponseContentOneOf2) GetTypeOk() (*string, bool)
- func (o MessageResponseContentOneOf2) MarshalJSON() ([]byte, error)
- func (o *MessageResponseContentOneOf2) SetData(v string)
- func (o *MessageResponseContentOneOf2) SetType(v string)
- func (o MessageResponseContentOneOf2) ToMap() (map[string]interface{}, error)
- func (o *MessageResponseContentOneOf2) UnmarshalJSON(data []byte) (err error)
- type MessageResponseContentOneOf3
- func (o *MessageResponseContentOneOf3) GetId() string
- func (o *MessageResponseContentOneOf3) GetIdOk() (*string, bool)
- func (o *MessageResponseContentOneOf3) GetInput() interface{}
- func (o *MessageResponseContentOneOf3) GetInputOk() (*interface{}, bool)
- func (o *MessageResponseContentOneOf3) GetName() string
- func (o *MessageResponseContentOneOf3) GetNameOk() (*string, bool)
- func (o *MessageResponseContentOneOf3) GetType() string
- func (o *MessageResponseContentOneOf3) GetTypeOk() (*string, bool)
- func (o MessageResponseContentOneOf3) MarshalJSON() ([]byte, error)
- func (o *MessageResponseContentOneOf3) SetId(v string)
- func (o *MessageResponseContentOneOf3) SetInput(v interface{})
- func (o *MessageResponseContentOneOf3) SetName(v string)
- func (o *MessageResponseContentOneOf3) SetType(v string)
- func (o MessageResponseContentOneOf3) ToMap() (map[string]interface{}, error)
- func (o *MessageResponseContentOneOf3) UnmarshalJSON(data []byte) (err error)
- type MessageToolChoice
- type MessageToolChoiceOneOf
- func (o *MessageToolChoiceOneOf) GetType() string
- func (o *MessageToolChoiceOneOf) GetTypeOk() (*string, bool)
- func (o MessageToolChoiceOneOf) MarshalJSON() ([]byte, error)
- func (o *MessageToolChoiceOneOf) SetType(v string)
- func (o MessageToolChoiceOneOf) ToMap() (map[string]interface{}, error)
- func (o *MessageToolChoiceOneOf) UnmarshalJSON(data []byte) (err error)
- type MessageToolChoiceOneOf1
- func (o *MessageToolChoiceOneOf1) GetType() string
- func (o *MessageToolChoiceOneOf1) GetTypeOk() (*string, bool)
- func (o MessageToolChoiceOneOf1) MarshalJSON() ([]byte, error)
- func (o *MessageToolChoiceOneOf1) SetType(v string)
- func (o MessageToolChoiceOneOf1) ToMap() (map[string]interface{}, error)
- func (o *MessageToolChoiceOneOf1) UnmarshalJSON(data []byte) (err error)
- type MessageToolChoiceOneOf2
- func (o *MessageToolChoiceOneOf2) GetName() string
- func (o *MessageToolChoiceOneOf2) GetNameOk() (*string, bool)
- func (o *MessageToolChoiceOneOf2) GetType() string
- func (o *MessageToolChoiceOneOf2) GetTypeOk() (*string, bool)
- func (o MessageToolChoiceOneOf2) MarshalJSON() ([]byte, error)
- func (o *MessageToolChoiceOneOf2) SetName(v string)
- func (o *MessageToolChoiceOneOf2) SetType(v string)
- func (o MessageToolChoiceOneOf2) ToMap() (map[string]interface{}, error)
- func (o *MessageToolChoiceOneOf2) UnmarshalJSON(data []byte) (err error)
- type MessageToolInputSchema
- func (o *MessageToolInputSchema) GetProperties() interface{}
- func (o *MessageToolInputSchema) GetPropertiesOk() (*interface{}, bool)
- func (o *MessageToolInputSchema) GetRequired() []string
- func (o *MessageToolInputSchema) GetRequiredOk() ([]string, bool)
- func (o *MessageToolInputSchema) GetType() string
- func (o *MessageToolInputSchema) GetTypeOk() (*string, bool)
- func (o *MessageToolInputSchema) HasRequired() bool
- func (o MessageToolInputSchema) MarshalJSON() ([]byte, error)
- func (o *MessageToolInputSchema) SetProperties(v interface{})
- func (o *MessageToolInputSchema) SetRequired(v []string)
- func (o *MessageToolInputSchema) SetType(v string)
- func (o MessageToolInputSchema) ToMap() (map[string]interface{}, error)
- func (o *MessageToolInputSchema) UnmarshalJSON(data []byte) (err error)
- type MessageTools
- func (o *MessageTools) GetCacheControl() interface{}
- func (o *MessageTools) GetCacheControlOk() (*interface{}, bool)
- func (o *MessageTools) GetDescription() string
- func (o *MessageTools) GetDescriptionOk() (*string, bool)
- func (o *MessageTools) GetInputSchema() MessageToolInputSchema
- func (o *MessageTools) GetInputSchemaOk() (*MessageToolInputSchema, bool)
- func (o *MessageTools) GetName() string
- func (o *MessageTools) GetNameOk() (*string, bool)
- func (o *MessageTools) HasCacheControl() bool
- func (o MessageTools) MarshalJSON() ([]byte, error)
- func (o *MessageTools) SetCacheControl(v interface{})
- func (o *MessageTools) SetDescription(v string)
- func (o *MessageTools) SetInputSchema(v MessageToolInputSchema)
- func (o *MessageTools) SetName(v string)
- func (o MessageTools) ToMap() (map[string]interface{}, error)
- func (o *MessageTools) UnmarshalJSON(data []byte) (err error)
- type MessageUsage
- func (o *MessageUsage) GetCacheCreationInputTokens() int32
- func (o *MessageUsage) GetCacheCreationInputTokensOk() (*int32, bool)
- func (o *MessageUsage) GetCacheReadInputTokens() int32
- func (o *MessageUsage) GetCacheReadInputTokensOk() (*int32, bool)
- func (o *MessageUsage) GetInputTokens() int32
- func (o *MessageUsage) GetInputTokensOk() (*int32, bool)
- func (o *MessageUsage) GetOutputTokens() int32
- func (o *MessageUsage) GetOutputTokensOk() (*int32, bool)
- func (o MessageUsage) MarshalJSON() ([]byte, error)
- func (o *MessageUsage) SetCacheCreationInputTokens(v int32)
- func (o *MessageUsage) SetCacheReadInputTokens(v int32)
- func (o *MessageUsage) SetInputTokens(v int32)
- func (o *MessageUsage) SetOutputTokens(v int32)
- func (o MessageUsage) ToMap() (map[string]interface{}, error)
- func (o *MessageUsage) UnmarshalJSON(data []byte) (err error)
- type Model
- func (o *Model) GetCreated() int64
- func (o *Model) GetCreatedOk() (*int64, bool)
- func (o *Model) GetId() string
- func (o *Model) GetIdOk() (*string, bool)
- func (o *Model) GetObject() string
- func (o *Model) GetObjectOk() (*string, bool)
- func (o *Model) GetOwnedBy() string
- func (o *Model) GetOwnedByOk() (*string, bool)
- func (o Model) MarshalJSON() ([]byte, error)
- func (o *Model) SetCreated(v int64)
- func (o *Model) SetId(v string)
- func (o *Model) SetObject(v string)
- func (o *Model) SetOwnedBy(v string)
- func (o Model) ToMap() (map[string]interface{}, error)
- func (o *Model) UnmarshalJSON(data []byte) (err error)
- type NullableApiKey
- type NullableBool
- type NullableChatRequest
- func (v NullableChatRequest) Get() *ChatRequest
- func (v NullableChatRequest) IsSet() bool
- func (v NullableChatRequest) MarshalJSON() ([]byte, error)
- func (v *NullableChatRequest) Set(val *ChatRequest)
- func (v *NullableChatRequest) UnmarshalJSON(src []byte) error
- func (v *NullableChatRequest) Unset()
- type NullableChatResponse
- func (v NullableChatResponse) Get() *ChatResponse
- func (v NullableChatResponse) IsSet() bool
- func (v NullableChatResponse) MarshalJSON() ([]byte, error)
- func (v *NullableChatResponse) Set(val *ChatResponse)
- func (v *NullableChatResponse) UnmarshalJSON(src []byte) error
- func (v *NullableChatResponse) Unset()
- type NullableChatResponseChunk
- func (v NullableChatResponseChunk) Get() *ChatResponseChunk
- func (v NullableChatResponseChunk) IsSet() bool
- func (v NullableChatResponseChunk) MarshalJSON() ([]byte, error)
- func (v *NullableChatResponseChunk) Set(val *ChatResponseChunk)
- func (v *NullableChatResponseChunk) UnmarshalJSON(src []byte) error
- func (v *NullableChatResponseChunk) Unset()
- type NullableChoice
- type NullableChoiceChunk
- func (v NullableChoiceChunk) Get() *ChoiceChunk
- func (v NullableChoiceChunk) IsSet() bool
- func (v NullableChoiceChunk) MarshalJSON() ([]byte, error)
- func (v *NullableChoiceChunk) Set(val *ChoiceChunk)
- func (v *NullableChoiceChunk) UnmarshalJSON(src []byte) error
- func (v *NullableChoiceChunk) Unset()
- type NullableChoiceMessage
- func (v NullableChoiceMessage) Get() *ChoiceMessage
- func (v NullableChoiceMessage) IsSet() bool
- func (v NullableChoiceMessage) MarshalJSON() ([]byte, error)
- func (v *NullableChoiceMessage) Set(val *ChoiceMessage)
- func (v *NullableChoiceMessage) UnmarshalJSON(src []byte) error
- func (v *NullableChoiceMessage) Unset()
- type NullableCompleteRequest
- func (v NullableCompleteRequest) Get() *CompleteRequest
- func (v NullableCompleteRequest) IsSet() bool
- func (v NullableCompleteRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCompleteRequest) Set(val *CompleteRequest)
- func (v *NullableCompleteRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCompleteRequest) Unset()
- type NullableCompleteResponse
- func (v NullableCompleteResponse) Get() *CompleteResponse
- func (v NullableCompleteResponse) IsSet() bool
- func (v NullableCompleteResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCompleteResponse) Set(val *CompleteResponse)
- func (v *NullableCompleteResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCompleteResponse) Unset()
- type NullableCompletionUsageDetail
- func (v NullableCompletionUsageDetail) Get() *CompletionUsageDetail
- func (v NullableCompletionUsageDetail) IsSet() bool
- func (v NullableCompletionUsageDetail) MarshalJSON() ([]byte, error)
- func (v *NullableCompletionUsageDetail) Set(val *CompletionUsageDetail)
- func (v *NullableCompletionUsageDetail) UnmarshalJSON(src []byte) error
- func (v *NullableCompletionUsageDetail) Unset()
- type NullableContent
- type NullableContentPart
- func (v NullableContentPart) Get() *ContentPart
- func (v NullableContentPart) IsSet() bool
- func (v NullableContentPart) MarshalJSON() ([]byte, error)
- func (v *NullableContentPart) Set(val *ContentPart)
- func (v *NullableContentPart) UnmarshalJSON(src []byte) error
- func (v *NullableContentPart) Unset()
- type NullableDebugOutput
- func (v NullableDebugOutput) Get() *DebugOutput
- func (v NullableDebugOutput) IsSet() bool
- func (v NullableDebugOutput) MarshalJSON() ([]byte, error)
- func (v *NullableDebugOutput) Set(val *DebugOutput)
- func (v *NullableDebugOutput) UnmarshalJSON(src []byte) error
- func (v *NullableDebugOutput) Unset()
- type NullableDelta
- type NullableEditImageRequest
- func (v NullableEditImageRequest) Get() *EditImageRequest
- func (v NullableEditImageRequest) IsSet() bool
- func (v NullableEditImageRequest) MarshalJSON() ([]byte, error)
- func (v *NullableEditImageRequest) Set(val *EditImageRequest)
- func (v *NullableEditImageRequest) UnmarshalJSON(src []byte) error
- func (v *NullableEditImageRequest) Unset()
- type NullableEmbedding
- type NullableEmbeddingContent
- func (v NullableEmbeddingContent) Get() *EmbeddingContent
- func (v NullableEmbeddingContent) IsSet() bool
- func (v NullableEmbeddingContent) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingContent) Set(val *EmbeddingContent)
- func (v *NullableEmbeddingContent) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingContent) Unset()
- type NullableEmbeddingInput
- func (v NullableEmbeddingInput) Get() *EmbeddingInput
- func (v NullableEmbeddingInput) IsSet() bool
- func (v NullableEmbeddingInput) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingInput) Set(val *EmbeddingInput)
- func (v *NullableEmbeddingInput) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingInput) Unset()
- type NullableEmbeddingInputOneOf
- func (v NullableEmbeddingInputOneOf) Get() *EmbeddingInputOneOf
- func (v NullableEmbeddingInputOneOf) IsSet() bool
- func (v NullableEmbeddingInputOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingInputOneOf) Set(val *EmbeddingInputOneOf)
- func (v *NullableEmbeddingInputOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingInputOneOf) Unset()
- type NullableEmbeddingInputOneOf1
- func (v NullableEmbeddingInputOneOf1) Get() *EmbeddingInputOneOf1
- func (v NullableEmbeddingInputOneOf1) IsSet() bool
- func (v NullableEmbeddingInputOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingInputOneOf1) Set(val *EmbeddingInputOneOf1)
- func (v *NullableEmbeddingInputOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingInputOneOf1) Unset()
- type NullableEmbeddingInputOneOf2
- func (v NullableEmbeddingInputOneOf2) Get() *EmbeddingInputOneOf2
- func (v NullableEmbeddingInputOneOf2) IsSet() bool
- func (v NullableEmbeddingInputOneOf2) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingInputOneOf2) Set(val *EmbeddingInputOneOf2)
- func (v *NullableEmbeddingInputOneOf2) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingInputOneOf2) Unset()
- type NullableEmbeddingInputOneOf3
- func (v NullableEmbeddingInputOneOf3) Get() *EmbeddingInputOneOf3
- func (v NullableEmbeddingInputOneOf3) IsSet() bool
- func (v NullableEmbeddingInputOneOf3) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingInputOneOf3) Set(val *EmbeddingInputOneOf3)
- func (v *NullableEmbeddingInputOneOf3) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingInputOneOf3) Unset()
- type NullableEmbeddingModel
- func (v NullableEmbeddingModel) Get() *EmbeddingModel
- func (v NullableEmbeddingModel) IsSet() bool
- func (v NullableEmbeddingModel) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingModel) Set(val *EmbeddingModel)
- func (v *NullableEmbeddingModel) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingModel) Unset()
- type NullableEmbeddingRequest
- func (v NullableEmbeddingRequest) Get() *EmbeddingRequest
- func (v NullableEmbeddingRequest) IsSet() bool
- func (v NullableEmbeddingRequest) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingRequest) Set(val *EmbeddingRequest)
- func (v *NullableEmbeddingRequest) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingRequest) Unset()
- type NullableEmbeddingResponse
- func (v NullableEmbeddingResponse) Get() *EmbeddingResponse
- func (v NullableEmbeddingResponse) IsSet() bool
- func (v NullableEmbeddingResponse) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingResponse) Set(val *EmbeddingResponse)
- func (v *NullableEmbeddingResponse) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingResponse) Unset()
- type NullableEmbeddingUsage
- func (v NullableEmbeddingUsage) Get() *EmbeddingUsage
- func (v NullableEmbeddingUsage) IsSet() bool
- func (v NullableEmbeddingUsage) MarshalJSON() ([]byte, error)
- func (v *NullableEmbeddingUsage) Set(val *EmbeddingUsage)
- func (v *NullableEmbeddingUsage) UnmarshalJSON(src []byte) error
- func (v *NullableEmbeddingUsage) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableFunction
- type NullableFunctionCall
- func (v NullableFunctionCall) Get() *FunctionCall
- func (v NullableFunctionCall) IsSet() bool
- func (v NullableFunctionCall) MarshalJSON() ([]byte, error)
- func (v *NullableFunctionCall) Set(val *FunctionCall)
- func (v *NullableFunctionCall) UnmarshalJSON(src []byte) error
- func (v *NullableFunctionCall) Unset()
- type NullableFunctionChoice
- func (v NullableFunctionChoice) Get() *FunctionChoice
- func (v NullableFunctionChoice) IsSet() bool
- func (v NullableFunctionChoice) MarshalJSON() ([]byte, error)
- func (v *NullableFunctionChoice) Set(val *FunctionChoice)
- func (v *NullableFunctionChoice) UnmarshalJSON(src []byte) error
- func (v *NullableFunctionChoice) Unset()
- type NullableFunctionDefinition
- func (v NullableFunctionDefinition) Get() *FunctionDefinition
- func (v NullableFunctionDefinition) IsSet() bool
- func (v NullableFunctionDefinition) MarshalJSON() ([]byte, error)
- func (v *NullableFunctionDefinition) Set(val *FunctionDefinition)
- func (v *NullableFunctionDefinition) UnmarshalJSON(src []byte) error
- func (v *NullableFunctionDefinition) Unset()
- type NullableGenerateImageRequest
- func (v NullableGenerateImageRequest) Get() *GenerateImageRequest
- func (v NullableGenerateImageRequest) IsSet() bool
- func (v NullableGenerateImageRequest) MarshalJSON() ([]byte, error)
- func (v *NullableGenerateImageRequest) Set(val *GenerateImageRequest)
- func (v *NullableGenerateImageRequest) UnmarshalJSON(src []byte) error
- func (v *NullableGenerateImageRequest) Unset()
- type NullableGeneratedImage
- func (v NullableGeneratedImage) Get() *GeneratedImage
- func (v NullableGeneratedImage) IsSet() bool
- func (v NullableGeneratedImage) MarshalJSON() ([]byte, error)
- func (v *NullableGeneratedImage) Set(val *GeneratedImage)
- func (v *NullableGeneratedImage) UnmarshalJSON(src []byte) error
- func (v *NullableGeneratedImage) Unset()
- type NullableGeneratedImageResponse
- func (v NullableGeneratedImageResponse) Get() *GeneratedImageResponse
- func (v NullableGeneratedImageResponse) IsSet() bool
- func (v NullableGeneratedImageResponse) MarshalJSON() ([]byte, error)
- func (v *NullableGeneratedImageResponse) Set(val *GeneratedImageResponse)
- func (v *NullableGeneratedImageResponse) UnmarshalJSON(src []byte) error
- func (v *NullableGeneratedImageResponse) Unset()
- type NullableImageGenerationModel
- func (v NullableImageGenerationModel) Get() *ImageGenerationModel
- func (v NullableImageGenerationModel) IsSet() bool
- func (v NullableImageGenerationModel) MarshalJSON() ([]byte, error)
- func (v *NullableImageGenerationModel) Set(val *ImageGenerationModel)
- func (v *NullableImageGenerationModel) UnmarshalJSON(src []byte) error
- func (v *NullableImageGenerationModel) Unset()
- type NullableImageUrl
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableLanguageModel
- func (v NullableLanguageModel) Get() *LanguageModel
- func (v NullableLanguageModel) IsSet() bool
- func (v NullableLanguageModel) MarshalJSON() ([]byte, error)
- func (v *NullableLanguageModel) Set(val *LanguageModel)
- func (v *NullableLanguageModel) UnmarshalJSON(src []byte) error
- func (v *NullableLanguageModel) Unset()
- type NullableListEmbeddingModelsResponse
- func (v NullableListEmbeddingModelsResponse) Get() *ListEmbeddingModelsResponse
- func (v NullableListEmbeddingModelsResponse) IsSet() bool
- func (v NullableListEmbeddingModelsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListEmbeddingModelsResponse) Set(val *ListEmbeddingModelsResponse)
- func (v *NullableListEmbeddingModelsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListEmbeddingModelsResponse) Unset()
- type NullableListImageGenerationModelsResponse
- func (v NullableListImageGenerationModelsResponse) Get() *ListImageGenerationModelsResponse
- func (v NullableListImageGenerationModelsResponse) IsSet() bool
- func (v NullableListImageGenerationModelsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListImageGenerationModelsResponse) Set(val *ListImageGenerationModelsResponse)
- func (v *NullableListImageGenerationModelsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListImageGenerationModelsResponse) Unset()
- type NullableListLanguageModelsResponse
- func (v NullableListLanguageModelsResponse) Get() *ListLanguageModelsResponse
- func (v NullableListLanguageModelsResponse) IsSet() bool
- func (v NullableListLanguageModelsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListLanguageModelsResponse) Set(val *ListLanguageModelsResponse)
- func (v *NullableListLanguageModelsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListLanguageModelsResponse) Unset()
- type NullableListModelsResponse
- func (v NullableListModelsResponse) Get() *ListModelsResponse
- func (v NullableListModelsResponse) IsSet() bool
- func (v NullableListModelsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableListModelsResponse) Set(val *ListModelsResponse)
- func (v *NullableListModelsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableListModelsResponse) Unset()
- type NullableLogProbs
- type NullableMessage
- type NullableMessageBody
- func (v NullableMessageBody) Get() *MessageBody
- func (v NullableMessageBody) IsSet() bool
- func (v NullableMessageBody) MarshalJSON() ([]byte, error)
- func (v *NullableMessageBody) Set(val *MessageBody)
- func (v *NullableMessageBody) UnmarshalJSON(src []byte) error
- func (v *NullableMessageBody) Unset()
- type NullableMessageContent
- func (v NullableMessageContent) Get() *MessageContent
- func (v NullableMessageContent) IsSet() bool
- func (v NullableMessageContent) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContent) Set(val *MessageContent)
- func (v *NullableMessageContent) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContent) Unset()
- type NullableMessageContentPart
- func (v NullableMessageContentPart) Get() *MessageContentPart
- func (v NullableMessageContentPart) IsSet() bool
- func (v NullableMessageContentPart) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContentPart) Set(val *MessageContentPart)
- func (v *NullableMessageContentPart) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContentPart) Unset()
- type NullableMessageContentPartOneOf
- func (v NullableMessageContentPartOneOf) Get() *MessageContentPartOneOf
- func (v NullableMessageContentPartOneOf) IsSet() bool
- func (v NullableMessageContentPartOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContentPartOneOf) Set(val *MessageContentPartOneOf)
- func (v *NullableMessageContentPartOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContentPartOneOf) Unset()
- type NullableMessageContentPartOneOf1
- func (v NullableMessageContentPartOneOf1) Get() *MessageContentPartOneOf1
- func (v NullableMessageContentPartOneOf1) IsSet() bool
- func (v NullableMessageContentPartOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContentPartOneOf1) Set(val *MessageContentPartOneOf1)
- func (v *NullableMessageContentPartOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContentPartOneOf1) Unset()
- type NullableMessageContentPartOneOf2
- func (v NullableMessageContentPartOneOf2) Get() *MessageContentPartOneOf2
- func (v NullableMessageContentPartOneOf2) IsSet() bool
- func (v NullableMessageContentPartOneOf2) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContentPartOneOf2) Set(val *MessageContentPartOneOf2)
- func (v *NullableMessageContentPartOneOf2) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContentPartOneOf2) Unset()
- type NullableMessageContentPartOneOf3
- func (v NullableMessageContentPartOneOf3) Get() *MessageContentPartOneOf3
- func (v NullableMessageContentPartOneOf3) IsSet() bool
- func (v NullableMessageContentPartOneOf3) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContentPartOneOf3) Set(val *MessageContentPartOneOf3)
- func (v *NullableMessageContentPartOneOf3) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContentPartOneOf3) Unset()
- type NullableMessageContentPartOneOf4
- func (v NullableMessageContentPartOneOf4) Get() *MessageContentPartOneOf4
- func (v NullableMessageContentPartOneOf4) IsSet() bool
- func (v NullableMessageContentPartOneOf4) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContentPartOneOf4) Set(val *MessageContentPartOneOf4)
- func (v *NullableMessageContentPartOneOf4) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContentPartOneOf4) Unset()
- type NullableMessageContentPartOneOf5
- func (v NullableMessageContentPartOneOf5) Get() *MessageContentPartOneOf5
- func (v NullableMessageContentPartOneOf5) IsSet() bool
- func (v NullableMessageContentPartOneOf5) MarshalJSON() ([]byte, error)
- func (v *NullableMessageContentPartOneOf5) Set(val *MessageContentPartOneOf5)
- func (v *NullableMessageContentPartOneOf5) UnmarshalJSON(src []byte) error
- func (v *NullableMessageContentPartOneOf5) Unset()
- type NullableMessageImageContent
- func (v NullableMessageImageContent) Get() *MessageImageContent
- func (v NullableMessageImageContent) IsSet() bool
- func (v NullableMessageImageContent) MarshalJSON() ([]byte, error)
- func (v *NullableMessageImageContent) Set(val *MessageImageContent)
- func (v *NullableMessageImageContent) UnmarshalJSON(src []byte) error
- func (v *NullableMessageImageContent) Unset()
- type NullableMessageImageContentOneOf
- func (v NullableMessageImageContentOneOf) Get() *MessageImageContentOneOf
- func (v NullableMessageImageContentOneOf) IsSet() bool
- func (v NullableMessageImageContentOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableMessageImageContentOneOf) Set(val *MessageImageContentOneOf)
- func (v *NullableMessageImageContentOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableMessageImageContentOneOf) Unset()
- type NullableMessageImageContentOneOf1
- func (v NullableMessageImageContentOneOf1) Get() *MessageImageContentOneOf1
- func (v NullableMessageImageContentOneOf1) IsSet() bool
- func (v NullableMessageImageContentOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableMessageImageContentOneOf1) Set(val *MessageImageContentOneOf1)
- func (v *NullableMessageImageContentOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableMessageImageContentOneOf1) Unset()
- type NullableMessageMetadata
- func (v NullableMessageMetadata) Get() *MessageMetadata
- func (v NullableMessageMetadata) IsSet() bool
- func (v NullableMessageMetadata) MarshalJSON() ([]byte, error)
- func (v *NullableMessageMetadata) Set(val *MessageMetadata)
- func (v *NullableMessageMetadata) UnmarshalJSON(src []byte) error
- func (v *NullableMessageMetadata) Unset()
- type NullableMessageOneOf
- func (v NullableMessageOneOf) Get() *MessageOneOf
- func (v NullableMessageOneOf) IsSet() bool
- func (v NullableMessageOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableMessageOneOf) Set(val *MessageOneOf)
- func (v *NullableMessageOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableMessageOneOf) Unset()
- type NullableMessageOneOf1
- func (v NullableMessageOneOf1) Get() *MessageOneOf1
- func (v NullableMessageOneOf1) IsSet() bool
- func (v NullableMessageOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableMessageOneOf1) Set(val *MessageOneOf1)
- func (v *NullableMessageOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableMessageOneOf1) Unset()
- type NullableMessageOneOf2
- func (v NullableMessageOneOf2) Get() *MessageOneOf2
- func (v NullableMessageOneOf2) IsSet() bool
- func (v NullableMessageOneOf2) MarshalJSON() ([]byte, error)
- func (v *NullableMessageOneOf2) Set(val *MessageOneOf2)
- func (v *NullableMessageOneOf2) UnmarshalJSON(src []byte) error
- func (v *NullableMessageOneOf2) Unset()
- type NullableMessageOneOf3
- func (v NullableMessageOneOf3) Get() *MessageOneOf3
- func (v NullableMessageOneOf3) IsSet() bool
- func (v NullableMessageOneOf3) MarshalJSON() ([]byte, error)
- func (v *NullableMessageOneOf3) Set(val *MessageOneOf3)
- func (v *NullableMessageOneOf3) UnmarshalJSON(src []byte) error
- func (v *NullableMessageOneOf3) Unset()
- type NullableMessageOneOf4
- func (v NullableMessageOneOf4) Get() *MessageOneOf4
- func (v NullableMessageOneOf4) IsSet() bool
- func (v NullableMessageOneOf4) MarshalJSON() ([]byte, error)
- func (v *NullableMessageOneOf4) Set(val *MessageOneOf4)
- func (v *NullableMessageOneOf4) UnmarshalJSON(src []byte) error
- func (v *NullableMessageOneOf4) Unset()
- type NullableMessageRequest
- func (v NullableMessageRequest) Get() *MessageRequest
- func (v NullableMessageRequest) IsSet() bool
- func (v NullableMessageRequest) MarshalJSON() ([]byte, error)
- func (v *NullableMessageRequest) Set(val *MessageRequest)
- func (v *NullableMessageRequest) UnmarshalJSON(src []byte) error
- func (v *NullableMessageRequest) Unset()
- type NullableMessageResponse
- func (v NullableMessageResponse) Get() *MessageResponse
- func (v NullableMessageResponse) IsSet() bool
- func (v NullableMessageResponse) MarshalJSON() ([]byte, error)
- func (v *NullableMessageResponse) Set(val *MessageResponse)
- func (v *NullableMessageResponse) UnmarshalJSON(src []byte) error
- func (v *NullableMessageResponse) Unset()
- type NullableMessageResponseContent
- func (v NullableMessageResponseContent) Get() *MessageResponseContent
- func (v NullableMessageResponseContent) IsSet() bool
- func (v NullableMessageResponseContent) MarshalJSON() ([]byte, error)
- func (v *NullableMessageResponseContent) Set(val *MessageResponseContent)
- func (v *NullableMessageResponseContent) UnmarshalJSON(src []byte) error
- func (v *NullableMessageResponseContent) Unset()
- type NullableMessageResponseContentOneOf
- func (v NullableMessageResponseContentOneOf) Get() *MessageResponseContentOneOf
- func (v NullableMessageResponseContentOneOf) IsSet() bool
- func (v NullableMessageResponseContentOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableMessageResponseContentOneOf) Set(val *MessageResponseContentOneOf)
- func (v *NullableMessageResponseContentOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableMessageResponseContentOneOf) Unset()
- type NullableMessageResponseContentOneOf1
- func (v NullableMessageResponseContentOneOf1) Get() *MessageResponseContentOneOf1
- func (v NullableMessageResponseContentOneOf1) IsSet() bool
- func (v NullableMessageResponseContentOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableMessageResponseContentOneOf1) Set(val *MessageResponseContentOneOf1)
- func (v *NullableMessageResponseContentOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableMessageResponseContentOneOf1) Unset()
- type NullableMessageResponseContentOneOf2
- func (v NullableMessageResponseContentOneOf2) Get() *MessageResponseContentOneOf2
- func (v NullableMessageResponseContentOneOf2) IsSet() bool
- func (v NullableMessageResponseContentOneOf2) MarshalJSON() ([]byte, error)
- func (v *NullableMessageResponseContentOneOf2) Set(val *MessageResponseContentOneOf2)
- func (v *NullableMessageResponseContentOneOf2) UnmarshalJSON(src []byte) error
- func (v *NullableMessageResponseContentOneOf2) Unset()
- type NullableMessageResponseContentOneOf3
- func (v NullableMessageResponseContentOneOf3) Get() *MessageResponseContentOneOf3
- func (v NullableMessageResponseContentOneOf3) IsSet() bool
- func (v NullableMessageResponseContentOneOf3) MarshalJSON() ([]byte, error)
- func (v *NullableMessageResponseContentOneOf3) Set(val *MessageResponseContentOneOf3)
- func (v *NullableMessageResponseContentOneOf3) UnmarshalJSON(src []byte) error
- func (v *NullableMessageResponseContentOneOf3) Unset()
- type NullableMessageToolChoice
- func (v NullableMessageToolChoice) Get() *MessageToolChoice
- func (v NullableMessageToolChoice) IsSet() bool
- func (v NullableMessageToolChoice) MarshalJSON() ([]byte, error)
- func (v *NullableMessageToolChoice) Set(val *MessageToolChoice)
- func (v *NullableMessageToolChoice) UnmarshalJSON(src []byte) error
- func (v *NullableMessageToolChoice) Unset()
- type NullableMessageToolChoiceOneOf
- func (v NullableMessageToolChoiceOneOf) Get() *MessageToolChoiceOneOf
- func (v NullableMessageToolChoiceOneOf) IsSet() bool
- func (v NullableMessageToolChoiceOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableMessageToolChoiceOneOf) Set(val *MessageToolChoiceOneOf)
- func (v *NullableMessageToolChoiceOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableMessageToolChoiceOneOf) Unset()
- type NullableMessageToolChoiceOneOf1
- func (v NullableMessageToolChoiceOneOf1) Get() *MessageToolChoiceOneOf1
- func (v NullableMessageToolChoiceOneOf1) IsSet() bool
- func (v NullableMessageToolChoiceOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableMessageToolChoiceOneOf1) Set(val *MessageToolChoiceOneOf1)
- func (v *NullableMessageToolChoiceOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableMessageToolChoiceOneOf1) Unset()
- type NullableMessageToolChoiceOneOf2
- func (v NullableMessageToolChoiceOneOf2) Get() *MessageToolChoiceOneOf2
- func (v NullableMessageToolChoiceOneOf2) IsSet() bool
- func (v NullableMessageToolChoiceOneOf2) MarshalJSON() ([]byte, error)
- func (v *NullableMessageToolChoiceOneOf2) Set(val *MessageToolChoiceOneOf2)
- func (v *NullableMessageToolChoiceOneOf2) UnmarshalJSON(src []byte) error
- func (v *NullableMessageToolChoiceOneOf2) Unset()
- type NullableMessageToolInputSchema
- func (v NullableMessageToolInputSchema) Get() *MessageToolInputSchema
- func (v NullableMessageToolInputSchema) IsSet() bool
- func (v NullableMessageToolInputSchema) MarshalJSON() ([]byte, error)
- func (v *NullableMessageToolInputSchema) Set(val *MessageToolInputSchema)
- func (v *NullableMessageToolInputSchema) UnmarshalJSON(src []byte) error
- func (v *NullableMessageToolInputSchema) Unset()
- type NullableMessageTools
- func (v NullableMessageTools) Get() *MessageTools
- func (v NullableMessageTools) IsSet() bool
- func (v NullableMessageTools) MarshalJSON() ([]byte, error)
- func (v *NullableMessageTools) Set(val *MessageTools)
- func (v *NullableMessageTools) UnmarshalJSON(src []byte) error
- func (v *NullableMessageTools) Unset()
- type NullableMessageUsage
- func (v NullableMessageUsage) Get() *MessageUsage
- func (v NullableMessageUsage) IsSet() bool
- func (v NullableMessageUsage) MarshalJSON() ([]byte, error)
- func (v *NullableMessageUsage) Set(val *MessageUsage)
- func (v *NullableMessageUsage) UnmarshalJSON(src []byte) error
- func (v *NullableMessageUsage) Unset()
- type NullableModel
- type NullablePromptUsageDetail
- func (v NullablePromptUsageDetail) Get() *PromptUsageDetail
- func (v NullablePromptUsageDetail) IsSet() bool
- func (v NullablePromptUsageDetail) MarshalJSON() ([]byte, error)
- func (v *NullablePromptUsageDetail) Set(val *PromptUsageDetail)
- func (v *NullablePromptUsageDetail) UnmarshalJSON(src []byte) error
- func (v *NullablePromptUsageDetail) Unset()
- type NullableResponseFormat
- func (v NullableResponseFormat) Get() *ResponseFormat
- func (v NullableResponseFormat) IsSet() bool
- func (v NullableResponseFormat) MarshalJSON() ([]byte, error)
- func (v *NullableResponseFormat) Set(val *ResponseFormat)
- func (v *NullableResponseFormat) UnmarshalJSON(src []byte) error
- func (v *NullableResponseFormat) Unset()
- type NullableResponseFormatOneOf
- func (v NullableResponseFormatOneOf) Get() *ResponseFormatOneOf
- func (v NullableResponseFormatOneOf) IsSet() bool
- func (v NullableResponseFormatOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableResponseFormatOneOf) Set(val *ResponseFormatOneOf)
- func (v *NullableResponseFormatOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableResponseFormatOneOf) Unset()
- type NullableResponseFormatOneOf1
- func (v NullableResponseFormatOneOf1) Get() *ResponseFormatOneOf1
- func (v NullableResponseFormatOneOf1) IsSet() bool
- func (v NullableResponseFormatOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableResponseFormatOneOf1) Set(val *ResponseFormatOneOf1)
- func (v *NullableResponseFormatOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableResponseFormatOneOf1) Unset()
- type NullableResponseFormatOneOf2
- func (v NullableResponseFormatOneOf2) Get() *ResponseFormatOneOf2
- func (v NullableResponseFormatOneOf2) IsSet() bool
- func (v NullableResponseFormatOneOf2) MarshalJSON() ([]byte, error)
- func (v *NullableResponseFormatOneOf2) Set(val *ResponseFormatOneOf2)
- func (v *NullableResponseFormatOneOf2) UnmarshalJSON(src []byte) error
- func (v *NullableResponseFormatOneOf2) Unset()
- type NullableSampleChoice
- func (v NullableSampleChoice) Get() *SampleChoice
- func (v NullableSampleChoice) IsSet() bool
- func (v NullableSampleChoice) MarshalJSON() ([]byte, error)
- func (v *NullableSampleChoice) Set(val *SampleChoice)
- func (v *NullableSampleChoice) UnmarshalJSON(src []byte) error
- func (v *NullableSampleChoice) Unset()
- type NullableSampleContent
- func (v NullableSampleContent) Get() *SampleContent
- func (v NullableSampleContent) IsSet() bool
- func (v NullableSampleContent) MarshalJSON() ([]byte, error)
- func (v *NullableSampleContent) Set(val *SampleContent)
- func (v *NullableSampleContent) UnmarshalJSON(src []byte) error
- func (v *NullableSampleContent) Unset()
- type NullableSampleRequest
- func (v NullableSampleRequest) Get() *SampleRequest
- func (v NullableSampleRequest) IsSet() bool
- func (v NullableSampleRequest) MarshalJSON() ([]byte, error)
- func (v *NullableSampleRequest) Set(val *SampleRequest)
- func (v *NullableSampleRequest) UnmarshalJSON(src []byte) error
- func (v *NullableSampleRequest) Unset()
- type NullableSampleResponse
- func (v NullableSampleResponse) Get() *SampleResponse
- func (v NullableSampleResponse) IsSet() bool
- func (v NullableSampleResponse) MarshalJSON() ([]byte, error)
- func (v *NullableSampleResponse) Set(val *SampleResponse)
- func (v *NullableSampleResponse) UnmarshalJSON(src []byte) error
- func (v *NullableSampleResponse) Unset()
- type NullableSearchParameters
- func (v NullableSearchParameters) Get() *SearchParameters
- func (v NullableSearchParameters) IsSet() bool
- func (v NullableSearchParameters) MarshalJSON() ([]byte, error)
- func (v *NullableSearchParameters) Set(val *SearchParameters)
- func (v *NullableSearchParameters) UnmarshalJSON(src []byte) error
- func (v *NullableSearchParameters) Unset()
- type NullableSearchSource
- func (v NullableSearchSource) Get() *SearchSource
- func (v NullableSearchSource) IsSet() bool
- func (v NullableSearchSource) MarshalJSON() ([]byte, error)
- func (v *NullableSearchSource) Set(val *SearchSource)
- func (v *NullableSearchSource) UnmarshalJSON(src []byte) error
- func (v *NullableSearchSource) Unset()
- type NullableSearchSourceOneOf
- func (v NullableSearchSourceOneOf) Get() *SearchSourceOneOf
- func (v NullableSearchSourceOneOf) IsSet() bool
- func (v NullableSearchSourceOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableSearchSourceOneOf) Set(val *SearchSourceOneOf)
- func (v *NullableSearchSourceOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableSearchSourceOneOf) Unset()
- type NullableSearchSourceOneOf1
- func (v NullableSearchSourceOneOf1) Get() *SearchSourceOneOf1
- func (v NullableSearchSourceOneOf1) IsSet() bool
- func (v NullableSearchSourceOneOf1) MarshalJSON() ([]byte, error)
- func (v *NullableSearchSourceOneOf1) Set(val *SearchSourceOneOf1)
- func (v *NullableSearchSourceOneOf1) UnmarshalJSON(src []byte) error
- func (v *NullableSearchSourceOneOf1) Unset()
- type NullableSearchSourceOneOf2
- func (v NullableSearchSourceOneOf2) Get() *SearchSourceOneOf2
- func (v NullableSearchSourceOneOf2) IsSet() bool
- func (v NullableSearchSourceOneOf2) MarshalJSON() ([]byte, error)
- func (v *NullableSearchSourceOneOf2) Set(val *SearchSourceOneOf2)
- func (v *NullableSearchSourceOneOf2) UnmarshalJSON(src []byte) error
- func (v *NullableSearchSourceOneOf2) Unset()
- type NullableSearchSourceOneOf3
- func (v NullableSearchSourceOneOf3) Get() *SearchSourceOneOf3
- func (v NullableSearchSourceOneOf3) IsSet() bool
- func (v NullableSearchSourceOneOf3) MarshalJSON() ([]byte, error)
- func (v *NullableSearchSourceOneOf3) Set(val *SearchSourceOneOf3)
- func (v *NullableSearchSourceOneOf3) UnmarshalJSON(src []byte) error
- func (v *NullableSearchSourceOneOf3) Unset()
- type NullableStartDeferredChatResponse
- func (v NullableStartDeferredChatResponse) Get() *StartDeferredChatResponse
- func (v NullableStartDeferredChatResponse) IsSet() bool
- func (v NullableStartDeferredChatResponse) MarshalJSON() ([]byte, error)
- func (v *NullableStartDeferredChatResponse) Set(val *StartDeferredChatResponse)
- func (v *NullableStartDeferredChatResponse) UnmarshalJSON(src []byte) error
- func (v *NullableStartDeferredChatResponse) Unset()
- type NullableStreamOptions
- func (v NullableStreamOptions) Get() *StreamOptions
- func (v NullableStreamOptions) IsSet() bool
- func (v NullableStreamOptions) MarshalJSON() ([]byte, error)
- func (v *NullableStreamOptions) Set(val *StreamOptions)
- func (v *NullableStreamOptions) UnmarshalJSON(src []byte) error
- func (v *NullableStreamOptions) Unset()
- type NullableString
- type NullableSystemMessageContent
- func (v NullableSystemMessageContent) Get() *SystemMessageContent
- func (v NullableSystemMessageContent) IsSet() bool
- func (v NullableSystemMessageContent) MarshalJSON() ([]byte, error)
- func (v *NullableSystemMessageContent) Set(val *SystemMessageContent)
- func (v *NullableSystemMessageContent) UnmarshalJSON(src []byte) error
- func (v *NullableSystemMessageContent) Unset()
- type NullableSystemMessagePart
- func (v NullableSystemMessagePart) Get() *SystemMessagePart
- func (v NullableSystemMessagePart) IsSet() bool
- func (v NullableSystemMessagePart) MarshalJSON() ([]byte, error)
- func (v *NullableSystemMessagePart) Set(val *SystemMessagePart)
- func (v *NullableSystemMessagePart) UnmarshalJSON(src []byte) error
- func (v *NullableSystemMessagePart) Unset()
- type NullableTime
- type NullableTokenLogProb
- func (v NullableTokenLogProb) Get() *TokenLogProb
- func (v NullableTokenLogProb) IsSet() bool
- func (v NullableTokenLogProb) MarshalJSON() ([]byte, error)
- func (v *NullableTokenLogProb) Set(val *TokenLogProb)
- func (v *NullableTokenLogProb) UnmarshalJSON(src []byte) error
- func (v *NullableTokenLogProb) Unset()
- type NullableTokenizeRequest
- func (v NullableTokenizeRequest) Get() *TokenizeRequest
- func (v NullableTokenizeRequest) IsSet() bool
- func (v NullableTokenizeRequest) MarshalJSON() ([]byte, error)
- func (v *NullableTokenizeRequest) Set(val *TokenizeRequest)
- func (v *NullableTokenizeRequest) UnmarshalJSON(src []byte) error
- func (v *NullableTokenizeRequest) Unset()
- type NullableTokenizeResponse
- func (v NullableTokenizeResponse) Get() *TokenizeResponse
- func (v NullableTokenizeResponse) IsSet() bool
- func (v NullableTokenizeResponse) MarshalJSON() ([]byte, error)
- func (v *NullableTokenizeResponse) Set(val *TokenizeResponse)
- func (v *NullableTokenizeResponse) UnmarshalJSON(src []byte) error
- func (v *NullableTokenizeResponse) Unset()
- type NullableTokenizeResponseToken
- func (v NullableTokenizeResponseToken) Get() *TokenizeResponseToken
- func (v NullableTokenizeResponseToken) IsSet() bool
- func (v NullableTokenizeResponseToken) MarshalJSON() ([]byte, error)
- func (v *NullableTokenizeResponseToken) Set(val *TokenizeResponseToken)
- func (v *NullableTokenizeResponseToken) UnmarshalJSON(src []byte) error
- func (v *NullableTokenizeResponseToken) Unset()
- type NullableTool
- type NullableToolCall
- type NullableToolChoice
- type NullableToolChoiceOneOf
- func (v NullableToolChoiceOneOf) Get() *ToolChoiceOneOf
- func (v NullableToolChoiceOneOf) IsSet() bool
- func (v NullableToolChoiceOneOf) MarshalJSON() ([]byte, error)
- func (v *NullableToolChoiceOneOf) Set(val *ToolChoiceOneOf)
- func (v *NullableToolChoiceOneOf) UnmarshalJSON(src []byte) error
- func (v *NullableToolChoiceOneOf) Unset()
- type NullableToolOneOf
- type NullableToolOneOf1
- type NullableTopLogProb
- type NullableUsage
- type NullableWebSearchOptions
- func (v NullableWebSearchOptions) Get() *WebSearchOptions
- func (v NullableWebSearchOptions) IsSet() bool
- func (v NullableWebSearchOptions) MarshalJSON() ([]byte, error)
- func (v *NullableWebSearchOptions) Set(val *WebSearchOptions)
- func (v *NullableWebSearchOptions) UnmarshalJSON(src []byte) error
- func (v *NullableWebSearchOptions) Unset()
- type PromptUsageDetail
- func (o *PromptUsageDetail) GetAudioTokens() int32
- func (o *PromptUsageDetail) GetAudioTokensOk() (*int32, bool)
- func (o *PromptUsageDetail) GetCachedTokens() int32
- func (o *PromptUsageDetail) GetCachedTokensOk() (*int32, bool)
- func (o *PromptUsageDetail) GetImageTokens() int32
- func (o *PromptUsageDetail) GetImageTokensOk() (*int32, bool)
- func (o *PromptUsageDetail) GetTextTokens() int32
- func (o *PromptUsageDetail) GetTextTokensOk() (*int32, bool)
- func (o PromptUsageDetail) MarshalJSON() ([]byte, error)
- func (o *PromptUsageDetail) SetAudioTokens(v int32)
- func (o *PromptUsageDetail) SetCachedTokens(v int32)
- func (o *PromptUsageDetail) SetImageTokens(v int32)
- func (o *PromptUsageDetail) SetTextTokens(v int32)
- func (o PromptUsageDetail) ToMap() (map[string]interface{}, error)
- func (o *PromptUsageDetail) UnmarshalJSON(data []byte) (err error)
- type ResponseFormat
- type ResponseFormatOneOf
- func (o *ResponseFormatOneOf) GetType() string
- func (o *ResponseFormatOneOf) GetTypeOk() (*string, bool)
- func (o ResponseFormatOneOf) MarshalJSON() ([]byte, error)
- func (o *ResponseFormatOneOf) SetType(v string)
- func (o ResponseFormatOneOf) ToMap() (map[string]interface{}, error)
- func (o *ResponseFormatOneOf) UnmarshalJSON(data []byte) (err error)
- type ResponseFormatOneOf1
- func (o *ResponseFormatOneOf1) GetType() string
- func (o *ResponseFormatOneOf1) GetTypeOk() (*string, bool)
- func (o ResponseFormatOneOf1) MarshalJSON() ([]byte, error)
- func (o *ResponseFormatOneOf1) SetType(v string)
- func (o ResponseFormatOneOf1) ToMap() (map[string]interface{}, error)
- func (o *ResponseFormatOneOf1) UnmarshalJSON(data []byte) (err error)
- type ResponseFormatOneOf2
- func (o *ResponseFormatOneOf2) GetJsonSchema() interface{}
- func (o *ResponseFormatOneOf2) GetJsonSchemaOk() (*interface{}, bool)
- func (o *ResponseFormatOneOf2) GetType() string
- func (o *ResponseFormatOneOf2) GetTypeOk() (*string, bool)
- func (o ResponseFormatOneOf2) MarshalJSON() ([]byte, error)
- func (o *ResponseFormatOneOf2) SetJsonSchema(v interface{})
- func (o *ResponseFormatOneOf2) SetType(v string)
- func (o ResponseFormatOneOf2) ToMap() (map[string]interface{}, error)
- func (o *ResponseFormatOneOf2) UnmarshalJSON(data []byte) (err error)
- type SampleChoice
- func (o *SampleChoice) GetFinishReason() string
- func (o *SampleChoice) GetFinishReasonOk() (*string, bool)
- func (o *SampleChoice) GetIndex() int32
- func (o *SampleChoice) GetIndexOk() (*int32, bool)
- func (o *SampleChoice) GetText() string
- func (o *SampleChoice) GetTextOk() (*string, bool)
- func (o SampleChoice) MarshalJSON() ([]byte, error)
- func (o *SampleChoice) SetFinishReason(v string)
- func (o *SampleChoice) SetIndex(v int32)
- func (o *SampleChoice) SetText(v string)
- func (o SampleChoice) ToMap() (map[string]interface{}, error)
- func (o *SampleChoice) UnmarshalJSON(data []byte) (err error)
- type SampleContent
- type SampleRequest
- func (o *SampleRequest) GetBestOf() int32
- func (o *SampleRequest) GetBestOfOk() (*int32, bool)
- func (o *SampleRequest) GetEcho() bool
- func (o *SampleRequest) GetEchoOk() (*bool, bool)
- func (o *SampleRequest) GetFrequencyPenalty() float32
- func (o *SampleRequest) GetFrequencyPenaltyOk() (*float32, bool)
- func (o *SampleRequest) GetLogitBias() map[string]float32
- func (o *SampleRequest) GetLogitBiasOk() (map[string]float32, bool)
- func (o *SampleRequest) GetLogprobs() bool
- func (o *SampleRequest) GetLogprobsOk() (*bool, bool)
- func (o *SampleRequest) GetMaxTokens() int32
- func (o *SampleRequest) GetMaxTokensOk() (*int32, bool)
- func (o *SampleRequest) GetModel() string
- func (o *SampleRequest) GetModelOk() (*string, bool)
- func (o *SampleRequest) GetN() int32
- func (o *SampleRequest) GetNOk() (*int32, bool)
- func (o *SampleRequest) GetPresencePenalty() float32
- func (o *SampleRequest) GetPresencePenaltyOk() (*float32, bool)
- func (o *SampleRequest) GetPrompt() SampleContent
- func (o *SampleRequest) GetPromptOk() (*SampleContent, bool)
- func (o *SampleRequest) GetSeed() int32
- func (o *SampleRequest) GetSeedOk() (*int32, bool)
- func (o *SampleRequest) GetStop() []string
- func (o *SampleRequest) GetStopOk() ([]string, bool)
- func (o *SampleRequest) GetStream() bool
- func (o *SampleRequest) GetStreamOk() (*bool, bool)
- func (o *SampleRequest) GetStreamOptions() StreamOptions
- func (o *SampleRequest) GetStreamOptionsOk() (*StreamOptions, bool)
- func (o *SampleRequest) GetSuffix() string
- func (o *SampleRequest) GetSuffixOk() (*string, bool)
- func (o *SampleRequest) GetTemperature() float32
- func (o *SampleRequest) GetTemperatureOk() (*float32, bool)
- func (o *SampleRequest) GetTopP() float32
- func (o *SampleRequest) GetTopPOk() (*float32, bool)
- func (o *SampleRequest) GetUser() string
- func (o *SampleRequest) GetUserOk() (*string, bool)
- func (o *SampleRequest) HasBestOf() bool
- func (o *SampleRequest) HasEcho() bool
- func (o *SampleRequest) HasFrequencyPenalty() bool
- func (o *SampleRequest) HasLogitBias() bool
- func (o *SampleRequest) HasLogprobs() bool
- func (o *SampleRequest) HasMaxTokens() bool
- func (o *SampleRequest) HasModel() bool
- func (o *SampleRequest) HasN() bool
- func (o *SampleRequest) HasPresencePenalty() bool
- func (o *SampleRequest) HasPrompt() bool
- func (o *SampleRequest) HasSeed() bool
- func (o *SampleRequest) HasStop() bool
- func (o *SampleRequest) HasStream() bool
- func (o *SampleRequest) HasStreamOptions() bool
- func (o *SampleRequest) HasSuffix() bool
- func (o *SampleRequest) HasTemperature() bool
- func (o *SampleRequest) HasTopP() bool
- func (o *SampleRequest) HasUser() bool
- func (o SampleRequest) MarshalJSON() ([]byte, error)
- func (o *SampleRequest) SetBestOf(v int32)
- func (o *SampleRequest) SetBestOfNil()
- func (o *SampleRequest) SetEcho(v bool)
- func (o *SampleRequest) SetEchoNil()
- func (o *SampleRequest) SetFrequencyPenalty(v float32)
- func (o *SampleRequest) SetFrequencyPenaltyNil()
- func (o *SampleRequest) SetLogitBias(v map[string]float32)
- func (o *SampleRequest) SetLogprobs(v bool)
- func (o *SampleRequest) SetLogprobsNil()
- func (o *SampleRequest) SetMaxTokens(v int32)
- func (o *SampleRequest) SetMaxTokensNil()
- func (o *SampleRequest) SetModel(v string)
- func (o *SampleRequest) SetN(v int32)
- func (o *SampleRequest) SetNNil()
- func (o *SampleRequest) SetPresencePenalty(v float32)
- func (o *SampleRequest) SetPresencePenaltyNil()
- func (o *SampleRequest) SetPrompt(v SampleContent)
- func (o *SampleRequest) SetSeed(v int32)
- func (o *SampleRequest) SetSeedNil()
- func (o *SampleRequest) SetStop(v []string)
- func (o *SampleRequest) SetStream(v bool)
- func (o *SampleRequest) SetStreamNil()
- func (o *SampleRequest) SetStreamOptions(v StreamOptions)
- func (o *SampleRequest) SetStreamOptionsNil()
- func (o *SampleRequest) SetSuffix(v string)
- func (o *SampleRequest) SetSuffixNil()
- func (o *SampleRequest) SetTemperature(v float32)
- func (o *SampleRequest) SetTemperatureNil()
- func (o *SampleRequest) SetTopP(v float32)
- func (o *SampleRequest) SetTopPNil()
- func (o *SampleRequest) SetUser(v string)
- func (o *SampleRequest) SetUserNil()
- func (o SampleRequest) ToMap() (map[string]interface{}, error)
- func (o *SampleRequest) UnmarshalJSON(data []byte) (err error)
- func (o *SampleRequest) UnsetBestOf()
- func (o *SampleRequest) UnsetEcho()
- func (o *SampleRequest) UnsetFrequencyPenalty()
- func (o *SampleRequest) UnsetLogprobs()
- func (o *SampleRequest) UnsetMaxTokens()
- func (o *SampleRequest) UnsetN()
- func (o *SampleRequest) UnsetPresencePenalty()
- func (o *SampleRequest) UnsetSeed()
- func (o *SampleRequest) UnsetStream()
- func (o *SampleRequest) UnsetStreamOptions()
- func (o *SampleRequest) UnsetSuffix()
- func (o *SampleRequest) UnsetTemperature()
- func (o *SampleRequest) UnsetTopP()
- func (o *SampleRequest) UnsetUser()
- type SampleResponse
- func (o *SampleResponse) GetChoices() []SampleChoice
- func (o *SampleResponse) GetChoicesOk() ([]SampleChoice, bool)
- func (o *SampleResponse) GetCreated() int64
- func (o *SampleResponse) GetCreatedOk() (*int64, bool)
- func (o *SampleResponse) GetId() string
- func (o *SampleResponse) GetIdOk() (*string, bool)
- func (o *SampleResponse) GetModel() string
- func (o *SampleResponse) GetModelOk() (*string, bool)
- func (o *SampleResponse) GetObject() string
- func (o *SampleResponse) GetObjectOk() (*string, bool)
- func (o *SampleResponse) GetSystemFingerprint() string
- func (o *SampleResponse) GetSystemFingerprintOk() (*string, bool)
- func (o *SampleResponse) GetUsage() Usage
- func (o *SampleResponse) GetUsageOk() (*Usage, bool)
- func (o *SampleResponse) HasSystemFingerprint() bool
- func (o *SampleResponse) HasUsage() bool
- func (o SampleResponse) MarshalJSON() ([]byte, error)
- func (o *SampleResponse) SetChoices(v []SampleChoice)
- func (o *SampleResponse) SetCreated(v int64)
- func (o *SampleResponse) SetId(v string)
- func (o *SampleResponse) SetModel(v string)
- func (o *SampleResponse) SetObject(v string)
- func (o *SampleResponse) SetSystemFingerprint(v string)
- func (o *SampleResponse) SetSystemFingerprintNil()
- func (o *SampleResponse) SetUsage(v Usage)
- func (o *SampleResponse) SetUsageNil()
- func (o SampleResponse) ToMap() (map[string]interface{}, error)
- func (o *SampleResponse) UnmarshalJSON(data []byte) (err error)
- func (o *SampleResponse) UnsetSystemFingerprint()
- func (o *SampleResponse) UnsetUsage()
- type SearchParameters
- func (o *SearchParameters) GetFromDate() string
- func (o *SearchParameters) GetFromDateOk() (*string, bool)
- func (o *SearchParameters) GetMaxSearchResults() int32
- func (o *SearchParameters) GetMaxSearchResultsOk() (*int32, bool)
- func (o *SearchParameters) GetMode() string
- func (o *SearchParameters) GetModeOk() (*string, bool)
- func (o *SearchParameters) GetReturnCitations() bool
- func (o *SearchParameters) GetReturnCitationsOk() (*bool, bool)
- func (o *SearchParameters) GetSources() []SearchSource
- func (o *SearchParameters) GetSourcesOk() ([]SearchSource, bool)
- func (o *SearchParameters) GetToDate() string
- func (o *SearchParameters) GetToDateOk() (*string, bool)
- func (o *SearchParameters) HasFromDate() bool
- func (o *SearchParameters) HasMaxSearchResults() bool
- func (o *SearchParameters) HasMode() bool
- func (o *SearchParameters) HasReturnCitations() bool
- func (o *SearchParameters) HasSources() bool
- func (o *SearchParameters) HasToDate() bool
- func (o SearchParameters) MarshalJSON() ([]byte, error)
- func (o *SearchParameters) SetFromDate(v string)
- func (o *SearchParameters) SetFromDateNil()
- func (o *SearchParameters) SetMaxSearchResults(v int32)
- func (o *SearchParameters) SetMaxSearchResultsNil()
- func (o *SearchParameters) SetMode(v string)
- func (o *SearchParameters) SetModeNil()
- func (o *SearchParameters) SetReturnCitations(v bool)
- func (o *SearchParameters) SetReturnCitationsNil()
- func (o *SearchParameters) SetSources(v []SearchSource)
- func (o *SearchParameters) SetToDate(v string)
- func (o *SearchParameters) SetToDateNil()
- func (o SearchParameters) ToMap() (map[string]interface{}, error)
- func (o *SearchParameters) UnmarshalJSON(data []byte) (err error)
- func (o *SearchParameters) UnsetFromDate()
- func (o *SearchParameters) UnsetMaxSearchResults()
- func (o *SearchParameters) UnsetMode()
- func (o *SearchParameters) UnsetReturnCitations()
- func (o *SearchParameters) UnsetToDate()
- type SearchSource
- type SearchSourceOneOf
- func (o *SearchSourceOneOf) GetExcludedXHandles() []string
- func (o *SearchSourceOneOf) GetExcludedXHandlesOk() ([]string, bool)
- func (o *SearchSourceOneOf) GetIncludedXHandles() []string
- func (o *SearchSourceOneOf) GetIncludedXHandlesOk() ([]string, bool)
- func (o *SearchSourceOneOf) GetPostFavoriteCount() int32
- func (o *SearchSourceOneOf) GetPostFavoriteCountOk() (*int32, bool)
- func (o *SearchSourceOneOf) GetPostViewCount() int32
- func (o *SearchSourceOneOf) GetPostViewCountOk() (*int32, bool)
- func (o *SearchSourceOneOf) GetType() string
- func (o *SearchSourceOneOf) GetTypeOk() (*string, bool)
- func (o *SearchSourceOneOf) GetXHandles() []string
- func (o *SearchSourceOneOf) GetXHandlesOk() ([]string, bool)
- func (o *SearchSourceOneOf) HasExcludedXHandles() bool
- func (o *SearchSourceOneOf) HasIncludedXHandles() bool
- func (o *SearchSourceOneOf) HasPostFavoriteCount() bool
- func (o *SearchSourceOneOf) HasPostViewCount() bool
- func (o *SearchSourceOneOf) HasXHandles() bool
- func (o SearchSourceOneOf) MarshalJSON() ([]byte, error)
- func (o *SearchSourceOneOf) SetExcludedXHandles(v []string)
- func (o *SearchSourceOneOf) SetIncludedXHandles(v []string)
- func (o *SearchSourceOneOf) SetPostFavoriteCount(v int32)
- func (o *SearchSourceOneOf) SetPostFavoriteCountNil()
- func (o *SearchSourceOneOf) SetPostViewCount(v int32)
- func (o *SearchSourceOneOf) SetPostViewCountNil()
- func (o *SearchSourceOneOf) SetType(v string)
- func (o *SearchSourceOneOf) SetXHandles(v []string)
- func (o SearchSourceOneOf) ToMap() (map[string]interface{}, error)
- func (o *SearchSourceOneOf) UnmarshalJSON(data []byte) (err error)
- func (o *SearchSourceOneOf) UnsetPostFavoriteCount()
- func (o *SearchSourceOneOf) UnsetPostViewCount()
- type SearchSourceOneOf1
- func (o *SearchSourceOneOf1) GetAllowedWebsites() []string
- func (o *SearchSourceOneOf1) GetAllowedWebsitesOk() ([]string, bool)
- func (o *SearchSourceOneOf1) GetCountry() string
- func (o *SearchSourceOneOf1) GetCountryOk() (*string, bool)
- func (o *SearchSourceOneOf1) GetExcludedWebsites() []string
- func (o *SearchSourceOneOf1) GetExcludedWebsitesOk() ([]string, bool)
- func (o *SearchSourceOneOf1) GetSafeSearch() bool
- func (o *SearchSourceOneOf1) GetSafeSearchOk() (*bool, bool)
- func (o *SearchSourceOneOf1) GetType() string
- func (o *SearchSourceOneOf1) GetTypeOk() (*string, bool)
- func (o *SearchSourceOneOf1) HasAllowedWebsites() bool
- func (o *SearchSourceOneOf1) HasCountry() bool
- func (o *SearchSourceOneOf1) HasExcludedWebsites() bool
- func (o *SearchSourceOneOf1) HasSafeSearch() bool
- func (o SearchSourceOneOf1) MarshalJSON() ([]byte, error)
- func (o *SearchSourceOneOf1) SetAllowedWebsites(v []string)
- func (o *SearchSourceOneOf1) SetCountry(v string)
- func (o *SearchSourceOneOf1) SetCountryNil()
- func (o *SearchSourceOneOf1) SetExcludedWebsites(v []string)
- func (o *SearchSourceOneOf1) SetSafeSearch(v bool)
- func (o *SearchSourceOneOf1) SetSafeSearchNil()
- func (o *SearchSourceOneOf1) SetType(v string)
- func (o SearchSourceOneOf1) ToMap() (map[string]interface{}, error)
- func (o *SearchSourceOneOf1) UnmarshalJSON(data []byte) (err error)
- func (o *SearchSourceOneOf1) UnsetCountry()
- func (o *SearchSourceOneOf1) UnsetSafeSearch()
- type SearchSourceOneOf2
- func (o *SearchSourceOneOf2) GetCountry() string
- func (o *SearchSourceOneOf2) GetCountryOk() (*string, bool)
- func (o *SearchSourceOneOf2) GetExcludedWebsites() []string
- func (o *SearchSourceOneOf2) GetExcludedWebsitesOk() ([]string, bool)
- func (o *SearchSourceOneOf2) GetSafeSearch() bool
- func (o *SearchSourceOneOf2) GetSafeSearchOk() (*bool, bool)
- func (o *SearchSourceOneOf2) GetType() string
- func (o *SearchSourceOneOf2) GetTypeOk() (*string, bool)
- func (o *SearchSourceOneOf2) HasCountry() bool
- func (o *SearchSourceOneOf2) HasExcludedWebsites() bool
- func (o *SearchSourceOneOf2) HasSafeSearch() bool
- func (o SearchSourceOneOf2) MarshalJSON() ([]byte, error)
- func (o *SearchSourceOneOf2) SetCountry(v string)
- func (o *SearchSourceOneOf2) SetCountryNil()
- func (o *SearchSourceOneOf2) SetExcludedWebsites(v []string)
- func (o *SearchSourceOneOf2) SetSafeSearch(v bool)
- func (o *SearchSourceOneOf2) SetSafeSearchNil()
- func (o *SearchSourceOneOf2) SetType(v string)
- func (o SearchSourceOneOf2) ToMap() (map[string]interface{}, error)
- func (o *SearchSourceOneOf2) UnmarshalJSON(data []byte) (err error)
- func (o *SearchSourceOneOf2) UnsetCountry()
- func (o *SearchSourceOneOf2) UnsetSafeSearch()
- type SearchSourceOneOf3
- func (o *SearchSourceOneOf3) GetLinks() []string
- func (o *SearchSourceOneOf3) GetLinksOk() ([]string, bool)
- func (o *SearchSourceOneOf3) GetType() string
- func (o *SearchSourceOneOf3) GetTypeOk() (*string, bool)
- func (o SearchSourceOneOf3) MarshalJSON() ([]byte, error)
- func (o *SearchSourceOneOf3) SetLinks(v []string)
- func (o *SearchSourceOneOf3) SetType(v string)
- func (o SearchSourceOneOf3) ToMap() (map[string]interface{}, error)
- func (o *SearchSourceOneOf3) UnmarshalJSON(data []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type StartDeferredChatResponse
- func (o *StartDeferredChatResponse) GetRequestId() string
- func (o *StartDeferredChatResponse) GetRequestIdOk() (*string, bool)
- func (o StartDeferredChatResponse) MarshalJSON() ([]byte, error)
- func (o *StartDeferredChatResponse) SetRequestId(v string)
- func (o StartDeferredChatResponse) ToMap() (map[string]interface{}, error)
- func (o *StartDeferredChatResponse) UnmarshalJSON(data []byte) (err error)
- type StreamOptions
- func (o *StreamOptions) GetIncludeUsage() bool
- func (o *StreamOptions) GetIncludeUsageOk() (*bool, bool)
- func (o StreamOptions) MarshalJSON() ([]byte, error)
- func (o *StreamOptions) SetIncludeUsage(v bool)
- func (o StreamOptions) ToMap() (map[string]interface{}, error)
- func (o *StreamOptions) UnmarshalJSON(data []byte) (err error)
- type SystemMessageContent
- type SystemMessagePart
- func (o *SystemMessagePart) GetCacheControl() interface{}
- func (o *SystemMessagePart) GetCacheControlOk() (*interface{}, bool)
- func (o *SystemMessagePart) GetText() string
- func (o *SystemMessagePart) GetTextOk() (*string, bool)
- func (o *SystemMessagePart) GetType() string
- func (o *SystemMessagePart) GetTypeOk() (*string, bool)
- func (o *SystemMessagePart) HasCacheControl() bool
- func (o SystemMessagePart) MarshalJSON() ([]byte, error)
- func (o *SystemMessagePart) SetCacheControl(v interface{})
- func (o *SystemMessagePart) SetText(v string)
- func (o *SystemMessagePart) SetType(v string)
- func (o SystemMessagePart) ToMap() (map[string]interface{}, error)
- func (o *SystemMessagePart) UnmarshalJSON(data []byte) (err error)
- type TokenLogProb
- func (o *TokenLogProb) GetBytes() []int32
- func (o *TokenLogProb) GetBytesOk() ([]int32, bool)
- func (o *TokenLogProb) GetLogprob() float32
- func (o *TokenLogProb) GetLogprobOk() (*float32, bool)
- func (o *TokenLogProb) GetToken() string
- func (o *TokenLogProb) GetTokenOk() (*string, bool)
- func (o *TokenLogProb) GetTopLogprobs() []TopLogProb
- func (o *TokenLogProb) GetTopLogprobsOk() ([]TopLogProb, bool)
- func (o *TokenLogProb) HasBytes() bool
- func (o TokenLogProb) MarshalJSON() ([]byte, error)
- func (o *TokenLogProb) SetBytes(v []int32)
- func (o *TokenLogProb) SetLogprob(v float32)
- func (o *TokenLogProb) SetToken(v string)
- func (o *TokenLogProb) SetTopLogprobs(v []TopLogProb)
- func (o TokenLogProb) ToMap() (map[string]interface{}, error)
- func (o *TokenLogProb) UnmarshalJSON(data []byte) (err error)
- type TokenizeRequest
- func (o *TokenizeRequest) GetModel() string
- func (o *TokenizeRequest) GetModelOk() (*string, bool)
- func (o *TokenizeRequest) GetText() string
- func (o *TokenizeRequest) GetTextOk() (*string, bool)
- func (o *TokenizeRequest) GetUser() string
- func (o *TokenizeRequest) GetUserOk() (*string, bool)
- func (o *TokenizeRequest) HasModel() bool
- func (o *TokenizeRequest) HasText() bool
- func (o *TokenizeRequest) HasUser() bool
- func (o TokenizeRequest) MarshalJSON() ([]byte, error)
- func (o *TokenizeRequest) SetModel(v string)
- func (o *TokenizeRequest) SetText(v string)
- func (o *TokenizeRequest) SetUser(v string)
- func (o *TokenizeRequest) SetUserNil()
- func (o TokenizeRequest) ToMap() (map[string]interface{}, error)
- func (o *TokenizeRequest) UnmarshalJSON(data []byte) (err error)
- func (o *TokenizeRequest) UnsetUser()
- type TokenizeResponse
- func (o *TokenizeResponse) GetTokenIds() []TokenizeResponseToken
- func (o *TokenizeResponse) GetTokenIdsOk() ([]TokenizeResponseToken, bool)
- func (o TokenizeResponse) MarshalJSON() ([]byte, error)
- func (o *TokenizeResponse) SetTokenIds(v []TokenizeResponseToken)
- func (o TokenizeResponse) ToMap() (map[string]interface{}, error)
- func (o *TokenizeResponse) UnmarshalJSON(data []byte) (err error)
- type TokenizeResponseToken
- func (o *TokenizeResponseToken) GetStringToken() string
- func (o *TokenizeResponseToken) GetStringTokenOk() (*string, bool)
- func (o *TokenizeResponseToken) GetTokenBytes() []int32
- func (o *TokenizeResponseToken) GetTokenBytesOk() ([]int32, bool)
- func (o *TokenizeResponseToken) GetTokenId() int32
- func (o *TokenizeResponseToken) GetTokenIdOk() (*int32, bool)
- func (o TokenizeResponseToken) MarshalJSON() ([]byte, error)
- func (o *TokenizeResponseToken) SetStringToken(v string)
- func (o *TokenizeResponseToken) SetTokenBytes(v []int32)
- func (o *TokenizeResponseToken) SetTokenId(v int32)
- func (o TokenizeResponseToken) ToMap() (map[string]interface{}, error)
- func (o *TokenizeResponseToken) UnmarshalJSON(data []byte) (err error)
- type Tool
- type ToolCall
- func (o *ToolCall) GetFunction() Function
- func (o *ToolCall) GetFunctionOk() (*Function, bool)
- func (o *ToolCall) GetId() string
- func (o *ToolCall) GetIdOk() (*string, bool)
- func (o *ToolCall) GetIndex() int32
- func (o *ToolCall) GetIndexOk() (*int32, bool)
- func (o *ToolCall) GetType() string
- func (o *ToolCall) GetTypeOk() (*string, bool)
- func (o *ToolCall) HasIndex() bool
- func (o *ToolCall) HasType() bool
- func (o ToolCall) MarshalJSON() ([]byte, error)
- func (o *ToolCall) SetFunction(v Function)
- func (o *ToolCall) SetId(v string)
- func (o *ToolCall) SetIndex(v int32)
- func (o *ToolCall) SetIndexNil()
- func (o *ToolCall) SetType(v string)
- func (o *ToolCall) SetTypeNil()
- func (o ToolCall) ToMap() (map[string]interface{}, error)
- func (o *ToolCall) UnmarshalJSON(data []byte) (err error)
- func (o *ToolCall) UnsetIndex()
- func (o *ToolCall) UnsetType()
- type ToolChoice
- type ToolChoiceOneOf
- func (o *ToolChoiceOneOf) GetFunction() FunctionChoice
- func (o *ToolChoiceOneOf) GetFunctionOk() (*FunctionChoice, bool)
- func (o *ToolChoiceOneOf) GetType() string
- func (o *ToolChoiceOneOf) GetTypeOk() (*string, bool)
- func (o *ToolChoiceOneOf) HasFunction() bool
- func (o ToolChoiceOneOf) MarshalJSON() ([]byte, error)
- func (o *ToolChoiceOneOf) SetFunction(v FunctionChoice)
- func (o *ToolChoiceOneOf) SetFunctionNil()
- func (o *ToolChoiceOneOf) SetType(v string)
- func (o ToolChoiceOneOf) ToMap() (map[string]interface{}, error)
- func (o *ToolChoiceOneOf) UnmarshalJSON(data []byte) (err error)
- func (o *ToolChoiceOneOf) UnsetFunction()
- type ToolOneOf
- func (o *ToolOneOf) GetFunction() FunctionDefinition
- func (o *ToolOneOf) GetFunctionOk() (*FunctionDefinition, bool)
- func (o *ToolOneOf) GetType() string
- func (o *ToolOneOf) GetTypeOk() (*string, bool)
- func (o ToolOneOf) MarshalJSON() ([]byte, error)
- func (o *ToolOneOf) SetFunction(v FunctionDefinition)
- func (o *ToolOneOf) SetType(v string)
- func (o ToolOneOf) ToMap() (map[string]interface{}, error)
- func (o *ToolOneOf) UnmarshalJSON(data []byte) (err error)
- type ToolOneOf1
- func (o *ToolOneOf1) GetSources() []SearchSource
- func (o *ToolOneOf1) GetSourcesOk() ([]SearchSource, bool)
- func (o *ToolOneOf1) GetType() string
- func (o *ToolOneOf1) GetTypeOk() (*string, bool)
- func (o ToolOneOf1) MarshalJSON() ([]byte, error)
- func (o *ToolOneOf1) SetSources(v []SearchSource)
- func (o *ToolOneOf1) SetType(v string)
- func (o ToolOneOf1) ToMap() (map[string]interface{}, error)
- func (o *ToolOneOf1) UnmarshalJSON(data []byte) (err error)
- type TopLogProb
- func (o *TopLogProb) GetBytes() []int32
- func (o *TopLogProb) GetBytesOk() ([]int32, bool)
- func (o *TopLogProb) GetLogprob() float32
- func (o *TopLogProb) GetLogprobOk() (*float32, bool)
- func (o *TopLogProb) GetToken() string
- func (o *TopLogProb) GetTokenOk() (*string, bool)
- func (o *TopLogProb) HasBytes() bool
- func (o TopLogProb) MarshalJSON() ([]byte, error)
- func (o *TopLogProb) SetBytes(v []int32)
- func (o *TopLogProb) SetLogprob(v float32)
- func (o *TopLogProb) SetToken(v string)
- func (o TopLogProb) ToMap() (map[string]interface{}, error)
- func (o *TopLogProb) UnmarshalJSON(data []byte) (err error)
- type Usage
- func (o *Usage) GetCompletionTokens() int32
- func (o *Usage) GetCompletionTokensDetails() CompletionUsageDetail
- func (o *Usage) GetCompletionTokensDetailsOk() (*CompletionUsageDetail, bool)
- func (o *Usage) GetCompletionTokensOk() (*int32, bool)
- func (o *Usage) GetNumSourcesUsed() int32
- func (o *Usage) GetNumSourcesUsedOk() (*int32, bool)
- func (o *Usage) GetPromptTokens() int32
- func (o *Usage) GetPromptTokensDetails() PromptUsageDetail
- func (o *Usage) GetPromptTokensDetailsOk() (*PromptUsageDetail, bool)
- func (o *Usage) GetPromptTokensOk() (*int32, bool)
- func (o *Usage) GetTotalTokens() int32
- func (o *Usage) GetTotalTokensOk() (*int32, bool)
- func (o Usage) MarshalJSON() ([]byte, error)
- func (o *Usage) SetCompletionTokens(v int32)
- func (o *Usage) SetCompletionTokensDetails(v CompletionUsageDetail)
- func (o *Usage) SetNumSourcesUsed(v int32)
- func (o *Usage) SetPromptTokens(v int32)
- func (o *Usage) SetPromptTokensDetails(v PromptUsageDetail)
- func (o *Usage) SetTotalTokens(v int32)
- func (o Usage) ToMap() (map[string]interface{}, error)
- func (o *Usage) UnmarshalJSON(data []byte) (err error)
- type V1API
- type V1APIService
- func (a *V1APIService) HandleEmbeddingModelGetRequest(ctx context.Context, modelId string) ApiHandleEmbeddingModelGetRequestRequest
- func (a *V1APIService) HandleEmbeddingModelGetRequestExecute(r ApiHandleEmbeddingModelGetRequestRequest) (*EmbeddingModel, *http.Response, error)
- func (a *V1APIService) HandleEmbeddingModelsListRequest(ctx context.Context) ApiHandleEmbeddingModelsListRequestRequest
- func (a *V1APIService) HandleEmbeddingModelsListRequestExecute(r ApiHandleEmbeddingModelsListRequestRequest) (*ListEmbeddingModelsResponse, *http.Response, error)
- func (a *V1APIService) HandleEmbeddingRequest(ctx context.Context) ApiHandleEmbeddingRequestRequest
- func (a *V1APIService) HandleEmbeddingRequestExecute(r ApiHandleEmbeddingRequestRequest) (*EmbeddingResponse, *http.Response, error)
- func (a *V1APIService) HandleGenerateImageRequest(ctx context.Context) ApiHandleGenerateImageRequestRequest
- func (a *V1APIService) HandleGenerateImageRequestExecute(r ApiHandleGenerateImageRequestRequest) (*GeneratedImageResponse, *http.Response, error)
- func (a *V1APIService) HandleGenericCompleteRequest(ctx context.Context) ApiHandleGenericCompleteRequestRequest
- func (a *V1APIService) HandleGenericCompleteRequestExecute(r ApiHandleGenericCompleteRequestRequest) (*CompleteResponse, *http.Response, error)
- func (a *V1APIService) HandleGenericCompletionRequest(ctx context.Context) ApiHandleGenericCompletionRequestRequest
- func (a *V1APIService) HandleGenericCompletionRequestExecute(r ApiHandleGenericCompletionRequestRequest) (*ChatResponse, *http.Response, error)
- func (a *V1APIService) HandleGenericMessagesRequest(ctx context.Context) ApiHandleGenericMessagesRequestRequest
- func (a *V1APIService) HandleGenericMessagesRequestExecute(r ApiHandleGenericMessagesRequestRequest) (*MessageResponse, *http.Response, error)
- func (a *V1APIService) HandleGetApiKeyInfoRequest(ctx context.Context) ApiHandleGetApiKeyInfoRequestRequest
- func (a *V1APIService) HandleGetApiKeyInfoRequestExecute(r ApiHandleGetApiKeyInfoRequestRequest) (*ApiKey, *http.Response, error)
- func (a *V1APIService) HandleGetDeferredCompletionRequest(ctx context.Context, requestId string) ApiHandleGetDeferredCompletionRequestRequest
- func (a *V1APIService) HandleGetDeferredCompletionRequestExecute(r ApiHandleGetDeferredCompletionRequestRequest) (*ChatResponse, *http.Response, error)
- func (a *V1APIService) HandleImageGenerationModelGetRequest(ctx context.Context, modelId string) ApiHandleImageGenerationModelGetRequestRequest
- func (a *V1APIService) HandleImageGenerationModelGetRequestExecute(r ApiHandleImageGenerationModelGetRequestRequest) (*ImageGenerationModel, *http.Response, error)
- func (a *V1APIService) HandleImageGenerationModelsListRequest(ctx context.Context) ApiHandleImageGenerationModelsListRequestRequest
- func (a *V1APIService) HandleImageGenerationModelsListRequestExecute(r ApiHandleImageGenerationModelsListRequestRequest) (*ListImageGenerationModelsResponse, *http.Response, error)
- func (a *V1APIService) HandleLanguageModelGetRequest(ctx context.Context, modelId string) ApiHandleLanguageModelGetRequestRequest
- func (a *V1APIService) HandleLanguageModelGetRequestExecute(r ApiHandleLanguageModelGetRequestRequest) (*LanguageModel, *http.Response, error)
- func (a *V1APIService) HandleLanguageModelsListRequest(ctx context.Context) ApiHandleLanguageModelsListRequestRequest
- func (a *V1APIService) HandleLanguageModelsListRequestExecute(r ApiHandleLanguageModelsListRequestRequest) (*ListLanguageModelsResponse, *http.Response, error)
- func (a *V1APIService) HandleModelGetRequest(ctx context.Context, modelId string) ApiHandleModelGetRequestRequest
- func (a *V1APIService) HandleModelGetRequestExecute(r ApiHandleModelGetRequestRequest) (*Model, *http.Response, error)
- func (a *V1APIService) HandleModelsListRequest(ctx context.Context) ApiHandleModelsListRequestRequest
- func (a *V1APIService) HandleModelsListRequestExecute(r ApiHandleModelsListRequestRequest) (*ListModelsResponse, *http.Response, error)
- func (a *V1APIService) HandleSampleRequest(ctx context.Context) ApiHandleSampleRequestRequest
- func (a *V1APIService) HandleSampleRequestExecute(r ApiHandleSampleRequestRequest) (*SampleResponse, *http.Response, error)
- func (a *V1APIService) HandleTokenizeTextRequest(ctx context.Context) ApiHandleTokenizeTextRequestRequest
- func (a *V1APIService) HandleTokenizeTextRequestExecute(r ApiHandleTokenizeTextRequestRequest) (*TokenizeResponse, *http.Response, error)
- type WebSearchOptions
- func (o *WebSearchOptions) GetSearchContextSize() string
- func (o *WebSearchOptions) GetSearchContextSizeOk() (*string, bool)
- func (o *WebSearchOptions) GetUserLocation() interface{}
- func (o *WebSearchOptions) GetUserLocationOk() (*interface{}, bool)
- func (o *WebSearchOptions) HasSearchContextSize() bool
- func (o *WebSearchOptions) HasUserLocation() bool
- func (o WebSearchOptions) MarshalJSON() ([]byte, error)
- func (o *WebSearchOptions) SetSearchContextSize(v string)
- func (o *WebSearchOptions) SetSearchContextSizeNil()
- func (o *WebSearchOptions) SetUserLocation(v interface{})
- func (o WebSearchOptions) ToMap() (map[string]interface{}, error)
- func (o *WebSearchOptions) UnmarshalJSON(data []byte) (err error)
- func (o *WebSearchOptions) UnsetSearchContextSize()
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct {
V1API V1API
// contains filtered or unexported fields
}
APIClient manages communication with the xAI's REST API API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct {
*http.Response `json:"-"`
Message string `json:"message,omitempty"`
// Operation is the name of the OpenAPI operation.
Operation string `json:"operation,omitempty"`
// RequestURL is the request URL. This value is always available, even if the
// embedded *http.Response is nil.
RequestURL string `json:"url,omitempty"`
// Method is the HTTP method used for the request. This value is always
// available, even if the embedded *http.Response is nil.
Method string `json:"method,omitempty"`
// Payload holds the contents of the response body (which may be nil or empty).
// This is provided here as the raw response.Body() reader will have already
// been drained.
Payload []byte `json:"-"`
}
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ApiHandleEmbeddingModelGetRequestRequest ¶
type ApiHandleEmbeddingModelGetRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleEmbeddingModelGetRequestRequest) Execute ¶
func (r ApiHandleEmbeddingModelGetRequestRequest) Execute() (*EmbeddingModel, *http.Response, error)
type ApiHandleEmbeddingModelsListRequestRequest ¶
type ApiHandleEmbeddingModelsListRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleEmbeddingModelsListRequestRequest) Execute ¶
func (r ApiHandleEmbeddingModelsListRequestRequest) Execute() (*ListEmbeddingModelsResponse, *http.Response, error)
type ApiHandleEmbeddingRequestRequest ¶
type ApiHandleEmbeddingRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleEmbeddingRequestRequest) EmbeddingRequest ¶
func (r ApiHandleEmbeddingRequestRequest) EmbeddingRequest(embeddingRequest EmbeddingRequest) ApiHandleEmbeddingRequestRequest
func (ApiHandleEmbeddingRequestRequest) Execute ¶
func (r ApiHandleEmbeddingRequestRequest) Execute() (*EmbeddingResponse, *http.Response, error)
type ApiHandleGenerateImageRequestRequest ¶
type ApiHandleGenerateImageRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleGenerateImageRequestRequest) Execute ¶
func (r ApiHandleGenerateImageRequestRequest) Execute() (*GeneratedImageResponse, *http.Response, error)
func (ApiHandleGenerateImageRequestRequest) GenerateImageRequest ¶
func (r ApiHandleGenerateImageRequestRequest) GenerateImageRequest(generateImageRequest GenerateImageRequest) ApiHandleGenerateImageRequestRequest
type ApiHandleGenericCompleteRequestRequest ¶
type ApiHandleGenericCompleteRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleGenericCompleteRequestRequest) CompleteRequest ¶
func (r ApiHandleGenericCompleteRequestRequest) CompleteRequest(completeRequest CompleteRequest) ApiHandleGenericCompleteRequestRequest
func (ApiHandleGenericCompleteRequestRequest) Execute ¶
func (r ApiHandleGenericCompleteRequestRequest) Execute() (*CompleteResponse, *http.Response, error)
type ApiHandleGenericCompletionRequestRequest ¶
type ApiHandleGenericCompletionRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleGenericCompletionRequestRequest) ChatRequest ¶
func (r ApiHandleGenericCompletionRequestRequest) ChatRequest(chatRequest ChatRequest) ApiHandleGenericCompletionRequestRequest
func (ApiHandleGenericCompletionRequestRequest) Execute ¶
func (r ApiHandleGenericCompletionRequestRequest) Execute() (*ChatResponse, *http.Response, error)
type ApiHandleGenericMessagesRequestRequest ¶
type ApiHandleGenericMessagesRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleGenericMessagesRequestRequest) Execute ¶
func (r ApiHandleGenericMessagesRequestRequest) Execute() (*MessageResponse, *http.Response, error)
func (ApiHandleGenericMessagesRequestRequest) MessageRequest ¶
func (r ApiHandleGenericMessagesRequestRequest) MessageRequest(messageRequest MessageRequest) ApiHandleGenericMessagesRequestRequest
type ApiHandleGetApiKeyInfoRequestRequest ¶
type ApiHandleGetApiKeyInfoRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
type ApiHandleGetDeferredCompletionRequestRequest ¶
type ApiHandleGetDeferredCompletionRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleGetDeferredCompletionRequestRequest) Execute ¶
func (r ApiHandleGetDeferredCompletionRequestRequest) Execute() (*ChatResponse, *http.Response, error)
type ApiHandleImageGenerationModelGetRequestRequest ¶
type ApiHandleImageGenerationModelGetRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleImageGenerationModelGetRequestRequest) Execute ¶
func (r ApiHandleImageGenerationModelGetRequestRequest) Execute() (*ImageGenerationModel, *http.Response, error)
type ApiHandleImageGenerationModelsListRequestRequest ¶
type ApiHandleImageGenerationModelsListRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleImageGenerationModelsListRequestRequest) Execute ¶
func (r ApiHandleImageGenerationModelsListRequestRequest) Execute() (*ListImageGenerationModelsResponse, *http.Response, error)
type ApiHandleLanguageModelGetRequestRequest ¶
type ApiHandleLanguageModelGetRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleLanguageModelGetRequestRequest) Execute ¶
func (r ApiHandleLanguageModelGetRequestRequest) Execute() (*LanguageModel, *http.Response, error)
type ApiHandleLanguageModelsListRequestRequest ¶
type ApiHandleLanguageModelsListRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleLanguageModelsListRequestRequest) Execute ¶
func (r ApiHandleLanguageModelsListRequestRequest) Execute() (*ListLanguageModelsResponse, *http.Response, error)
type ApiHandleModelGetRequestRequest ¶
type ApiHandleModelGetRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
type ApiHandleModelsListRequestRequest ¶
type ApiHandleModelsListRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleModelsListRequestRequest) Execute ¶
func (r ApiHandleModelsListRequestRequest) Execute() (*ListModelsResponse, *http.Response, error)
type ApiHandleSampleRequestRequest ¶
type ApiHandleSampleRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleSampleRequestRequest) Execute ¶
func (r ApiHandleSampleRequestRequest) Execute() (*SampleResponse, *http.Response, error)
func (ApiHandleSampleRequestRequest) SampleRequest ¶
func (r ApiHandleSampleRequestRequest) SampleRequest(sampleRequest SampleRequest) ApiHandleSampleRequestRequest
type ApiHandleTokenizeTextRequestRequest ¶
type ApiHandleTokenizeTextRequestRequest struct {
ApiService V1API
// contains filtered or unexported fields
}
func (ApiHandleTokenizeTextRequestRequest) Execute ¶
func (r ApiHandleTokenizeTextRequestRequest) Execute() (*TokenizeResponse, *http.Response, error)
func (ApiHandleTokenizeTextRequestRequest) TokenizeRequest ¶
func (r ApiHandleTokenizeTextRequestRequest) TokenizeRequest(tokenizeRequest TokenizeRequest) ApiHandleTokenizeTextRequestRequest
type ApiKey ¶
type ApiKey struct {
// A list of ACLs authorized with the API key, e.g. `\"api-key:endpoint:*\"`, `\"api-key:model:*\"`.
Acls []string `json:"acls"`
// Indicates whether the API key is blocked.
ApiKeyBlocked bool `json:"api_key_blocked"`
// Indicates whether the API key is disabled.
ApiKeyDisabled bool `json:"api_key_disabled"`
// ID of the API key.
ApiKeyId string `json:"api_key_id"`
// Creation time of the API key in Unix timestamp.
CreateTime string `json:"create_time"`
// User ID of the user who last modified the API key.
ModifiedBy string `json:"modified_by"`
// Last modification time of the API key in Unix timestamp.
ModifyTime string `json:"modify_time"`
// The name of the API key specified by user.
Name string `json:"name"`
// The redacted API key.
RedactedApiKey string `json:"redacted_api_key"`
// Indicates whether the team that owns the API key.
TeamBlocked bool `json:"team_blocked"`
// The team ID of the team that owns the API key.
TeamId string `json:"team_id"`
// User ID the API key belongs to.
UserId string `json:"user_id"`
AdditionalProperties map[string]interface{}
}
ApiKey struct for ApiKey
func NewApiKey ¶
func NewApiKey(acls []string, apiKeyBlocked bool, apiKeyDisabled bool, apiKeyId string, createTime string, modifiedBy string, modifyTime string, name string, redactedApiKey string, teamBlocked bool, teamId string, userId string) *ApiKey
NewApiKey instantiates a new ApiKey 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
func NewApiKeyWithDefaults ¶
func NewApiKeyWithDefaults() *ApiKey
NewApiKeyWithDefaults instantiates a new ApiKey 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
func (*ApiKey) GetAclsOk ¶
GetAclsOk returns a tuple with the Acls field value and a boolean to check if the value has been set.
func (*ApiKey) GetApiKeyBlocked ¶
GetApiKeyBlocked returns the ApiKeyBlocked field value
func (*ApiKey) GetApiKeyBlockedOk ¶
GetApiKeyBlockedOk returns a tuple with the ApiKeyBlocked field value and a boolean to check if the value has been set.
func (*ApiKey) GetApiKeyDisabled ¶
GetApiKeyDisabled returns the ApiKeyDisabled field value
func (*ApiKey) GetApiKeyDisabledOk ¶
GetApiKeyDisabledOk returns a tuple with the ApiKeyDisabled field value and a boolean to check if the value has been set.
func (*ApiKey) GetApiKeyId ¶
GetApiKeyId returns the ApiKeyId field value
func (*ApiKey) GetApiKeyIdOk ¶
GetApiKeyIdOk returns a tuple with the ApiKeyId field value and a boolean to check if the value has been set.
func (*ApiKey) GetCreateTime ¶
GetCreateTime returns the CreateTime field value
func (*ApiKey) GetCreateTimeOk ¶
GetCreateTimeOk returns a tuple with the CreateTime field value and a boolean to check if the value has been set.
func (*ApiKey) GetModifiedBy ¶
GetModifiedBy returns the ModifiedBy field value
func (*ApiKey) GetModifiedByOk ¶
GetModifiedByOk returns a tuple with the ModifiedBy field value and a boolean to check if the value has been set.
func (*ApiKey) GetModifyTime ¶
GetModifyTime returns the ModifyTime field value
func (*ApiKey) GetModifyTimeOk ¶
GetModifyTimeOk returns a tuple with the ModifyTime field value and a boolean to check if the value has been set.
func (*ApiKey) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*ApiKey) GetRedactedApiKey ¶
GetRedactedApiKey returns the RedactedApiKey field value
func (*ApiKey) GetRedactedApiKeyOk ¶
GetRedactedApiKeyOk returns a tuple with the RedactedApiKey field value and a boolean to check if the value has been set.
func (*ApiKey) GetTeamBlocked ¶
GetTeamBlocked returns the TeamBlocked field value
func (*ApiKey) GetTeamBlockedOk ¶
GetTeamBlockedOk returns a tuple with the TeamBlocked field value and a boolean to check if the value has been set.
func (*ApiKey) GetTeamIdOk ¶
GetTeamIdOk returns a tuple with the TeamId field value and a boolean to check if the value has been set.
func (*ApiKey) GetUserIdOk ¶
GetUserIdOk returns a tuple with the UserId field value and a boolean to check if the value has been set.
func (ApiKey) MarshalJSON ¶
func (*ApiKey) SetApiKeyBlocked ¶
SetApiKeyBlocked sets field value
func (*ApiKey) SetApiKeyDisabled ¶
SetApiKeyDisabled sets field value
func (*ApiKey) SetCreateTime ¶
SetCreateTime sets field value
func (*ApiKey) SetModifiedBy ¶
SetModifiedBy sets field value
func (*ApiKey) SetModifyTime ¶
SetModifyTime sets field value
func (*ApiKey) SetRedactedApiKey ¶
SetRedactedApiKey sets field value
func (*ApiKey) SetTeamBlocked ¶
SetTeamBlocked sets field value
func (*ApiKey) UnmarshalJSON ¶
type BasicAuth ¶
type BasicAuth struct {
UserName string `json:"userName,omitempty"`
Password string `json:"password,omitempty"`
}
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type ChatRequest ¶
type ChatRequest struct {
// If set to `true`, the request returns a `request_id`. You can then get the deferred response by GET `/v1/chat/deferred-completion/{request_id}`.
Deferred NullableBool `json:"deferred,omitempty"`
// (Not supported by reasoning models) Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
FrequencyPenalty NullableFloat32 `json:"frequency_penalty,omitempty"`
// (Unsupported) A JSON object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
LogitBias map[string]float32 `json:"logit_bias,omitempty"`
// Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
Logprobs NullableBool `json:"logprobs,omitempty"`
// An upper bound for the number of tokens that can be generated for a completion, including both visible output tokens and reasoning tokens. Defaults to None, meaning the model will generate as many tokens as needed up until the model's maximum context length.
MaxCompletionTokens NullableInt32 `json:"max_completion_tokens,omitempty"`
// [DEPRECATED] The maximum number of tokens that can be generated in the chat completion. Deprecated in favor of `max_completion_tokens`.
MaxTokens NullableInt32 `json:"max_tokens,omitempty"`
// A list of messages that make up the the chat conversation. Different models support different message types, such as image and text.
Messages []Message `json:"messages,omitempty"`
// Model name for the model to use. Obtainable from https://console.x.ai/team/default/models or https://docs.x.ai/docs/models.
Model *string `json:"model,omitempty"`
// How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
N NullableInt32 `json:"n,omitempty"`
// If set to false, the model can perform maximum one tool call.
ParallelToolCalls NullableBool `json:"parallel_tool_calls,omitempty"`
// (Not supported by `grok-3` and reasoning models) Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
PresencePenalty NullableFloat32 `json:"presence_penalty,omitempty"`
// Constrains how hard a reasoning model thinks before responding. Not supported by `grok-4` and will result in error if used with `grok-4`. Possible values are `low` (uses fewer reasoning tokens) and `high` (uses more reasoning tokens).
ReasoningEffort NullableString `json:"reasoning_effort,omitempty"`
// An object specifying the format that the model must output. Specify `{ \"type\": \"json_object\" }` for JSON output, or `{ \"type\": \"json_schema\", \"json_schema\": {...} }` for structured outputs. If `{ \\\"type\\\": \\\"text\\\" }`, the model will return a text response.
ResponseFormat NullableResponseFormat `json:"response_format,omitempty"`
// Set the parameters to be used for searched data. If not set, no data will be acquired by the model.
SearchParameters NullableSearchParameters `json:"search_parameters,omitempty"`
// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result. Determinism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.
Seed NullableInt32 `json:"seed,omitempty"`
// (Not supported by reasoning models) Up to 4 sequences where the API will stop generating further tokens.
Stop []string `json:"stop,omitempty"`
// If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message.
Stream NullableBool `json:"stream,omitempty"`
// Options for streaming response. Only set this when you set `stream: true`.
StreamOptions NullableStreamOptions `json:"stream_options,omitempty"`
// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
Temperature NullableFloat32 `json:"temperature,omitempty"`
// Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. auto means the model can pick between generating a message or calling one or more tools. required means the model must call one or more tools. Specifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool. `none` is the default when no tools are present. `auto` is the default if tools are present.
ToolChoice NullableToolChoice `json:"tool_choice,omitempty"`
// A list of tools the model may call in JSON-schema. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.
Tools []Tool `json:"tools,omitempty"`
// An integer between 0 and 8 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
TopLogprobs NullableInt32 `json:"top_logprobs,omitempty"`
// An alternative to sampling with `temperature`, called nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. It is generally recommended to alter this or `temperature` but not both.
TopP NullableFloat32 `json:"top_p,omitempty"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
User NullableString `json:"user,omitempty"`
// Options to control the web search. This is only included for compatibility reason. Prefer the usage of `realtime_data_parameters` instead.
WebSearchOptions NullableWebSearchOptions `json:"web_search_options,omitempty"`
AdditionalProperties map[string]interface{}
}
ChatRequest The chat request body for `/v1/chat/completions` endpoint.
func NewChatRequest ¶
func NewChatRequest() *ChatRequest
NewChatRequest instantiates a new ChatRequest 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
func NewChatRequestWithDefaults ¶
func NewChatRequestWithDefaults() *ChatRequest
NewChatRequestWithDefaults instantiates a new ChatRequest 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
func (*ChatRequest) GetDeferred ¶
func (o *ChatRequest) GetDeferred() bool
GetDeferred returns the Deferred field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetDeferredOk ¶
func (o *ChatRequest) GetDeferredOk() (*bool, bool)
GetDeferredOk returns a tuple with the Deferred field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetFrequencyPenalty ¶
func (o *ChatRequest) GetFrequencyPenalty() float32
GetFrequencyPenalty returns the FrequencyPenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetFrequencyPenaltyOk ¶
func (o *ChatRequest) GetFrequencyPenaltyOk() (*float32, bool)
GetFrequencyPenaltyOk returns a tuple with the FrequencyPenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetLogitBias ¶
func (o *ChatRequest) GetLogitBias() map[string]float32
GetLogitBias returns the LogitBias field value if set, zero value otherwise.
func (*ChatRequest) GetLogitBiasOk ¶
func (o *ChatRequest) GetLogitBiasOk() (map[string]float32, bool)
GetLogitBiasOk returns a tuple with the LogitBias field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ChatRequest) GetLogprobs ¶
func (o *ChatRequest) GetLogprobs() bool
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetLogprobsOk ¶
func (o *ChatRequest) GetLogprobsOk() (*bool, bool)
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetMaxCompletionTokens ¶
func (o *ChatRequest) GetMaxCompletionTokens() int32
GetMaxCompletionTokens returns the MaxCompletionTokens field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetMaxCompletionTokensOk ¶
func (o *ChatRequest) GetMaxCompletionTokensOk() (*int32, bool)
GetMaxCompletionTokensOk returns a tuple with the MaxCompletionTokens field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetMaxTokens ¶
func (o *ChatRequest) GetMaxTokens() int32
GetMaxTokens returns the MaxTokens field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetMaxTokensOk ¶
func (o *ChatRequest) GetMaxTokensOk() (*int32, bool)
GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetMessages ¶
func (o *ChatRequest) GetMessages() []Message
GetMessages returns the Messages field value if set, zero value otherwise.
func (*ChatRequest) GetMessagesOk ¶
func (o *ChatRequest) GetMessagesOk() ([]Message, bool)
GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ChatRequest) GetModel ¶
func (o *ChatRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*ChatRequest) GetModelOk ¶
func (o *ChatRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ChatRequest) GetN ¶
func (o *ChatRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetNOk ¶
func (o *ChatRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetParallelToolCalls ¶
func (o *ChatRequest) GetParallelToolCalls() bool
GetParallelToolCalls returns the ParallelToolCalls field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetParallelToolCallsOk ¶
func (o *ChatRequest) GetParallelToolCallsOk() (*bool, bool)
GetParallelToolCallsOk returns a tuple with the ParallelToolCalls field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetPresencePenalty ¶
func (o *ChatRequest) GetPresencePenalty() float32
GetPresencePenalty returns the PresencePenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetPresencePenaltyOk ¶
func (o *ChatRequest) GetPresencePenaltyOk() (*float32, bool)
GetPresencePenaltyOk returns a tuple with the PresencePenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetReasoningEffort ¶
func (o *ChatRequest) GetReasoningEffort() string
GetReasoningEffort returns the ReasoningEffort field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetReasoningEffortOk ¶
func (o *ChatRequest) GetReasoningEffortOk() (*string, bool)
GetReasoningEffortOk returns a tuple with the ReasoningEffort field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetResponseFormat ¶
func (o *ChatRequest) GetResponseFormat() ResponseFormat
GetResponseFormat returns the ResponseFormat field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetResponseFormatOk ¶
func (o *ChatRequest) GetResponseFormatOk() (*ResponseFormat, bool)
GetResponseFormatOk returns a tuple with the ResponseFormat field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetSearchParameters ¶
func (o *ChatRequest) GetSearchParameters() SearchParameters
GetSearchParameters returns the SearchParameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetSearchParametersOk ¶
func (o *ChatRequest) GetSearchParametersOk() (*SearchParameters, bool)
GetSearchParametersOk returns a tuple with the SearchParameters field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetSeed ¶
func (o *ChatRequest) GetSeed() int32
GetSeed returns the Seed field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetSeedOk ¶
func (o *ChatRequest) GetSeedOk() (*int32, bool)
GetSeedOk returns a tuple with the Seed field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetStop ¶
func (o *ChatRequest) GetStop() []string
GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetStopOk ¶
func (o *ChatRequest) GetStopOk() ([]string, bool)
GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetStream ¶
func (o *ChatRequest) GetStream() bool
GetStream returns the Stream field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetStreamOk ¶
func (o *ChatRequest) GetStreamOk() (*bool, bool)
GetStreamOk returns a tuple with the Stream field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetStreamOptions ¶
func (o *ChatRequest) GetStreamOptions() StreamOptions
GetStreamOptions returns the StreamOptions field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetStreamOptionsOk ¶
func (o *ChatRequest) GetStreamOptionsOk() (*StreamOptions, bool)
GetStreamOptionsOk returns a tuple with the StreamOptions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetTemperature ¶
func (o *ChatRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetTemperatureOk ¶
func (o *ChatRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetToolChoice ¶
func (o *ChatRequest) GetToolChoice() ToolChoice
GetToolChoice returns the ToolChoice field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetToolChoiceOk ¶
func (o *ChatRequest) GetToolChoiceOk() (*ToolChoice, bool)
GetToolChoiceOk returns a tuple with the ToolChoice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetTools ¶
func (o *ChatRequest) GetTools() []Tool
GetTools returns the Tools field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetToolsOk ¶
func (o *ChatRequest) GetToolsOk() ([]Tool, bool)
GetToolsOk returns a tuple with the Tools field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetTopLogprobs ¶
func (o *ChatRequest) GetTopLogprobs() int32
GetTopLogprobs returns the TopLogprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetTopLogprobsOk ¶
func (o *ChatRequest) GetTopLogprobsOk() (*int32, bool)
GetTopLogprobsOk returns a tuple with the TopLogprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetTopP ¶
func (o *ChatRequest) GetTopP() float32
GetTopP returns the TopP field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetTopPOk ¶
func (o *ChatRequest) GetTopPOk() (*float32, bool)
GetTopPOk returns a tuple with the TopP field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetUser ¶
func (o *ChatRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetUserOk ¶
func (o *ChatRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) GetWebSearchOptions ¶
func (o *ChatRequest) GetWebSearchOptions() WebSearchOptions
GetWebSearchOptions returns the WebSearchOptions field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatRequest) GetWebSearchOptionsOk ¶
func (o *ChatRequest) GetWebSearchOptionsOk() (*WebSearchOptions, bool)
GetWebSearchOptionsOk returns a tuple with the WebSearchOptions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatRequest) HasDeferred ¶
func (o *ChatRequest) HasDeferred() bool
HasDeferred returns a boolean if a field has been set.
func (*ChatRequest) HasFrequencyPenalty ¶
func (o *ChatRequest) HasFrequencyPenalty() bool
HasFrequencyPenalty returns a boolean if a field has been set.
func (*ChatRequest) HasLogitBias ¶
func (o *ChatRequest) HasLogitBias() bool
HasLogitBias returns a boolean if a field has been set.
func (*ChatRequest) HasLogprobs ¶
func (o *ChatRequest) HasLogprobs() bool
HasLogprobs returns a boolean if a field has been set.
func (*ChatRequest) HasMaxCompletionTokens ¶
func (o *ChatRequest) HasMaxCompletionTokens() bool
HasMaxCompletionTokens returns a boolean if a field has been set.
func (*ChatRequest) HasMaxTokens ¶
func (o *ChatRequest) HasMaxTokens() bool
HasMaxTokens returns a boolean if a field has been set.
func (*ChatRequest) HasMessages ¶
func (o *ChatRequest) HasMessages() bool
HasMessages returns a boolean if a field has been set.
func (*ChatRequest) HasModel ¶
func (o *ChatRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*ChatRequest) HasN ¶
func (o *ChatRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*ChatRequest) HasParallelToolCalls ¶
func (o *ChatRequest) HasParallelToolCalls() bool
HasParallelToolCalls returns a boolean if a field has been set.
func (*ChatRequest) HasPresencePenalty ¶
func (o *ChatRequest) HasPresencePenalty() bool
HasPresencePenalty returns a boolean if a field has been set.
func (*ChatRequest) HasReasoningEffort ¶
func (o *ChatRequest) HasReasoningEffort() bool
HasReasoningEffort returns a boolean if a field has been set.
func (*ChatRequest) HasResponseFormat ¶
func (o *ChatRequest) HasResponseFormat() bool
HasResponseFormat returns a boolean if a field has been set.
func (*ChatRequest) HasSearchParameters ¶
func (o *ChatRequest) HasSearchParameters() bool
HasSearchParameters returns a boolean if a field has been set.
func (*ChatRequest) HasSeed ¶
func (o *ChatRequest) HasSeed() bool
HasSeed returns a boolean if a field has been set.
func (*ChatRequest) HasStop ¶
func (o *ChatRequest) HasStop() bool
HasStop returns a boolean if a field has been set.
func (*ChatRequest) HasStream ¶
func (o *ChatRequest) HasStream() bool
HasStream returns a boolean if a field has been set.
func (*ChatRequest) HasStreamOptions ¶
func (o *ChatRequest) HasStreamOptions() bool
HasStreamOptions returns a boolean if a field has been set.
func (*ChatRequest) HasTemperature ¶
func (o *ChatRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*ChatRequest) HasToolChoice ¶
func (o *ChatRequest) HasToolChoice() bool
HasToolChoice returns a boolean if a field has been set.
func (*ChatRequest) HasTools ¶
func (o *ChatRequest) HasTools() bool
HasTools returns a boolean if a field has been set.
func (*ChatRequest) HasTopLogprobs ¶
func (o *ChatRequest) HasTopLogprobs() bool
HasTopLogprobs returns a boolean if a field has been set.
func (*ChatRequest) HasTopP ¶
func (o *ChatRequest) HasTopP() bool
HasTopP returns a boolean if a field has been set.
func (*ChatRequest) HasUser ¶
func (o *ChatRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (*ChatRequest) HasWebSearchOptions ¶
func (o *ChatRequest) HasWebSearchOptions() bool
HasWebSearchOptions returns a boolean if a field has been set.
func (ChatRequest) MarshalJSON ¶
func (o ChatRequest) MarshalJSON() ([]byte, error)
func (*ChatRequest) SetDeferred ¶
func (o *ChatRequest) SetDeferred(v bool)
SetDeferred gets a reference to the given NullableBool and assigns it to the Deferred field.
func (*ChatRequest) SetDeferredNil ¶
func (o *ChatRequest) SetDeferredNil()
SetDeferredNil sets the value for Deferred to be an explicit nil
func (*ChatRequest) SetFrequencyPenalty ¶
func (o *ChatRequest) SetFrequencyPenalty(v float32)
SetFrequencyPenalty gets a reference to the given NullableFloat32 and assigns it to the FrequencyPenalty field.
func (*ChatRequest) SetFrequencyPenaltyNil ¶
func (o *ChatRequest) SetFrequencyPenaltyNil()
SetFrequencyPenaltyNil sets the value for FrequencyPenalty to be an explicit nil
func (*ChatRequest) SetLogitBias ¶
func (o *ChatRequest) SetLogitBias(v map[string]float32)
SetLogitBias gets a reference to the given map[string]float32 and assigns it to the LogitBias field.
func (*ChatRequest) SetLogprobs ¶
func (o *ChatRequest) SetLogprobs(v bool)
SetLogprobs gets a reference to the given NullableBool and assigns it to the Logprobs field.
func (*ChatRequest) SetLogprobsNil ¶
func (o *ChatRequest) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (*ChatRequest) SetMaxCompletionTokens ¶
func (o *ChatRequest) SetMaxCompletionTokens(v int32)
SetMaxCompletionTokens gets a reference to the given NullableInt32 and assigns it to the MaxCompletionTokens field.
func (*ChatRequest) SetMaxCompletionTokensNil ¶
func (o *ChatRequest) SetMaxCompletionTokensNil()
SetMaxCompletionTokensNil sets the value for MaxCompletionTokens to be an explicit nil
func (*ChatRequest) SetMaxTokens ¶
func (o *ChatRequest) SetMaxTokens(v int32)
SetMaxTokens gets a reference to the given NullableInt32 and assigns it to the MaxTokens field.
func (*ChatRequest) SetMaxTokensNil ¶
func (o *ChatRequest) SetMaxTokensNil()
SetMaxTokensNil sets the value for MaxTokens to be an explicit nil
func (*ChatRequest) SetMessages ¶
func (o *ChatRequest) SetMessages(v []Message)
SetMessages gets a reference to the given []Message and assigns it to the Messages field.
func (*ChatRequest) SetModel ¶
func (o *ChatRequest) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*ChatRequest) SetN ¶
func (o *ChatRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*ChatRequest) SetNNil ¶
func (o *ChatRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*ChatRequest) SetParallelToolCalls ¶
func (o *ChatRequest) SetParallelToolCalls(v bool)
SetParallelToolCalls gets a reference to the given NullableBool and assigns it to the ParallelToolCalls field.
func (*ChatRequest) SetParallelToolCallsNil ¶
func (o *ChatRequest) SetParallelToolCallsNil()
SetParallelToolCallsNil sets the value for ParallelToolCalls to be an explicit nil
func (*ChatRequest) SetPresencePenalty ¶
func (o *ChatRequest) SetPresencePenalty(v float32)
SetPresencePenalty gets a reference to the given NullableFloat32 and assigns it to the PresencePenalty field.
func (*ChatRequest) SetPresencePenaltyNil ¶
func (o *ChatRequest) SetPresencePenaltyNil()
SetPresencePenaltyNil sets the value for PresencePenalty to be an explicit nil
func (*ChatRequest) SetReasoningEffort ¶
func (o *ChatRequest) SetReasoningEffort(v string)
SetReasoningEffort gets a reference to the given NullableString and assigns it to the ReasoningEffort field.
func (*ChatRequest) SetReasoningEffortNil ¶
func (o *ChatRequest) SetReasoningEffortNil()
SetReasoningEffortNil sets the value for ReasoningEffort to be an explicit nil
func (*ChatRequest) SetResponseFormat ¶
func (o *ChatRequest) SetResponseFormat(v ResponseFormat)
SetResponseFormat gets a reference to the given NullableResponseFormat and assigns it to the ResponseFormat field.
func (*ChatRequest) SetResponseFormatNil ¶
func (o *ChatRequest) SetResponseFormatNil()
SetResponseFormatNil sets the value for ResponseFormat to be an explicit nil
func (*ChatRequest) SetSearchParameters ¶
func (o *ChatRequest) SetSearchParameters(v SearchParameters)
SetSearchParameters gets a reference to the given NullableSearchParameters and assigns it to the SearchParameters field.
func (*ChatRequest) SetSearchParametersNil ¶
func (o *ChatRequest) SetSearchParametersNil()
SetSearchParametersNil sets the value for SearchParameters to be an explicit nil
func (*ChatRequest) SetSeed ¶
func (o *ChatRequest) SetSeed(v int32)
SetSeed gets a reference to the given NullableInt32 and assigns it to the Seed field.
func (*ChatRequest) SetSeedNil ¶
func (o *ChatRequest) SetSeedNil()
SetSeedNil sets the value for Seed to be an explicit nil
func (*ChatRequest) SetStop ¶
func (o *ChatRequest) SetStop(v []string)
SetStop gets a reference to the given []string and assigns it to the Stop field.
func (*ChatRequest) SetStream ¶
func (o *ChatRequest) SetStream(v bool)
SetStream gets a reference to the given NullableBool and assigns it to the Stream field.
func (*ChatRequest) SetStreamNil ¶
func (o *ChatRequest) SetStreamNil()
SetStreamNil sets the value for Stream to be an explicit nil
func (*ChatRequest) SetStreamOptions ¶
func (o *ChatRequest) SetStreamOptions(v StreamOptions)
SetStreamOptions gets a reference to the given NullableStreamOptions and assigns it to the StreamOptions field.
func (*ChatRequest) SetStreamOptionsNil ¶
func (o *ChatRequest) SetStreamOptionsNil()
SetStreamOptionsNil sets the value for StreamOptions to be an explicit nil
func (*ChatRequest) SetTemperature ¶
func (o *ChatRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*ChatRequest) SetTemperatureNil ¶
func (o *ChatRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*ChatRequest) SetToolChoice ¶
func (o *ChatRequest) SetToolChoice(v ToolChoice)
SetToolChoice gets a reference to the given NullableToolChoice and assigns it to the ToolChoice field.
func (*ChatRequest) SetToolChoiceNil ¶
func (o *ChatRequest) SetToolChoiceNil()
SetToolChoiceNil sets the value for ToolChoice to be an explicit nil
func (*ChatRequest) SetTools ¶
func (o *ChatRequest) SetTools(v []Tool)
SetTools gets a reference to the given []Tool and assigns it to the Tools field.
func (*ChatRequest) SetTopLogprobs ¶
func (o *ChatRequest) SetTopLogprobs(v int32)
SetTopLogprobs gets a reference to the given NullableInt32 and assigns it to the TopLogprobs field.
func (*ChatRequest) SetTopLogprobsNil ¶
func (o *ChatRequest) SetTopLogprobsNil()
SetTopLogprobsNil sets the value for TopLogprobs to be an explicit nil
func (*ChatRequest) SetTopP ¶
func (o *ChatRequest) SetTopP(v float32)
SetTopP gets a reference to the given NullableFloat32 and assigns it to the TopP field.
func (*ChatRequest) SetTopPNil ¶
func (o *ChatRequest) SetTopPNil()
SetTopPNil sets the value for TopP to be an explicit nil
func (*ChatRequest) SetUser ¶
func (o *ChatRequest) SetUser(v string)
SetUser gets a reference to the given NullableString and assigns it to the User field.
func (*ChatRequest) SetUserNil ¶
func (o *ChatRequest) SetUserNil()
SetUserNil sets the value for User to be an explicit nil
func (*ChatRequest) SetWebSearchOptions ¶
func (o *ChatRequest) SetWebSearchOptions(v WebSearchOptions)
SetWebSearchOptions gets a reference to the given NullableWebSearchOptions and assigns it to the WebSearchOptions field.
func (*ChatRequest) SetWebSearchOptionsNil ¶
func (o *ChatRequest) SetWebSearchOptionsNil()
SetWebSearchOptionsNil sets the value for WebSearchOptions to be an explicit nil
func (ChatRequest) ToMap ¶
func (o ChatRequest) ToMap() (map[string]interface{}, error)
func (*ChatRequest) UnmarshalJSON ¶
func (o *ChatRequest) UnmarshalJSON(data []byte) (err error)
func (*ChatRequest) UnsetDeferred ¶
func (o *ChatRequest) UnsetDeferred()
UnsetDeferred ensures that no value is present for Deferred, not even an explicit nil
func (*ChatRequest) UnsetFrequencyPenalty ¶
func (o *ChatRequest) UnsetFrequencyPenalty()
UnsetFrequencyPenalty ensures that no value is present for FrequencyPenalty, not even an explicit nil
func (*ChatRequest) UnsetLogprobs ¶
func (o *ChatRequest) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
func (*ChatRequest) UnsetMaxCompletionTokens ¶
func (o *ChatRequest) UnsetMaxCompletionTokens()
UnsetMaxCompletionTokens ensures that no value is present for MaxCompletionTokens, not even an explicit nil
func (*ChatRequest) UnsetMaxTokens ¶
func (o *ChatRequest) UnsetMaxTokens()
UnsetMaxTokens ensures that no value is present for MaxTokens, not even an explicit nil
func (*ChatRequest) UnsetN ¶
func (o *ChatRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*ChatRequest) UnsetParallelToolCalls ¶
func (o *ChatRequest) UnsetParallelToolCalls()
UnsetParallelToolCalls ensures that no value is present for ParallelToolCalls, not even an explicit nil
func (*ChatRequest) UnsetPresencePenalty ¶
func (o *ChatRequest) UnsetPresencePenalty()
UnsetPresencePenalty ensures that no value is present for PresencePenalty, not even an explicit nil
func (*ChatRequest) UnsetReasoningEffort ¶
func (o *ChatRequest) UnsetReasoningEffort()
UnsetReasoningEffort ensures that no value is present for ReasoningEffort, not even an explicit nil
func (*ChatRequest) UnsetResponseFormat ¶
func (o *ChatRequest) UnsetResponseFormat()
UnsetResponseFormat ensures that no value is present for ResponseFormat, not even an explicit nil
func (*ChatRequest) UnsetSearchParameters ¶
func (o *ChatRequest) UnsetSearchParameters()
UnsetSearchParameters ensures that no value is present for SearchParameters, not even an explicit nil
func (*ChatRequest) UnsetSeed ¶
func (o *ChatRequest) UnsetSeed()
UnsetSeed ensures that no value is present for Seed, not even an explicit nil
func (*ChatRequest) UnsetStream ¶
func (o *ChatRequest) UnsetStream()
UnsetStream ensures that no value is present for Stream, not even an explicit nil
func (*ChatRequest) UnsetStreamOptions ¶
func (o *ChatRequest) UnsetStreamOptions()
UnsetStreamOptions ensures that no value is present for StreamOptions, not even an explicit nil
func (*ChatRequest) UnsetTemperature ¶
func (o *ChatRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
func (*ChatRequest) UnsetToolChoice ¶
func (o *ChatRequest) UnsetToolChoice()
UnsetToolChoice ensures that no value is present for ToolChoice, not even an explicit nil
func (*ChatRequest) UnsetTopLogprobs ¶
func (o *ChatRequest) UnsetTopLogprobs()
UnsetTopLogprobs ensures that no value is present for TopLogprobs, not even an explicit nil
func (*ChatRequest) UnsetTopP ¶
func (o *ChatRequest) UnsetTopP()
UnsetTopP ensures that no value is present for TopP, not even an explicit nil
func (*ChatRequest) UnsetUser ¶
func (o *ChatRequest) UnsetUser()
UnsetUser ensures that no value is present for User, not even an explicit nil
func (*ChatRequest) UnsetWebSearchOptions ¶
func (o *ChatRequest) UnsetWebSearchOptions()
UnsetWebSearchOptions ensures that no value is present for WebSearchOptions, not even an explicit nil
type ChatResponse ¶
type ChatResponse struct {
// A list of response choices from the model. The length corresponds to the `n` in request body (default to 1).
Choices []Choice `json:"choices"`
// List of all the external pages used by the model to answer.
Citations []string `json:"citations,omitempty"`
// The chat completion creation time in Unix timestamp.
Created int64 `json:"created"`
// Debug output. Only available to trusted testers.
DebugOutput NullableDebugOutput `json:"debug_output,omitempty"`
// A unique ID for the chat response.
Id string `json:"id"`
// Model ID used to create chat completion.
Model string `json:"model"`
// The object type, which is always `\"chat.completion\"`.
Object string `json:"object"`
// System fingerprint, used to indicate xAI system configuration changes.
SystemFingerprint NullableString `json:"system_fingerprint,omitempty"`
// Token usage information.
Usage NullableUsage `json:"usage,omitempty"`
AdditionalProperties map[string]interface{}
}
ChatResponse The chat response body for `/v1/chat/completions` endpoint.
func NewChatResponse ¶
func NewChatResponse(choices []Choice, created int64, id string, model string, object string) *ChatResponse
NewChatResponse instantiates a new ChatResponse 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
func NewChatResponseWithDefaults ¶
func NewChatResponseWithDefaults() *ChatResponse
NewChatResponseWithDefaults instantiates a new ChatResponse 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
func (*ChatResponse) GetChoices ¶
func (o *ChatResponse) GetChoices() []Choice
GetChoices returns the Choices field value
func (*ChatResponse) GetChoicesOk ¶
func (o *ChatResponse) GetChoicesOk() ([]Choice, bool)
GetChoicesOk returns a tuple with the Choices field value and a boolean to check if the value has been set.
func (*ChatResponse) GetCitations ¶
func (o *ChatResponse) GetCitations() []string
GetCitations returns the Citations field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponse) GetCitationsOk ¶
func (o *ChatResponse) GetCitationsOk() ([]string, bool)
GetCitationsOk returns a tuple with the Citations field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponse) GetCreated ¶
func (o *ChatResponse) GetCreated() int64
GetCreated returns the Created field value
func (*ChatResponse) GetCreatedOk ¶
func (o *ChatResponse) GetCreatedOk() (*int64, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*ChatResponse) GetDebugOutput ¶
func (o *ChatResponse) GetDebugOutput() DebugOutput
GetDebugOutput returns the DebugOutput field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponse) GetDebugOutputOk ¶
func (o *ChatResponse) GetDebugOutputOk() (*DebugOutput, bool)
GetDebugOutputOk returns a tuple with the DebugOutput field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponse) GetIdOk ¶
func (o *ChatResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ChatResponse) GetModel ¶
func (o *ChatResponse) GetModel() string
GetModel returns the Model field value
func (*ChatResponse) GetModelOk ¶
func (o *ChatResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*ChatResponse) GetObject ¶
func (o *ChatResponse) GetObject() string
GetObject returns the Object field value
func (*ChatResponse) GetObjectOk ¶
func (o *ChatResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*ChatResponse) GetSystemFingerprint ¶
func (o *ChatResponse) GetSystemFingerprint() string
GetSystemFingerprint returns the SystemFingerprint field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponse) GetSystemFingerprintOk ¶
func (o *ChatResponse) GetSystemFingerprintOk() (*string, bool)
GetSystemFingerprintOk returns a tuple with the SystemFingerprint field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponse) GetUsage ¶
func (o *ChatResponse) GetUsage() Usage
GetUsage returns the Usage field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponse) GetUsageOk ¶
func (o *ChatResponse) GetUsageOk() (*Usage, bool)
GetUsageOk returns a tuple with the Usage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponse) HasCitations ¶
func (o *ChatResponse) HasCitations() bool
HasCitations returns a boolean if a field has been set.
func (*ChatResponse) HasDebugOutput ¶
func (o *ChatResponse) HasDebugOutput() bool
HasDebugOutput returns a boolean if a field has been set.
func (*ChatResponse) HasSystemFingerprint ¶
func (o *ChatResponse) HasSystemFingerprint() bool
HasSystemFingerprint returns a boolean if a field has been set.
func (*ChatResponse) HasUsage ¶
func (o *ChatResponse) HasUsage() bool
HasUsage returns a boolean if a field has been set.
func (ChatResponse) MarshalJSON ¶
func (o ChatResponse) MarshalJSON() ([]byte, error)
func (*ChatResponse) SetChoices ¶
func (o *ChatResponse) SetChoices(v []Choice)
SetChoices sets field value
func (*ChatResponse) SetCitations ¶
func (o *ChatResponse) SetCitations(v []string)
SetCitations gets a reference to the given []string and assigns it to the Citations field.
func (*ChatResponse) SetCreated ¶
func (o *ChatResponse) SetCreated(v int64)
SetCreated sets field value
func (*ChatResponse) SetDebugOutput ¶
func (o *ChatResponse) SetDebugOutput(v DebugOutput)
SetDebugOutput gets a reference to the given NullableDebugOutput and assigns it to the DebugOutput field.
func (*ChatResponse) SetDebugOutputNil ¶
func (o *ChatResponse) SetDebugOutputNil()
SetDebugOutputNil sets the value for DebugOutput to be an explicit nil
func (*ChatResponse) SetObject ¶
func (o *ChatResponse) SetObject(v string)
SetObject sets field value
func (*ChatResponse) SetSystemFingerprint ¶
func (o *ChatResponse) SetSystemFingerprint(v string)
SetSystemFingerprint gets a reference to the given NullableString and assigns it to the SystemFingerprint field.
func (*ChatResponse) SetSystemFingerprintNil ¶
func (o *ChatResponse) SetSystemFingerprintNil()
SetSystemFingerprintNil sets the value for SystemFingerprint to be an explicit nil
func (*ChatResponse) SetUsage ¶
func (o *ChatResponse) SetUsage(v Usage)
SetUsage gets a reference to the given NullableUsage and assigns it to the Usage field.
func (*ChatResponse) SetUsageNil ¶
func (o *ChatResponse) SetUsageNil()
SetUsageNil sets the value for Usage to be an explicit nil
func (ChatResponse) ToMap ¶
func (o ChatResponse) ToMap() (map[string]interface{}, error)
func (*ChatResponse) UnmarshalJSON ¶
func (o *ChatResponse) UnmarshalJSON(data []byte) (err error)
func (*ChatResponse) UnsetDebugOutput ¶
func (o *ChatResponse) UnsetDebugOutput()
UnsetDebugOutput ensures that no value is present for DebugOutput, not even an explicit nil
func (*ChatResponse) UnsetSystemFingerprint ¶
func (o *ChatResponse) UnsetSystemFingerprint()
UnsetSystemFingerprint ensures that no value is present for SystemFingerprint, not even an explicit nil
func (*ChatResponse) UnsetUsage ¶
func (o *ChatResponse) UnsetUsage()
UnsetUsage ensures that no value is present for Usage, not even an explicit nil
type ChatResponseChunk ¶
type ChatResponseChunk struct {
// A list of response choices from the model. The length corresponds to the `n` in request body (default to 1).
Choices []ChoiceChunk `json:"choices"`
// List of all the external pages used by the model to answer. Only populated for the last chunk.
Citations []string `json:"citations,omitempty"`
// The chat completion creation time in Unix timestamp.
Created int64 `json:"created"`
// Debug output. Only available to trusted testers.
DebugOutput NullableDebugOutput `json:"debug_output,omitempty"`
// A unique ID for the chat response chunk.
Id string `json:"id"`
// The model ID used to create chat completion.
Model string `json:"model"`
// The object type, which is always `\"chat.completion.chunk\"`.
Object string `json:"object"`
// System fingerprint, used to indicate xAI system configuration changes.
SystemFingerprint NullableString `json:"system_fingerprint,omitempty"`
// Token usage information.
Usage NullableUsage `json:"usage,omitempty"`
AdditionalProperties map[string]interface{}
}
ChatResponseChunk struct for ChatResponseChunk
func NewChatResponseChunk ¶
func NewChatResponseChunk(choices []ChoiceChunk, created int64, id string, model string, object string) *ChatResponseChunk
NewChatResponseChunk instantiates a new ChatResponseChunk 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
func NewChatResponseChunkWithDefaults ¶
func NewChatResponseChunkWithDefaults() *ChatResponseChunk
NewChatResponseChunkWithDefaults instantiates a new ChatResponseChunk 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
func (*ChatResponseChunk) GetChoices ¶
func (o *ChatResponseChunk) GetChoices() []ChoiceChunk
GetChoices returns the Choices field value
func (*ChatResponseChunk) GetChoicesOk ¶
func (o *ChatResponseChunk) GetChoicesOk() ([]ChoiceChunk, bool)
GetChoicesOk returns a tuple with the Choices field value and a boolean to check if the value has been set.
func (*ChatResponseChunk) GetCitations ¶
func (o *ChatResponseChunk) GetCitations() []string
GetCitations returns the Citations field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponseChunk) GetCitationsOk ¶
func (o *ChatResponseChunk) GetCitationsOk() ([]string, bool)
GetCitationsOk returns a tuple with the Citations field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponseChunk) GetCreated ¶
func (o *ChatResponseChunk) GetCreated() int64
GetCreated returns the Created field value
func (*ChatResponseChunk) GetCreatedOk ¶
func (o *ChatResponseChunk) GetCreatedOk() (*int64, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*ChatResponseChunk) GetDebugOutput ¶
func (o *ChatResponseChunk) GetDebugOutput() DebugOutput
GetDebugOutput returns the DebugOutput field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponseChunk) GetDebugOutputOk ¶
func (o *ChatResponseChunk) GetDebugOutputOk() (*DebugOutput, bool)
GetDebugOutputOk returns a tuple with the DebugOutput field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponseChunk) GetId ¶
func (o *ChatResponseChunk) GetId() string
GetId returns the Id field value
func (*ChatResponseChunk) GetIdOk ¶
func (o *ChatResponseChunk) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ChatResponseChunk) GetModel ¶
func (o *ChatResponseChunk) GetModel() string
GetModel returns the Model field value
func (*ChatResponseChunk) GetModelOk ¶
func (o *ChatResponseChunk) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*ChatResponseChunk) GetObject ¶
func (o *ChatResponseChunk) GetObject() string
GetObject returns the Object field value
func (*ChatResponseChunk) GetObjectOk ¶
func (o *ChatResponseChunk) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*ChatResponseChunk) GetSystemFingerprint ¶
func (o *ChatResponseChunk) GetSystemFingerprint() string
GetSystemFingerprint returns the SystemFingerprint field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponseChunk) GetSystemFingerprintOk ¶
func (o *ChatResponseChunk) GetSystemFingerprintOk() (*string, bool)
GetSystemFingerprintOk returns a tuple with the SystemFingerprint field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponseChunk) GetUsage ¶
func (o *ChatResponseChunk) GetUsage() Usage
GetUsage returns the Usage field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChatResponseChunk) GetUsageOk ¶
func (o *ChatResponseChunk) GetUsageOk() (*Usage, bool)
GetUsageOk returns a tuple with the Usage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChatResponseChunk) HasCitations ¶
func (o *ChatResponseChunk) HasCitations() bool
HasCitations returns a boolean if a field has been set.
func (*ChatResponseChunk) HasDebugOutput ¶
func (o *ChatResponseChunk) HasDebugOutput() bool
HasDebugOutput returns a boolean if a field has been set.
func (*ChatResponseChunk) HasSystemFingerprint ¶
func (o *ChatResponseChunk) HasSystemFingerprint() bool
HasSystemFingerprint returns a boolean if a field has been set.
func (*ChatResponseChunk) HasUsage ¶
func (o *ChatResponseChunk) HasUsage() bool
HasUsage returns a boolean if a field has been set.
func (ChatResponseChunk) MarshalJSON ¶
func (o ChatResponseChunk) MarshalJSON() ([]byte, error)
func (*ChatResponseChunk) SetChoices ¶
func (o *ChatResponseChunk) SetChoices(v []ChoiceChunk)
SetChoices sets field value
func (*ChatResponseChunk) SetCitations ¶
func (o *ChatResponseChunk) SetCitations(v []string)
SetCitations gets a reference to the given []string and assigns it to the Citations field.
func (*ChatResponseChunk) SetCreated ¶
func (o *ChatResponseChunk) SetCreated(v int64)
SetCreated sets field value
func (*ChatResponseChunk) SetDebugOutput ¶
func (o *ChatResponseChunk) SetDebugOutput(v DebugOutput)
SetDebugOutput gets a reference to the given NullableDebugOutput and assigns it to the DebugOutput field.
func (*ChatResponseChunk) SetDebugOutputNil ¶
func (o *ChatResponseChunk) SetDebugOutputNil()
SetDebugOutputNil sets the value for DebugOutput to be an explicit nil
func (*ChatResponseChunk) SetId ¶
func (o *ChatResponseChunk) SetId(v string)
SetId sets field value
func (*ChatResponseChunk) SetModel ¶
func (o *ChatResponseChunk) SetModel(v string)
SetModel sets field value
func (*ChatResponseChunk) SetObject ¶
func (o *ChatResponseChunk) SetObject(v string)
SetObject sets field value
func (*ChatResponseChunk) SetSystemFingerprint ¶
func (o *ChatResponseChunk) SetSystemFingerprint(v string)
SetSystemFingerprint gets a reference to the given NullableString and assigns it to the SystemFingerprint field.
func (*ChatResponseChunk) SetSystemFingerprintNil ¶
func (o *ChatResponseChunk) SetSystemFingerprintNil()
SetSystemFingerprintNil sets the value for SystemFingerprint to be an explicit nil
func (*ChatResponseChunk) SetUsage ¶
func (o *ChatResponseChunk) SetUsage(v Usage)
SetUsage gets a reference to the given NullableUsage and assigns it to the Usage field.
func (*ChatResponseChunk) SetUsageNil ¶
func (o *ChatResponseChunk) SetUsageNil()
SetUsageNil sets the value for Usage to be an explicit nil
func (ChatResponseChunk) ToMap ¶
func (o ChatResponseChunk) ToMap() (map[string]interface{}, error)
func (*ChatResponseChunk) UnmarshalJSON ¶
func (o *ChatResponseChunk) UnmarshalJSON(data []byte) (err error)
func (*ChatResponseChunk) UnsetDebugOutput ¶
func (o *ChatResponseChunk) UnsetDebugOutput()
UnsetDebugOutput ensures that no value is present for DebugOutput, not even an explicit nil
func (*ChatResponseChunk) UnsetSystemFingerprint ¶
func (o *ChatResponseChunk) UnsetSystemFingerprint()
UnsetSystemFingerprint ensures that no value is present for SystemFingerprint, not even an explicit nil
func (*ChatResponseChunk) UnsetUsage ¶
func (o *ChatResponseChunk) UnsetUsage()
UnsetUsage ensures that no value is present for Usage, not even an explicit nil
type Choice ¶
type Choice struct {
// Finish reason. `\"stop\"` means the inference has reached a model-defined or user-supplied stop sequence in `stop`. `\"length\"` means the inference result has reached models' maximum allowed token length or user defined value in `max_tokens`. `\"end_turn\"` or `null` in streaming mode when the chunk is not the last.
FinishReason NullableString `json:"finish_reason,omitempty"`
// Index of the choice within the response choices, starting from 0.
Index int32 `json:"index"`
// The log probabilities of each output token returned in the content of message.
Logprobs NullableLogProbs `json:"logprobs,omitempty"`
// The generated chat completion message.
Message ChoiceMessage `json:"message"`
AdditionalProperties map[string]interface{}
}
Choice struct for Choice
func NewChoice ¶
func NewChoice(index int32, message ChoiceMessage) *Choice
NewChoice instantiates a new Choice 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
func NewChoiceWithDefaults ¶
func NewChoiceWithDefaults() *Choice
NewChoiceWithDefaults instantiates a new Choice 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
func (*Choice) GetFinishReason ¶
GetFinishReason returns the FinishReason field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Choice) GetFinishReasonOk ¶
GetFinishReasonOk returns a tuple with the FinishReason field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Choice) GetIndexOk ¶
GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.
func (*Choice) GetLogprobs ¶
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Choice) GetLogprobsOk ¶
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Choice) GetMessage ¶
func (o *Choice) GetMessage() ChoiceMessage
GetMessage returns the Message field value
func (*Choice) GetMessageOk ¶
func (o *Choice) GetMessageOk() (*ChoiceMessage, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*Choice) HasFinishReason ¶
HasFinishReason returns a boolean if a field has been set.
func (*Choice) HasLogprobs ¶
HasLogprobs returns a boolean if a field has been set.
func (Choice) MarshalJSON ¶
func (*Choice) SetFinishReason ¶
SetFinishReason gets a reference to the given NullableString and assigns it to the FinishReason field.
func (*Choice) SetFinishReasonNil ¶
func (o *Choice) SetFinishReasonNil()
SetFinishReasonNil sets the value for FinishReason to be an explicit nil
func (*Choice) SetLogprobs ¶
SetLogprobs gets a reference to the given NullableLogProbs and assigns it to the Logprobs field.
func (*Choice) SetLogprobsNil ¶
func (o *Choice) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (*Choice) SetMessage ¶
func (o *Choice) SetMessage(v ChoiceMessage)
SetMessage sets field value
func (*Choice) UnmarshalJSON ¶
func (*Choice) UnsetFinishReason ¶
func (o *Choice) UnsetFinishReason()
UnsetFinishReason ensures that no value is present for FinishReason, not even an explicit nil
func (*Choice) UnsetLogprobs ¶
func (o *Choice) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
type ChoiceChunk ¶
type ChoiceChunk struct {
// Additional difference (delta) of the result.
Delta Delta `json:"delta"`
// Finish reason. `\"stop\"` means the inference has reached a model-defined or user-supplied stop sequence in `stop`. `\"length\"` means the inference result has reached models' maximum allowed token length or user defined value in `max_tokens`. `\"end_turn\"` or `null` in streaming mode when the chunk is not the last.
FinishReason NullableString `json:"finish_reason,omitempty"`
// Index of the choice.
Index int32 `json:"index"`
// The log probabilities of each output token returned in the content of message.
Logprobs NullableLogProbs `json:"logprobs,omitempty"`
AdditionalProperties map[string]interface{}
}
ChoiceChunk struct for ChoiceChunk
func NewChoiceChunk ¶
func NewChoiceChunk(delta Delta, index int32) *ChoiceChunk
NewChoiceChunk instantiates a new ChoiceChunk 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
func NewChoiceChunkWithDefaults ¶
func NewChoiceChunkWithDefaults() *ChoiceChunk
NewChoiceChunkWithDefaults instantiates a new ChoiceChunk 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
func (*ChoiceChunk) GetDelta ¶
func (o *ChoiceChunk) GetDelta() Delta
GetDelta returns the Delta field value
func (*ChoiceChunk) GetDeltaOk ¶
func (o *ChoiceChunk) GetDeltaOk() (*Delta, bool)
GetDeltaOk returns a tuple with the Delta field value and a boolean to check if the value has been set.
func (*ChoiceChunk) GetFinishReason ¶
func (o *ChoiceChunk) GetFinishReason() string
GetFinishReason returns the FinishReason field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChoiceChunk) GetFinishReasonOk ¶
func (o *ChoiceChunk) GetFinishReasonOk() (*string, bool)
GetFinishReasonOk returns a tuple with the FinishReason field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChoiceChunk) GetIndex ¶
func (o *ChoiceChunk) GetIndex() int32
GetIndex returns the Index field value
func (*ChoiceChunk) GetIndexOk ¶
func (o *ChoiceChunk) GetIndexOk() (*int32, bool)
GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.
func (*ChoiceChunk) GetLogprobs ¶
func (o *ChoiceChunk) GetLogprobs() LogProbs
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChoiceChunk) GetLogprobsOk ¶
func (o *ChoiceChunk) GetLogprobsOk() (*LogProbs, bool)
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChoiceChunk) HasFinishReason ¶
func (o *ChoiceChunk) HasFinishReason() bool
HasFinishReason returns a boolean if a field has been set.
func (*ChoiceChunk) HasLogprobs ¶
func (o *ChoiceChunk) HasLogprobs() bool
HasLogprobs returns a boolean if a field has been set.
func (ChoiceChunk) MarshalJSON ¶
func (o ChoiceChunk) MarshalJSON() ([]byte, error)
func (*ChoiceChunk) SetFinishReason ¶
func (o *ChoiceChunk) SetFinishReason(v string)
SetFinishReason gets a reference to the given NullableString and assigns it to the FinishReason field.
func (*ChoiceChunk) SetFinishReasonNil ¶
func (o *ChoiceChunk) SetFinishReasonNil()
SetFinishReasonNil sets the value for FinishReason to be an explicit nil
func (*ChoiceChunk) SetLogprobs ¶
func (o *ChoiceChunk) SetLogprobs(v LogProbs)
SetLogprobs gets a reference to the given NullableLogProbs and assigns it to the Logprobs field.
func (*ChoiceChunk) SetLogprobsNil ¶
func (o *ChoiceChunk) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (ChoiceChunk) ToMap ¶
func (o ChoiceChunk) ToMap() (map[string]interface{}, error)
func (*ChoiceChunk) UnmarshalJSON ¶
func (o *ChoiceChunk) UnmarshalJSON(data []byte) (err error)
func (*ChoiceChunk) UnsetFinishReason ¶
func (o *ChoiceChunk) UnsetFinishReason()
UnsetFinishReason ensures that no value is present for FinishReason, not even an explicit nil
func (*ChoiceChunk) UnsetLogprobs ¶
func (o *ChoiceChunk) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
type ChoiceMessage ¶
type ChoiceMessage struct {
// The content of the message.
Content NullableString `json:"content,omitempty"`
// The reasoning trace generated by the model.
ReasoningContent NullableString `json:"reasoning_content,omitempty"`
// The reason given by model if the model is unable to generate a response. null if model is able to generate.
Refusal NullableString `json:"refusal,omitempty"`
// The role that the message belongs to, the response from model is always `\"assistant\"`.
Role string `json:"role"`
// A list of tool calls asked by model for user to perform.
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
AdditionalProperties map[string]interface{}
}
ChoiceMessage struct for ChoiceMessage
func NewChoiceMessage ¶
func NewChoiceMessage(role string) *ChoiceMessage
NewChoiceMessage instantiates a new ChoiceMessage 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
func NewChoiceMessageWithDefaults ¶
func NewChoiceMessageWithDefaults() *ChoiceMessage
NewChoiceMessageWithDefaults instantiates a new ChoiceMessage 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
func (*ChoiceMessage) GetContent ¶
func (o *ChoiceMessage) GetContent() string
GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChoiceMessage) GetContentOk ¶
func (o *ChoiceMessage) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChoiceMessage) GetReasoningContent ¶
func (o *ChoiceMessage) GetReasoningContent() string
GetReasoningContent returns the ReasoningContent field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChoiceMessage) GetReasoningContentOk ¶
func (o *ChoiceMessage) GetReasoningContentOk() (*string, bool)
GetReasoningContentOk returns a tuple with the ReasoningContent field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChoiceMessage) GetRefusal ¶
func (o *ChoiceMessage) GetRefusal() string
GetRefusal returns the Refusal field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChoiceMessage) GetRefusalOk ¶
func (o *ChoiceMessage) GetRefusalOk() (*string, bool)
GetRefusalOk returns a tuple with the Refusal field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChoiceMessage) GetRole ¶
func (o *ChoiceMessage) GetRole() string
GetRole returns the Role field value
func (*ChoiceMessage) GetRoleOk ¶
func (o *ChoiceMessage) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*ChoiceMessage) GetToolCalls ¶
func (o *ChoiceMessage) GetToolCalls() []ToolCall
GetToolCalls returns the ToolCalls field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ChoiceMessage) GetToolCallsOk ¶
func (o *ChoiceMessage) GetToolCallsOk() ([]ToolCall, bool)
GetToolCallsOk returns a tuple with the ToolCalls field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ChoiceMessage) HasContent ¶
func (o *ChoiceMessage) HasContent() bool
HasContent returns a boolean if a field has been set.
func (*ChoiceMessage) HasReasoningContent ¶
func (o *ChoiceMessage) HasReasoningContent() bool
HasReasoningContent returns a boolean if a field has been set.
func (*ChoiceMessage) HasRefusal ¶
func (o *ChoiceMessage) HasRefusal() bool
HasRefusal returns a boolean if a field has been set.
func (*ChoiceMessage) HasToolCalls ¶
func (o *ChoiceMessage) HasToolCalls() bool
HasToolCalls returns a boolean if a field has been set.
func (ChoiceMessage) MarshalJSON ¶
func (o ChoiceMessage) MarshalJSON() ([]byte, error)
func (*ChoiceMessage) SetContent ¶
func (o *ChoiceMessage) SetContent(v string)
SetContent gets a reference to the given NullableString and assigns it to the Content field.
func (*ChoiceMessage) SetContentNil ¶
func (o *ChoiceMessage) SetContentNil()
SetContentNil sets the value for Content to be an explicit nil
func (*ChoiceMessage) SetReasoningContent ¶
func (o *ChoiceMessage) SetReasoningContent(v string)
SetReasoningContent gets a reference to the given NullableString and assigns it to the ReasoningContent field.
func (*ChoiceMessage) SetReasoningContentNil ¶
func (o *ChoiceMessage) SetReasoningContentNil()
SetReasoningContentNil sets the value for ReasoningContent to be an explicit nil
func (*ChoiceMessage) SetRefusal ¶
func (o *ChoiceMessage) SetRefusal(v string)
SetRefusal gets a reference to the given NullableString and assigns it to the Refusal field.
func (*ChoiceMessage) SetRefusalNil ¶
func (o *ChoiceMessage) SetRefusalNil()
SetRefusalNil sets the value for Refusal to be an explicit nil
func (*ChoiceMessage) SetToolCalls ¶
func (o *ChoiceMessage) SetToolCalls(v []ToolCall)
SetToolCalls gets a reference to the given []ToolCall and assigns it to the ToolCalls field.
func (ChoiceMessage) ToMap ¶
func (o ChoiceMessage) ToMap() (map[string]interface{}, error)
func (*ChoiceMessage) UnmarshalJSON ¶
func (o *ChoiceMessage) UnmarshalJSON(data []byte) (err error)
func (*ChoiceMessage) UnsetContent ¶
func (o *ChoiceMessage) UnsetContent()
UnsetContent ensures that no value is present for Content, not even an explicit nil
func (*ChoiceMessage) UnsetReasoningContent ¶
func (o *ChoiceMessage) UnsetReasoningContent()
UnsetReasoningContent ensures that no value is present for ReasoningContent, not even an explicit nil
func (*ChoiceMessage) UnsetRefusal ¶
func (o *ChoiceMessage) UnsetRefusal()
UnsetRefusal ensures that no value is present for Refusal, not even an explicit nil
type CompleteRequest ¶
type CompleteRequest struct {
// The maximum number of tokens to generate before stopping.
MaxTokensToSample *int32 `json:"max_tokens_to_sample,omitempty"`
// An object describing metadata about the request.
Metadata NullableMessageMetadata `json:"metadata,omitempty"`
// Model to use for completion.
Model *string `json:"model,omitempty"`
// Prompt for the model to perform completion on.
Prompt *string `json:"prompt,omitempty"`
// (Not supported by reasoning models) Up to 4 sequences where the API will stop generating further tokens.
StopSequences []string `json:"stop_sequences,omitempty"`
// (Unsupported) If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message.
Stream NullableBool `json:"stream,omitempty"`
// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
Temperature NullableFloat32 `json:"temperature,omitempty"`
// (Unsupported) When generating next tokens, randomly selecting the next token from the k most likely options.
TopK NullableInt32 `json:"top_k,omitempty"`
// An alternative to sampling with `temperature`, called nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. It is generally recommended to alter this or `temperature` but not both.
TopP NullableFloat32 `json:"top_p,omitempty"`
AdditionalProperties map[string]interface{}
}
CompleteRequest (Legacy) Anthropic compatible complete request on `/v1/complete` endpoint.
func NewCompleteRequest ¶
func NewCompleteRequest() *CompleteRequest
NewCompleteRequest instantiates a new CompleteRequest 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
func NewCompleteRequestWithDefaults ¶
func NewCompleteRequestWithDefaults() *CompleteRequest
NewCompleteRequestWithDefaults instantiates a new CompleteRequest 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
func (*CompleteRequest) GetMaxTokensToSample ¶
func (o *CompleteRequest) GetMaxTokensToSample() int32
GetMaxTokensToSample returns the MaxTokensToSample field value if set, zero value otherwise.
func (*CompleteRequest) GetMaxTokensToSampleOk ¶
func (o *CompleteRequest) GetMaxTokensToSampleOk() (*int32, bool)
GetMaxTokensToSampleOk returns a tuple with the MaxTokensToSample field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CompleteRequest) GetMetadata ¶
func (o *CompleteRequest) GetMetadata() MessageMetadata
GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CompleteRequest) GetMetadataOk ¶
func (o *CompleteRequest) GetMetadataOk() (*MessageMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CompleteRequest) GetModel ¶
func (o *CompleteRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*CompleteRequest) GetModelOk ¶
func (o *CompleteRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CompleteRequest) GetPrompt ¶
func (o *CompleteRequest) GetPrompt() string
GetPrompt returns the Prompt field value if set, zero value otherwise.
func (*CompleteRequest) GetPromptOk ¶
func (o *CompleteRequest) GetPromptOk() (*string, bool)
GetPromptOk returns a tuple with the Prompt field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CompleteRequest) GetStopSequences ¶
func (o *CompleteRequest) GetStopSequences() []string
GetStopSequences returns the StopSequences field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CompleteRequest) GetStopSequencesOk ¶
func (o *CompleteRequest) GetStopSequencesOk() ([]string, bool)
GetStopSequencesOk returns a tuple with the StopSequences field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CompleteRequest) GetStream ¶
func (o *CompleteRequest) GetStream() bool
GetStream returns the Stream field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CompleteRequest) GetStreamOk ¶
func (o *CompleteRequest) GetStreamOk() (*bool, bool)
GetStreamOk returns a tuple with the Stream field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CompleteRequest) GetTemperature ¶
func (o *CompleteRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CompleteRequest) GetTemperatureOk ¶
func (o *CompleteRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CompleteRequest) GetTopK ¶
func (o *CompleteRequest) GetTopK() int32
GetTopK returns the TopK field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CompleteRequest) GetTopKOk ¶
func (o *CompleteRequest) GetTopKOk() (*int32, bool)
GetTopKOk returns a tuple with the TopK field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CompleteRequest) GetTopP ¶
func (o *CompleteRequest) GetTopP() float32
GetTopP returns the TopP field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CompleteRequest) GetTopPOk ¶
func (o *CompleteRequest) GetTopPOk() (*float32, bool)
GetTopPOk returns a tuple with the TopP field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CompleteRequest) HasMaxTokensToSample ¶
func (o *CompleteRequest) HasMaxTokensToSample() bool
HasMaxTokensToSample returns a boolean if a field has been set.
func (*CompleteRequest) HasMetadata ¶
func (o *CompleteRequest) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (*CompleteRequest) HasModel ¶
func (o *CompleteRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*CompleteRequest) HasPrompt ¶
func (o *CompleteRequest) HasPrompt() bool
HasPrompt returns a boolean if a field has been set.
func (*CompleteRequest) HasStopSequences ¶
func (o *CompleteRequest) HasStopSequences() bool
HasStopSequences returns a boolean if a field has been set.
func (*CompleteRequest) HasStream ¶
func (o *CompleteRequest) HasStream() bool
HasStream returns a boolean if a field has been set.
func (*CompleteRequest) HasTemperature ¶
func (o *CompleteRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*CompleteRequest) HasTopK ¶
func (o *CompleteRequest) HasTopK() bool
HasTopK returns a boolean if a field has been set.
func (*CompleteRequest) HasTopP ¶
func (o *CompleteRequest) HasTopP() bool
HasTopP returns a boolean if a field has been set.
func (CompleteRequest) MarshalJSON ¶
func (o CompleteRequest) MarshalJSON() ([]byte, error)
func (*CompleteRequest) SetMaxTokensToSample ¶
func (o *CompleteRequest) SetMaxTokensToSample(v int32)
SetMaxTokensToSample gets a reference to the given int32 and assigns it to the MaxTokensToSample field.
func (*CompleteRequest) SetMetadata ¶
func (o *CompleteRequest) SetMetadata(v MessageMetadata)
SetMetadata gets a reference to the given NullableMessageMetadata and assigns it to the Metadata field.
func (*CompleteRequest) SetMetadataNil ¶
func (o *CompleteRequest) SetMetadataNil()
SetMetadataNil sets the value for Metadata to be an explicit nil
func (*CompleteRequest) SetModel ¶
func (o *CompleteRequest) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*CompleteRequest) SetPrompt ¶
func (o *CompleteRequest) SetPrompt(v string)
SetPrompt gets a reference to the given string and assigns it to the Prompt field.
func (*CompleteRequest) SetStopSequences ¶
func (o *CompleteRequest) SetStopSequences(v []string)
SetStopSequences gets a reference to the given []string and assigns it to the StopSequences field.
func (*CompleteRequest) SetStream ¶
func (o *CompleteRequest) SetStream(v bool)
SetStream gets a reference to the given NullableBool and assigns it to the Stream field.
func (*CompleteRequest) SetStreamNil ¶
func (o *CompleteRequest) SetStreamNil()
SetStreamNil sets the value for Stream to be an explicit nil
func (*CompleteRequest) SetTemperature ¶
func (o *CompleteRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*CompleteRequest) SetTemperatureNil ¶
func (o *CompleteRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*CompleteRequest) SetTopK ¶
func (o *CompleteRequest) SetTopK(v int32)
SetTopK gets a reference to the given NullableInt32 and assigns it to the TopK field.
func (*CompleteRequest) SetTopKNil ¶
func (o *CompleteRequest) SetTopKNil()
SetTopKNil sets the value for TopK to be an explicit nil
func (*CompleteRequest) SetTopP ¶
func (o *CompleteRequest) SetTopP(v float32)
SetTopP gets a reference to the given NullableFloat32 and assigns it to the TopP field.
func (*CompleteRequest) SetTopPNil ¶
func (o *CompleteRequest) SetTopPNil()
SetTopPNil sets the value for TopP to be an explicit nil
func (CompleteRequest) ToMap ¶
func (o CompleteRequest) ToMap() (map[string]interface{}, error)
func (*CompleteRequest) UnmarshalJSON ¶
func (o *CompleteRequest) UnmarshalJSON(data []byte) (err error)
func (*CompleteRequest) UnsetMetadata ¶
func (o *CompleteRequest) UnsetMetadata()
UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil
func (*CompleteRequest) UnsetStream ¶
func (o *CompleteRequest) UnsetStream()
UnsetStream ensures that no value is present for Stream, not even an explicit nil
func (*CompleteRequest) UnsetTemperature ¶
func (o *CompleteRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
func (*CompleteRequest) UnsetTopK ¶
func (o *CompleteRequest) UnsetTopK()
UnsetTopK ensures that no value is present for TopK, not even an explicit nil
func (*CompleteRequest) UnsetTopP ¶
func (o *CompleteRequest) UnsetTopP()
UnsetTopP ensures that no value is present for TopP, not even an explicit nil
type CompleteResponse ¶
type CompleteResponse struct {
// The completion content up to and excluding stop sequences.
Completion string `json:"completion"`
// ID of the completion response.
Id string `json:"id"`
// The model that handled the request.
Model string `json:"model"`
// The reason to stop completion. `\"stop_sequence\"` means the inference has reached a model-defined or user-supplied stop sequence in `stop`. `\"length\"` means the inference result has reached models' maximum allowed token length or user defined value in `max_tokens`. `\"end_turn\"` or `null` in streaming mode when the chunk is not the last.
StopReason NullableString `json:"stop_reason,omitempty"`
// Completion response object type. This is always `\"completion\"`.
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
CompleteResponse (Legacy) Anthropic compatible complete response on `/v1/complete` endpoint.
func NewCompleteResponse ¶
func NewCompleteResponse(completion string, id string, model string, type_ string) *CompleteResponse
NewCompleteResponse instantiates a new CompleteResponse 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
func NewCompleteResponseWithDefaults ¶
func NewCompleteResponseWithDefaults() *CompleteResponse
NewCompleteResponseWithDefaults instantiates a new CompleteResponse 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
func (*CompleteResponse) GetCompletion ¶
func (o *CompleteResponse) GetCompletion() string
GetCompletion returns the Completion field value
func (*CompleteResponse) GetCompletionOk ¶
func (o *CompleteResponse) GetCompletionOk() (*string, bool)
GetCompletionOk returns a tuple with the Completion field value and a boolean to check if the value has been set.
func (*CompleteResponse) GetId ¶
func (o *CompleteResponse) GetId() string
GetId returns the Id field value
func (*CompleteResponse) GetIdOk ¶
func (o *CompleteResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*CompleteResponse) GetModel ¶
func (o *CompleteResponse) GetModel() string
GetModel returns the Model field value
func (*CompleteResponse) GetModelOk ¶
func (o *CompleteResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*CompleteResponse) GetStopReason ¶
func (o *CompleteResponse) GetStopReason() string
GetStopReason returns the StopReason field value if set, zero value otherwise (both if not set or set to explicit null).
func (*CompleteResponse) GetStopReasonOk ¶
func (o *CompleteResponse) GetStopReasonOk() (*string, bool)
GetStopReasonOk returns a tuple with the StopReason field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*CompleteResponse) GetType ¶
func (o *CompleteResponse) GetType() string
GetType returns the Type field value
func (*CompleteResponse) GetTypeOk ¶
func (o *CompleteResponse) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*CompleteResponse) HasStopReason ¶
func (o *CompleteResponse) HasStopReason() bool
HasStopReason returns a boolean if a field has been set.
func (CompleteResponse) MarshalJSON ¶
func (o CompleteResponse) MarshalJSON() ([]byte, error)
func (*CompleteResponse) SetCompletion ¶
func (o *CompleteResponse) SetCompletion(v string)
SetCompletion sets field value
func (*CompleteResponse) SetModel ¶
func (o *CompleteResponse) SetModel(v string)
SetModel sets field value
func (*CompleteResponse) SetStopReason ¶
func (o *CompleteResponse) SetStopReason(v string)
SetStopReason gets a reference to the given NullableString and assigns it to the StopReason field.
func (*CompleteResponse) SetStopReasonNil ¶
func (o *CompleteResponse) SetStopReasonNil()
SetStopReasonNil sets the value for StopReason to be an explicit nil
func (*CompleteResponse) SetType ¶
func (o *CompleteResponse) SetType(v string)
SetType sets field value
func (CompleteResponse) ToMap ¶
func (o CompleteResponse) ToMap() (map[string]interface{}, error)
func (*CompleteResponse) UnmarshalJSON ¶
func (o *CompleteResponse) UnmarshalJSON(data []byte) (err error)
func (*CompleteResponse) UnsetStopReason ¶
func (o *CompleteResponse) UnsetStopReason()
UnsetStopReason ensures that no value is present for StopReason, not even an explicit nil
type CompletionUsageDetail ¶
type CompletionUsageDetail struct {
// The number of tokens in the prediction that appeared in the completion.
AcceptedPredictionTokens int32 `json:"accepted_prediction_tokens"`
// Audio input tokens generated by the model.
AudioTokens int32 `json:"audio_tokens"`
// Tokens generated by the model for reasoning.
ReasoningTokens int32 `json:"reasoning_tokens"`
// The number of tokens in the prediction that did not appear in the completion.
RejectedPredictionTokens int32 `json:"rejected_prediction_tokens"`
AdditionalProperties map[string]interface{}
}
CompletionUsageDetail Details of completion usage.
func NewCompletionUsageDetail ¶
func NewCompletionUsageDetail(acceptedPredictionTokens int32, audioTokens int32, reasoningTokens int32, rejectedPredictionTokens int32) *CompletionUsageDetail
NewCompletionUsageDetail instantiates a new CompletionUsageDetail 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
func NewCompletionUsageDetailWithDefaults ¶
func NewCompletionUsageDetailWithDefaults() *CompletionUsageDetail
NewCompletionUsageDetailWithDefaults instantiates a new CompletionUsageDetail 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
func (*CompletionUsageDetail) GetAcceptedPredictionTokens ¶
func (o *CompletionUsageDetail) GetAcceptedPredictionTokens() int32
GetAcceptedPredictionTokens returns the AcceptedPredictionTokens field value
func (*CompletionUsageDetail) GetAcceptedPredictionTokensOk ¶
func (o *CompletionUsageDetail) GetAcceptedPredictionTokensOk() (*int32, bool)
GetAcceptedPredictionTokensOk returns a tuple with the AcceptedPredictionTokens field value and a boolean to check if the value has been set.
func (*CompletionUsageDetail) GetAudioTokens ¶
func (o *CompletionUsageDetail) GetAudioTokens() int32
GetAudioTokens returns the AudioTokens field value
func (*CompletionUsageDetail) GetAudioTokensOk ¶
func (o *CompletionUsageDetail) GetAudioTokensOk() (*int32, bool)
GetAudioTokensOk returns a tuple with the AudioTokens field value and a boolean to check if the value has been set.
func (*CompletionUsageDetail) GetReasoningTokens ¶
func (o *CompletionUsageDetail) GetReasoningTokens() int32
GetReasoningTokens returns the ReasoningTokens field value
func (*CompletionUsageDetail) GetReasoningTokensOk ¶
func (o *CompletionUsageDetail) GetReasoningTokensOk() (*int32, bool)
GetReasoningTokensOk returns a tuple with the ReasoningTokens field value and a boolean to check if the value has been set.
func (*CompletionUsageDetail) GetRejectedPredictionTokens ¶
func (o *CompletionUsageDetail) GetRejectedPredictionTokens() int32
GetRejectedPredictionTokens returns the RejectedPredictionTokens field value
func (*CompletionUsageDetail) GetRejectedPredictionTokensOk ¶
func (o *CompletionUsageDetail) GetRejectedPredictionTokensOk() (*int32, bool)
GetRejectedPredictionTokensOk returns a tuple with the RejectedPredictionTokens field value and a boolean to check if the value has been set.
func (CompletionUsageDetail) MarshalJSON ¶
func (o CompletionUsageDetail) MarshalJSON() ([]byte, error)
func (*CompletionUsageDetail) SetAcceptedPredictionTokens ¶
func (o *CompletionUsageDetail) SetAcceptedPredictionTokens(v int32)
SetAcceptedPredictionTokens sets field value
func (*CompletionUsageDetail) SetAudioTokens ¶
func (o *CompletionUsageDetail) SetAudioTokens(v int32)
SetAudioTokens sets field value
func (*CompletionUsageDetail) SetReasoningTokens ¶
func (o *CompletionUsageDetail) SetReasoningTokens(v int32)
SetReasoningTokens sets field value
func (*CompletionUsageDetail) SetRejectedPredictionTokens ¶
func (o *CompletionUsageDetail) SetRejectedPredictionTokens(v int32)
SetRejectedPredictionTokens sets field value
func (CompletionUsageDetail) ToMap ¶
func (o CompletionUsageDetail) ToMap() (map[string]interface{}, error)
func (*CompletionUsageDetail) UnmarshalJSON ¶
func (o *CompletionUsageDetail) UnmarshalJSON(data []byte) (err error)
type Configuration ¶
type Configuration struct {
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Debug bool `json:"debug,omitempty"`
Servers ServerConfigurations
OperationServers map[string]ServerConfigurations
HTTPClient *http.Client
}
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type Content ¶
type Content struct {
ArrayOfContentPart *[]ContentPart
String *string
}
Content - Content of each chat message.
func ArrayOfContentPartAsContent ¶
func ArrayOfContentPartAsContent(v *[]ContentPart) Content
[]ContentPartAsContent is a convenience function that returns []ContentPart wrapped in Content
func StringAsContent ¶
stringAsContent is a convenience function that returns string wrapped in Content
func (*Content) GetActualInstance ¶
func (obj *Content) GetActualInstance() interface{}
Get the actual instance
func (Content) GetActualInstanceValue ¶
func (obj Content) GetActualInstanceValue() interface{}
Get the actual instance value
func (Content) MarshalJSON ¶
Marshal data from the first non-nil pointers in the struct to JSON
func (*Content) UnmarshalJSON ¶
Unmarshal JSON data into one of the pointers in the struct
type ContentPart ¶
type ContentPart struct {
// Specifies the detail level of the image.
Detail NullableString `json:"detail,omitempty"`
// A public URL of image prompt, only available for vision models.
ImageUrl NullableImageUrl `json:"image_url,omitempty"`
// Text prompt.
Text NullableString `json:"text,omitempty"`
// File path to a text file to be used as prompt.
TextFile NullableString `json:"text_file,omitempty"`
// The type of the content part.
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
ContentPart struct for ContentPart
func NewContentPart ¶
func NewContentPart(type_ string) *ContentPart
NewContentPart instantiates a new ContentPart 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
func NewContentPartWithDefaults ¶
func NewContentPartWithDefaults() *ContentPart
NewContentPartWithDefaults instantiates a new ContentPart 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
func (*ContentPart) GetDetail ¶
func (o *ContentPart) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ContentPart) GetDetailOk ¶
func (o *ContentPart) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ContentPart) GetImageUrl ¶
func (o *ContentPart) GetImageUrl() ImageUrl
GetImageUrl returns the ImageUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ContentPart) GetImageUrlOk ¶
func (o *ContentPart) GetImageUrlOk() (*ImageUrl, bool)
GetImageUrlOk returns a tuple with the ImageUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ContentPart) GetText ¶
func (o *ContentPart) GetText() string
GetText returns the Text field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ContentPart) GetTextFile ¶
func (o *ContentPart) GetTextFile() string
GetTextFile returns the TextFile field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ContentPart) GetTextFileOk ¶
func (o *ContentPart) GetTextFileOk() (*string, bool)
GetTextFileOk returns a tuple with the TextFile field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ContentPart) GetTextOk ¶
func (o *ContentPart) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ContentPart) GetType ¶
func (o *ContentPart) GetType() string
GetType returns the Type field value
func (*ContentPart) GetTypeOk ¶
func (o *ContentPart) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*ContentPart) HasDetail ¶
func (o *ContentPart) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (*ContentPart) HasImageUrl ¶
func (o *ContentPart) HasImageUrl() bool
HasImageUrl returns a boolean if a field has been set.
func (*ContentPart) HasText ¶
func (o *ContentPart) HasText() bool
HasText returns a boolean if a field has been set.
func (*ContentPart) HasTextFile ¶
func (o *ContentPart) HasTextFile() bool
HasTextFile returns a boolean if a field has been set.
func (ContentPart) MarshalJSON ¶
func (o ContentPart) MarshalJSON() ([]byte, error)
func (*ContentPart) SetDetail ¶
func (o *ContentPart) SetDetail(v string)
SetDetail gets a reference to the given NullableString and assigns it to the Detail field.
func (*ContentPart) SetDetailNil ¶
func (o *ContentPart) SetDetailNil()
SetDetailNil sets the value for Detail to be an explicit nil
func (*ContentPart) SetImageUrl ¶
func (o *ContentPart) SetImageUrl(v ImageUrl)
SetImageUrl gets a reference to the given NullableImageUrl and assigns it to the ImageUrl field.
func (*ContentPart) SetImageUrlNil ¶
func (o *ContentPart) SetImageUrlNil()
SetImageUrlNil sets the value for ImageUrl to be an explicit nil
func (*ContentPart) SetText ¶
func (o *ContentPart) SetText(v string)
SetText gets a reference to the given NullableString and assigns it to the Text field.
func (*ContentPart) SetTextFile ¶
func (o *ContentPart) SetTextFile(v string)
SetTextFile gets a reference to the given NullableString and assigns it to the TextFile field.
func (*ContentPart) SetTextFileNil ¶
func (o *ContentPart) SetTextFileNil()
SetTextFileNil sets the value for TextFile to be an explicit nil
func (*ContentPart) SetTextNil ¶
func (o *ContentPart) SetTextNil()
SetTextNil sets the value for Text to be an explicit nil
func (ContentPart) ToMap ¶
func (o ContentPart) ToMap() (map[string]interface{}, error)
func (*ContentPart) UnmarshalJSON ¶
func (o *ContentPart) UnmarshalJSON(data []byte) (err error)
func (*ContentPart) UnsetDetail ¶
func (o *ContentPart) UnsetDetail()
UnsetDetail ensures that no value is present for Detail, not even an explicit nil
func (*ContentPart) UnsetImageUrl ¶
func (o *ContentPart) UnsetImageUrl()
UnsetImageUrl ensures that no value is present for ImageUrl, not even an explicit nil
func (*ContentPart) UnsetText ¶
func (o *ContentPart) UnsetText()
UnsetText ensures that no value is present for Text, not even an explicit nil
func (*ContentPart) UnsetTextFile ¶
func (o *ContentPart) UnsetTextFile()
UnsetTextFile ensures that no value is present for TextFile, not even an explicit nil
type DebugOutput ¶
type DebugOutput struct {
// Number of attempts made to the model.
Attempts int32 `json:"attempts"`
// Number of cache reads
CacheReadCount int32 `json:"cache_read_count"`
// Size of cache read
CacheReadInputBytes int64 `json:"cache_read_input_bytes"`
// Number of cache writes
CacheWriteCount int32 `json:"cache_write_count"`
// Size of cache write
CacheWriteInputBytes int64 `json:"cache_write_input_bytes"`
// JSON-serialized request sent to the inference engine.
EngineRequest string `json:"engine_request"`
// The load balancer address
LbAddress string `json:"lb_address"`
// The prompt sent to the model in text form.
Prompt string `json:"prompt"`
// The request received from the user.
Request string `json:"request"`
// The response(s) received from the model.
Responses []string `json:"responses"`
AdditionalProperties map[string]interface{}
}
DebugOutput struct for DebugOutput
func NewDebugOutput ¶
func NewDebugOutput(attempts int32, cacheReadCount int32, cacheReadInputBytes int64, cacheWriteCount int32, cacheWriteInputBytes int64, engineRequest string, lbAddress string, prompt string, request string, responses []string) *DebugOutput
NewDebugOutput instantiates a new DebugOutput 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
func NewDebugOutputWithDefaults ¶
func NewDebugOutputWithDefaults() *DebugOutput
NewDebugOutputWithDefaults instantiates a new DebugOutput 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
func (*DebugOutput) GetAttempts ¶
func (o *DebugOutput) GetAttempts() int32
GetAttempts returns the Attempts field value
func (*DebugOutput) GetAttemptsOk ¶
func (o *DebugOutput) GetAttemptsOk() (*int32, bool)
GetAttemptsOk returns a tuple with the Attempts field value and a boolean to check if the value has been set.
func (*DebugOutput) GetCacheReadCount ¶
func (o *DebugOutput) GetCacheReadCount() int32
GetCacheReadCount returns the CacheReadCount field value
func (*DebugOutput) GetCacheReadCountOk ¶
func (o *DebugOutput) GetCacheReadCountOk() (*int32, bool)
GetCacheReadCountOk returns a tuple with the CacheReadCount field value and a boolean to check if the value has been set.
func (*DebugOutput) GetCacheReadInputBytes ¶
func (o *DebugOutput) GetCacheReadInputBytes() int64
GetCacheReadInputBytes returns the CacheReadInputBytes field value
func (*DebugOutput) GetCacheReadInputBytesOk ¶
func (o *DebugOutput) GetCacheReadInputBytesOk() (*int64, bool)
GetCacheReadInputBytesOk returns a tuple with the CacheReadInputBytes field value and a boolean to check if the value has been set.
func (*DebugOutput) GetCacheWriteCount ¶
func (o *DebugOutput) GetCacheWriteCount() int32
GetCacheWriteCount returns the CacheWriteCount field value
func (*DebugOutput) GetCacheWriteCountOk ¶
func (o *DebugOutput) GetCacheWriteCountOk() (*int32, bool)
GetCacheWriteCountOk returns a tuple with the CacheWriteCount field value and a boolean to check if the value has been set.
func (*DebugOutput) GetCacheWriteInputBytes ¶
func (o *DebugOutput) GetCacheWriteInputBytes() int64
GetCacheWriteInputBytes returns the CacheWriteInputBytes field value
func (*DebugOutput) GetCacheWriteInputBytesOk ¶
func (o *DebugOutput) GetCacheWriteInputBytesOk() (*int64, bool)
GetCacheWriteInputBytesOk returns a tuple with the CacheWriteInputBytes field value and a boolean to check if the value has been set.
func (*DebugOutput) GetEngineRequest ¶
func (o *DebugOutput) GetEngineRequest() string
GetEngineRequest returns the EngineRequest field value
func (*DebugOutput) GetEngineRequestOk ¶
func (o *DebugOutput) GetEngineRequestOk() (*string, bool)
GetEngineRequestOk returns a tuple with the EngineRequest field value and a boolean to check if the value has been set.
func (*DebugOutput) GetLbAddress ¶
func (o *DebugOutput) GetLbAddress() string
GetLbAddress returns the LbAddress field value
func (*DebugOutput) GetLbAddressOk ¶
func (o *DebugOutput) GetLbAddressOk() (*string, bool)
GetLbAddressOk returns a tuple with the LbAddress field value and a boolean to check if the value has been set.
func (*DebugOutput) GetPrompt ¶
func (o *DebugOutput) GetPrompt() string
GetPrompt returns the Prompt field value
func (*DebugOutput) GetPromptOk ¶
func (o *DebugOutput) GetPromptOk() (*string, bool)
GetPromptOk returns a tuple with the Prompt field value and a boolean to check if the value has been set.
func (*DebugOutput) GetRequest ¶
func (o *DebugOutput) GetRequest() string
GetRequest returns the Request field value
func (*DebugOutput) GetRequestOk ¶
func (o *DebugOutput) GetRequestOk() (*string, bool)
GetRequestOk returns a tuple with the Request field value and a boolean to check if the value has been set.
func (*DebugOutput) GetResponses ¶
func (o *DebugOutput) GetResponses() []string
GetResponses returns the Responses field value
func (*DebugOutput) GetResponsesOk ¶
func (o *DebugOutput) GetResponsesOk() ([]string, bool)
GetResponsesOk returns a tuple with the Responses field value and a boolean to check if the value has been set.
func (DebugOutput) MarshalJSON ¶
func (o DebugOutput) MarshalJSON() ([]byte, error)
func (*DebugOutput) SetAttempts ¶
func (o *DebugOutput) SetAttempts(v int32)
SetAttempts sets field value
func (*DebugOutput) SetCacheReadCount ¶
func (o *DebugOutput) SetCacheReadCount(v int32)
SetCacheReadCount sets field value
func (*DebugOutput) SetCacheReadInputBytes ¶
func (o *DebugOutput) SetCacheReadInputBytes(v int64)
SetCacheReadInputBytes sets field value
func (*DebugOutput) SetCacheWriteCount ¶
func (o *DebugOutput) SetCacheWriteCount(v int32)
SetCacheWriteCount sets field value
func (*DebugOutput) SetCacheWriteInputBytes ¶
func (o *DebugOutput) SetCacheWriteInputBytes(v int64)
SetCacheWriteInputBytes sets field value
func (*DebugOutput) SetEngineRequest ¶
func (o *DebugOutput) SetEngineRequest(v string)
SetEngineRequest sets field value
func (*DebugOutput) SetLbAddress ¶
func (o *DebugOutput) SetLbAddress(v string)
SetLbAddress sets field value
func (*DebugOutput) SetPrompt ¶
func (o *DebugOutput) SetPrompt(v string)
SetPrompt sets field value
func (*DebugOutput) SetRequest ¶
func (o *DebugOutput) SetRequest(v string)
SetRequest sets field value
func (*DebugOutput) SetResponses ¶
func (o *DebugOutput) SetResponses(v []string)
SetResponses sets field value
func (DebugOutput) ToMap ¶
func (o DebugOutput) ToMap() (map[string]interface{}, error)
func (*DebugOutput) UnmarshalJSON ¶
func (o *DebugOutput) UnmarshalJSON(data []byte) (err error)
type Delta ¶
type Delta struct {
Content NullableString `json:"content,omitempty"`
// Images generated by the model.
Images []string `json:"images,omitempty"`
ReasoningContent NullableString `json:"reasoning_content,omitempty"`
Role NullableString `json:"role,omitempty"`
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
AdditionalProperties map[string]interface{}
}
Delta struct for Delta
func NewDelta ¶
func NewDelta() *Delta
NewDelta instantiates a new Delta 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
func NewDeltaWithDefaults ¶
func NewDeltaWithDefaults() *Delta
NewDeltaWithDefaults instantiates a new Delta 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
func (*Delta) GetContent ¶
GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Delta) GetContentOk ¶
GetContentOk returns a tuple with the Content field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Delta) GetImages ¶
GetImages returns the Images field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Delta) GetImagesOk ¶
GetImagesOk returns a tuple with the Images field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Delta) GetReasoningContent ¶
GetReasoningContent returns the ReasoningContent field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Delta) GetReasoningContentOk ¶
GetReasoningContentOk returns a tuple with the ReasoningContent field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Delta) GetRole ¶
GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Delta) GetRoleOk ¶
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Delta) GetToolCalls ¶
GetToolCalls returns the ToolCalls field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Delta) GetToolCallsOk ¶
GetToolCallsOk returns a tuple with the ToolCalls field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Delta) HasContent ¶
HasContent returns a boolean if a field has been set.
func (*Delta) HasReasoningContent ¶
HasReasoningContent returns a boolean if a field has been set.
func (*Delta) HasToolCalls ¶
HasToolCalls returns a boolean if a field has been set.
func (Delta) MarshalJSON ¶
func (*Delta) SetContent ¶
SetContent gets a reference to the given NullableString and assigns it to the Content field.
func (*Delta) SetContentNil ¶
func (o *Delta) SetContentNil()
SetContentNil sets the value for Content to be an explicit nil
func (*Delta) SetImages ¶
SetImages gets a reference to the given []string and assigns it to the Images field.
func (*Delta) SetReasoningContent ¶
SetReasoningContent gets a reference to the given NullableString and assigns it to the ReasoningContent field.
func (*Delta) SetReasoningContentNil ¶
func (o *Delta) SetReasoningContentNil()
SetReasoningContentNil sets the value for ReasoningContent to be an explicit nil
func (*Delta) SetRole ¶
SetRole gets a reference to the given NullableString and assigns it to the Role field.
func (*Delta) SetRoleNil ¶
func (o *Delta) SetRoleNil()
SetRoleNil sets the value for Role to be an explicit nil
func (*Delta) SetToolCalls ¶
SetToolCalls gets a reference to the given []ToolCall and assigns it to the ToolCalls field.
func (*Delta) UnmarshalJSON ¶
func (*Delta) UnsetContent ¶
func (o *Delta) UnsetContent()
UnsetContent ensures that no value is present for Content, not even an explicit nil
func (*Delta) UnsetReasoningContent ¶
func (o *Delta) UnsetReasoningContent()
UnsetReasoningContent ensures that no value is present for ReasoningContent, not even an explicit nil
type EditImageRequest ¶
type EditImageRequest struct {
// Input image to perform edit on.
Image ImageUrl `json:"image"`
Mask NullableImageUrl `json:"mask,omitempty"`
// Model to be used.
Model NullableString `json:"model,omitempty"`
// Number of image edits to be generated.
N NullableInt32 `json:"n,omitempty"`
// Prompt for image editing.
Prompt string `json:"prompt"`
// Response format to return the image in. Can be `url` or `b64_json`. If `b64_json` is specified, the image will be returned as a base64-encoded string instead of a url to the generated image file.
ResponseFormat NullableString `json:"response_format,omitempty"`
// (Not supported) Size of the image.
Size NullableString `json:"size,omitempty"`
// (Not supported) Style of the image.
Style NullableString `json:"style,omitempty"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
User NullableString `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
EditImageRequest Request for editing image
func NewEditImageRequest ¶
func NewEditImageRequest(image ImageUrl, prompt string) *EditImageRequest
NewEditImageRequest instantiates a new EditImageRequest 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
func NewEditImageRequestWithDefaults ¶
func NewEditImageRequestWithDefaults() *EditImageRequest
NewEditImageRequestWithDefaults instantiates a new EditImageRequest 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
func (*EditImageRequest) GetImage ¶
func (o *EditImageRequest) GetImage() ImageUrl
GetImage returns the Image field value
func (*EditImageRequest) GetImageOk ¶
func (o *EditImageRequest) GetImageOk() (*ImageUrl, bool)
GetImageOk returns a tuple with the Image field value and a boolean to check if the value has been set.
func (*EditImageRequest) GetMask ¶
func (o *EditImageRequest) GetMask() ImageUrl
GetMask returns the Mask field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EditImageRequest) GetMaskOk ¶
func (o *EditImageRequest) GetMaskOk() (*ImageUrl, bool)
GetMaskOk returns a tuple with the Mask field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EditImageRequest) GetModel ¶
func (o *EditImageRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EditImageRequest) GetModelOk ¶
func (o *EditImageRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EditImageRequest) GetN ¶
func (o *EditImageRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EditImageRequest) GetNOk ¶
func (o *EditImageRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EditImageRequest) GetPrompt ¶
func (o *EditImageRequest) GetPrompt() string
GetPrompt returns the Prompt field value
func (*EditImageRequest) GetPromptOk ¶
func (o *EditImageRequest) GetPromptOk() (*string, bool)
GetPromptOk returns a tuple with the Prompt field value and a boolean to check if the value has been set.
func (*EditImageRequest) GetResponseFormat ¶
func (o *EditImageRequest) GetResponseFormat() string
GetResponseFormat returns the ResponseFormat field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EditImageRequest) GetResponseFormatOk ¶
func (o *EditImageRequest) GetResponseFormatOk() (*string, bool)
GetResponseFormatOk returns a tuple with the ResponseFormat field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EditImageRequest) GetSize ¶
func (o *EditImageRequest) GetSize() string
GetSize returns the Size field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EditImageRequest) GetSizeOk ¶
func (o *EditImageRequest) GetSizeOk() (*string, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EditImageRequest) GetStyle ¶
func (o *EditImageRequest) GetStyle() string
GetStyle returns the Style field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EditImageRequest) GetStyleOk ¶
func (o *EditImageRequest) GetStyleOk() (*string, bool)
GetStyleOk returns a tuple with the Style field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EditImageRequest) GetUser ¶
func (o *EditImageRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EditImageRequest) GetUserOk ¶
func (o *EditImageRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EditImageRequest) HasMask ¶
func (o *EditImageRequest) HasMask() bool
HasMask returns a boolean if a field has been set.
func (*EditImageRequest) HasModel ¶
func (o *EditImageRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*EditImageRequest) HasN ¶
func (o *EditImageRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*EditImageRequest) HasResponseFormat ¶
func (o *EditImageRequest) HasResponseFormat() bool
HasResponseFormat returns a boolean if a field has been set.
func (*EditImageRequest) HasSize ¶
func (o *EditImageRequest) HasSize() bool
HasSize returns a boolean if a field has been set.
func (*EditImageRequest) HasStyle ¶
func (o *EditImageRequest) HasStyle() bool
HasStyle returns a boolean if a field has been set.
func (*EditImageRequest) HasUser ¶
func (o *EditImageRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (EditImageRequest) MarshalJSON ¶
func (o EditImageRequest) MarshalJSON() ([]byte, error)
func (*EditImageRequest) SetImage ¶
func (o *EditImageRequest) SetImage(v ImageUrl)
SetImage sets field value
func (*EditImageRequest) SetMask ¶
func (o *EditImageRequest) SetMask(v ImageUrl)
SetMask gets a reference to the given NullableImageUrl and assigns it to the Mask field.
func (*EditImageRequest) SetMaskNil ¶
func (o *EditImageRequest) SetMaskNil()
SetMaskNil sets the value for Mask to be an explicit nil
func (*EditImageRequest) SetModel ¶
func (o *EditImageRequest) SetModel(v string)
SetModel gets a reference to the given NullableString and assigns it to the Model field.
func (*EditImageRequest) SetModelNil ¶
func (o *EditImageRequest) SetModelNil()
SetModelNil sets the value for Model to be an explicit nil
func (*EditImageRequest) SetN ¶
func (o *EditImageRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*EditImageRequest) SetNNil ¶
func (o *EditImageRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*EditImageRequest) SetPrompt ¶
func (o *EditImageRequest) SetPrompt(v string)
SetPrompt sets field value
func (*EditImageRequest) SetResponseFormat ¶
func (o *EditImageRequest) SetResponseFormat(v string)
SetResponseFormat gets a reference to the given NullableString and assigns it to the ResponseFormat field.
func (*EditImageRequest) SetResponseFormatNil ¶
func (o *EditImageRequest) SetResponseFormatNil()
SetResponseFormatNil sets the value for ResponseFormat to be an explicit nil
func (*EditImageRequest) SetSize ¶
func (o *EditImageRequest) SetSize(v string)
SetSize gets a reference to the given NullableString and assigns it to the Size field.
func (*EditImageRequest) SetSizeNil ¶
func (o *EditImageRequest) SetSizeNil()
SetSizeNil sets the value for Size to be an explicit nil
func (*EditImageRequest) SetStyle ¶
func (o *EditImageRequest) SetStyle(v string)
SetStyle gets a reference to the given NullableString and assigns it to the Style field.
func (*EditImageRequest) SetStyleNil ¶
func (o *EditImageRequest) SetStyleNil()
SetStyleNil sets the value for Style to be an explicit nil
func (*EditImageRequest) SetUser ¶
func (o *EditImageRequest) SetUser(v string)
SetUser gets a reference to the given NullableString and assigns it to the User field.
func (*EditImageRequest) SetUserNil ¶
func (o *EditImageRequest) SetUserNil()
SetUserNil sets the value for User to be an explicit nil
func (EditImageRequest) ToMap ¶
func (o EditImageRequest) ToMap() (map[string]interface{}, error)
func (*EditImageRequest) UnmarshalJSON ¶
func (o *EditImageRequest) UnmarshalJSON(data []byte) (err error)
func (*EditImageRequest) UnsetMask ¶
func (o *EditImageRequest) UnsetMask()
UnsetMask ensures that no value is present for Mask, not even an explicit nil
func (*EditImageRequest) UnsetModel ¶
func (o *EditImageRequest) UnsetModel()
UnsetModel ensures that no value is present for Model, not even an explicit nil
func (*EditImageRequest) UnsetN ¶
func (o *EditImageRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*EditImageRequest) UnsetResponseFormat ¶
func (o *EditImageRequest) UnsetResponseFormat()
UnsetResponseFormat ensures that no value is present for ResponseFormat, not even an explicit nil
func (*EditImageRequest) UnsetSize ¶
func (o *EditImageRequest) UnsetSize()
UnsetSize ensures that no value is present for Size, not even an explicit nil
func (*EditImageRequest) UnsetStyle ¶
func (o *EditImageRequest) UnsetStyle()
UnsetStyle ensures that no value is present for Style, not even an explicit nil
func (*EditImageRequest) UnsetUser ¶
func (o *EditImageRequest) UnsetUser()
UnsetUser ensures that no value is present for User, not even an explicit nil
type Embedding ¶
type Embedding struct {
// Embedding content.
Embedding EmbeddingContent `json:"embedding"`
// Index of the embedding object in the data list.
Index int32 `json:"index"`
// The object type, which is always `\"embedding\"`.
Object string `json:"object"`
AdditionalProperties map[string]interface{}
}
Embedding struct for Embedding
func NewEmbedding ¶
func NewEmbedding(embedding EmbeddingContent, index int32, object string) *Embedding
NewEmbedding instantiates a new Embedding 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
func NewEmbeddingWithDefaults ¶
func NewEmbeddingWithDefaults() *Embedding
NewEmbeddingWithDefaults instantiates a new Embedding 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
func (*Embedding) GetEmbedding ¶
func (o *Embedding) GetEmbedding() EmbeddingContent
GetEmbedding returns the Embedding field value
func (*Embedding) GetEmbeddingOk ¶
func (o *Embedding) GetEmbeddingOk() (*EmbeddingContent, bool)
GetEmbeddingOk returns a tuple with the Embedding field value and a boolean to check if the value has been set.
func (*Embedding) GetIndexOk ¶
GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.
func (*Embedding) GetObjectOk ¶
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (Embedding) MarshalJSON ¶
func (*Embedding) SetEmbedding ¶
func (o *Embedding) SetEmbedding(v EmbeddingContent)
SetEmbedding sets field value
func (*Embedding) UnmarshalJSON ¶
type EmbeddingContent ¶
EmbeddingContent - struct for EmbeddingContent
func ArrayOfFloat32AsEmbeddingContent ¶
func ArrayOfFloat32AsEmbeddingContent(v *[]float32) EmbeddingContent
[]float32AsEmbeddingContent is a convenience function that returns []float32 wrapped in EmbeddingContent
func StringAsEmbeddingContent ¶
func StringAsEmbeddingContent(v *string) EmbeddingContent
stringAsEmbeddingContent is a convenience function that returns string wrapped in EmbeddingContent
func (*EmbeddingContent) GetActualInstance ¶
func (obj *EmbeddingContent) GetActualInstance() interface{}
Get the actual instance
func (EmbeddingContent) GetActualInstanceValue ¶
func (obj EmbeddingContent) GetActualInstanceValue() interface{}
Get the actual instance value
func (EmbeddingContent) MarshalJSON ¶
func (src EmbeddingContent) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*EmbeddingContent) UnmarshalJSON ¶
func (dst *EmbeddingContent) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type EmbeddingInput ¶
type EmbeddingInput struct {
EmbeddingInputOneOf *EmbeddingInputOneOf
EmbeddingInputOneOf1 *EmbeddingInputOneOf1
EmbeddingInputOneOf2 *EmbeddingInputOneOf2
EmbeddingInputOneOf3 *EmbeddingInputOneOf3
}
EmbeddingInput - struct for EmbeddingInput
func EmbeddingInputOneOf1AsEmbeddingInput ¶
func EmbeddingInputOneOf1AsEmbeddingInput(v *EmbeddingInputOneOf1) EmbeddingInput
EmbeddingInputOneOf1AsEmbeddingInput is a convenience function that returns EmbeddingInputOneOf1 wrapped in EmbeddingInput
func EmbeddingInputOneOf2AsEmbeddingInput ¶
func EmbeddingInputOneOf2AsEmbeddingInput(v *EmbeddingInputOneOf2) EmbeddingInput
EmbeddingInputOneOf2AsEmbeddingInput is a convenience function that returns EmbeddingInputOneOf2 wrapped in EmbeddingInput
func EmbeddingInputOneOf3AsEmbeddingInput ¶
func EmbeddingInputOneOf3AsEmbeddingInput(v *EmbeddingInputOneOf3) EmbeddingInput
EmbeddingInputOneOf3AsEmbeddingInput is a convenience function that returns EmbeddingInputOneOf3 wrapped in EmbeddingInput
func EmbeddingInputOneOfAsEmbeddingInput ¶
func EmbeddingInputOneOfAsEmbeddingInput(v *EmbeddingInputOneOf) EmbeddingInput
EmbeddingInputOneOfAsEmbeddingInput is a convenience function that returns EmbeddingInputOneOf wrapped in EmbeddingInput
func (*EmbeddingInput) GetActualInstance ¶
func (obj *EmbeddingInput) GetActualInstance() interface{}
Get the actual instance
func (EmbeddingInput) GetActualInstanceValue ¶
func (obj EmbeddingInput) GetActualInstanceValue() interface{}
Get the actual instance value
func (EmbeddingInput) MarshalJSON ¶
func (src EmbeddingInput) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*EmbeddingInput) UnmarshalJSON ¶
func (dst *EmbeddingInput) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type EmbeddingInputOneOf ¶
type EmbeddingInputOneOf struct {
// A strings to be embedded. For best performance, prepend \"query: \" in front of query content and prepend \"passage: \" in front of passage/text
String string `json:"String"`
AdditionalProperties map[string]interface{}
}
EmbeddingInputOneOf A strings to be embedded. For best performance, prepend \"query: \" in front of query content and prepend \"passage: \" in front of passage/text
func NewEmbeddingInputOneOf ¶
func NewEmbeddingInputOneOf(string_ string) *EmbeddingInputOneOf
NewEmbeddingInputOneOf instantiates a new EmbeddingInputOneOf 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
func NewEmbeddingInputOneOfWithDefaults ¶
func NewEmbeddingInputOneOfWithDefaults() *EmbeddingInputOneOf
NewEmbeddingInputOneOfWithDefaults instantiates a new EmbeddingInputOneOf 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
func (*EmbeddingInputOneOf) GetString ¶
func (o *EmbeddingInputOneOf) GetString() string
GetString returns the String field value
func (*EmbeddingInputOneOf) GetStringOk ¶
func (o *EmbeddingInputOneOf) GetStringOk() (*string, bool)
GetStringOk returns a tuple with the String field value and a boolean to check if the value has been set.
func (EmbeddingInputOneOf) MarshalJSON ¶
func (o EmbeddingInputOneOf) MarshalJSON() ([]byte, error)
func (*EmbeddingInputOneOf) SetString ¶
func (o *EmbeddingInputOneOf) SetString(v string)
SetString sets field value
func (EmbeddingInputOneOf) ToMap ¶
func (o EmbeddingInputOneOf) ToMap() (map[string]interface{}, error)
func (*EmbeddingInputOneOf) UnmarshalJSON ¶
func (o *EmbeddingInputOneOf) UnmarshalJSON(data []byte) (err error)
type EmbeddingInputOneOf1 ¶
type EmbeddingInputOneOf1 struct {
// An array of strings to be embedded
StringArray []string `json:"StringArray"`
AdditionalProperties map[string]interface{}
}
EmbeddingInputOneOf1 An array of strings to be embedded
func NewEmbeddingInputOneOf1 ¶
func NewEmbeddingInputOneOf1(stringArray []string) *EmbeddingInputOneOf1
NewEmbeddingInputOneOf1 instantiates a new EmbeddingInputOneOf1 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
func NewEmbeddingInputOneOf1WithDefaults ¶
func NewEmbeddingInputOneOf1WithDefaults() *EmbeddingInputOneOf1
NewEmbeddingInputOneOf1WithDefaults instantiates a new EmbeddingInputOneOf1 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
func (*EmbeddingInputOneOf1) GetStringArray ¶
func (o *EmbeddingInputOneOf1) GetStringArray() []string
GetStringArray returns the StringArray field value
func (*EmbeddingInputOneOf1) GetStringArrayOk ¶
func (o *EmbeddingInputOneOf1) GetStringArrayOk() ([]string, bool)
GetStringArrayOk returns a tuple with the StringArray field value and a boolean to check if the value has been set.
func (EmbeddingInputOneOf1) MarshalJSON ¶
func (o EmbeddingInputOneOf1) MarshalJSON() ([]byte, error)
func (*EmbeddingInputOneOf1) SetStringArray ¶
func (o *EmbeddingInputOneOf1) SetStringArray(v []string)
SetStringArray sets field value
func (EmbeddingInputOneOf1) ToMap ¶
func (o EmbeddingInputOneOf1) ToMap() (map[string]interface{}, error)
func (*EmbeddingInputOneOf1) UnmarshalJSON ¶
func (o *EmbeddingInputOneOf1) UnmarshalJSON(data []byte) (err error)
type EmbeddingInputOneOf2 ¶
type EmbeddingInputOneOf2 struct {
// A token in integer to be embedded
Ints []int32 `json:"Ints"`
AdditionalProperties map[string]interface{}
}
EmbeddingInputOneOf2 A token in integer to be embedded
func NewEmbeddingInputOneOf2 ¶
func NewEmbeddingInputOneOf2(ints []int32) *EmbeddingInputOneOf2
NewEmbeddingInputOneOf2 instantiates a new EmbeddingInputOneOf2 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
func NewEmbeddingInputOneOf2WithDefaults ¶
func NewEmbeddingInputOneOf2WithDefaults() *EmbeddingInputOneOf2
NewEmbeddingInputOneOf2WithDefaults instantiates a new EmbeddingInputOneOf2 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
func (*EmbeddingInputOneOf2) GetInts ¶
func (o *EmbeddingInputOneOf2) GetInts() []int32
GetInts returns the Ints field value
func (*EmbeddingInputOneOf2) GetIntsOk ¶
func (o *EmbeddingInputOneOf2) GetIntsOk() ([]int32, bool)
GetIntsOk returns a tuple with the Ints field value and a boolean to check if the value has been set.
func (EmbeddingInputOneOf2) MarshalJSON ¶
func (o EmbeddingInputOneOf2) MarshalJSON() ([]byte, error)
func (*EmbeddingInputOneOf2) SetInts ¶
func (o *EmbeddingInputOneOf2) SetInts(v []int32)
SetInts sets field value
func (EmbeddingInputOneOf2) ToMap ¶
func (o EmbeddingInputOneOf2) ToMap() (map[string]interface{}, error)
func (*EmbeddingInputOneOf2) UnmarshalJSON ¶
func (o *EmbeddingInputOneOf2) UnmarshalJSON(data []byte) (err error)
type EmbeddingInputOneOf3 ¶
type EmbeddingInputOneOf3 struct {
// An array of tokens in integers to be embedded
IntsArray [][]int32 `json:"IntsArray"`
AdditionalProperties map[string]interface{}
}
EmbeddingInputOneOf3 An array of tokens in integers to be embedded
func NewEmbeddingInputOneOf3 ¶
func NewEmbeddingInputOneOf3(intsArray [][]int32) *EmbeddingInputOneOf3
NewEmbeddingInputOneOf3 instantiates a new EmbeddingInputOneOf3 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
func NewEmbeddingInputOneOf3WithDefaults ¶
func NewEmbeddingInputOneOf3WithDefaults() *EmbeddingInputOneOf3
NewEmbeddingInputOneOf3WithDefaults instantiates a new EmbeddingInputOneOf3 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
func (*EmbeddingInputOneOf3) GetIntsArray ¶
func (o *EmbeddingInputOneOf3) GetIntsArray() [][]int32
GetIntsArray returns the IntsArray field value
func (*EmbeddingInputOneOf3) GetIntsArrayOk ¶
func (o *EmbeddingInputOneOf3) GetIntsArrayOk() ([][]int32, bool)
GetIntsArrayOk returns a tuple with the IntsArray field value and a boolean to check if the value has been set.
func (EmbeddingInputOneOf3) MarshalJSON ¶
func (o EmbeddingInputOneOf3) MarshalJSON() ([]byte, error)
func (*EmbeddingInputOneOf3) SetIntsArray ¶
func (o *EmbeddingInputOneOf3) SetIntsArray(v [][]int32)
SetIntsArray sets field value
func (EmbeddingInputOneOf3) ToMap ¶
func (o EmbeddingInputOneOf3) ToMap() (map[string]interface{}, error)
func (*EmbeddingInputOneOf3) UnmarshalJSON ¶
func (o *EmbeddingInputOneOf3) UnmarshalJSON(data []byte) (err error)
type EmbeddingModel ¶
type EmbeddingModel struct {
// Alias ID(s) of the model that user can use in a request's model field.
Aliases []string `json:"aliases"`
// Model creation time in Unix timestamp.
Created int64 `json:"created"`
// Fingerprint of the xAI system configuration hosting the model.
Fingerprint string `json:"fingerprint"`
// Model ID. Obtainable from https://console.x.ai/team/default/models or https://docs.x.ai/docs/models.
Id string `json:"id"`
// The input modalities supported by the model.
InputModalities []string `json:"input_modalities"`
// Object type, should be model.
Object string `json:"object"`
// The output modalities supported by the model.
OutputModalities []string `json:"output_modalities"`
// Owner of the model.
OwnedBy string `json:"owned_by"`
// Price of the prompt image token in USD cents per million token.
PromptImageTokenPrice int64 `json:"prompt_image_token_price"`
// Price of the prompt text token in USD cents per million token.
PromptTextTokenPrice int64 `json:"prompt_text_token_price"`
// Version of the model.
Version string `json:"version"`
AdditionalProperties map[string]interface{}
}
EmbeddingModel Details of an embedding model
func NewEmbeddingModel ¶
func NewEmbeddingModel(aliases []string, created int64, fingerprint string, id string, inputModalities []string, object string, outputModalities []string, ownedBy string, promptImageTokenPrice int64, promptTextTokenPrice int64, version string) *EmbeddingModel
NewEmbeddingModel instantiates a new EmbeddingModel 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
func NewEmbeddingModelWithDefaults ¶
func NewEmbeddingModelWithDefaults() *EmbeddingModel
NewEmbeddingModelWithDefaults instantiates a new EmbeddingModel 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
func (*EmbeddingModel) GetAliases ¶
func (o *EmbeddingModel) GetAliases() []string
GetAliases returns the Aliases field value
func (*EmbeddingModel) GetAliasesOk ¶
func (o *EmbeddingModel) GetAliasesOk() ([]string, bool)
GetAliasesOk returns a tuple with the Aliases field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetCreated ¶
func (o *EmbeddingModel) GetCreated() int64
GetCreated returns the Created field value
func (*EmbeddingModel) GetCreatedOk ¶
func (o *EmbeddingModel) GetCreatedOk() (*int64, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetFingerprint ¶
func (o *EmbeddingModel) GetFingerprint() string
GetFingerprint returns the Fingerprint field value
func (*EmbeddingModel) GetFingerprintOk ¶
func (o *EmbeddingModel) GetFingerprintOk() (*string, bool)
GetFingerprintOk returns a tuple with the Fingerprint field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetId ¶
func (o *EmbeddingModel) GetId() string
GetId returns the Id field value
func (*EmbeddingModel) GetIdOk ¶
func (o *EmbeddingModel) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetInputModalities ¶
func (o *EmbeddingModel) GetInputModalities() []string
GetInputModalities returns the InputModalities field value
func (*EmbeddingModel) GetInputModalitiesOk ¶
func (o *EmbeddingModel) GetInputModalitiesOk() ([]string, bool)
GetInputModalitiesOk returns a tuple with the InputModalities field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetObject ¶
func (o *EmbeddingModel) GetObject() string
GetObject returns the Object field value
func (*EmbeddingModel) GetObjectOk ¶
func (o *EmbeddingModel) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetOutputModalities ¶
func (o *EmbeddingModel) GetOutputModalities() []string
GetOutputModalities returns the OutputModalities field value
func (*EmbeddingModel) GetOutputModalitiesOk ¶
func (o *EmbeddingModel) GetOutputModalitiesOk() ([]string, bool)
GetOutputModalitiesOk returns a tuple with the OutputModalities field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetOwnedBy ¶
func (o *EmbeddingModel) GetOwnedBy() string
GetOwnedBy returns the OwnedBy field value
func (*EmbeddingModel) GetOwnedByOk ¶
func (o *EmbeddingModel) GetOwnedByOk() (*string, bool)
GetOwnedByOk returns a tuple with the OwnedBy field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetPromptImageTokenPrice ¶
func (o *EmbeddingModel) GetPromptImageTokenPrice() int64
GetPromptImageTokenPrice returns the PromptImageTokenPrice field value
func (*EmbeddingModel) GetPromptImageTokenPriceOk ¶
func (o *EmbeddingModel) GetPromptImageTokenPriceOk() (*int64, bool)
GetPromptImageTokenPriceOk returns a tuple with the PromptImageTokenPrice field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetPromptTextTokenPrice ¶
func (o *EmbeddingModel) GetPromptTextTokenPrice() int64
GetPromptTextTokenPrice returns the PromptTextTokenPrice field value
func (*EmbeddingModel) GetPromptTextTokenPriceOk ¶
func (o *EmbeddingModel) GetPromptTextTokenPriceOk() (*int64, bool)
GetPromptTextTokenPriceOk returns a tuple with the PromptTextTokenPrice field value and a boolean to check if the value has been set.
func (*EmbeddingModel) GetVersion ¶
func (o *EmbeddingModel) GetVersion() string
GetVersion returns the Version field value
func (*EmbeddingModel) GetVersionOk ¶
func (o *EmbeddingModel) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.
func (EmbeddingModel) MarshalJSON ¶
func (o EmbeddingModel) MarshalJSON() ([]byte, error)
func (*EmbeddingModel) SetAliases ¶
func (o *EmbeddingModel) SetAliases(v []string)
SetAliases sets field value
func (*EmbeddingModel) SetCreated ¶
func (o *EmbeddingModel) SetCreated(v int64)
SetCreated sets field value
func (*EmbeddingModel) SetFingerprint ¶
func (o *EmbeddingModel) SetFingerprint(v string)
SetFingerprint sets field value
func (*EmbeddingModel) SetInputModalities ¶
func (o *EmbeddingModel) SetInputModalities(v []string)
SetInputModalities sets field value
func (*EmbeddingModel) SetObject ¶
func (o *EmbeddingModel) SetObject(v string)
SetObject sets field value
func (*EmbeddingModel) SetOutputModalities ¶
func (o *EmbeddingModel) SetOutputModalities(v []string)
SetOutputModalities sets field value
func (*EmbeddingModel) SetOwnedBy ¶
func (o *EmbeddingModel) SetOwnedBy(v string)
SetOwnedBy sets field value
func (*EmbeddingModel) SetPromptImageTokenPrice ¶
func (o *EmbeddingModel) SetPromptImageTokenPrice(v int64)
SetPromptImageTokenPrice sets field value
func (*EmbeddingModel) SetPromptTextTokenPrice ¶
func (o *EmbeddingModel) SetPromptTextTokenPrice(v int64)
SetPromptTextTokenPrice sets field value
func (*EmbeddingModel) SetVersion ¶
func (o *EmbeddingModel) SetVersion(v string)
SetVersion sets field value
func (EmbeddingModel) ToMap ¶
func (o EmbeddingModel) ToMap() (map[string]interface{}, error)
func (*EmbeddingModel) UnmarshalJSON ¶
func (o *EmbeddingModel) UnmarshalJSON(data []byte) (err error)
type EmbeddingRequest ¶
type EmbeddingRequest struct {
// The number of dimensions the resulting output embeddings should have.
Dimensions NullableInt32 `json:"dimensions,omitempty"`
// The format to return the embeddings in. Can be either `float` or `base64`.
EncodingFormat NullableString `json:"encoding_format,omitempty"`
// Input text to embed, encoded as a string or list of tokens. To embed multiple inputs in a single request, pass a list of strings or list of token lists. The total tokens in the input must not exceed the context window for the model and cannot be an empty string. If the input is a list, the maximum length of the list is 128.
Input *EmbeddingInput `json:"input,omitempty"`
// ID of the model to use.
Model *string `json:"model,omitempty"`
// Flag to use the new format of the API.
Preview NullableBool `json:"preview,omitempty"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
User NullableString `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
EmbeddingRequest struct for EmbeddingRequest
func NewEmbeddingRequest ¶
func NewEmbeddingRequest() *EmbeddingRequest
NewEmbeddingRequest instantiates a new EmbeddingRequest 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
func NewEmbeddingRequestWithDefaults ¶
func NewEmbeddingRequestWithDefaults() *EmbeddingRequest
NewEmbeddingRequestWithDefaults instantiates a new EmbeddingRequest 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
func (*EmbeddingRequest) GetDimensions ¶
func (o *EmbeddingRequest) GetDimensions() int32
GetDimensions returns the Dimensions field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EmbeddingRequest) GetDimensionsOk ¶
func (o *EmbeddingRequest) GetDimensionsOk() (*int32, bool)
GetDimensionsOk returns a tuple with the Dimensions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EmbeddingRequest) GetEncodingFormat ¶
func (o *EmbeddingRequest) GetEncodingFormat() string
GetEncodingFormat returns the EncodingFormat field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EmbeddingRequest) GetEncodingFormatOk ¶
func (o *EmbeddingRequest) GetEncodingFormatOk() (*string, bool)
GetEncodingFormatOk returns a tuple with the EncodingFormat field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EmbeddingRequest) GetInput ¶
func (o *EmbeddingRequest) GetInput() EmbeddingInput
GetInput returns the Input field value if set, zero value otherwise.
func (*EmbeddingRequest) GetInputOk ¶
func (o *EmbeddingRequest) GetInputOk() (*EmbeddingInput, bool)
GetInputOk returns a tuple with the Input field value if set, nil otherwise and a boolean to check if the value has been set.
func (*EmbeddingRequest) GetModel ¶
func (o *EmbeddingRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*EmbeddingRequest) GetModelOk ¶
func (o *EmbeddingRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*EmbeddingRequest) GetPreview ¶
func (o *EmbeddingRequest) GetPreview() bool
GetPreview returns the Preview field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EmbeddingRequest) GetPreviewOk ¶
func (o *EmbeddingRequest) GetPreviewOk() (*bool, bool)
GetPreviewOk returns a tuple with the Preview field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EmbeddingRequest) GetUser ¶
func (o *EmbeddingRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EmbeddingRequest) GetUserOk ¶
func (o *EmbeddingRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EmbeddingRequest) HasDimensions ¶
func (o *EmbeddingRequest) HasDimensions() bool
HasDimensions returns a boolean if a field has been set.
func (*EmbeddingRequest) HasEncodingFormat ¶
func (o *EmbeddingRequest) HasEncodingFormat() bool
HasEncodingFormat returns a boolean if a field has been set.
func (*EmbeddingRequest) HasInput ¶
func (o *EmbeddingRequest) HasInput() bool
HasInput returns a boolean if a field has been set.
func (*EmbeddingRequest) HasModel ¶
func (o *EmbeddingRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*EmbeddingRequest) HasPreview ¶
func (o *EmbeddingRequest) HasPreview() bool
HasPreview returns a boolean if a field has been set.
func (*EmbeddingRequest) HasUser ¶
func (o *EmbeddingRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (EmbeddingRequest) MarshalJSON ¶
func (o EmbeddingRequest) MarshalJSON() ([]byte, error)
func (*EmbeddingRequest) SetDimensions ¶
func (o *EmbeddingRequest) SetDimensions(v int32)
SetDimensions gets a reference to the given NullableInt32 and assigns it to the Dimensions field.
func (*EmbeddingRequest) SetDimensionsNil ¶
func (o *EmbeddingRequest) SetDimensionsNil()
SetDimensionsNil sets the value for Dimensions to be an explicit nil
func (*EmbeddingRequest) SetEncodingFormat ¶
func (o *EmbeddingRequest) SetEncodingFormat(v string)
SetEncodingFormat gets a reference to the given NullableString and assigns it to the EncodingFormat field.
func (*EmbeddingRequest) SetEncodingFormatNil ¶
func (o *EmbeddingRequest) SetEncodingFormatNil()
SetEncodingFormatNil sets the value for EncodingFormat to be an explicit nil
func (*EmbeddingRequest) SetInput ¶
func (o *EmbeddingRequest) SetInput(v EmbeddingInput)
SetInput gets a reference to the given EmbeddingInput and assigns it to the Input field.
func (*EmbeddingRequest) SetModel ¶
func (o *EmbeddingRequest) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*EmbeddingRequest) SetPreview ¶
func (o *EmbeddingRequest) SetPreview(v bool)
SetPreview gets a reference to the given NullableBool and assigns it to the Preview field.
func (*EmbeddingRequest) SetPreviewNil ¶
func (o *EmbeddingRequest) SetPreviewNil()
SetPreviewNil sets the value for Preview to be an explicit nil
func (*EmbeddingRequest) SetUser ¶
func (o *EmbeddingRequest) SetUser(v string)
SetUser gets a reference to the given NullableString and assigns it to the User field.
func (*EmbeddingRequest) SetUserNil ¶
func (o *EmbeddingRequest) SetUserNil()
SetUserNil sets the value for User to be an explicit nil
func (EmbeddingRequest) ToMap ¶
func (o EmbeddingRequest) ToMap() (map[string]interface{}, error)
func (*EmbeddingRequest) UnmarshalJSON ¶
func (o *EmbeddingRequest) UnmarshalJSON(data []byte) (err error)
func (*EmbeddingRequest) UnsetDimensions ¶
func (o *EmbeddingRequest) UnsetDimensions()
UnsetDimensions ensures that no value is present for Dimensions, not even an explicit nil
func (*EmbeddingRequest) UnsetEncodingFormat ¶
func (o *EmbeddingRequest) UnsetEncodingFormat()
UnsetEncodingFormat ensures that no value is present for EncodingFormat, not even an explicit nil
func (*EmbeddingRequest) UnsetPreview ¶
func (o *EmbeddingRequest) UnsetPreview()
UnsetPreview ensures that no value is present for Preview, not even an explicit nil
func (*EmbeddingRequest) UnsetUser ¶
func (o *EmbeddingRequest) UnsetUser()
UnsetUser ensures that no value is present for User, not even an explicit nil
type EmbeddingResponse ¶
type EmbeddingResponse struct {
// A list of embedding objects.
Data []Embedding `json:"data"`
// Model ID used to create embedding.
Model string `json:"model"`
// The object type of `data` field, which is always `\"list\"`.
Object string `json:"object"`
// Token usage information.
Usage NullableEmbeddingUsage `json:"usage,omitempty"`
AdditionalProperties map[string]interface{}
}
EmbeddingResponse struct for EmbeddingResponse
func NewEmbeddingResponse ¶
func NewEmbeddingResponse(data []Embedding, model string, object string) *EmbeddingResponse
NewEmbeddingResponse instantiates a new EmbeddingResponse 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
func NewEmbeddingResponseWithDefaults ¶
func NewEmbeddingResponseWithDefaults() *EmbeddingResponse
NewEmbeddingResponseWithDefaults instantiates a new EmbeddingResponse 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
func (*EmbeddingResponse) GetData ¶
func (o *EmbeddingResponse) GetData() []Embedding
GetData returns the Data field value
func (*EmbeddingResponse) GetDataOk ¶
func (o *EmbeddingResponse) GetDataOk() ([]Embedding, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*EmbeddingResponse) GetModel ¶
func (o *EmbeddingResponse) GetModel() string
GetModel returns the Model field value
func (*EmbeddingResponse) GetModelOk ¶
func (o *EmbeddingResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*EmbeddingResponse) GetObject ¶
func (o *EmbeddingResponse) GetObject() string
GetObject returns the Object field value
func (*EmbeddingResponse) GetObjectOk ¶
func (o *EmbeddingResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*EmbeddingResponse) GetUsage ¶
func (o *EmbeddingResponse) GetUsage() EmbeddingUsage
GetUsage returns the Usage field value if set, zero value otherwise (both if not set or set to explicit null).
func (*EmbeddingResponse) GetUsageOk ¶
func (o *EmbeddingResponse) GetUsageOk() (*EmbeddingUsage, bool)
GetUsageOk returns a tuple with the Usage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*EmbeddingResponse) HasUsage ¶
func (o *EmbeddingResponse) HasUsage() bool
HasUsage returns a boolean if a field has been set.
func (EmbeddingResponse) MarshalJSON ¶
func (o EmbeddingResponse) MarshalJSON() ([]byte, error)
func (*EmbeddingResponse) SetData ¶
func (o *EmbeddingResponse) SetData(v []Embedding)
SetData sets field value
func (*EmbeddingResponse) SetModel ¶
func (o *EmbeddingResponse) SetModel(v string)
SetModel sets field value
func (*EmbeddingResponse) SetObject ¶
func (o *EmbeddingResponse) SetObject(v string)
SetObject sets field value
func (*EmbeddingResponse) SetUsage ¶
func (o *EmbeddingResponse) SetUsage(v EmbeddingUsage)
SetUsage gets a reference to the given NullableEmbeddingUsage and assigns it to the Usage field.
func (*EmbeddingResponse) SetUsageNil ¶
func (o *EmbeddingResponse) SetUsageNil()
SetUsageNil sets the value for Usage to be an explicit nil
func (EmbeddingResponse) ToMap ¶
func (o EmbeddingResponse) ToMap() (map[string]interface{}, error)
func (*EmbeddingResponse) UnmarshalJSON ¶
func (o *EmbeddingResponse) UnmarshalJSON(data []byte) (err error)
func (*EmbeddingResponse) UnsetUsage ¶
func (o *EmbeddingResponse) UnsetUsage()
UnsetUsage ensures that no value is present for Usage, not even an explicit nil
type EmbeddingUsage ¶
type EmbeddingUsage struct {
// Prompt token used.
PromptTokens int32 `json:"prompt_tokens"`
// Total token used.
TotalTokens int32 `json:"total_tokens"`
AdditionalProperties map[string]interface{}
}
EmbeddingUsage struct for EmbeddingUsage
func NewEmbeddingUsage ¶
func NewEmbeddingUsage(promptTokens int32, totalTokens int32) *EmbeddingUsage
NewEmbeddingUsage instantiates a new EmbeddingUsage 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
func NewEmbeddingUsageWithDefaults ¶
func NewEmbeddingUsageWithDefaults() *EmbeddingUsage
NewEmbeddingUsageWithDefaults instantiates a new EmbeddingUsage 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
func (*EmbeddingUsage) GetPromptTokens ¶
func (o *EmbeddingUsage) GetPromptTokens() int32
GetPromptTokens returns the PromptTokens field value
func (*EmbeddingUsage) GetPromptTokensOk ¶
func (o *EmbeddingUsage) GetPromptTokensOk() (*int32, bool)
GetPromptTokensOk returns a tuple with the PromptTokens field value and a boolean to check if the value has been set.
func (*EmbeddingUsage) GetTotalTokens ¶
func (o *EmbeddingUsage) GetTotalTokens() int32
GetTotalTokens returns the TotalTokens field value
func (*EmbeddingUsage) GetTotalTokensOk ¶
func (o *EmbeddingUsage) GetTotalTokensOk() (*int32, bool)
GetTotalTokensOk returns a tuple with the TotalTokens field value and a boolean to check if the value has been set.
func (EmbeddingUsage) MarshalJSON ¶
func (o EmbeddingUsage) MarshalJSON() ([]byte, error)
func (*EmbeddingUsage) SetPromptTokens ¶
func (o *EmbeddingUsage) SetPromptTokens(v int32)
SetPromptTokens sets field value
func (*EmbeddingUsage) SetTotalTokens ¶
func (o *EmbeddingUsage) SetTotalTokens(v int32)
SetTotalTokens sets field value
func (EmbeddingUsage) ToMap ¶
func (o EmbeddingUsage) ToMap() (map[string]interface{}, error)
func (*EmbeddingUsage) UnmarshalJSON ¶
func (o *EmbeddingUsage) UnmarshalJSON(data []byte) (err error)
type Function ¶
type Function struct {
Arguments string `json:"arguments"`
Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
Function struct for Function
func NewFunction ¶
NewFunction instantiates a new Function 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
func NewFunctionWithDefaults ¶
func NewFunctionWithDefaults() *Function
NewFunctionWithDefaults instantiates a new Function 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
func (*Function) GetArguments ¶
GetArguments returns the Arguments field value
func (*Function) GetArgumentsOk ¶
GetArgumentsOk returns a tuple with the Arguments field value and a boolean to check if the value has been set.
func (*Function) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (Function) MarshalJSON ¶
func (*Function) SetArguments ¶
SetArguments sets field value
func (*Function) UnmarshalJSON ¶
type FunctionCall ¶
type FunctionCall struct {
// Arguments available to the function.
Arguments string `json:"arguments"`
// Name of the function.
Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
FunctionCall struct for FunctionCall
func NewFunctionCall ¶
func NewFunctionCall(arguments string, name string) *FunctionCall
NewFunctionCall instantiates a new FunctionCall 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
func NewFunctionCallWithDefaults ¶
func NewFunctionCallWithDefaults() *FunctionCall
NewFunctionCallWithDefaults instantiates a new FunctionCall 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
func (*FunctionCall) GetArguments ¶
func (o *FunctionCall) GetArguments() string
GetArguments returns the Arguments field value
func (*FunctionCall) GetArgumentsOk ¶
func (o *FunctionCall) GetArgumentsOk() (*string, bool)
GetArgumentsOk returns a tuple with the Arguments field value and a boolean to check if the value has been set.
func (*FunctionCall) GetName ¶
func (o *FunctionCall) GetName() string
GetName returns the Name field value
func (*FunctionCall) GetNameOk ¶
func (o *FunctionCall) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (FunctionCall) MarshalJSON ¶
func (o FunctionCall) MarshalJSON() ([]byte, error)
func (*FunctionCall) SetArguments ¶
func (o *FunctionCall) SetArguments(v string)
SetArguments sets field value
func (FunctionCall) ToMap ¶
func (o FunctionCall) ToMap() (map[string]interface{}, error)
func (*FunctionCall) UnmarshalJSON ¶
func (o *FunctionCall) UnmarshalJSON(data []byte) (err error)
type FunctionChoice ¶
type FunctionChoice struct {
Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
FunctionChoice Function name.
func NewFunctionChoice ¶
func NewFunctionChoice(name string) *FunctionChoice
NewFunctionChoice instantiates a new FunctionChoice 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
func NewFunctionChoiceWithDefaults ¶
func NewFunctionChoiceWithDefaults() *FunctionChoice
NewFunctionChoiceWithDefaults instantiates a new FunctionChoice 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
func (*FunctionChoice) GetName ¶
func (o *FunctionChoice) GetName() string
GetName returns the Name field value
func (*FunctionChoice) GetNameOk ¶
func (o *FunctionChoice) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (FunctionChoice) MarshalJSON ¶
func (o FunctionChoice) MarshalJSON() ([]byte, error)
func (*FunctionChoice) SetName ¶
func (o *FunctionChoice) SetName(v string)
SetName sets field value
func (FunctionChoice) ToMap ¶
func (o FunctionChoice) ToMap() (map[string]interface{}, error)
func (*FunctionChoice) UnmarshalJSON ¶
func (o *FunctionChoice) UnmarshalJSON(data []byte) (err error)
type FunctionDefinition ¶
type FunctionDefinition struct {
// A description of the function to indicate to the model when to call it.
Description NullableString `json:"description,omitempty"`
// The name of the function. If the model calls the function, this name is used in the response.
Name string `json:"name"`
Parameters interface{} `json:"parameters"`
// Not supported. Only maintained for compatibility reasons.
Strict NullableBool `json:"strict,omitempty"`
AdditionalProperties map[string]interface{}
}
FunctionDefinition Definition of the tool call made available to the model.
func NewFunctionDefinition ¶
func NewFunctionDefinition(name string, parameters interface{}) *FunctionDefinition
NewFunctionDefinition instantiates a new FunctionDefinition 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
func NewFunctionDefinitionWithDefaults ¶
func NewFunctionDefinitionWithDefaults() *FunctionDefinition
NewFunctionDefinitionWithDefaults instantiates a new FunctionDefinition 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
func (*FunctionDefinition) GetDescription ¶
func (o *FunctionDefinition) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (*FunctionDefinition) GetDescriptionOk ¶
func (o *FunctionDefinition) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*FunctionDefinition) GetName ¶
func (o *FunctionDefinition) GetName() string
GetName returns the Name field value
func (*FunctionDefinition) GetNameOk ¶
func (o *FunctionDefinition) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*FunctionDefinition) GetParameters ¶
func (o *FunctionDefinition) GetParameters() interface{}
GetParameters returns the Parameters field value If the value is explicit nil, the zero value for interface{} will be returned
func (*FunctionDefinition) GetParametersOk ¶
func (o *FunctionDefinition) GetParametersOk() (*interface{}, bool)
GetParametersOk returns a tuple with the Parameters field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*FunctionDefinition) GetStrict ¶
func (o *FunctionDefinition) GetStrict() bool
GetStrict returns the Strict field value if set, zero value otherwise (both if not set or set to explicit null).
func (*FunctionDefinition) GetStrictOk ¶
func (o *FunctionDefinition) GetStrictOk() (*bool, bool)
GetStrictOk returns a tuple with the Strict field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*FunctionDefinition) HasDescription ¶
func (o *FunctionDefinition) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (*FunctionDefinition) HasStrict ¶
func (o *FunctionDefinition) HasStrict() bool
HasStrict returns a boolean if a field has been set.
func (FunctionDefinition) MarshalJSON ¶
func (o FunctionDefinition) MarshalJSON() ([]byte, error)
func (*FunctionDefinition) SetDescription ¶
func (o *FunctionDefinition) SetDescription(v string)
SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (*FunctionDefinition) SetDescriptionNil ¶
func (o *FunctionDefinition) SetDescriptionNil()
SetDescriptionNil sets the value for Description to be an explicit nil
func (*FunctionDefinition) SetName ¶
func (o *FunctionDefinition) SetName(v string)
SetName sets field value
func (*FunctionDefinition) SetParameters ¶
func (o *FunctionDefinition) SetParameters(v interface{})
SetParameters sets field value
func (*FunctionDefinition) SetStrict ¶
func (o *FunctionDefinition) SetStrict(v bool)
SetStrict gets a reference to the given NullableBool and assigns it to the Strict field.
func (*FunctionDefinition) SetStrictNil ¶
func (o *FunctionDefinition) SetStrictNil()
SetStrictNil sets the value for Strict to be an explicit nil
func (FunctionDefinition) ToMap ¶
func (o FunctionDefinition) ToMap() (map[string]interface{}, error)
func (*FunctionDefinition) UnmarshalJSON ¶
func (o *FunctionDefinition) UnmarshalJSON(data []byte) (err error)
func (*FunctionDefinition) UnsetDescription ¶
func (o *FunctionDefinition) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (*FunctionDefinition) UnsetStrict ¶
func (o *FunctionDefinition) UnsetStrict()
UnsetStrict ensures that no value is present for Strict, not even an explicit nil
type GenerateImageRequest ¶
type GenerateImageRequest struct {
// Model to be used.
Model NullableString `json:"model,omitempty"`
// Number of images to be generated
N NullableInt32 `json:"n,omitempty"`
// Prompt for image generation.
Prompt *string `json:"prompt,omitempty"`
// (Not supported) Quality of the image.
Quality NullableString `json:"quality,omitempty"`
// Response format to return the image in. Can be url or b64_json. If b64_json is specified, the image will be returned as a base64-encoded string instead of a url to the generated image file.
ResponseFormat NullableString `json:"response_format,omitempty"`
// (Not supported) Size of the image.
Size NullableString `json:"size,omitempty"`
// (Not supported) Style of the image.
Style NullableString `json:"style,omitempty"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
User NullableString `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
GenerateImageRequest Request to generate image for `/v1/image/generations` endpoint
func NewGenerateImageRequest ¶
func NewGenerateImageRequest() *GenerateImageRequest
NewGenerateImageRequest instantiates a new GenerateImageRequest 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
func NewGenerateImageRequestWithDefaults ¶
func NewGenerateImageRequestWithDefaults() *GenerateImageRequest
NewGenerateImageRequestWithDefaults instantiates a new GenerateImageRequest 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
func (*GenerateImageRequest) GetModel ¶
func (o *GenerateImageRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GenerateImageRequest) GetModelOk ¶
func (o *GenerateImageRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GenerateImageRequest) GetN ¶
func (o *GenerateImageRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GenerateImageRequest) GetNOk ¶
func (o *GenerateImageRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GenerateImageRequest) GetPrompt ¶
func (o *GenerateImageRequest) GetPrompt() string
GetPrompt returns the Prompt field value if set, zero value otherwise.
func (*GenerateImageRequest) GetPromptOk ¶
func (o *GenerateImageRequest) GetPromptOk() (*string, bool)
GetPromptOk returns a tuple with the Prompt field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GenerateImageRequest) GetQuality ¶
func (o *GenerateImageRequest) GetQuality() string
GetQuality returns the Quality field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GenerateImageRequest) GetQualityOk ¶
func (o *GenerateImageRequest) GetQualityOk() (*string, bool)
GetQualityOk returns a tuple with the Quality field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GenerateImageRequest) GetResponseFormat ¶
func (o *GenerateImageRequest) GetResponseFormat() string
GetResponseFormat returns the ResponseFormat field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GenerateImageRequest) GetResponseFormatOk ¶
func (o *GenerateImageRequest) GetResponseFormatOk() (*string, bool)
GetResponseFormatOk returns a tuple with the ResponseFormat field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GenerateImageRequest) GetSize ¶
func (o *GenerateImageRequest) GetSize() string
GetSize returns the Size field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GenerateImageRequest) GetSizeOk ¶
func (o *GenerateImageRequest) GetSizeOk() (*string, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GenerateImageRequest) GetStyle ¶
func (o *GenerateImageRequest) GetStyle() string
GetStyle returns the Style field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GenerateImageRequest) GetStyleOk ¶
func (o *GenerateImageRequest) GetStyleOk() (*string, bool)
GetStyleOk returns a tuple with the Style field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GenerateImageRequest) GetUser ¶
func (o *GenerateImageRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GenerateImageRequest) GetUserOk ¶
func (o *GenerateImageRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GenerateImageRequest) HasModel ¶
func (o *GenerateImageRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*GenerateImageRequest) HasN ¶
func (o *GenerateImageRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*GenerateImageRequest) HasPrompt ¶
func (o *GenerateImageRequest) HasPrompt() bool
HasPrompt returns a boolean if a field has been set.
func (*GenerateImageRequest) HasQuality ¶
func (o *GenerateImageRequest) HasQuality() bool
HasQuality returns a boolean if a field has been set.
func (*GenerateImageRequest) HasResponseFormat ¶
func (o *GenerateImageRequest) HasResponseFormat() bool
HasResponseFormat returns a boolean if a field has been set.
func (*GenerateImageRequest) HasSize ¶
func (o *GenerateImageRequest) HasSize() bool
HasSize returns a boolean if a field has been set.
func (*GenerateImageRequest) HasStyle ¶
func (o *GenerateImageRequest) HasStyle() bool
HasStyle returns a boolean if a field has been set.
func (*GenerateImageRequest) HasUser ¶
func (o *GenerateImageRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (GenerateImageRequest) MarshalJSON ¶
func (o GenerateImageRequest) MarshalJSON() ([]byte, error)
func (*GenerateImageRequest) SetModel ¶
func (o *GenerateImageRequest) SetModel(v string)
SetModel gets a reference to the given NullableString and assigns it to the Model field.
func (*GenerateImageRequest) SetModelNil ¶
func (o *GenerateImageRequest) SetModelNil()
SetModelNil sets the value for Model to be an explicit nil
func (*GenerateImageRequest) SetN ¶
func (o *GenerateImageRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*GenerateImageRequest) SetNNil ¶
func (o *GenerateImageRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*GenerateImageRequest) SetPrompt ¶
func (o *GenerateImageRequest) SetPrompt(v string)
SetPrompt gets a reference to the given string and assigns it to the Prompt field.
func (*GenerateImageRequest) SetQuality ¶
func (o *GenerateImageRequest) SetQuality(v string)
SetQuality gets a reference to the given NullableString and assigns it to the Quality field.
func (*GenerateImageRequest) SetQualityNil ¶
func (o *GenerateImageRequest) SetQualityNil()
SetQualityNil sets the value for Quality to be an explicit nil
func (*GenerateImageRequest) SetResponseFormat ¶
func (o *GenerateImageRequest) SetResponseFormat(v string)
SetResponseFormat gets a reference to the given NullableString and assigns it to the ResponseFormat field.
func (*GenerateImageRequest) SetResponseFormatNil ¶
func (o *GenerateImageRequest) SetResponseFormatNil()
SetResponseFormatNil sets the value for ResponseFormat to be an explicit nil
func (*GenerateImageRequest) SetSize ¶
func (o *GenerateImageRequest) SetSize(v string)
SetSize gets a reference to the given NullableString and assigns it to the Size field.
func (*GenerateImageRequest) SetSizeNil ¶
func (o *GenerateImageRequest) SetSizeNil()
SetSizeNil sets the value for Size to be an explicit nil
func (*GenerateImageRequest) SetStyle ¶
func (o *GenerateImageRequest) SetStyle(v string)
SetStyle gets a reference to the given NullableString and assigns it to the Style field.
func (*GenerateImageRequest) SetStyleNil ¶
func (o *GenerateImageRequest) SetStyleNil()
SetStyleNil sets the value for Style to be an explicit nil
func (*GenerateImageRequest) SetUser ¶
func (o *GenerateImageRequest) SetUser(v string)
SetUser gets a reference to the given NullableString and assigns it to the User field.
func (*GenerateImageRequest) SetUserNil ¶
func (o *GenerateImageRequest) SetUserNil()
SetUserNil sets the value for User to be an explicit nil
func (GenerateImageRequest) ToMap ¶
func (o GenerateImageRequest) ToMap() (map[string]interface{}, error)
func (*GenerateImageRequest) UnmarshalJSON ¶
func (o *GenerateImageRequest) UnmarshalJSON(data []byte) (err error)
func (*GenerateImageRequest) UnsetModel ¶
func (o *GenerateImageRequest) UnsetModel()
UnsetModel ensures that no value is present for Model, not even an explicit nil
func (*GenerateImageRequest) UnsetN ¶
func (o *GenerateImageRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*GenerateImageRequest) UnsetQuality ¶
func (o *GenerateImageRequest) UnsetQuality()
UnsetQuality ensures that no value is present for Quality, not even an explicit nil
func (*GenerateImageRequest) UnsetResponseFormat ¶
func (o *GenerateImageRequest) UnsetResponseFormat()
UnsetResponseFormat ensures that no value is present for ResponseFormat, not even an explicit nil
func (*GenerateImageRequest) UnsetSize ¶
func (o *GenerateImageRequest) UnsetSize()
UnsetSize ensures that no value is present for Size, not even an explicit nil
func (*GenerateImageRequest) UnsetStyle ¶
func (o *GenerateImageRequest) UnsetStyle()
UnsetStyle ensures that no value is present for Style, not even an explicit nil
func (*GenerateImageRequest) UnsetUser ¶
func (o *GenerateImageRequest) UnsetUser()
UnsetUser ensures that no value is present for User, not even an explicit nil
type GeneratedImage ¶
type GeneratedImage struct {
// A base64-encoded string representation of the generated image in `jpeg` encoding, if `b64_json` is specified as `response_format` in the request.
B64Json NullableString `json:"b64_json,omitempty"`
// The revised prompt generated by a chat model from the original prompt. This prompt is used in the final image generation.
RevisedPrompt string `json:"revised_prompt"`
// A url to the generated image, if `response_format` is not specified or with `url` in the request.
Url NullableString `json:"url,omitempty"`
AdditionalProperties map[string]interface{}
}
GeneratedImage Generated images
func NewGeneratedImage ¶
func NewGeneratedImage(revisedPrompt string) *GeneratedImage
NewGeneratedImage instantiates a new GeneratedImage 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
func NewGeneratedImageWithDefaults ¶
func NewGeneratedImageWithDefaults() *GeneratedImage
NewGeneratedImageWithDefaults instantiates a new GeneratedImage 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
func (*GeneratedImage) GetB64Json ¶
func (o *GeneratedImage) GetB64Json() string
GetB64Json returns the B64Json field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GeneratedImage) GetB64JsonOk ¶
func (o *GeneratedImage) GetB64JsonOk() (*string, bool)
GetB64JsonOk returns a tuple with the B64Json field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GeneratedImage) GetRevisedPrompt ¶
func (o *GeneratedImage) GetRevisedPrompt() string
GetRevisedPrompt returns the RevisedPrompt field value
func (*GeneratedImage) GetRevisedPromptOk ¶
func (o *GeneratedImage) GetRevisedPromptOk() (*string, bool)
GetRevisedPromptOk returns a tuple with the RevisedPrompt field value and a boolean to check if the value has been set.
func (*GeneratedImage) GetUrl ¶
func (o *GeneratedImage) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise (both if not set or set to explicit null).
func (*GeneratedImage) GetUrlOk ¶
func (o *GeneratedImage) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*GeneratedImage) HasB64Json ¶
func (o *GeneratedImage) HasB64Json() bool
HasB64Json returns a boolean if a field has been set.
func (*GeneratedImage) HasUrl ¶
func (o *GeneratedImage) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (GeneratedImage) MarshalJSON ¶
func (o GeneratedImage) MarshalJSON() ([]byte, error)
func (*GeneratedImage) SetB64Json ¶
func (o *GeneratedImage) SetB64Json(v string)
SetB64Json gets a reference to the given NullableString and assigns it to the B64Json field.
func (*GeneratedImage) SetB64JsonNil ¶
func (o *GeneratedImage) SetB64JsonNil()
SetB64JsonNil sets the value for B64Json to be an explicit nil
func (*GeneratedImage) SetRevisedPrompt ¶
func (o *GeneratedImage) SetRevisedPrompt(v string)
SetRevisedPrompt sets field value
func (*GeneratedImage) SetUrl ¶
func (o *GeneratedImage) SetUrl(v string)
SetUrl gets a reference to the given NullableString and assigns it to the Url field.
func (*GeneratedImage) SetUrlNil ¶
func (o *GeneratedImage) SetUrlNil()
SetUrlNil sets the value for Url to be an explicit nil
func (GeneratedImage) ToMap ¶
func (o GeneratedImage) ToMap() (map[string]interface{}, error)
func (*GeneratedImage) UnmarshalJSON ¶
func (o *GeneratedImage) UnmarshalJSON(data []byte) (err error)
func (*GeneratedImage) UnsetB64Json ¶
func (o *GeneratedImage) UnsetB64Json()
UnsetB64Json ensures that no value is present for B64Json, not even an explicit nil
func (*GeneratedImage) UnsetUrl ¶
func (o *GeneratedImage) UnsetUrl()
UnsetUrl ensures that no value is present for Url, not even an explicit nil
type GeneratedImageResponse ¶
type GeneratedImageResponse struct {
// A list of generated image objects.
Data []GeneratedImage `json:"data"`
AdditionalProperties map[string]interface{}
}
GeneratedImageResponse Image generation response for `/v1/image/generations` endpoint
func NewGeneratedImageResponse ¶
func NewGeneratedImageResponse(data []GeneratedImage) *GeneratedImageResponse
NewGeneratedImageResponse instantiates a new GeneratedImageResponse 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
func NewGeneratedImageResponseWithDefaults ¶
func NewGeneratedImageResponseWithDefaults() *GeneratedImageResponse
NewGeneratedImageResponseWithDefaults instantiates a new GeneratedImageResponse 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
func (*GeneratedImageResponse) GetData ¶
func (o *GeneratedImageResponse) GetData() []GeneratedImage
GetData returns the Data field value
func (*GeneratedImageResponse) GetDataOk ¶
func (o *GeneratedImageResponse) GetDataOk() ([]GeneratedImage, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (GeneratedImageResponse) MarshalJSON ¶
func (o GeneratedImageResponse) MarshalJSON() ([]byte, error)
func (*GeneratedImageResponse) SetData ¶
func (o *GeneratedImageResponse) SetData(v []GeneratedImage)
SetData sets field value
func (GeneratedImageResponse) ToMap ¶
func (o GeneratedImageResponse) ToMap() (map[string]interface{}, error)
func (*GeneratedImageResponse) UnmarshalJSON ¶
func (o *GeneratedImageResponse) UnmarshalJSON(data []byte) (err error)
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type ImageGenerationModel ¶
type ImageGenerationModel struct {
// Alias ID(s) of the model that user can use in a request's model field.
Aliases []string `json:"aliases"`
// Model creation time in Unix timestamp.
Created int64 `json:"created"`
// Fingerprint of the xAI system configuration hosting the model.
Fingerprint string `json:"fingerprint"`
// Model ID.
Id string `json:"id"`
// Price of a single image in USD cents.
ImagePrice int64 `json:"image_price"`
// The input modalities supported by the model.
InputModalities []string `json:"input_modalities"`
MaxPromptLength int64 `json:"max_prompt_length"`
// The object type, which is always `\"model\"`.
Object string `json:"object"`
// The output modalities supported by the model.
OutputModalities []string `json:"output_modalities"`
// Owner of the model.
OwnedBy string `json:"owned_by"`
// Version of the model.
Version string `json:"version"`
AdditionalProperties map[string]interface{}
}
ImageGenerationModel Details of an image generation model
func NewImageGenerationModel ¶
func NewImageGenerationModel(aliases []string, created int64, fingerprint string, id string, imagePrice int64, inputModalities []string, maxPromptLength int64, object string, outputModalities []string, ownedBy string, version string) *ImageGenerationModel
NewImageGenerationModel instantiates a new ImageGenerationModel 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
func NewImageGenerationModelWithDefaults ¶
func NewImageGenerationModelWithDefaults() *ImageGenerationModel
NewImageGenerationModelWithDefaults instantiates a new ImageGenerationModel 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
func (*ImageGenerationModel) GetAliases ¶
func (o *ImageGenerationModel) GetAliases() []string
GetAliases returns the Aliases field value
func (*ImageGenerationModel) GetAliasesOk ¶
func (o *ImageGenerationModel) GetAliasesOk() ([]string, bool)
GetAliasesOk returns a tuple with the Aliases field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetCreated ¶
func (o *ImageGenerationModel) GetCreated() int64
GetCreated returns the Created field value
func (*ImageGenerationModel) GetCreatedOk ¶
func (o *ImageGenerationModel) GetCreatedOk() (*int64, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetFingerprint ¶
func (o *ImageGenerationModel) GetFingerprint() string
GetFingerprint returns the Fingerprint field value
func (*ImageGenerationModel) GetFingerprintOk ¶
func (o *ImageGenerationModel) GetFingerprintOk() (*string, bool)
GetFingerprintOk returns a tuple with the Fingerprint field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetId ¶
func (o *ImageGenerationModel) GetId() string
GetId returns the Id field value
func (*ImageGenerationModel) GetIdOk ¶
func (o *ImageGenerationModel) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetImagePrice ¶
func (o *ImageGenerationModel) GetImagePrice() int64
GetImagePrice returns the ImagePrice field value
func (*ImageGenerationModel) GetImagePriceOk ¶
func (o *ImageGenerationModel) GetImagePriceOk() (*int64, bool)
GetImagePriceOk returns a tuple with the ImagePrice field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetInputModalities ¶
func (o *ImageGenerationModel) GetInputModalities() []string
GetInputModalities returns the InputModalities field value
func (*ImageGenerationModel) GetInputModalitiesOk ¶
func (o *ImageGenerationModel) GetInputModalitiesOk() ([]string, bool)
GetInputModalitiesOk returns a tuple with the InputModalities field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetMaxPromptLength ¶
func (o *ImageGenerationModel) GetMaxPromptLength() int64
GetMaxPromptLength returns the MaxPromptLength field value
func (*ImageGenerationModel) GetMaxPromptLengthOk ¶
func (o *ImageGenerationModel) GetMaxPromptLengthOk() (*int64, bool)
GetMaxPromptLengthOk returns a tuple with the MaxPromptLength field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetObject ¶
func (o *ImageGenerationModel) GetObject() string
GetObject returns the Object field value
func (*ImageGenerationModel) GetObjectOk ¶
func (o *ImageGenerationModel) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetOutputModalities ¶
func (o *ImageGenerationModel) GetOutputModalities() []string
GetOutputModalities returns the OutputModalities field value
func (*ImageGenerationModel) GetOutputModalitiesOk ¶
func (o *ImageGenerationModel) GetOutputModalitiesOk() ([]string, bool)
GetOutputModalitiesOk returns a tuple with the OutputModalities field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetOwnedBy ¶
func (o *ImageGenerationModel) GetOwnedBy() string
GetOwnedBy returns the OwnedBy field value
func (*ImageGenerationModel) GetOwnedByOk ¶
func (o *ImageGenerationModel) GetOwnedByOk() (*string, bool)
GetOwnedByOk returns a tuple with the OwnedBy field value and a boolean to check if the value has been set.
func (*ImageGenerationModel) GetVersion ¶
func (o *ImageGenerationModel) GetVersion() string
GetVersion returns the Version field value
func (*ImageGenerationModel) GetVersionOk ¶
func (o *ImageGenerationModel) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.
func (ImageGenerationModel) MarshalJSON ¶
func (o ImageGenerationModel) MarshalJSON() ([]byte, error)
func (*ImageGenerationModel) SetAliases ¶
func (o *ImageGenerationModel) SetAliases(v []string)
SetAliases sets field value
func (*ImageGenerationModel) SetCreated ¶
func (o *ImageGenerationModel) SetCreated(v int64)
SetCreated sets field value
func (*ImageGenerationModel) SetFingerprint ¶
func (o *ImageGenerationModel) SetFingerprint(v string)
SetFingerprint sets field value
func (*ImageGenerationModel) SetId ¶
func (o *ImageGenerationModel) SetId(v string)
SetId sets field value
func (*ImageGenerationModel) SetImagePrice ¶
func (o *ImageGenerationModel) SetImagePrice(v int64)
SetImagePrice sets field value
func (*ImageGenerationModel) SetInputModalities ¶
func (o *ImageGenerationModel) SetInputModalities(v []string)
SetInputModalities sets field value
func (*ImageGenerationModel) SetMaxPromptLength ¶
func (o *ImageGenerationModel) SetMaxPromptLength(v int64)
SetMaxPromptLength sets field value
func (*ImageGenerationModel) SetObject ¶
func (o *ImageGenerationModel) SetObject(v string)
SetObject sets field value
func (*ImageGenerationModel) SetOutputModalities ¶
func (o *ImageGenerationModel) SetOutputModalities(v []string)
SetOutputModalities sets field value
func (*ImageGenerationModel) SetOwnedBy ¶
func (o *ImageGenerationModel) SetOwnedBy(v string)
SetOwnedBy sets field value
func (*ImageGenerationModel) SetVersion ¶
func (o *ImageGenerationModel) SetVersion(v string)
SetVersion sets field value
func (ImageGenerationModel) ToMap ¶
func (o ImageGenerationModel) ToMap() (map[string]interface{}, error)
func (*ImageGenerationModel) UnmarshalJSON ¶
func (o *ImageGenerationModel) UnmarshalJSON(data []byte) (err error)
type ImageUrl ¶
type ImageUrl struct {
// Specifies the detail level of the image.
Detail NullableString `json:"detail,omitempty"`
// URL of the image.
Url string `json:"url"`
AdditionalProperties map[string]interface{}
}
ImageUrl Image URL object of Image prompt
func NewImageUrl ¶
NewImageUrl instantiates a new ImageUrl 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
func NewImageUrlWithDefaults ¶
func NewImageUrlWithDefaults() *ImageUrl
NewImageUrlWithDefaults instantiates a new ImageUrl 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
func (*ImageUrl) GetDetail ¶
GetDetail returns the Detail field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ImageUrl) GetDetailOk ¶
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ImageUrl) GetUrlOk ¶
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (ImageUrl) MarshalJSON ¶
func (*ImageUrl) SetDetail ¶
SetDetail gets a reference to the given NullableString and assigns it to the Detail field.
func (*ImageUrl) SetDetailNil ¶
func (o *ImageUrl) SetDetailNil()
SetDetailNil sets the value for Detail to be an explicit nil
func (*ImageUrl) UnmarshalJSON ¶
func (*ImageUrl) UnsetDetail ¶
func (o *ImageUrl) UnsetDetail()
UnsetDetail ensures that no value is present for Detail, not even an explicit nil
type LanguageModel ¶
type LanguageModel struct {
// Alias ID(s) of the model that user can use in a request's model field.
Aliases []string `json:"aliases"`
// Price of a prompt text token (in USD cents per 100 million tokens) that was cached previously.
CachedPromptTextTokenPrice int64 `json:"cached_prompt_text_token_price"`
// Price of the completion text token in USD cents per 100 million token.
CompletionTextTokenPrice int64 `json:"completion_text_token_price"`
// Creation time of the model in Unix timestamp.
Created int64 `json:"created"`
// Fingerprint of the xAI system configuration hosting the model.
Fingerprint string `json:"fingerprint"`
// Model ID. Obtainable from https://console.x.ai/team/default/models or https://docs.x.ai/docs/models.
Id string `json:"id"`
// The input modalities supported by the model, e.g. `\"text\"`, `\"image\"`.
InputModalities []string `json:"input_modalities"`
// The object type, which is always `\"model\"`.
Object string `json:"object"`
// The output modalities supported by the model, e.g. `\"text\"`, `\"image\"`.
OutputModalities []string `json:"output_modalities"`
// Owner of the model.
OwnedBy string `json:"owned_by"`
// Price of the prompt image token in USD cents per 100 million token.
PromptImageTokenPrice int64 `json:"prompt_image_token_price"`
// Price of the prompt text token in USD cents per 100 million token.
PromptTextTokenPrice int64 `json:"prompt_text_token_price"`
// Price of the search in USD cents per 100 million searches.
SearchPrice int64 `json:"search_price"`
// Version of the model.
Version string `json:"version"`
AdditionalProperties map[string]interface{}
}
LanguageModel Details of a language model
func NewLanguageModel ¶
func NewLanguageModel(aliases []string, cachedPromptTextTokenPrice int64, completionTextTokenPrice int64, created int64, fingerprint string, id string, inputModalities []string, object string, outputModalities []string, ownedBy string, promptImageTokenPrice int64, promptTextTokenPrice int64, searchPrice int64, version string) *LanguageModel
NewLanguageModel instantiates a new LanguageModel 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
func NewLanguageModelWithDefaults ¶
func NewLanguageModelWithDefaults() *LanguageModel
NewLanguageModelWithDefaults instantiates a new LanguageModel 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
func (*LanguageModel) GetAliases ¶
func (o *LanguageModel) GetAliases() []string
GetAliases returns the Aliases field value
func (*LanguageModel) GetAliasesOk ¶
func (o *LanguageModel) GetAliasesOk() ([]string, bool)
GetAliasesOk returns a tuple with the Aliases field value and a boolean to check if the value has been set.
func (*LanguageModel) GetCachedPromptTextTokenPrice ¶
func (o *LanguageModel) GetCachedPromptTextTokenPrice() int64
GetCachedPromptTextTokenPrice returns the CachedPromptTextTokenPrice field value
func (*LanguageModel) GetCachedPromptTextTokenPriceOk ¶
func (o *LanguageModel) GetCachedPromptTextTokenPriceOk() (*int64, bool)
GetCachedPromptTextTokenPriceOk returns a tuple with the CachedPromptTextTokenPrice field value and a boolean to check if the value has been set.
func (*LanguageModel) GetCompletionTextTokenPrice ¶
func (o *LanguageModel) GetCompletionTextTokenPrice() int64
GetCompletionTextTokenPrice returns the CompletionTextTokenPrice field value
func (*LanguageModel) GetCompletionTextTokenPriceOk ¶
func (o *LanguageModel) GetCompletionTextTokenPriceOk() (*int64, bool)
GetCompletionTextTokenPriceOk returns a tuple with the CompletionTextTokenPrice field value and a boolean to check if the value has been set.
func (*LanguageModel) GetCreated ¶
func (o *LanguageModel) GetCreated() int64
GetCreated returns the Created field value
func (*LanguageModel) GetCreatedOk ¶
func (o *LanguageModel) GetCreatedOk() (*int64, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*LanguageModel) GetFingerprint ¶
func (o *LanguageModel) GetFingerprint() string
GetFingerprint returns the Fingerprint field value
func (*LanguageModel) GetFingerprintOk ¶
func (o *LanguageModel) GetFingerprintOk() (*string, bool)
GetFingerprintOk returns a tuple with the Fingerprint field value and a boolean to check if the value has been set.
func (*LanguageModel) GetId ¶
func (o *LanguageModel) GetId() string
GetId returns the Id field value
func (*LanguageModel) GetIdOk ¶
func (o *LanguageModel) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*LanguageModel) GetInputModalities ¶
func (o *LanguageModel) GetInputModalities() []string
GetInputModalities returns the InputModalities field value
func (*LanguageModel) GetInputModalitiesOk ¶
func (o *LanguageModel) GetInputModalitiesOk() ([]string, bool)
GetInputModalitiesOk returns a tuple with the InputModalities field value and a boolean to check if the value has been set.
func (*LanguageModel) GetObject ¶
func (o *LanguageModel) GetObject() string
GetObject returns the Object field value
func (*LanguageModel) GetObjectOk ¶
func (o *LanguageModel) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*LanguageModel) GetOutputModalities ¶
func (o *LanguageModel) GetOutputModalities() []string
GetOutputModalities returns the OutputModalities field value
func (*LanguageModel) GetOutputModalitiesOk ¶
func (o *LanguageModel) GetOutputModalitiesOk() ([]string, bool)
GetOutputModalitiesOk returns a tuple with the OutputModalities field value and a boolean to check if the value has been set.
func (*LanguageModel) GetOwnedBy ¶
func (o *LanguageModel) GetOwnedBy() string
GetOwnedBy returns the OwnedBy field value
func (*LanguageModel) GetOwnedByOk ¶
func (o *LanguageModel) GetOwnedByOk() (*string, bool)
GetOwnedByOk returns a tuple with the OwnedBy field value and a boolean to check if the value has been set.
func (*LanguageModel) GetPromptImageTokenPrice ¶
func (o *LanguageModel) GetPromptImageTokenPrice() int64
GetPromptImageTokenPrice returns the PromptImageTokenPrice field value
func (*LanguageModel) GetPromptImageTokenPriceOk ¶
func (o *LanguageModel) GetPromptImageTokenPriceOk() (*int64, bool)
GetPromptImageTokenPriceOk returns a tuple with the PromptImageTokenPrice field value and a boolean to check if the value has been set.
func (*LanguageModel) GetPromptTextTokenPrice ¶
func (o *LanguageModel) GetPromptTextTokenPrice() int64
GetPromptTextTokenPrice returns the PromptTextTokenPrice field value
func (*LanguageModel) GetPromptTextTokenPriceOk ¶
func (o *LanguageModel) GetPromptTextTokenPriceOk() (*int64, bool)
GetPromptTextTokenPriceOk returns a tuple with the PromptTextTokenPrice field value and a boolean to check if the value has been set.
func (*LanguageModel) GetSearchPrice ¶
func (o *LanguageModel) GetSearchPrice() int64
GetSearchPrice returns the SearchPrice field value
func (*LanguageModel) GetSearchPriceOk ¶
func (o *LanguageModel) GetSearchPriceOk() (*int64, bool)
GetSearchPriceOk returns a tuple with the SearchPrice field value and a boolean to check if the value has been set.
func (*LanguageModel) GetVersion ¶
func (o *LanguageModel) GetVersion() string
GetVersion returns the Version field value
func (*LanguageModel) GetVersionOk ¶
func (o *LanguageModel) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.
func (LanguageModel) MarshalJSON ¶
func (o LanguageModel) MarshalJSON() ([]byte, error)
func (*LanguageModel) SetAliases ¶
func (o *LanguageModel) SetAliases(v []string)
SetAliases sets field value
func (*LanguageModel) SetCachedPromptTextTokenPrice ¶
func (o *LanguageModel) SetCachedPromptTextTokenPrice(v int64)
SetCachedPromptTextTokenPrice sets field value
func (*LanguageModel) SetCompletionTextTokenPrice ¶
func (o *LanguageModel) SetCompletionTextTokenPrice(v int64)
SetCompletionTextTokenPrice sets field value
func (*LanguageModel) SetCreated ¶
func (o *LanguageModel) SetCreated(v int64)
SetCreated sets field value
func (*LanguageModel) SetFingerprint ¶
func (o *LanguageModel) SetFingerprint(v string)
SetFingerprint sets field value
func (*LanguageModel) SetInputModalities ¶
func (o *LanguageModel) SetInputModalities(v []string)
SetInputModalities sets field value
func (*LanguageModel) SetObject ¶
func (o *LanguageModel) SetObject(v string)
SetObject sets field value
func (*LanguageModel) SetOutputModalities ¶
func (o *LanguageModel) SetOutputModalities(v []string)
SetOutputModalities sets field value
func (*LanguageModel) SetOwnedBy ¶
func (o *LanguageModel) SetOwnedBy(v string)
SetOwnedBy sets field value
func (*LanguageModel) SetPromptImageTokenPrice ¶
func (o *LanguageModel) SetPromptImageTokenPrice(v int64)
SetPromptImageTokenPrice sets field value
func (*LanguageModel) SetPromptTextTokenPrice ¶
func (o *LanguageModel) SetPromptTextTokenPrice(v int64)
SetPromptTextTokenPrice sets field value
func (*LanguageModel) SetSearchPrice ¶
func (o *LanguageModel) SetSearchPrice(v int64)
SetSearchPrice sets field value
func (*LanguageModel) SetVersion ¶
func (o *LanguageModel) SetVersion(v string)
SetVersion sets field value
func (LanguageModel) ToMap ¶
func (o LanguageModel) ToMap() (map[string]interface{}, error)
func (*LanguageModel) UnmarshalJSON ¶
func (o *LanguageModel) UnmarshalJSON(data []byte) (err error)
type ListEmbeddingModelsResponse ¶
type ListEmbeddingModelsResponse struct {
// Array of available embedding models.
Models []EmbeddingModel `json:"models"`
AdditionalProperties map[string]interface{}
}
ListEmbeddingModelsResponse struct for ListEmbeddingModelsResponse
func NewListEmbeddingModelsResponse ¶
func NewListEmbeddingModelsResponse(models []EmbeddingModel) *ListEmbeddingModelsResponse
NewListEmbeddingModelsResponse instantiates a new ListEmbeddingModelsResponse 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
func NewListEmbeddingModelsResponseWithDefaults ¶
func NewListEmbeddingModelsResponseWithDefaults() *ListEmbeddingModelsResponse
NewListEmbeddingModelsResponseWithDefaults instantiates a new ListEmbeddingModelsResponse 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
func (*ListEmbeddingModelsResponse) GetModels ¶
func (o *ListEmbeddingModelsResponse) GetModels() []EmbeddingModel
GetModels returns the Models field value
func (*ListEmbeddingModelsResponse) GetModelsOk ¶
func (o *ListEmbeddingModelsResponse) GetModelsOk() ([]EmbeddingModel, bool)
GetModelsOk returns a tuple with the Models field value and a boolean to check if the value has been set.
func (ListEmbeddingModelsResponse) MarshalJSON ¶
func (o ListEmbeddingModelsResponse) MarshalJSON() ([]byte, error)
func (*ListEmbeddingModelsResponse) SetModels ¶
func (o *ListEmbeddingModelsResponse) SetModels(v []EmbeddingModel)
SetModels sets field value
func (ListEmbeddingModelsResponse) ToMap ¶
func (o ListEmbeddingModelsResponse) ToMap() (map[string]interface{}, error)
func (*ListEmbeddingModelsResponse) UnmarshalJSON ¶
func (o *ListEmbeddingModelsResponse) UnmarshalJSON(data []byte) (err error)
type ListImageGenerationModelsResponse ¶
type ListImageGenerationModelsResponse struct {
// Array of available image generation models.
Models []ImageGenerationModel `json:"models"`
AdditionalProperties map[string]interface{}
}
ListImageGenerationModelsResponse struct for ListImageGenerationModelsResponse
func NewListImageGenerationModelsResponse ¶
func NewListImageGenerationModelsResponse(models []ImageGenerationModel) *ListImageGenerationModelsResponse
NewListImageGenerationModelsResponse instantiates a new ListImageGenerationModelsResponse 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
func NewListImageGenerationModelsResponseWithDefaults ¶
func NewListImageGenerationModelsResponseWithDefaults() *ListImageGenerationModelsResponse
NewListImageGenerationModelsResponseWithDefaults instantiates a new ListImageGenerationModelsResponse 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
func (*ListImageGenerationModelsResponse) GetModels ¶
func (o *ListImageGenerationModelsResponse) GetModels() []ImageGenerationModel
GetModels returns the Models field value
func (*ListImageGenerationModelsResponse) GetModelsOk ¶
func (o *ListImageGenerationModelsResponse) GetModelsOk() ([]ImageGenerationModel, bool)
GetModelsOk returns a tuple with the Models field value and a boolean to check if the value has been set.
func (ListImageGenerationModelsResponse) MarshalJSON ¶
func (o ListImageGenerationModelsResponse) MarshalJSON() ([]byte, error)
func (*ListImageGenerationModelsResponse) SetModels ¶
func (o *ListImageGenerationModelsResponse) SetModels(v []ImageGenerationModel)
SetModels sets field value
func (ListImageGenerationModelsResponse) ToMap ¶
func (o ListImageGenerationModelsResponse) ToMap() (map[string]interface{}, error)
func (*ListImageGenerationModelsResponse) UnmarshalJSON ¶
func (o *ListImageGenerationModelsResponse) UnmarshalJSON(data []byte) (err error)
type ListLanguageModelsResponse ¶
type ListLanguageModelsResponse struct {
// Array of available language models.
Models []LanguageModel `json:"models"`
AdditionalProperties map[string]interface{}
}
ListLanguageModelsResponse struct for ListLanguageModelsResponse
func NewListLanguageModelsResponse ¶
func NewListLanguageModelsResponse(models []LanguageModel) *ListLanguageModelsResponse
NewListLanguageModelsResponse instantiates a new ListLanguageModelsResponse 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
func NewListLanguageModelsResponseWithDefaults ¶
func NewListLanguageModelsResponseWithDefaults() *ListLanguageModelsResponse
NewListLanguageModelsResponseWithDefaults instantiates a new ListLanguageModelsResponse 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
func (*ListLanguageModelsResponse) GetModels ¶
func (o *ListLanguageModelsResponse) GetModels() []LanguageModel
GetModels returns the Models field value
func (*ListLanguageModelsResponse) GetModelsOk ¶
func (o *ListLanguageModelsResponse) GetModelsOk() ([]LanguageModel, bool)
GetModelsOk returns a tuple with the Models field value and a boolean to check if the value has been set.
func (ListLanguageModelsResponse) MarshalJSON ¶
func (o ListLanguageModelsResponse) MarshalJSON() ([]byte, error)
func (*ListLanguageModelsResponse) SetModels ¶
func (o *ListLanguageModelsResponse) SetModels(v []LanguageModel)
SetModels sets field value
func (ListLanguageModelsResponse) ToMap ¶
func (o ListLanguageModelsResponse) ToMap() (map[string]interface{}, error)
func (*ListLanguageModelsResponse) UnmarshalJSON ¶
func (o *ListLanguageModelsResponse) UnmarshalJSON(data []byte) (err error)
type ListModelsResponse ¶
type ListModelsResponse struct {
// A list of models with with minimalized information.
Data []Model `json:"data"`
// The object type of `data` field, which is always `\"list\"`.
Object string `json:"object"`
AdditionalProperties map[string]interface{}
}
ListModelsResponse struct for ListModelsResponse
func NewListModelsResponse ¶
func NewListModelsResponse(data []Model, object string) *ListModelsResponse
NewListModelsResponse instantiates a new ListModelsResponse 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
func NewListModelsResponseWithDefaults ¶
func NewListModelsResponseWithDefaults() *ListModelsResponse
NewListModelsResponseWithDefaults instantiates a new ListModelsResponse 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
func (*ListModelsResponse) GetData ¶
func (o *ListModelsResponse) GetData() []Model
GetData returns the Data field value
func (*ListModelsResponse) GetDataOk ¶
func (o *ListModelsResponse) GetDataOk() ([]Model, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*ListModelsResponse) GetObject ¶
func (o *ListModelsResponse) GetObject() string
GetObject returns the Object field value
func (*ListModelsResponse) GetObjectOk ¶
func (o *ListModelsResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (ListModelsResponse) MarshalJSON ¶
func (o ListModelsResponse) MarshalJSON() ([]byte, error)
func (*ListModelsResponse) SetData ¶
func (o *ListModelsResponse) SetData(v []Model)
SetData sets field value
func (*ListModelsResponse) SetObject ¶
func (o *ListModelsResponse) SetObject(v string)
SetObject sets field value
func (ListModelsResponse) ToMap ¶
func (o ListModelsResponse) ToMap() (map[string]interface{}, error)
func (*ListModelsResponse) UnmarshalJSON ¶
func (o *ListModelsResponse) UnmarshalJSON(data []byte) (err error)
type LogProbs ¶
type LogProbs struct {
// An array the log probabilities of each output token returned.
Content []TokenLogProb `json:"content,omitempty"`
AdditionalProperties map[string]interface{}
}
LogProbs struct for LogProbs
func NewLogProbs ¶
func NewLogProbs() *LogProbs
NewLogProbs instantiates a new LogProbs 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
func NewLogProbsWithDefaults ¶
func NewLogProbsWithDefaults() *LogProbs
NewLogProbsWithDefaults instantiates a new LogProbs 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
func (*LogProbs) GetContent ¶
func (o *LogProbs) GetContent() []TokenLogProb
GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LogProbs) GetContentOk ¶
func (o *LogProbs) GetContentOk() ([]TokenLogProb, bool)
GetContentOk returns a tuple with the Content field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LogProbs) HasContent ¶
HasContent returns a boolean if a field has been set.
func (LogProbs) MarshalJSON ¶
func (*LogProbs) SetContent ¶
func (o *LogProbs) SetContent(v []TokenLogProb)
SetContent gets a reference to the given []TokenLogProb and assigns it to the Content field.
func (*LogProbs) UnmarshalJSON ¶
type MappedNullable ¶
type Message ¶
type Message struct {
MessageOneOf *MessageOneOf
MessageOneOf1 *MessageOneOf1
MessageOneOf2 *MessageOneOf2
MessageOneOf3 *MessageOneOf3
MessageOneOf4 *MessageOneOf4
}
Message - Chat message objects.
func MessageOneOf1AsMessage ¶
func MessageOneOf1AsMessage(v *MessageOneOf1) Message
MessageOneOf1AsMessage is a convenience function that returns MessageOneOf1 wrapped in Message
func MessageOneOf2AsMessage ¶
func MessageOneOf2AsMessage(v *MessageOneOf2) Message
MessageOneOf2AsMessage is a convenience function that returns MessageOneOf2 wrapped in Message
func MessageOneOf3AsMessage ¶
func MessageOneOf3AsMessage(v *MessageOneOf3) Message
MessageOneOf3AsMessage is a convenience function that returns MessageOneOf3 wrapped in Message
func MessageOneOf4AsMessage ¶
func MessageOneOf4AsMessage(v *MessageOneOf4) Message
MessageOneOf4AsMessage is a convenience function that returns MessageOneOf4 wrapped in Message
func MessageOneOfAsMessage ¶
func MessageOneOfAsMessage(v *MessageOneOf) Message
MessageOneOfAsMessage is a convenience function that returns MessageOneOf wrapped in Message
func (*Message) GetActualInstance ¶
func (obj *Message) GetActualInstance() interface{}
Get the actual instance
func (Message) GetActualInstanceValue ¶
func (obj Message) GetActualInstanceValue() interface{}
Get the actual instance value
func (Message) MarshalJSON ¶
Marshal data from the first non-nil pointers in the struct to JSON
func (*Message) UnmarshalJSON ¶
Unmarshal JSON data into one of the pointers in the struct
type MessageBody ¶
type MessageBody struct {
// The content message.
Content MessageContent `json:"content"`
// The role that the message belongs to, `\"system\"` for system prompt, `\"user\"` for user prompt, and `\"assistant\"` for response from the model.
Role string `json:"role"`
AdditionalProperties map[string]interface{}
}
MessageBody Anthropic compatible message body
func NewMessageBody ¶
func NewMessageBody(content MessageContent, role string) *MessageBody
NewMessageBody instantiates a new MessageBody 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
func NewMessageBodyWithDefaults ¶
func NewMessageBodyWithDefaults() *MessageBody
NewMessageBodyWithDefaults instantiates a new MessageBody 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
func (*MessageBody) GetContent ¶
func (o *MessageBody) GetContent() MessageContent
GetContent returns the Content field value
func (*MessageBody) GetContentOk ¶
func (o *MessageBody) GetContentOk() (*MessageContent, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*MessageBody) GetRole ¶
func (o *MessageBody) GetRole() string
GetRole returns the Role field value
func (*MessageBody) GetRoleOk ¶
func (o *MessageBody) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (MessageBody) MarshalJSON ¶
func (o MessageBody) MarshalJSON() ([]byte, error)
func (*MessageBody) SetContent ¶
func (o *MessageBody) SetContent(v MessageContent)
SetContent sets field value
func (MessageBody) ToMap ¶
func (o MessageBody) ToMap() (map[string]interface{}, error)
func (*MessageBody) UnmarshalJSON ¶
func (o *MessageBody) UnmarshalJSON(data []byte) (err error)
type MessageContent ¶
type MessageContent struct {
ArrayOfMessageContentPart *[]MessageContentPart
String *string
}
MessageContent - struct for MessageContent
func ArrayOfMessageContentPartAsMessageContent ¶
func ArrayOfMessageContentPartAsMessageContent(v *[]MessageContentPart) MessageContent
[]MessageContentPartAsMessageContent is a convenience function that returns []MessageContentPart wrapped in MessageContent
func StringAsMessageContent ¶
func StringAsMessageContent(v *string) MessageContent
stringAsMessageContent is a convenience function that returns string wrapped in MessageContent
func (*MessageContent) GetActualInstance ¶
func (obj *MessageContent) GetActualInstance() interface{}
Get the actual instance
func (MessageContent) GetActualInstanceValue ¶
func (obj MessageContent) GetActualInstanceValue() interface{}
Get the actual instance value
func (MessageContent) MarshalJSON ¶
func (src MessageContent) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*MessageContent) UnmarshalJSON ¶
func (dst *MessageContent) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type MessageContentPart ¶
type MessageContentPart struct {
MessageContentPartOneOf *MessageContentPartOneOf
MessageContentPartOneOf1 *MessageContentPartOneOf1
MessageContentPartOneOf2 *MessageContentPartOneOf2
MessageContentPartOneOf3 *MessageContentPartOneOf3
MessageContentPartOneOf4 *MessageContentPartOneOf4
MessageContentPartOneOf5 *MessageContentPartOneOf5
}
MessageContentPart - struct for MessageContentPart
func MessageContentPartOneOf1AsMessageContentPart ¶
func MessageContentPartOneOf1AsMessageContentPart(v *MessageContentPartOneOf1) MessageContentPart
MessageContentPartOneOf1AsMessageContentPart is a convenience function that returns MessageContentPartOneOf1 wrapped in MessageContentPart
func MessageContentPartOneOf2AsMessageContentPart ¶
func MessageContentPartOneOf2AsMessageContentPart(v *MessageContentPartOneOf2) MessageContentPart
MessageContentPartOneOf2AsMessageContentPart is a convenience function that returns MessageContentPartOneOf2 wrapped in MessageContentPart
func MessageContentPartOneOf3AsMessageContentPart ¶
func MessageContentPartOneOf3AsMessageContentPart(v *MessageContentPartOneOf3) MessageContentPart
MessageContentPartOneOf3AsMessageContentPart is a convenience function that returns MessageContentPartOneOf3 wrapped in MessageContentPart
func MessageContentPartOneOf4AsMessageContentPart ¶
func MessageContentPartOneOf4AsMessageContentPart(v *MessageContentPartOneOf4) MessageContentPart
MessageContentPartOneOf4AsMessageContentPart is a convenience function that returns MessageContentPartOneOf4 wrapped in MessageContentPart
func MessageContentPartOneOf5AsMessageContentPart ¶
func MessageContentPartOneOf5AsMessageContentPart(v *MessageContentPartOneOf5) MessageContentPart
MessageContentPartOneOf5AsMessageContentPart is a convenience function that returns MessageContentPartOneOf5 wrapped in MessageContentPart
func MessageContentPartOneOfAsMessageContentPart ¶
func MessageContentPartOneOfAsMessageContentPart(v *MessageContentPartOneOf) MessageContentPart
MessageContentPartOneOfAsMessageContentPart is a convenience function that returns MessageContentPartOneOf wrapped in MessageContentPart
func (*MessageContentPart) GetActualInstance ¶
func (obj *MessageContentPart) GetActualInstance() interface{}
Get the actual instance
func (MessageContentPart) GetActualInstanceValue ¶
func (obj MessageContentPart) GetActualInstanceValue() interface{}
Get the actual instance value
func (MessageContentPart) MarshalJSON ¶
func (src MessageContentPart) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*MessageContentPart) UnmarshalJSON ¶
func (dst *MessageContentPart) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type MessageContentPartOneOf ¶
type MessageContentPartOneOf struct {
CacheControl interface{} `json:"cache_control,omitempty"`
// Text prompt.
Text string `json:"text"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageContentPartOneOf Text prompt message content part.
func NewMessageContentPartOneOf ¶
func NewMessageContentPartOneOf(text string, type_ string) *MessageContentPartOneOf
NewMessageContentPartOneOf instantiates a new MessageContentPartOneOf 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
func NewMessageContentPartOneOfWithDefaults ¶
func NewMessageContentPartOneOfWithDefaults() *MessageContentPartOneOf
NewMessageContentPartOneOfWithDefaults instantiates a new MessageContentPartOneOf 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
func (*MessageContentPartOneOf) GetCacheControl ¶
func (o *MessageContentPartOneOf) GetCacheControl() interface{}
GetCacheControl returns the CacheControl field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageContentPartOneOf) GetCacheControlOk ¶
func (o *MessageContentPartOneOf) GetCacheControlOk() (*interface{}, bool)
GetCacheControlOk returns a tuple with the CacheControl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageContentPartOneOf) GetText ¶
func (o *MessageContentPartOneOf) GetText() string
GetText returns the Text field value
func (*MessageContentPartOneOf) GetTextOk ¶
func (o *MessageContentPartOneOf) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf) GetType ¶
func (o *MessageContentPartOneOf) GetType() string
GetType returns the Type field value
func (*MessageContentPartOneOf) GetTypeOk ¶
func (o *MessageContentPartOneOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf) HasCacheControl ¶
func (o *MessageContentPartOneOf) HasCacheControl() bool
HasCacheControl returns a boolean if a field has been set.
func (MessageContentPartOneOf) MarshalJSON ¶
func (o MessageContentPartOneOf) MarshalJSON() ([]byte, error)
func (*MessageContentPartOneOf) SetCacheControl ¶
func (o *MessageContentPartOneOf) SetCacheControl(v interface{})
SetCacheControl gets a reference to the given interface{} and assigns it to the CacheControl field.
func (*MessageContentPartOneOf) SetText ¶
func (o *MessageContentPartOneOf) SetText(v string)
SetText sets field value
func (*MessageContentPartOneOf) SetType ¶
func (o *MessageContentPartOneOf) SetType(v string)
SetType sets field value
func (MessageContentPartOneOf) ToMap ¶
func (o MessageContentPartOneOf) ToMap() (map[string]interface{}, error)
func (*MessageContentPartOneOf) UnmarshalJSON ¶
func (o *MessageContentPartOneOf) UnmarshalJSON(data []byte) (err error)
type MessageContentPartOneOf1 ¶
type MessageContentPartOneOf1 struct {
CacheControl interface{} `json:"cache_control,omitempty"`
// Image source.
Source MessageImageContent `json:"source"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageContentPartOneOf1 Image prompt message content part.
func NewMessageContentPartOneOf1 ¶
func NewMessageContentPartOneOf1(source MessageImageContent, type_ string) *MessageContentPartOneOf1
NewMessageContentPartOneOf1 instantiates a new MessageContentPartOneOf1 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
func NewMessageContentPartOneOf1WithDefaults ¶
func NewMessageContentPartOneOf1WithDefaults() *MessageContentPartOneOf1
NewMessageContentPartOneOf1WithDefaults instantiates a new MessageContentPartOneOf1 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
func (*MessageContentPartOneOf1) GetCacheControl ¶
func (o *MessageContentPartOneOf1) GetCacheControl() interface{}
GetCacheControl returns the CacheControl field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageContentPartOneOf1) GetCacheControlOk ¶
func (o *MessageContentPartOneOf1) GetCacheControlOk() (*interface{}, bool)
GetCacheControlOk returns a tuple with the CacheControl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageContentPartOneOf1) GetSource ¶
func (o *MessageContentPartOneOf1) GetSource() MessageImageContent
GetSource returns the Source field value
func (*MessageContentPartOneOf1) GetSourceOk ¶
func (o *MessageContentPartOneOf1) GetSourceOk() (*MessageImageContent, bool)
GetSourceOk returns a tuple with the Source field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf1) GetType ¶
func (o *MessageContentPartOneOf1) GetType() string
GetType returns the Type field value
func (*MessageContentPartOneOf1) GetTypeOk ¶
func (o *MessageContentPartOneOf1) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf1) HasCacheControl ¶
func (o *MessageContentPartOneOf1) HasCacheControl() bool
HasCacheControl returns a boolean if a field has been set.
func (MessageContentPartOneOf1) MarshalJSON ¶
func (o MessageContentPartOneOf1) MarshalJSON() ([]byte, error)
func (*MessageContentPartOneOf1) SetCacheControl ¶
func (o *MessageContentPartOneOf1) SetCacheControl(v interface{})
SetCacheControl gets a reference to the given interface{} and assigns it to the CacheControl field.
func (*MessageContentPartOneOf1) SetSource ¶
func (o *MessageContentPartOneOf1) SetSource(v MessageImageContent)
SetSource sets field value
func (*MessageContentPartOneOf1) SetType ¶
func (o *MessageContentPartOneOf1) SetType(v string)
SetType sets field value
func (MessageContentPartOneOf1) ToMap ¶
func (o MessageContentPartOneOf1) ToMap() (map[string]interface{}, error)
func (*MessageContentPartOneOf1) UnmarshalJSON ¶
func (o *MessageContentPartOneOf1) UnmarshalJSON(data []byte) (err error)
type MessageContentPartOneOf2 ¶
type MessageContentPartOneOf2 struct {
CacheControl interface{} `json:"cache_control,omitempty"`
// ID of the tool call.
Id string `json:"id"`
Input interface{} `json:"input"`
// Name of the tool call.
Name string `json:"name"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageContentPartOneOf2 Tool call message content part. Received from model.
func NewMessageContentPartOneOf2 ¶
func NewMessageContentPartOneOf2(id string, input interface{}, name string, type_ string) *MessageContentPartOneOf2
NewMessageContentPartOneOf2 instantiates a new MessageContentPartOneOf2 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
func NewMessageContentPartOneOf2WithDefaults ¶
func NewMessageContentPartOneOf2WithDefaults() *MessageContentPartOneOf2
NewMessageContentPartOneOf2WithDefaults instantiates a new MessageContentPartOneOf2 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
func (*MessageContentPartOneOf2) GetCacheControl ¶
func (o *MessageContentPartOneOf2) GetCacheControl() interface{}
GetCacheControl returns the CacheControl field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageContentPartOneOf2) GetCacheControlOk ¶
func (o *MessageContentPartOneOf2) GetCacheControlOk() (*interface{}, bool)
GetCacheControlOk returns a tuple with the CacheControl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageContentPartOneOf2) GetId ¶
func (o *MessageContentPartOneOf2) GetId() string
GetId returns the Id field value
func (*MessageContentPartOneOf2) GetIdOk ¶
func (o *MessageContentPartOneOf2) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf2) GetInput ¶
func (o *MessageContentPartOneOf2) GetInput() interface{}
GetInput returns the Input field value If the value is explicit nil, the zero value for interface{} will be returned
func (*MessageContentPartOneOf2) GetInputOk ¶
func (o *MessageContentPartOneOf2) GetInputOk() (*interface{}, bool)
GetInputOk returns a tuple with the Input field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageContentPartOneOf2) GetName ¶
func (o *MessageContentPartOneOf2) GetName() string
GetName returns the Name field value
func (*MessageContentPartOneOf2) GetNameOk ¶
func (o *MessageContentPartOneOf2) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf2) GetType ¶
func (o *MessageContentPartOneOf2) GetType() string
GetType returns the Type field value
func (*MessageContentPartOneOf2) GetTypeOk ¶
func (o *MessageContentPartOneOf2) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf2) HasCacheControl ¶
func (o *MessageContentPartOneOf2) HasCacheControl() bool
HasCacheControl returns a boolean if a field has been set.
func (MessageContentPartOneOf2) MarshalJSON ¶
func (o MessageContentPartOneOf2) MarshalJSON() ([]byte, error)
func (*MessageContentPartOneOf2) SetCacheControl ¶
func (o *MessageContentPartOneOf2) SetCacheControl(v interface{})
SetCacheControl gets a reference to the given interface{} and assigns it to the CacheControl field.
func (*MessageContentPartOneOf2) SetId ¶
func (o *MessageContentPartOneOf2) SetId(v string)
SetId sets field value
func (*MessageContentPartOneOf2) SetInput ¶
func (o *MessageContentPartOneOf2) SetInput(v interface{})
SetInput sets field value
func (*MessageContentPartOneOf2) SetName ¶
func (o *MessageContentPartOneOf2) SetName(v string)
SetName sets field value
func (*MessageContentPartOneOf2) SetType ¶
func (o *MessageContentPartOneOf2) SetType(v string)
SetType sets field value
func (MessageContentPartOneOf2) ToMap ¶
func (o MessageContentPartOneOf2) ToMap() (map[string]interface{}, error)
func (*MessageContentPartOneOf2) UnmarshalJSON ¶
func (o *MessageContentPartOneOf2) UnmarshalJSON(data []byte) (err error)
type MessageContentPartOneOf3 ¶
type MessageContentPartOneOf3 struct {
CacheControl interface{} `json:"cache_control,omitempty"`
// Result content of the tool call.
Content string `json:"content"`
// Whether the tool call returns an error.
IsError NullableBool `json:"is_error,omitempty"`
// ID of the tool call given by the model.
ToolUseId string `json:"tool_use_id"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageContentPartOneOf3 Tool call result.
func NewMessageContentPartOneOf3 ¶
func NewMessageContentPartOneOf3(content string, toolUseId string, type_ string) *MessageContentPartOneOf3
NewMessageContentPartOneOf3 instantiates a new MessageContentPartOneOf3 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
func NewMessageContentPartOneOf3WithDefaults ¶
func NewMessageContentPartOneOf3WithDefaults() *MessageContentPartOneOf3
NewMessageContentPartOneOf3WithDefaults instantiates a new MessageContentPartOneOf3 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
func (*MessageContentPartOneOf3) GetCacheControl ¶
func (o *MessageContentPartOneOf3) GetCacheControl() interface{}
GetCacheControl returns the CacheControl field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageContentPartOneOf3) GetCacheControlOk ¶
func (o *MessageContentPartOneOf3) GetCacheControlOk() (*interface{}, bool)
GetCacheControlOk returns a tuple with the CacheControl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageContentPartOneOf3) GetContent ¶
func (o *MessageContentPartOneOf3) GetContent() string
GetContent returns the Content field value
func (*MessageContentPartOneOf3) GetContentOk ¶
func (o *MessageContentPartOneOf3) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf3) GetIsError ¶
func (o *MessageContentPartOneOf3) GetIsError() bool
GetIsError returns the IsError field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageContentPartOneOf3) GetIsErrorOk ¶
func (o *MessageContentPartOneOf3) GetIsErrorOk() (*bool, bool)
GetIsErrorOk returns a tuple with the IsError field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageContentPartOneOf3) GetToolUseId ¶
func (o *MessageContentPartOneOf3) GetToolUseId() string
GetToolUseId returns the ToolUseId field value
func (*MessageContentPartOneOf3) GetToolUseIdOk ¶
func (o *MessageContentPartOneOf3) GetToolUseIdOk() (*string, bool)
GetToolUseIdOk returns a tuple with the ToolUseId field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf3) GetType ¶
func (o *MessageContentPartOneOf3) GetType() string
GetType returns the Type field value
func (*MessageContentPartOneOf3) GetTypeOk ¶
func (o *MessageContentPartOneOf3) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf3) HasCacheControl ¶
func (o *MessageContentPartOneOf3) HasCacheControl() bool
HasCacheControl returns a boolean if a field has been set.
func (*MessageContentPartOneOf3) HasIsError ¶
func (o *MessageContentPartOneOf3) HasIsError() bool
HasIsError returns a boolean if a field has been set.
func (MessageContentPartOneOf3) MarshalJSON ¶
func (o MessageContentPartOneOf3) MarshalJSON() ([]byte, error)
func (*MessageContentPartOneOf3) SetCacheControl ¶
func (o *MessageContentPartOneOf3) SetCacheControl(v interface{})
SetCacheControl gets a reference to the given interface{} and assigns it to the CacheControl field.
func (*MessageContentPartOneOf3) SetContent ¶
func (o *MessageContentPartOneOf3) SetContent(v string)
SetContent sets field value
func (*MessageContentPartOneOf3) SetIsError ¶
func (o *MessageContentPartOneOf3) SetIsError(v bool)
SetIsError gets a reference to the given NullableBool and assigns it to the IsError field.
func (*MessageContentPartOneOf3) SetIsErrorNil ¶
func (o *MessageContentPartOneOf3) SetIsErrorNil()
SetIsErrorNil sets the value for IsError to be an explicit nil
func (*MessageContentPartOneOf3) SetToolUseId ¶
func (o *MessageContentPartOneOf3) SetToolUseId(v string)
SetToolUseId sets field value
func (*MessageContentPartOneOf3) SetType ¶
func (o *MessageContentPartOneOf3) SetType(v string)
SetType sets field value
func (MessageContentPartOneOf3) ToMap ¶
func (o MessageContentPartOneOf3) ToMap() (map[string]interface{}, error)
func (*MessageContentPartOneOf3) UnmarshalJSON ¶
func (o *MessageContentPartOneOf3) UnmarshalJSON(data []byte) (err error)
func (*MessageContentPartOneOf3) UnsetIsError ¶
func (o *MessageContentPartOneOf3) UnsetIsError()
UnsetIsError ensures that no value is present for IsError, not even an explicit nil
type MessageContentPartOneOf4 ¶
type MessageContentPartOneOf4 struct {
// Encrypted data of the redacted thinking.
Data string `json:"data"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageContentPartOneOf4 (Redacted) Thinking of the model.
func NewMessageContentPartOneOf4 ¶
func NewMessageContentPartOneOf4(data string, type_ string) *MessageContentPartOneOf4
NewMessageContentPartOneOf4 instantiates a new MessageContentPartOneOf4 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
func NewMessageContentPartOneOf4WithDefaults ¶
func NewMessageContentPartOneOf4WithDefaults() *MessageContentPartOneOf4
NewMessageContentPartOneOf4WithDefaults instantiates a new MessageContentPartOneOf4 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
func (*MessageContentPartOneOf4) GetData ¶
func (o *MessageContentPartOneOf4) GetData() string
GetData returns the Data field value
func (*MessageContentPartOneOf4) GetDataOk ¶
func (o *MessageContentPartOneOf4) GetDataOk() (*string, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf4) GetType ¶
func (o *MessageContentPartOneOf4) GetType() string
GetType returns the Type field value
func (*MessageContentPartOneOf4) GetTypeOk ¶
func (o *MessageContentPartOneOf4) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageContentPartOneOf4) MarshalJSON ¶
func (o MessageContentPartOneOf4) MarshalJSON() ([]byte, error)
func (*MessageContentPartOneOf4) SetData ¶
func (o *MessageContentPartOneOf4) SetData(v string)
SetData sets field value
func (*MessageContentPartOneOf4) SetType ¶
func (o *MessageContentPartOneOf4) SetType(v string)
SetType sets field value
func (MessageContentPartOneOf4) ToMap ¶
func (o MessageContentPartOneOf4) ToMap() (map[string]interface{}, error)
func (*MessageContentPartOneOf4) UnmarshalJSON ¶
func (o *MessageContentPartOneOf4) UnmarshalJSON(data []byte) (err error)
type MessageContentPartOneOf5 ¶
type MessageContentPartOneOf5 struct {
// Thinking.
Thinking string `json:"thinking"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageContentPartOneOf5 Thinking of the model.
func NewMessageContentPartOneOf5 ¶
func NewMessageContentPartOneOf5(thinking string, type_ string) *MessageContentPartOneOf5
NewMessageContentPartOneOf5 instantiates a new MessageContentPartOneOf5 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
func NewMessageContentPartOneOf5WithDefaults ¶
func NewMessageContentPartOneOf5WithDefaults() *MessageContentPartOneOf5
NewMessageContentPartOneOf5WithDefaults instantiates a new MessageContentPartOneOf5 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
func (*MessageContentPartOneOf5) GetThinking ¶
func (o *MessageContentPartOneOf5) GetThinking() string
GetThinking returns the Thinking field value
func (*MessageContentPartOneOf5) GetThinkingOk ¶
func (o *MessageContentPartOneOf5) GetThinkingOk() (*string, bool)
GetThinkingOk returns a tuple with the Thinking field value and a boolean to check if the value has been set.
func (*MessageContentPartOneOf5) GetType ¶
func (o *MessageContentPartOneOf5) GetType() string
GetType returns the Type field value
func (*MessageContentPartOneOf5) GetTypeOk ¶
func (o *MessageContentPartOneOf5) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageContentPartOneOf5) MarshalJSON ¶
func (o MessageContentPartOneOf5) MarshalJSON() ([]byte, error)
func (*MessageContentPartOneOf5) SetThinking ¶
func (o *MessageContentPartOneOf5) SetThinking(v string)
SetThinking sets field value
func (*MessageContentPartOneOf5) SetType ¶
func (o *MessageContentPartOneOf5) SetType(v string)
SetType sets field value
func (MessageContentPartOneOf5) ToMap ¶
func (o MessageContentPartOneOf5) ToMap() (map[string]interface{}, error)
func (*MessageContentPartOneOf5) UnmarshalJSON ¶
func (o *MessageContentPartOneOf5) UnmarshalJSON(data []byte) (err error)
type MessageImageContent ¶
type MessageImageContent struct {
MessageImageContentOneOf *MessageImageContentOneOf
MessageImageContentOneOf1 *MessageImageContentOneOf1
}
MessageImageContent - struct for MessageImageContent
func MessageImageContentOneOf1AsMessageImageContent ¶
func MessageImageContentOneOf1AsMessageImageContent(v *MessageImageContentOneOf1) MessageImageContent
MessageImageContentOneOf1AsMessageImageContent is a convenience function that returns MessageImageContentOneOf1 wrapped in MessageImageContent
func MessageImageContentOneOfAsMessageImageContent ¶
func MessageImageContentOneOfAsMessageImageContent(v *MessageImageContentOneOf) MessageImageContent
MessageImageContentOneOfAsMessageImageContent is a convenience function that returns MessageImageContentOneOf wrapped in MessageImageContent
func (*MessageImageContent) GetActualInstance ¶
func (obj *MessageImageContent) GetActualInstance() interface{}
Get the actual instance
func (MessageImageContent) GetActualInstanceValue ¶
func (obj MessageImageContent) GetActualInstanceValue() interface{}
Get the actual instance value
func (MessageImageContent) MarshalJSON ¶
func (src MessageImageContent) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*MessageImageContent) UnmarshalJSON ¶
func (dst *MessageImageContent) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type MessageImageContentOneOf ¶
type MessageImageContentOneOf struct {
// Base64 encoded image string.
Data string `json:"data"`
// Media type of the image source. Available options: `image/jpeg`, `image/png`.
MediaType string `json:"media_type"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageImageContentOneOf struct for MessageImageContentOneOf
func NewMessageImageContentOneOf ¶
func NewMessageImageContentOneOf(data string, mediaType string, type_ string) *MessageImageContentOneOf
NewMessageImageContentOneOf instantiates a new MessageImageContentOneOf 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
func NewMessageImageContentOneOfWithDefaults ¶
func NewMessageImageContentOneOfWithDefaults() *MessageImageContentOneOf
NewMessageImageContentOneOfWithDefaults instantiates a new MessageImageContentOneOf 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
func (*MessageImageContentOneOf) GetData ¶
func (o *MessageImageContentOneOf) GetData() string
GetData returns the Data field value
func (*MessageImageContentOneOf) GetDataOk ¶
func (o *MessageImageContentOneOf) GetDataOk() (*string, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*MessageImageContentOneOf) GetMediaType ¶
func (o *MessageImageContentOneOf) GetMediaType() string
GetMediaType returns the MediaType field value
func (*MessageImageContentOneOf) GetMediaTypeOk ¶
func (o *MessageImageContentOneOf) GetMediaTypeOk() (*string, bool)
GetMediaTypeOk returns a tuple with the MediaType field value and a boolean to check if the value has been set.
func (*MessageImageContentOneOf) GetType ¶
func (o *MessageImageContentOneOf) GetType() string
GetType returns the Type field value
func (*MessageImageContentOneOf) GetTypeOk ¶
func (o *MessageImageContentOneOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageImageContentOneOf) MarshalJSON ¶
func (o MessageImageContentOneOf) MarshalJSON() ([]byte, error)
func (*MessageImageContentOneOf) SetData ¶
func (o *MessageImageContentOneOf) SetData(v string)
SetData sets field value
func (*MessageImageContentOneOf) SetMediaType ¶
func (o *MessageImageContentOneOf) SetMediaType(v string)
SetMediaType sets field value
func (*MessageImageContentOneOf) SetType ¶
func (o *MessageImageContentOneOf) SetType(v string)
SetType sets field value
func (MessageImageContentOneOf) ToMap ¶
func (o MessageImageContentOneOf) ToMap() (map[string]interface{}, error)
func (*MessageImageContentOneOf) UnmarshalJSON ¶
func (o *MessageImageContentOneOf) UnmarshalJSON(data []byte) (err error)
type MessageImageContentOneOf1 ¶
type MessageImageContentOneOf1 struct {
Type string `json:"type"`
// URL of the image.
Url string `json:"url"`
AdditionalProperties map[string]interface{}
}
MessageImageContentOneOf1 struct for MessageImageContentOneOf1
func NewMessageImageContentOneOf1 ¶
func NewMessageImageContentOneOf1(type_ string, url string) *MessageImageContentOneOf1
NewMessageImageContentOneOf1 instantiates a new MessageImageContentOneOf1 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
func NewMessageImageContentOneOf1WithDefaults ¶
func NewMessageImageContentOneOf1WithDefaults() *MessageImageContentOneOf1
NewMessageImageContentOneOf1WithDefaults instantiates a new MessageImageContentOneOf1 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
func (*MessageImageContentOneOf1) GetType ¶
func (o *MessageImageContentOneOf1) GetType() string
GetType returns the Type field value
func (*MessageImageContentOneOf1) GetTypeOk ¶
func (o *MessageImageContentOneOf1) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*MessageImageContentOneOf1) GetUrl ¶
func (o *MessageImageContentOneOf1) GetUrl() string
GetUrl returns the Url field value
func (*MessageImageContentOneOf1) GetUrlOk ¶
func (o *MessageImageContentOneOf1) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (MessageImageContentOneOf1) MarshalJSON ¶
func (o MessageImageContentOneOf1) MarshalJSON() ([]byte, error)
func (*MessageImageContentOneOf1) SetType ¶
func (o *MessageImageContentOneOf1) SetType(v string)
SetType sets field value
func (*MessageImageContentOneOf1) SetUrl ¶
func (o *MessageImageContentOneOf1) SetUrl(v string)
SetUrl sets field value
func (MessageImageContentOneOf1) ToMap ¶
func (o MessageImageContentOneOf1) ToMap() (map[string]interface{}, error)
func (*MessageImageContentOneOf1) UnmarshalJSON ¶
func (o *MessageImageContentOneOf1) UnmarshalJSON(data []byte) (err error)
type MessageMetadata ¶
type MessageMetadata struct {
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
UserId NullableString `json:"user_id,omitempty"`
AdditionalProperties map[string]interface{}
}
MessageMetadata struct for MessageMetadata
func NewMessageMetadata ¶
func NewMessageMetadata() *MessageMetadata
NewMessageMetadata instantiates a new MessageMetadata 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
func NewMessageMetadataWithDefaults ¶
func NewMessageMetadataWithDefaults() *MessageMetadata
NewMessageMetadataWithDefaults instantiates a new MessageMetadata 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
func (*MessageMetadata) GetUserId ¶
func (o *MessageMetadata) GetUserId() string
GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageMetadata) GetUserIdOk ¶
func (o *MessageMetadata) GetUserIdOk() (*string, bool)
GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageMetadata) HasUserId ¶
func (o *MessageMetadata) HasUserId() bool
HasUserId returns a boolean if a field has been set.
func (MessageMetadata) MarshalJSON ¶
func (o MessageMetadata) MarshalJSON() ([]byte, error)
func (*MessageMetadata) SetUserId ¶
func (o *MessageMetadata) SetUserId(v string)
SetUserId gets a reference to the given NullableString and assigns it to the UserId field.
func (*MessageMetadata) SetUserIdNil ¶
func (o *MessageMetadata) SetUserIdNil()
SetUserIdNil sets the value for UserId to be an explicit nil
func (MessageMetadata) ToMap ¶
func (o MessageMetadata) ToMap() (map[string]interface{}, error)
func (*MessageMetadata) UnmarshalJSON ¶
func (o *MessageMetadata) UnmarshalJSON(data []byte) (err error)
func (*MessageMetadata) UnsetUserId ¶
func (o *MessageMetadata) UnsetUserId()
UnsetUserId ensures that no value is present for UserId, not even an explicit nil
type MessageOneOf ¶
type MessageOneOf struct {
// System prompt content.
Content Content `json:"content"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
Name NullableString `json:"name,omitempty"`
Role string `json:"role"`
AdditionalProperties map[string]interface{}
}
MessageOneOf System message, usually instructions for the model to respond in a certain way.
func NewMessageOneOf ¶
func NewMessageOneOf(content Content, role string) *MessageOneOf
NewMessageOneOf instantiates a new MessageOneOf 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
func NewMessageOneOfWithDefaults ¶
func NewMessageOneOfWithDefaults() *MessageOneOf
NewMessageOneOfWithDefaults instantiates a new MessageOneOf 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
func (*MessageOneOf) GetContent ¶
func (o *MessageOneOf) GetContent() Content
GetContent returns the Content field value
func (*MessageOneOf) GetContentOk ¶
func (o *MessageOneOf) GetContentOk() (*Content, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*MessageOneOf) GetName ¶
func (o *MessageOneOf) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf) GetNameOk ¶
func (o *MessageOneOf) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf) GetRole ¶
func (o *MessageOneOf) GetRole() string
GetRole returns the Role field value
func (*MessageOneOf) GetRoleOk ¶
func (o *MessageOneOf) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*MessageOneOf) HasName ¶
func (o *MessageOneOf) HasName() bool
HasName returns a boolean if a field has been set.
func (MessageOneOf) MarshalJSON ¶
func (o MessageOneOf) MarshalJSON() ([]byte, error)
func (*MessageOneOf) SetContent ¶
func (o *MessageOneOf) SetContent(v Content)
SetContent sets field value
func (*MessageOneOf) SetName ¶
func (o *MessageOneOf) SetName(v string)
SetName gets a reference to the given NullableString and assigns it to the Name field.
func (*MessageOneOf) SetNameNil ¶
func (o *MessageOneOf) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil
func (MessageOneOf) ToMap ¶
func (o MessageOneOf) ToMap() (map[string]interface{}, error)
func (*MessageOneOf) UnmarshalJSON ¶
func (o *MessageOneOf) UnmarshalJSON(data []byte) (err error)
func (*MessageOneOf) UnsetName ¶
func (o *MessageOneOf) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil
type MessageOneOf1 ¶
type MessageOneOf1 struct {
// System prompt content.
Content Content `json:"content"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
Name NullableString `json:"name,omitempty"`
Role string `json:"role"`
AdditionalProperties map[string]interface{}
}
MessageOneOf1 User message, typically request from user for the model to answer.
func NewMessageOneOf1 ¶
func NewMessageOneOf1(content Content, role string) *MessageOneOf1
NewMessageOneOf1 instantiates a new MessageOneOf1 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
func NewMessageOneOf1WithDefaults ¶
func NewMessageOneOf1WithDefaults() *MessageOneOf1
NewMessageOneOf1WithDefaults instantiates a new MessageOneOf1 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
func (*MessageOneOf1) GetContent ¶
func (o *MessageOneOf1) GetContent() Content
GetContent returns the Content field value
func (*MessageOneOf1) GetContentOk ¶
func (o *MessageOneOf1) GetContentOk() (*Content, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*MessageOneOf1) GetName ¶
func (o *MessageOneOf1) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf1) GetNameOk ¶
func (o *MessageOneOf1) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf1) GetRole ¶
func (o *MessageOneOf1) GetRole() string
GetRole returns the Role field value
func (*MessageOneOf1) GetRoleOk ¶
func (o *MessageOneOf1) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*MessageOneOf1) HasName ¶
func (o *MessageOneOf1) HasName() bool
HasName returns a boolean if a field has been set.
func (MessageOneOf1) MarshalJSON ¶
func (o MessageOneOf1) MarshalJSON() ([]byte, error)
func (*MessageOneOf1) SetContent ¶
func (o *MessageOneOf1) SetContent(v Content)
SetContent sets field value
func (*MessageOneOf1) SetName ¶
func (o *MessageOneOf1) SetName(v string)
SetName gets a reference to the given NullableString and assigns it to the Name field.
func (*MessageOneOf1) SetNameNil ¶
func (o *MessageOneOf1) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil
func (MessageOneOf1) ToMap ¶
func (o MessageOneOf1) ToMap() (map[string]interface{}, error)
func (*MessageOneOf1) UnmarshalJSON ¶
func (o *MessageOneOf1) UnmarshalJSON(data []byte) (err error)
func (*MessageOneOf1) UnsetName ¶
func (o *MessageOneOf1) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil
type MessageOneOf2 ¶
type MessageOneOf2 struct {
// Assistant prompt content.
Content NullableContent `json:"content,omitempty"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
Name NullableString `json:"name,omitempty"`
// Assistant reasoning content.
ReasoningContent NullableString `json:"reasoning_content,omitempty"`
Role string `json:"role"`
// An array of tool calls available to the model on your machine.
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
AdditionalProperties map[string]interface{}
}
MessageOneOf2 Assistant role message, previous chat messages from the model.
func NewMessageOneOf2 ¶
func NewMessageOneOf2(role string) *MessageOneOf2
NewMessageOneOf2 instantiates a new MessageOneOf2 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
func NewMessageOneOf2WithDefaults ¶
func NewMessageOneOf2WithDefaults() *MessageOneOf2
NewMessageOneOf2WithDefaults instantiates a new MessageOneOf2 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
func (*MessageOneOf2) GetContent ¶
func (o *MessageOneOf2) GetContent() Content
GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf2) GetContentOk ¶
func (o *MessageOneOf2) GetContentOk() (*Content, bool)
GetContentOk returns a tuple with the Content field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf2) GetName ¶
func (o *MessageOneOf2) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf2) GetNameOk ¶
func (o *MessageOneOf2) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf2) GetReasoningContent ¶
func (o *MessageOneOf2) GetReasoningContent() string
GetReasoningContent returns the ReasoningContent field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf2) GetReasoningContentOk ¶
func (o *MessageOneOf2) GetReasoningContentOk() (*string, bool)
GetReasoningContentOk returns a tuple with the ReasoningContent field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf2) GetRole ¶
func (o *MessageOneOf2) GetRole() string
GetRole returns the Role field value
func (*MessageOneOf2) GetRoleOk ¶
func (o *MessageOneOf2) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*MessageOneOf2) GetToolCalls ¶
func (o *MessageOneOf2) GetToolCalls() []ToolCall
GetToolCalls returns the ToolCalls field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf2) GetToolCallsOk ¶
func (o *MessageOneOf2) GetToolCallsOk() ([]ToolCall, bool)
GetToolCallsOk returns a tuple with the ToolCalls field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf2) HasContent ¶
func (o *MessageOneOf2) HasContent() bool
HasContent returns a boolean if a field has been set.
func (*MessageOneOf2) HasName ¶
func (o *MessageOneOf2) HasName() bool
HasName returns a boolean if a field has been set.
func (*MessageOneOf2) HasReasoningContent ¶
func (o *MessageOneOf2) HasReasoningContent() bool
HasReasoningContent returns a boolean if a field has been set.
func (*MessageOneOf2) HasToolCalls ¶
func (o *MessageOneOf2) HasToolCalls() bool
HasToolCalls returns a boolean if a field has been set.
func (MessageOneOf2) MarshalJSON ¶
func (o MessageOneOf2) MarshalJSON() ([]byte, error)
func (*MessageOneOf2) SetContent ¶
func (o *MessageOneOf2) SetContent(v Content)
SetContent gets a reference to the given NullableContent and assigns it to the Content field.
func (*MessageOneOf2) SetContentNil ¶
func (o *MessageOneOf2) SetContentNil()
SetContentNil sets the value for Content to be an explicit nil
func (*MessageOneOf2) SetName ¶
func (o *MessageOneOf2) SetName(v string)
SetName gets a reference to the given NullableString and assigns it to the Name field.
func (*MessageOneOf2) SetNameNil ¶
func (o *MessageOneOf2) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil
func (*MessageOneOf2) SetReasoningContent ¶
func (o *MessageOneOf2) SetReasoningContent(v string)
SetReasoningContent gets a reference to the given NullableString and assigns it to the ReasoningContent field.
func (*MessageOneOf2) SetReasoningContentNil ¶
func (o *MessageOneOf2) SetReasoningContentNil()
SetReasoningContentNil sets the value for ReasoningContent to be an explicit nil
func (*MessageOneOf2) SetToolCalls ¶
func (o *MessageOneOf2) SetToolCalls(v []ToolCall)
SetToolCalls gets a reference to the given []ToolCall and assigns it to the ToolCalls field.
func (MessageOneOf2) ToMap ¶
func (o MessageOneOf2) ToMap() (map[string]interface{}, error)
func (*MessageOneOf2) UnmarshalJSON ¶
func (o *MessageOneOf2) UnmarshalJSON(data []byte) (err error)
func (*MessageOneOf2) UnsetContent ¶
func (o *MessageOneOf2) UnsetContent()
UnsetContent ensures that no value is present for Content, not even an explicit nil
func (*MessageOneOf2) UnsetName ¶
func (o *MessageOneOf2) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil
func (*MessageOneOf2) UnsetReasoningContent ¶
func (o *MessageOneOf2) UnsetReasoningContent()
UnsetReasoningContent ensures that no value is present for ReasoningContent, not even an explicit nil
type MessageOneOf3 ¶
type MessageOneOf3 struct {
// Content of the tool call result.
Content Content `json:"content"`
Role string `json:"role"`
// The ID of the tool call received from assistant message response.
ToolCallId NullableString `json:"tool_call_id,omitempty"`
AdditionalProperties map[string]interface{}
}
MessageOneOf3 Tool call role message, used to return function call result to the model.
func NewMessageOneOf3 ¶
func NewMessageOneOf3(content Content, role string) *MessageOneOf3
NewMessageOneOf3 instantiates a new MessageOneOf3 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
func NewMessageOneOf3WithDefaults ¶
func NewMessageOneOf3WithDefaults() *MessageOneOf3
NewMessageOneOf3WithDefaults instantiates a new MessageOneOf3 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
func (*MessageOneOf3) GetContent ¶
func (o *MessageOneOf3) GetContent() Content
GetContent returns the Content field value
func (*MessageOneOf3) GetContentOk ¶
func (o *MessageOneOf3) GetContentOk() (*Content, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*MessageOneOf3) GetRole ¶
func (o *MessageOneOf3) GetRole() string
GetRole returns the Role field value
func (*MessageOneOf3) GetRoleOk ¶
func (o *MessageOneOf3) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*MessageOneOf3) GetToolCallId ¶
func (o *MessageOneOf3) GetToolCallId() string
GetToolCallId returns the ToolCallId field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf3) GetToolCallIdOk ¶
func (o *MessageOneOf3) GetToolCallIdOk() (*string, bool)
GetToolCallIdOk returns a tuple with the ToolCallId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf3) HasToolCallId ¶
func (o *MessageOneOf3) HasToolCallId() bool
HasToolCallId returns a boolean if a field has been set.
func (MessageOneOf3) MarshalJSON ¶
func (o MessageOneOf3) MarshalJSON() ([]byte, error)
func (*MessageOneOf3) SetContent ¶
func (o *MessageOneOf3) SetContent(v Content)
SetContent sets field value
func (*MessageOneOf3) SetToolCallId ¶
func (o *MessageOneOf3) SetToolCallId(v string)
SetToolCallId gets a reference to the given NullableString and assigns it to the ToolCallId field.
func (*MessageOneOf3) SetToolCallIdNil ¶
func (o *MessageOneOf3) SetToolCallIdNil()
SetToolCallIdNil sets the value for ToolCallId to be an explicit nil
func (MessageOneOf3) ToMap ¶
func (o MessageOneOf3) ToMap() (map[string]interface{}, error)
func (*MessageOneOf3) UnmarshalJSON ¶
func (o *MessageOneOf3) UnmarshalJSON(data []byte) (err error)
func (*MessageOneOf3) UnsetToolCallId ¶
func (o *MessageOneOf3) UnsetToolCallId()
UnsetToolCallId ensures that no value is present for ToolCallId, not even an explicit nil
type MessageOneOf4 ¶
type MessageOneOf4 struct {
// Content of the tool call result.
Content Content `json:"content"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
Name NullableString `json:"name,omitempty"`
Role string `json:"role"`
AdditionalProperties map[string]interface{}
}
MessageOneOf4 Function call role message. Deprecated in favor of `{\"role\": \"tool\"}`.
func NewMessageOneOf4 ¶
func NewMessageOneOf4(content Content, role string) *MessageOneOf4
NewMessageOneOf4 instantiates a new MessageOneOf4 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
func NewMessageOneOf4WithDefaults ¶
func NewMessageOneOf4WithDefaults() *MessageOneOf4
NewMessageOneOf4WithDefaults instantiates a new MessageOneOf4 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
func (*MessageOneOf4) GetContent ¶
func (o *MessageOneOf4) GetContent() Content
GetContent returns the Content field value
func (*MessageOneOf4) GetContentOk ¶
func (o *MessageOneOf4) GetContentOk() (*Content, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*MessageOneOf4) GetName ¶
func (o *MessageOneOf4) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageOneOf4) GetNameOk ¶
func (o *MessageOneOf4) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageOneOf4) GetRole ¶
func (o *MessageOneOf4) GetRole() string
GetRole returns the Role field value
func (*MessageOneOf4) GetRoleOk ¶
func (o *MessageOneOf4) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*MessageOneOf4) HasName ¶
func (o *MessageOneOf4) HasName() bool
HasName returns a boolean if a field has been set.
func (MessageOneOf4) MarshalJSON ¶
func (o MessageOneOf4) MarshalJSON() ([]byte, error)
func (*MessageOneOf4) SetContent ¶
func (o *MessageOneOf4) SetContent(v Content)
SetContent sets field value
func (*MessageOneOf4) SetName ¶
func (o *MessageOneOf4) SetName(v string)
SetName gets a reference to the given NullableString and assigns it to the Name field.
func (*MessageOneOf4) SetNameNil ¶
func (o *MessageOneOf4) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil
func (MessageOneOf4) ToMap ¶
func (o MessageOneOf4) ToMap() (map[string]interface{}, error)
func (*MessageOneOf4) UnmarshalJSON ¶
func (o *MessageOneOf4) UnmarshalJSON(data []byte) (err error)
func (*MessageOneOf4) UnsetName ¶
func (o *MessageOneOf4) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil
type MessageRequest ¶
type MessageRequest struct {
// The maximum number of tokens to generate before stopping. The model may stop before the max_tokens when it reaches the stop sequence.
MaxTokens *int32 `json:"max_tokens,omitempty"`
// Input messages.
Messages []MessageBody `json:"messages,omitempty"`
// An object describing metadata about the request.
Metadata NullableMessageMetadata `json:"metadata,omitempty"`
// Model name for the model to use.
Model *string `json:"model,omitempty"`
// (Not supported by reasoning models) Up to 4 sequences where the API will stop generating further tokens.
StopSequences []string `json:"stop_sequences,omitempty"`
// If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message.
Stream NullableBool `json:"stream,omitempty"`
// System prompt message for the model, defining how the model should behave to user messages.
System NullableSystemMessageContent `json:"system,omitempty"`
// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. It may not work well with reasoning models.
Temperature NullableFloat32 `json:"temperature,omitempty"`
// Controls which (if any) tool is called by the model. `\"none\"` means the model will not call any tool and instead generates a message. `\"auto\"` means the model can pick between generating a message or calling one or more tools. `\"any\"` means the model must call one or more tools. Specifying a particular tool via `{\"type\": \"tool\", \"function\": {\"name\": \"get_weather\"}}` forces the model to call that tool. `\"none\"` is the default when no tools are provided. `\"auto\"` is the default if tools are provided.
ToolChoice NullableMessageToolChoice `json:"tool_choice,omitempty"`
// A list of tools the model may call in JSON-schema. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.
Tools []MessageTools `json:"tools,omitempty"`
// (Unsupported) When generating next tokens, randomly selecting the next token from the k most likely options.
TopK NullableInt32 `json:"top_k,omitempty"`
// An alternative to sampling with `temperature`, called nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. It is generally recommended to alter this or `temperature` but not both.
TopP NullableFloat32 `json:"top_p,omitempty"`
AdditionalProperties map[string]interface{}
}
MessageRequest Request message for `/v1/messages`
func NewMessageRequest ¶
func NewMessageRequest() *MessageRequest
NewMessageRequest instantiates a new MessageRequest 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
func NewMessageRequestWithDefaults ¶
func NewMessageRequestWithDefaults() *MessageRequest
NewMessageRequestWithDefaults instantiates a new MessageRequest 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
func (*MessageRequest) GetMaxTokens ¶
func (o *MessageRequest) GetMaxTokens() int32
GetMaxTokens returns the MaxTokens field value if set, zero value otherwise.
func (*MessageRequest) GetMaxTokensOk ¶
func (o *MessageRequest) GetMaxTokensOk() (*int32, bool)
GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise and a boolean to check if the value has been set.
func (*MessageRequest) GetMessages ¶
func (o *MessageRequest) GetMessages() []MessageBody
GetMessages returns the Messages field value if set, zero value otherwise.
func (*MessageRequest) GetMessagesOk ¶
func (o *MessageRequest) GetMessagesOk() ([]MessageBody, bool)
GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise and a boolean to check if the value has been set.
func (*MessageRequest) GetMetadata ¶
func (o *MessageRequest) GetMetadata() MessageMetadata
GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetMetadataOk ¶
func (o *MessageRequest) GetMetadataOk() (*MessageMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetModel ¶
func (o *MessageRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*MessageRequest) GetModelOk ¶
func (o *MessageRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*MessageRequest) GetStopSequences ¶
func (o *MessageRequest) GetStopSequences() []string
GetStopSequences returns the StopSequences field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetStopSequencesOk ¶
func (o *MessageRequest) GetStopSequencesOk() ([]string, bool)
GetStopSequencesOk returns a tuple with the StopSequences field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetStream ¶
func (o *MessageRequest) GetStream() bool
GetStream returns the Stream field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetStreamOk ¶
func (o *MessageRequest) GetStreamOk() (*bool, bool)
GetStreamOk returns a tuple with the Stream field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetSystem ¶
func (o *MessageRequest) GetSystem() SystemMessageContent
GetSystem returns the System field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetSystemOk ¶
func (o *MessageRequest) GetSystemOk() (*SystemMessageContent, bool)
GetSystemOk returns a tuple with the System field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetTemperature ¶
func (o *MessageRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetTemperatureOk ¶
func (o *MessageRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetToolChoice ¶
func (o *MessageRequest) GetToolChoice() MessageToolChoice
GetToolChoice returns the ToolChoice field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetToolChoiceOk ¶
func (o *MessageRequest) GetToolChoiceOk() (*MessageToolChoice, bool)
GetToolChoiceOk returns a tuple with the ToolChoice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetTools ¶
func (o *MessageRequest) GetTools() []MessageTools
GetTools returns the Tools field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetToolsOk ¶
func (o *MessageRequest) GetToolsOk() ([]MessageTools, bool)
GetToolsOk returns a tuple with the Tools field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetTopK ¶
func (o *MessageRequest) GetTopK() int32
GetTopK returns the TopK field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetTopKOk ¶
func (o *MessageRequest) GetTopKOk() (*int32, bool)
GetTopKOk returns a tuple with the TopK field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) GetTopP ¶
func (o *MessageRequest) GetTopP() float32
GetTopP returns the TopP field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageRequest) GetTopPOk ¶
func (o *MessageRequest) GetTopPOk() (*float32, bool)
GetTopPOk returns a tuple with the TopP field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageRequest) HasMaxTokens ¶
func (o *MessageRequest) HasMaxTokens() bool
HasMaxTokens returns a boolean if a field has been set.
func (*MessageRequest) HasMessages ¶
func (o *MessageRequest) HasMessages() bool
HasMessages returns a boolean if a field has been set.
func (*MessageRequest) HasMetadata ¶
func (o *MessageRequest) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (*MessageRequest) HasModel ¶
func (o *MessageRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*MessageRequest) HasStopSequences ¶
func (o *MessageRequest) HasStopSequences() bool
HasStopSequences returns a boolean if a field has been set.
func (*MessageRequest) HasStream ¶
func (o *MessageRequest) HasStream() bool
HasStream returns a boolean if a field has been set.
func (*MessageRequest) HasSystem ¶
func (o *MessageRequest) HasSystem() bool
HasSystem returns a boolean if a field has been set.
func (*MessageRequest) HasTemperature ¶
func (o *MessageRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*MessageRequest) HasToolChoice ¶
func (o *MessageRequest) HasToolChoice() bool
HasToolChoice returns a boolean if a field has been set.
func (*MessageRequest) HasTools ¶
func (o *MessageRequest) HasTools() bool
HasTools returns a boolean if a field has been set.
func (*MessageRequest) HasTopK ¶
func (o *MessageRequest) HasTopK() bool
HasTopK returns a boolean if a field has been set.
func (*MessageRequest) HasTopP ¶
func (o *MessageRequest) HasTopP() bool
HasTopP returns a boolean if a field has been set.
func (MessageRequest) MarshalJSON ¶
func (o MessageRequest) MarshalJSON() ([]byte, error)
func (*MessageRequest) SetMaxTokens ¶
func (o *MessageRequest) SetMaxTokens(v int32)
SetMaxTokens gets a reference to the given int32 and assigns it to the MaxTokens field.
func (*MessageRequest) SetMessages ¶
func (o *MessageRequest) SetMessages(v []MessageBody)
SetMessages gets a reference to the given []MessageBody and assigns it to the Messages field.
func (*MessageRequest) SetMetadata ¶
func (o *MessageRequest) SetMetadata(v MessageMetadata)
SetMetadata gets a reference to the given NullableMessageMetadata and assigns it to the Metadata field.
func (*MessageRequest) SetMetadataNil ¶
func (o *MessageRequest) SetMetadataNil()
SetMetadataNil sets the value for Metadata to be an explicit nil
func (*MessageRequest) SetModel ¶
func (o *MessageRequest) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*MessageRequest) SetStopSequences ¶
func (o *MessageRequest) SetStopSequences(v []string)
SetStopSequences gets a reference to the given []string and assigns it to the StopSequences field.
func (*MessageRequest) SetStream ¶
func (o *MessageRequest) SetStream(v bool)
SetStream gets a reference to the given NullableBool and assigns it to the Stream field.
func (*MessageRequest) SetStreamNil ¶
func (o *MessageRequest) SetStreamNil()
SetStreamNil sets the value for Stream to be an explicit nil
func (*MessageRequest) SetSystem ¶
func (o *MessageRequest) SetSystem(v SystemMessageContent)
SetSystem gets a reference to the given NullableSystemMessageContent and assigns it to the System field.
func (*MessageRequest) SetSystemNil ¶
func (o *MessageRequest) SetSystemNil()
SetSystemNil sets the value for System to be an explicit nil
func (*MessageRequest) SetTemperature ¶
func (o *MessageRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*MessageRequest) SetTemperatureNil ¶
func (o *MessageRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*MessageRequest) SetToolChoice ¶
func (o *MessageRequest) SetToolChoice(v MessageToolChoice)
SetToolChoice gets a reference to the given NullableMessageToolChoice and assigns it to the ToolChoice field.
func (*MessageRequest) SetToolChoiceNil ¶
func (o *MessageRequest) SetToolChoiceNil()
SetToolChoiceNil sets the value for ToolChoice to be an explicit nil
func (*MessageRequest) SetTools ¶
func (o *MessageRequest) SetTools(v []MessageTools)
SetTools gets a reference to the given []MessageTools and assigns it to the Tools field.
func (*MessageRequest) SetTopK ¶
func (o *MessageRequest) SetTopK(v int32)
SetTopK gets a reference to the given NullableInt32 and assigns it to the TopK field.
func (*MessageRequest) SetTopKNil ¶
func (o *MessageRequest) SetTopKNil()
SetTopKNil sets the value for TopK to be an explicit nil
func (*MessageRequest) SetTopP ¶
func (o *MessageRequest) SetTopP(v float32)
SetTopP gets a reference to the given NullableFloat32 and assigns it to the TopP field.
func (*MessageRequest) SetTopPNil ¶
func (o *MessageRequest) SetTopPNil()
SetTopPNil sets the value for TopP to be an explicit nil
func (MessageRequest) ToMap ¶
func (o MessageRequest) ToMap() (map[string]interface{}, error)
func (*MessageRequest) UnmarshalJSON ¶
func (o *MessageRequest) UnmarshalJSON(data []byte) (err error)
func (*MessageRequest) UnsetMetadata ¶
func (o *MessageRequest) UnsetMetadata()
UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil
func (*MessageRequest) UnsetStream ¶
func (o *MessageRequest) UnsetStream()
UnsetStream ensures that no value is present for Stream, not even an explicit nil
func (*MessageRequest) UnsetSystem ¶
func (o *MessageRequest) UnsetSystem()
UnsetSystem ensures that no value is present for System, not even an explicit nil
func (*MessageRequest) UnsetTemperature ¶
func (o *MessageRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
func (*MessageRequest) UnsetToolChoice ¶
func (o *MessageRequest) UnsetToolChoice()
UnsetToolChoice ensures that no value is present for ToolChoice, not even an explicit nil
func (*MessageRequest) UnsetTopK ¶
func (o *MessageRequest) UnsetTopK()
UnsetTopK ensures that no value is present for TopK, not even an explicit nil
func (*MessageRequest) UnsetTopP ¶
func (o *MessageRequest) UnsetTopP()
UnsetTopP ensures that no value is present for TopP, not even an explicit nil
type MessageResponse ¶
type MessageResponse struct {
// Response message content.
Content []MessageResponseContent `json:"content"`
// Unique object identifier.
Id string `json:"id"`
// Model name that handled the request.
Model string `json:"model"`
// Role of the generated message. Always `\"assistant\"`
Role string `json:"role"`
// Reason to stop. `\"stop_sequence\"` means the inference has reached a model-defined or user-supplied stop sequence in `stop`. `\"max_tokens\"` means the inference result has reached models' maximum allowed token length or user defined value in `max_tokens`. `\"end_turn\"` or `null` in streaming mode when the chunk is not the last. `\"tool_use\"` means the model has called a tool and is waiting for the tool response.
StopReason NullableString `json:"stop_reason,omitempty"`
// Custom stop sequence used to stop the generation.
StopSequence NullableString `json:"stop_sequence,omitempty"`
// Object type. This is always `\"message\"` for message types.
Type string `json:"type"`
// Token usage information.
Usage MessageUsage `json:"usage"`
AdditionalProperties map[string]interface{}
}
MessageResponse Response message for `/v1/messages`
func NewMessageResponse ¶
func NewMessageResponse(content []MessageResponseContent, id string, model string, role string, type_ string, usage MessageUsage) *MessageResponse
NewMessageResponse instantiates a new MessageResponse 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
func NewMessageResponseWithDefaults ¶
func NewMessageResponseWithDefaults() *MessageResponse
NewMessageResponseWithDefaults instantiates a new MessageResponse 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
func (*MessageResponse) GetContent ¶
func (o *MessageResponse) GetContent() []MessageResponseContent
GetContent returns the Content field value
func (*MessageResponse) GetContentOk ¶
func (o *MessageResponse) GetContentOk() ([]MessageResponseContent, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (*MessageResponse) GetId ¶
func (o *MessageResponse) GetId() string
GetId returns the Id field value
func (*MessageResponse) GetIdOk ¶
func (o *MessageResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*MessageResponse) GetModel ¶
func (o *MessageResponse) GetModel() string
GetModel returns the Model field value
func (*MessageResponse) GetModelOk ¶
func (o *MessageResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*MessageResponse) GetRole ¶
func (o *MessageResponse) GetRole() string
GetRole returns the Role field value
func (*MessageResponse) GetRoleOk ¶
func (o *MessageResponse) GetRoleOk() (*string, bool)
GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.
func (*MessageResponse) GetStopReason ¶
func (o *MessageResponse) GetStopReason() string
GetStopReason returns the StopReason field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageResponse) GetStopReasonOk ¶
func (o *MessageResponse) GetStopReasonOk() (*string, bool)
GetStopReasonOk returns a tuple with the StopReason field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageResponse) GetStopSequence ¶
func (o *MessageResponse) GetStopSequence() string
GetStopSequence returns the StopSequence field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageResponse) GetStopSequenceOk ¶
func (o *MessageResponse) GetStopSequenceOk() (*string, bool)
GetStopSequenceOk returns a tuple with the StopSequence field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageResponse) GetType ¶
func (o *MessageResponse) GetType() string
GetType returns the Type field value
func (*MessageResponse) GetTypeOk ¶
func (o *MessageResponse) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*MessageResponse) GetUsage ¶
func (o *MessageResponse) GetUsage() MessageUsage
GetUsage returns the Usage field value
func (*MessageResponse) GetUsageOk ¶
func (o *MessageResponse) GetUsageOk() (*MessageUsage, bool)
GetUsageOk returns a tuple with the Usage field value and a boolean to check if the value has been set.
func (*MessageResponse) HasStopReason ¶
func (o *MessageResponse) HasStopReason() bool
HasStopReason returns a boolean if a field has been set.
func (*MessageResponse) HasStopSequence ¶
func (o *MessageResponse) HasStopSequence() bool
HasStopSequence returns a boolean if a field has been set.
func (MessageResponse) MarshalJSON ¶
func (o MessageResponse) MarshalJSON() ([]byte, error)
func (*MessageResponse) SetContent ¶
func (o *MessageResponse) SetContent(v []MessageResponseContent)
SetContent sets field value
func (*MessageResponse) SetModel ¶
func (o *MessageResponse) SetModel(v string)
SetModel sets field value
func (*MessageResponse) SetRole ¶
func (o *MessageResponse) SetRole(v string)
SetRole sets field value
func (*MessageResponse) SetStopReason ¶
func (o *MessageResponse) SetStopReason(v string)
SetStopReason gets a reference to the given NullableString and assigns it to the StopReason field.
func (*MessageResponse) SetStopReasonNil ¶
func (o *MessageResponse) SetStopReasonNil()
SetStopReasonNil sets the value for StopReason to be an explicit nil
func (*MessageResponse) SetStopSequence ¶
func (o *MessageResponse) SetStopSequence(v string)
SetStopSequence gets a reference to the given NullableString and assigns it to the StopSequence field.
func (*MessageResponse) SetStopSequenceNil ¶
func (o *MessageResponse) SetStopSequenceNil()
SetStopSequenceNil sets the value for StopSequence to be an explicit nil
func (*MessageResponse) SetType ¶
func (o *MessageResponse) SetType(v string)
SetType sets field value
func (*MessageResponse) SetUsage ¶
func (o *MessageResponse) SetUsage(v MessageUsage)
SetUsage sets field value
func (MessageResponse) ToMap ¶
func (o MessageResponse) ToMap() (map[string]interface{}, error)
func (*MessageResponse) UnmarshalJSON ¶
func (o *MessageResponse) UnmarshalJSON(data []byte) (err error)
func (*MessageResponse) UnsetStopReason ¶
func (o *MessageResponse) UnsetStopReason()
UnsetStopReason ensures that no value is present for StopReason, not even an explicit nil
func (*MessageResponse) UnsetStopSequence ¶
func (o *MessageResponse) UnsetStopSequence()
UnsetStopSequence ensures that no value is present for StopSequence, not even an explicit nil
type MessageResponseContent ¶
type MessageResponseContent struct {
MessageResponseContentOneOf *MessageResponseContentOneOf
MessageResponseContentOneOf1 *MessageResponseContentOneOf1
MessageResponseContentOneOf2 *MessageResponseContentOneOf2
MessageResponseContentOneOf3 *MessageResponseContentOneOf3
}
MessageResponseContent - struct for MessageResponseContent
func MessageResponseContentOneOf1AsMessageResponseContent ¶
func MessageResponseContentOneOf1AsMessageResponseContent(v *MessageResponseContentOneOf1) MessageResponseContent
MessageResponseContentOneOf1AsMessageResponseContent is a convenience function that returns MessageResponseContentOneOf1 wrapped in MessageResponseContent
func MessageResponseContentOneOf2AsMessageResponseContent ¶
func MessageResponseContentOneOf2AsMessageResponseContent(v *MessageResponseContentOneOf2) MessageResponseContent
MessageResponseContentOneOf2AsMessageResponseContent is a convenience function that returns MessageResponseContentOneOf2 wrapped in MessageResponseContent
func MessageResponseContentOneOf3AsMessageResponseContent ¶
func MessageResponseContentOneOf3AsMessageResponseContent(v *MessageResponseContentOneOf3) MessageResponseContent
MessageResponseContentOneOf3AsMessageResponseContent is a convenience function that returns MessageResponseContentOneOf3 wrapped in MessageResponseContent
func MessageResponseContentOneOfAsMessageResponseContent ¶
func MessageResponseContentOneOfAsMessageResponseContent(v *MessageResponseContentOneOf) MessageResponseContent
MessageResponseContentOneOfAsMessageResponseContent is a convenience function that returns MessageResponseContentOneOf wrapped in MessageResponseContent
func (*MessageResponseContent) GetActualInstance ¶
func (obj *MessageResponseContent) GetActualInstance() interface{}
Get the actual instance
func (MessageResponseContent) GetActualInstanceValue ¶
func (obj MessageResponseContent) GetActualInstanceValue() interface{}
Get the actual instance value
func (MessageResponseContent) MarshalJSON ¶
func (src MessageResponseContent) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*MessageResponseContent) UnmarshalJSON ¶
func (dst *MessageResponseContent) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type MessageResponseContentOneOf ¶
type MessageResponseContentOneOf struct {
Text string `json:"text"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageResponseContentOneOf Text response from the model.
func NewMessageResponseContentOneOf ¶
func NewMessageResponseContentOneOf(text string, type_ string) *MessageResponseContentOneOf
NewMessageResponseContentOneOf instantiates a new MessageResponseContentOneOf 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
func NewMessageResponseContentOneOfWithDefaults ¶
func NewMessageResponseContentOneOfWithDefaults() *MessageResponseContentOneOf
NewMessageResponseContentOneOfWithDefaults instantiates a new MessageResponseContentOneOf 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
func (*MessageResponseContentOneOf) GetText ¶
func (o *MessageResponseContentOneOf) GetText() string
GetText returns the Text field value
func (*MessageResponseContentOneOf) GetTextOk ¶
func (o *MessageResponseContentOneOf) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value and a boolean to check if the value has been set.
func (*MessageResponseContentOneOf) GetType ¶
func (o *MessageResponseContentOneOf) GetType() string
GetType returns the Type field value
func (*MessageResponseContentOneOf) GetTypeOk ¶
func (o *MessageResponseContentOneOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageResponseContentOneOf) MarshalJSON ¶
func (o MessageResponseContentOneOf) MarshalJSON() ([]byte, error)
func (*MessageResponseContentOneOf) SetText ¶
func (o *MessageResponseContentOneOf) SetText(v string)
SetText sets field value
func (*MessageResponseContentOneOf) SetType ¶
func (o *MessageResponseContentOneOf) SetType(v string)
SetType sets field value
func (MessageResponseContentOneOf) ToMap ¶
func (o MessageResponseContentOneOf) ToMap() (map[string]interface{}, error)
func (*MessageResponseContentOneOf) UnmarshalJSON ¶
func (o *MessageResponseContentOneOf) UnmarshalJSON(data []byte) (err error)
type MessageResponseContentOneOf1 ¶
type MessageResponseContentOneOf1 struct {
// Signature of the content
Signature string `json:"signature"`
// Thinking content
Thinking string `json:"thinking"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageResponseContentOneOf1 Thinking response for the model
func NewMessageResponseContentOneOf1 ¶
func NewMessageResponseContentOneOf1(signature string, thinking string, type_ string) *MessageResponseContentOneOf1
NewMessageResponseContentOneOf1 instantiates a new MessageResponseContentOneOf1 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
func NewMessageResponseContentOneOf1WithDefaults ¶
func NewMessageResponseContentOneOf1WithDefaults() *MessageResponseContentOneOf1
NewMessageResponseContentOneOf1WithDefaults instantiates a new MessageResponseContentOneOf1 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
func (*MessageResponseContentOneOf1) GetSignature ¶
func (o *MessageResponseContentOneOf1) GetSignature() string
GetSignature returns the Signature field value
func (*MessageResponseContentOneOf1) GetSignatureOk ¶
func (o *MessageResponseContentOneOf1) GetSignatureOk() (*string, bool)
GetSignatureOk returns a tuple with the Signature field value and a boolean to check if the value has been set.
func (*MessageResponseContentOneOf1) GetThinking ¶
func (o *MessageResponseContentOneOf1) GetThinking() string
GetThinking returns the Thinking field value
func (*MessageResponseContentOneOf1) GetThinkingOk ¶
func (o *MessageResponseContentOneOf1) GetThinkingOk() (*string, bool)
GetThinkingOk returns a tuple with the Thinking field value and a boolean to check if the value has been set.
func (*MessageResponseContentOneOf1) GetType ¶
func (o *MessageResponseContentOneOf1) GetType() string
GetType returns the Type field value
func (*MessageResponseContentOneOf1) GetTypeOk ¶
func (o *MessageResponseContentOneOf1) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageResponseContentOneOf1) MarshalJSON ¶
func (o MessageResponseContentOneOf1) MarshalJSON() ([]byte, error)
func (*MessageResponseContentOneOf1) SetSignature ¶
func (o *MessageResponseContentOneOf1) SetSignature(v string)
SetSignature sets field value
func (*MessageResponseContentOneOf1) SetThinking ¶
func (o *MessageResponseContentOneOf1) SetThinking(v string)
SetThinking sets field value
func (*MessageResponseContentOneOf1) SetType ¶
func (o *MessageResponseContentOneOf1) SetType(v string)
SetType sets field value
func (MessageResponseContentOneOf1) ToMap ¶
func (o MessageResponseContentOneOf1) ToMap() (map[string]interface{}, error)
func (*MessageResponseContentOneOf1) UnmarshalJSON ¶
func (o *MessageResponseContentOneOf1) UnmarshalJSON(data []byte) (err error)
type MessageResponseContentOneOf2 ¶
type MessageResponseContentOneOf2 struct {
// Signature of the content
Data string `json:"data"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageResponseContentOneOf2 Redacted thinking response for the model
func NewMessageResponseContentOneOf2 ¶
func NewMessageResponseContentOneOf2(data string, type_ string) *MessageResponseContentOneOf2
NewMessageResponseContentOneOf2 instantiates a new MessageResponseContentOneOf2 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
func NewMessageResponseContentOneOf2WithDefaults ¶
func NewMessageResponseContentOneOf2WithDefaults() *MessageResponseContentOneOf2
NewMessageResponseContentOneOf2WithDefaults instantiates a new MessageResponseContentOneOf2 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
func (*MessageResponseContentOneOf2) GetData ¶
func (o *MessageResponseContentOneOf2) GetData() string
GetData returns the Data field value
func (*MessageResponseContentOneOf2) GetDataOk ¶
func (o *MessageResponseContentOneOf2) GetDataOk() (*string, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*MessageResponseContentOneOf2) GetType ¶
func (o *MessageResponseContentOneOf2) GetType() string
GetType returns the Type field value
func (*MessageResponseContentOneOf2) GetTypeOk ¶
func (o *MessageResponseContentOneOf2) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageResponseContentOneOf2) MarshalJSON ¶
func (o MessageResponseContentOneOf2) MarshalJSON() ([]byte, error)
func (*MessageResponseContentOneOf2) SetData ¶
func (o *MessageResponseContentOneOf2) SetData(v string)
SetData sets field value
func (*MessageResponseContentOneOf2) SetType ¶
func (o *MessageResponseContentOneOf2) SetType(v string)
SetType sets field value
func (MessageResponseContentOneOf2) ToMap ¶
func (o MessageResponseContentOneOf2) ToMap() (map[string]interface{}, error)
func (*MessageResponseContentOneOf2) UnmarshalJSON ¶
func (o *MessageResponseContentOneOf2) UnmarshalJSON(data []byte) (err error)
type MessageResponseContentOneOf3 ¶
type MessageResponseContentOneOf3 struct {
// Tool call ID.
Id string `json:"id"`
Input interface{} `json:"input"`
// Name of the tool call to be used.
Name string `json:"name"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageResponseContentOneOf3 Request by the model to invoke a tool call.
func NewMessageResponseContentOneOf3 ¶
func NewMessageResponseContentOneOf3(id string, input interface{}, name string, type_ string) *MessageResponseContentOneOf3
NewMessageResponseContentOneOf3 instantiates a new MessageResponseContentOneOf3 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
func NewMessageResponseContentOneOf3WithDefaults ¶
func NewMessageResponseContentOneOf3WithDefaults() *MessageResponseContentOneOf3
NewMessageResponseContentOneOf3WithDefaults instantiates a new MessageResponseContentOneOf3 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
func (*MessageResponseContentOneOf3) GetId ¶
func (o *MessageResponseContentOneOf3) GetId() string
GetId returns the Id field value
func (*MessageResponseContentOneOf3) GetIdOk ¶
func (o *MessageResponseContentOneOf3) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*MessageResponseContentOneOf3) GetInput ¶
func (o *MessageResponseContentOneOf3) GetInput() interface{}
GetInput returns the Input field value If the value is explicit nil, the zero value for interface{} will be returned
func (*MessageResponseContentOneOf3) GetInputOk ¶
func (o *MessageResponseContentOneOf3) GetInputOk() (*interface{}, bool)
GetInputOk returns a tuple with the Input field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageResponseContentOneOf3) GetName ¶
func (o *MessageResponseContentOneOf3) GetName() string
GetName returns the Name field value
func (*MessageResponseContentOneOf3) GetNameOk ¶
func (o *MessageResponseContentOneOf3) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*MessageResponseContentOneOf3) GetType ¶
func (o *MessageResponseContentOneOf3) GetType() string
GetType returns the Type field value
func (*MessageResponseContentOneOf3) GetTypeOk ¶
func (o *MessageResponseContentOneOf3) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageResponseContentOneOf3) MarshalJSON ¶
func (o MessageResponseContentOneOf3) MarshalJSON() ([]byte, error)
func (*MessageResponseContentOneOf3) SetId ¶
func (o *MessageResponseContentOneOf3) SetId(v string)
SetId sets field value
func (*MessageResponseContentOneOf3) SetInput ¶
func (o *MessageResponseContentOneOf3) SetInput(v interface{})
SetInput sets field value
func (*MessageResponseContentOneOf3) SetName ¶
func (o *MessageResponseContentOneOf3) SetName(v string)
SetName sets field value
func (*MessageResponseContentOneOf3) SetType ¶
func (o *MessageResponseContentOneOf3) SetType(v string)
SetType sets field value
func (MessageResponseContentOneOf3) ToMap ¶
func (o MessageResponseContentOneOf3) ToMap() (map[string]interface{}, error)
func (*MessageResponseContentOneOf3) UnmarshalJSON ¶
func (o *MessageResponseContentOneOf3) UnmarshalJSON(data []byte) (err error)
type MessageToolChoice ¶
type MessageToolChoice struct {
MessageToolChoiceOneOf *MessageToolChoiceOneOf
MessageToolChoiceOneOf1 *MessageToolChoiceOneOf1
MessageToolChoiceOneOf2 *MessageToolChoiceOneOf2
}
MessageToolChoice - Tool choice option.
func MessageToolChoiceOneOf1AsMessageToolChoice ¶
func MessageToolChoiceOneOf1AsMessageToolChoice(v *MessageToolChoiceOneOf1) MessageToolChoice
MessageToolChoiceOneOf1AsMessageToolChoice is a convenience function that returns MessageToolChoiceOneOf1 wrapped in MessageToolChoice
func MessageToolChoiceOneOf2AsMessageToolChoice ¶
func MessageToolChoiceOneOf2AsMessageToolChoice(v *MessageToolChoiceOneOf2) MessageToolChoice
MessageToolChoiceOneOf2AsMessageToolChoice is a convenience function that returns MessageToolChoiceOneOf2 wrapped in MessageToolChoice
func MessageToolChoiceOneOfAsMessageToolChoice ¶
func MessageToolChoiceOneOfAsMessageToolChoice(v *MessageToolChoiceOneOf) MessageToolChoice
MessageToolChoiceOneOfAsMessageToolChoice is a convenience function that returns MessageToolChoiceOneOf wrapped in MessageToolChoice
func (*MessageToolChoice) GetActualInstance ¶
func (obj *MessageToolChoice) GetActualInstance() interface{}
Get the actual instance
func (MessageToolChoice) GetActualInstanceValue ¶
func (obj MessageToolChoice) GetActualInstanceValue() interface{}
Get the actual instance value
func (MessageToolChoice) MarshalJSON ¶
func (src MessageToolChoice) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*MessageToolChoice) UnmarshalJSON ¶
func (dst *MessageToolChoice) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type MessageToolChoiceOneOf ¶
type MessageToolChoiceOneOf struct {
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageToolChoiceOneOf Allows the model to automatically decide whether to call the tool
func NewMessageToolChoiceOneOf ¶
func NewMessageToolChoiceOneOf(type_ string) *MessageToolChoiceOneOf
NewMessageToolChoiceOneOf instantiates a new MessageToolChoiceOneOf 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
func NewMessageToolChoiceOneOfWithDefaults ¶
func NewMessageToolChoiceOneOfWithDefaults() *MessageToolChoiceOneOf
NewMessageToolChoiceOneOfWithDefaults instantiates a new MessageToolChoiceOneOf 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
func (*MessageToolChoiceOneOf) GetType ¶
func (o *MessageToolChoiceOneOf) GetType() string
GetType returns the Type field value
func (*MessageToolChoiceOneOf) GetTypeOk ¶
func (o *MessageToolChoiceOneOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageToolChoiceOneOf) MarshalJSON ¶
func (o MessageToolChoiceOneOf) MarshalJSON() ([]byte, error)
func (*MessageToolChoiceOneOf) SetType ¶
func (o *MessageToolChoiceOneOf) SetType(v string)
SetType sets field value
func (MessageToolChoiceOneOf) ToMap ¶
func (o MessageToolChoiceOneOf) ToMap() (map[string]interface{}, error)
func (*MessageToolChoiceOneOf) UnmarshalJSON ¶
func (o *MessageToolChoiceOneOf) UnmarshalJSON(data []byte) (err error)
type MessageToolChoiceOneOf1 ¶
type MessageToolChoiceOneOf1 struct {
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageToolChoiceOneOf1 Forces the model to use at least one tool, without specifying the tool.
func NewMessageToolChoiceOneOf1 ¶
func NewMessageToolChoiceOneOf1(type_ string) *MessageToolChoiceOneOf1
NewMessageToolChoiceOneOf1 instantiates a new MessageToolChoiceOneOf1 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
func NewMessageToolChoiceOneOf1WithDefaults ¶
func NewMessageToolChoiceOneOf1WithDefaults() *MessageToolChoiceOneOf1
NewMessageToolChoiceOneOf1WithDefaults instantiates a new MessageToolChoiceOneOf1 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
func (*MessageToolChoiceOneOf1) GetType ¶
func (o *MessageToolChoiceOneOf1) GetType() string
GetType returns the Type field value
func (*MessageToolChoiceOneOf1) GetTypeOk ¶
func (o *MessageToolChoiceOneOf1) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageToolChoiceOneOf1) MarshalJSON ¶
func (o MessageToolChoiceOneOf1) MarshalJSON() ([]byte, error)
func (*MessageToolChoiceOneOf1) SetType ¶
func (o *MessageToolChoiceOneOf1) SetType(v string)
SetType sets field value
func (MessageToolChoiceOneOf1) ToMap ¶
func (o MessageToolChoiceOneOf1) ToMap() (map[string]interface{}, error)
func (*MessageToolChoiceOneOf1) UnmarshalJSON ¶
func (o *MessageToolChoiceOneOf1) UnmarshalJSON(data []byte) (err error)
type MessageToolChoiceOneOf2 ¶
type MessageToolChoiceOneOf2 struct {
// Name of the tool to use.
Name string `json:"name"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageToolChoiceOneOf2 Forces the model to use the named tool
func NewMessageToolChoiceOneOf2 ¶
func NewMessageToolChoiceOneOf2(name string, type_ string) *MessageToolChoiceOneOf2
NewMessageToolChoiceOneOf2 instantiates a new MessageToolChoiceOneOf2 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
func NewMessageToolChoiceOneOf2WithDefaults ¶
func NewMessageToolChoiceOneOf2WithDefaults() *MessageToolChoiceOneOf2
NewMessageToolChoiceOneOf2WithDefaults instantiates a new MessageToolChoiceOneOf2 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
func (*MessageToolChoiceOneOf2) GetName ¶
func (o *MessageToolChoiceOneOf2) GetName() string
GetName returns the Name field value
func (*MessageToolChoiceOneOf2) GetNameOk ¶
func (o *MessageToolChoiceOneOf2) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*MessageToolChoiceOneOf2) GetType ¶
func (o *MessageToolChoiceOneOf2) GetType() string
GetType returns the Type field value
func (*MessageToolChoiceOneOf2) GetTypeOk ¶
func (o *MessageToolChoiceOneOf2) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (MessageToolChoiceOneOf2) MarshalJSON ¶
func (o MessageToolChoiceOneOf2) MarshalJSON() ([]byte, error)
func (*MessageToolChoiceOneOf2) SetName ¶
func (o *MessageToolChoiceOneOf2) SetName(v string)
SetName sets field value
func (*MessageToolChoiceOneOf2) SetType ¶
func (o *MessageToolChoiceOneOf2) SetType(v string)
SetType sets field value
func (MessageToolChoiceOneOf2) ToMap ¶
func (o MessageToolChoiceOneOf2) ToMap() (map[string]interface{}, error)
func (*MessageToolChoiceOneOf2) UnmarshalJSON ¶
func (o *MessageToolChoiceOneOf2) UnmarshalJSON(data []byte) (err error)
type MessageToolInputSchema ¶
type MessageToolInputSchema struct {
Properties interface{} `json:"properties"`
// Required properties of the tool input schema, if any.
Required []string `json:"required,omitempty"`
// Type of the schema. This is always `\"object\"`.
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
MessageToolInputSchema struct for MessageToolInputSchema
func NewMessageToolInputSchema ¶
func NewMessageToolInputSchema(properties interface{}, type_ string) *MessageToolInputSchema
NewMessageToolInputSchema instantiates a new MessageToolInputSchema 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
func NewMessageToolInputSchemaWithDefaults ¶
func NewMessageToolInputSchemaWithDefaults() *MessageToolInputSchema
NewMessageToolInputSchemaWithDefaults instantiates a new MessageToolInputSchema 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
func (*MessageToolInputSchema) GetProperties ¶
func (o *MessageToolInputSchema) GetProperties() interface{}
GetProperties returns the Properties field value If the value is explicit nil, the zero value for interface{} will be returned
func (*MessageToolInputSchema) GetPropertiesOk ¶
func (o *MessageToolInputSchema) GetPropertiesOk() (*interface{}, bool)
GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageToolInputSchema) GetRequired ¶
func (o *MessageToolInputSchema) GetRequired() []string
GetRequired returns the Required field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageToolInputSchema) GetRequiredOk ¶
func (o *MessageToolInputSchema) GetRequiredOk() ([]string, bool)
GetRequiredOk returns a tuple with the Required field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageToolInputSchema) GetType ¶
func (o *MessageToolInputSchema) GetType() string
GetType returns the Type field value
func (*MessageToolInputSchema) GetTypeOk ¶
func (o *MessageToolInputSchema) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*MessageToolInputSchema) HasRequired ¶
func (o *MessageToolInputSchema) HasRequired() bool
HasRequired returns a boolean if a field has been set.
func (MessageToolInputSchema) MarshalJSON ¶
func (o MessageToolInputSchema) MarshalJSON() ([]byte, error)
func (*MessageToolInputSchema) SetProperties ¶
func (o *MessageToolInputSchema) SetProperties(v interface{})
SetProperties sets field value
func (*MessageToolInputSchema) SetRequired ¶
func (o *MessageToolInputSchema) SetRequired(v []string)
SetRequired gets a reference to the given []string and assigns it to the Required field.
func (*MessageToolInputSchema) SetType ¶
func (o *MessageToolInputSchema) SetType(v string)
SetType sets field value
func (MessageToolInputSchema) ToMap ¶
func (o MessageToolInputSchema) ToMap() (map[string]interface{}, error)
func (*MessageToolInputSchema) UnmarshalJSON ¶
func (o *MessageToolInputSchema) UnmarshalJSON(data []byte) (err error)
type MessageTools ¶
type MessageTools struct {
CacheControl interface{} `json:"cache_control,omitempty"`
// Description of the tool.
Description string `json:"description"`
// Input schema allowed by the tool.
InputSchema MessageToolInputSchema `json:"input_schema"`
// Name of the tool.
Name string `json:"name"`
AdditionalProperties map[string]interface{}
}
MessageTools struct for MessageTools
func NewMessageTools ¶
func NewMessageTools(description string, inputSchema MessageToolInputSchema, name string) *MessageTools
NewMessageTools instantiates a new MessageTools 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
func NewMessageToolsWithDefaults ¶
func NewMessageToolsWithDefaults() *MessageTools
NewMessageToolsWithDefaults instantiates a new MessageTools 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
func (*MessageTools) GetCacheControl ¶
func (o *MessageTools) GetCacheControl() interface{}
GetCacheControl returns the CacheControl field value if set, zero value otherwise (both if not set or set to explicit null).
func (*MessageTools) GetCacheControlOk ¶
func (o *MessageTools) GetCacheControlOk() (*interface{}, bool)
GetCacheControlOk returns a tuple with the CacheControl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*MessageTools) GetDescription ¶
func (o *MessageTools) GetDescription() string
GetDescription returns the Description field value
func (*MessageTools) GetDescriptionOk ¶
func (o *MessageTools) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.
func (*MessageTools) GetInputSchema ¶
func (o *MessageTools) GetInputSchema() MessageToolInputSchema
GetInputSchema returns the InputSchema field value
func (*MessageTools) GetInputSchemaOk ¶
func (o *MessageTools) GetInputSchemaOk() (*MessageToolInputSchema, bool)
GetInputSchemaOk returns a tuple with the InputSchema field value and a boolean to check if the value has been set.
func (*MessageTools) GetName ¶
func (o *MessageTools) GetName() string
GetName returns the Name field value
func (*MessageTools) GetNameOk ¶
func (o *MessageTools) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*MessageTools) HasCacheControl ¶
func (o *MessageTools) HasCacheControl() bool
HasCacheControl returns a boolean if a field has been set.
func (MessageTools) MarshalJSON ¶
func (o MessageTools) MarshalJSON() ([]byte, error)
func (*MessageTools) SetCacheControl ¶
func (o *MessageTools) SetCacheControl(v interface{})
SetCacheControl gets a reference to the given interface{} and assigns it to the CacheControl field.
func (*MessageTools) SetDescription ¶
func (o *MessageTools) SetDescription(v string)
SetDescription sets field value
func (*MessageTools) SetInputSchema ¶
func (o *MessageTools) SetInputSchema(v MessageToolInputSchema)
SetInputSchema sets field value
func (MessageTools) ToMap ¶
func (o MessageTools) ToMap() (map[string]interface{}, error)
func (*MessageTools) UnmarshalJSON ¶
func (o *MessageTools) UnmarshalJSON(data []byte) (err error)
type MessageUsage ¶
type MessageUsage struct {
// (Unsupported) Number of tokens written to the cache when creating a new entry.
CacheCreationInputTokens int32 `json:"cache_creation_input_tokens"`
// Number of tokens retrieved from the cache for this request.
CacheReadInputTokens int32 `json:"cache_read_input_tokens"`
// Number of input tokens used
InputTokens int32 `json:"input_tokens"`
// Number of output tokens used
OutputTokens int32 `json:"output_tokens"`
AdditionalProperties map[string]interface{}
}
MessageUsage struct for MessageUsage
func NewMessageUsage ¶
func NewMessageUsage(cacheCreationInputTokens int32, cacheReadInputTokens int32, inputTokens int32, outputTokens int32) *MessageUsage
NewMessageUsage instantiates a new MessageUsage 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
func NewMessageUsageWithDefaults ¶
func NewMessageUsageWithDefaults() *MessageUsage
NewMessageUsageWithDefaults instantiates a new MessageUsage 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
func (*MessageUsage) GetCacheCreationInputTokens ¶
func (o *MessageUsage) GetCacheCreationInputTokens() int32
GetCacheCreationInputTokens returns the CacheCreationInputTokens field value
func (*MessageUsage) GetCacheCreationInputTokensOk ¶
func (o *MessageUsage) GetCacheCreationInputTokensOk() (*int32, bool)
GetCacheCreationInputTokensOk returns a tuple with the CacheCreationInputTokens field value and a boolean to check if the value has been set.
func (*MessageUsage) GetCacheReadInputTokens ¶
func (o *MessageUsage) GetCacheReadInputTokens() int32
GetCacheReadInputTokens returns the CacheReadInputTokens field value
func (*MessageUsage) GetCacheReadInputTokensOk ¶
func (o *MessageUsage) GetCacheReadInputTokensOk() (*int32, bool)
GetCacheReadInputTokensOk returns a tuple with the CacheReadInputTokens field value and a boolean to check if the value has been set.
func (*MessageUsage) GetInputTokens ¶
func (o *MessageUsage) GetInputTokens() int32
GetInputTokens returns the InputTokens field value
func (*MessageUsage) GetInputTokensOk ¶
func (o *MessageUsage) GetInputTokensOk() (*int32, bool)
GetInputTokensOk returns a tuple with the InputTokens field value and a boolean to check if the value has been set.
func (*MessageUsage) GetOutputTokens ¶
func (o *MessageUsage) GetOutputTokens() int32
GetOutputTokens returns the OutputTokens field value
func (*MessageUsage) GetOutputTokensOk ¶
func (o *MessageUsage) GetOutputTokensOk() (*int32, bool)
GetOutputTokensOk returns a tuple with the OutputTokens field value and a boolean to check if the value has been set.
func (MessageUsage) MarshalJSON ¶
func (o MessageUsage) MarshalJSON() ([]byte, error)
func (*MessageUsage) SetCacheCreationInputTokens ¶
func (o *MessageUsage) SetCacheCreationInputTokens(v int32)
SetCacheCreationInputTokens sets field value
func (*MessageUsage) SetCacheReadInputTokens ¶
func (o *MessageUsage) SetCacheReadInputTokens(v int32)
SetCacheReadInputTokens sets field value
func (*MessageUsage) SetInputTokens ¶
func (o *MessageUsage) SetInputTokens(v int32)
SetInputTokens sets field value
func (*MessageUsage) SetOutputTokens ¶
func (o *MessageUsage) SetOutputTokens(v int32)
SetOutputTokens sets field value
func (MessageUsage) ToMap ¶
func (o MessageUsage) ToMap() (map[string]interface{}, error)
func (*MessageUsage) UnmarshalJSON ¶
func (o *MessageUsage) UnmarshalJSON(data []byte) (err error)
type Model ¶
type Model struct {
// Model creation time in Unix timestamp.
Created int64 `json:"created"`
// Model ID. Obtainable from https://console.x.ai/team/default/models or https://docs.x.ai/docs/models.
Id string `json:"id"`
// The object type, which is always `\"model\"`.
Object string `json:"object"`
// Owner of the model.
OwnedBy string `json:"owned_by"`
AdditionalProperties map[string]interface{}
}
Model Same as `LanguageModel` but fully compliant with the OpenAI API.
func NewModel ¶
NewModel instantiates a new Model 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
func NewModelWithDefaults ¶
func NewModelWithDefaults() *Model
NewModelWithDefaults instantiates a new Model 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
func (*Model) GetCreated ¶
GetCreated returns the Created field value
func (*Model) GetCreatedOk ¶
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*Model) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Model) GetObjectOk ¶
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*Model) GetOwnedBy ¶
GetOwnedBy returns the OwnedBy field value
func (*Model) GetOwnedByOk ¶
GetOwnedByOk returns a tuple with the OwnedBy field value and a boolean to check if the value has been set.
func (Model) MarshalJSON ¶
func (*Model) UnmarshalJSON ¶
type NullableApiKey ¶
type NullableApiKey struct {
// contains filtered or unexported fields
}
func NewNullableApiKey ¶
func NewNullableApiKey(val *ApiKey) *NullableApiKey
func (NullableApiKey) Get ¶
func (v NullableApiKey) Get() *ApiKey
func (NullableApiKey) IsSet ¶
func (v NullableApiKey) IsSet() bool
func (NullableApiKey) MarshalJSON ¶
func (v NullableApiKey) MarshalJSON() ([]byte, error)
func (*NullableApiKey) Set ¶
func (v *NullableApiKey) Set(val *ApiKey)
func (*NullableApiKey) UnmarshalJSON ¶
func (v *NullableApiKey) UnmarshalJSON(src []byte) error
func (*NullableApiKey) Unset ¶
func (v *NullableApiKey) Unset()
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableChatRequest ¶
type NullableChatRequest struct {
// contains filtered or unexported fields
}
func NewNullableChatRequest ¶
func NewNullableChatRequest(val *ChatRequest) *NullableChatRequest
func (NullableChatRequest) Get ¶
func (v NullableChatRequest) Get() *ChatRequest
func (NullableChatRequest) IsSet ¶
func (v NullableChatRequest) IsSet() bool
func (NullableChatRequest) MarshalJSON ¶
func (v NullableChatRequest) MarshalJSON() ([]byte, error)
func (*NullableChatRequest) Set ¶
func (v *NullableChatRequest) Set(val *ChatRequest)
func (*NullableChatRequest) UnmarshalJSON ¶
func (v *NullableChatRequest) UnmarshalJSON(src []byte) error
func (*NullableChatRequest) Unset ¶
func (v *NullableChatRequest) Unset()
type NullableChatResponse ¶
type NullableChatResponse struct {
// contains filtered or unexported fields
}
func NewNullableChatResponse ¶
func NewNullableChatResponse(val *ChatResponse) *NullableChatResponse
func (NullableChatResponse) Get ¶
func (v NullableChatResponse) Get() *ChatResponse
func (NullableChatResponse) IsSet ¶
func (v NullableChatResponse) IsSet() bool
func (NullableChatResponse) MarshalJSON ¶
func (v NullableChatResponse) MarshalJSON() ([]byte, error)
func (*NullableChatResponse) Set ¶
func (v *NullableChatResponse) Set(val *ChatResponse)
func (*NullableChatResponse) UnmarshalJSON ¶
func (v *NullableChatResponse) UnmarshalJSON(src []byte) error
func (*NullableChatResponse) Unset ¶
func (v *NullableChatResponse) Unset()
type NullableChatResponseChunk ¶
type NullableChatResponseChunk struct {
// contains filtered or unexported fields
}
func NewNullableChatResponseChunk ¶
func NewNullableChatResponseChunk(val *ChatResponseChunk) *NullableChatResponseChunk
func (NullableChatResponseChunk) Get ¶
func (v NullableChatResponseChunk) Get() *ChatResponseChunk
func (NullableChatResponseChunk) IsSet ¶
func (v NullableChatResponseChunk) IsSet() bool
func (NullableChatResponseChunk) MarshalJSON ¶
func (v NullableChatResponseChunk) MarshalJSON() ([]byte, error)
func (*NullableChatResponseChunk) Set ¶
func (v *NullableChatResponseChunk) Set(val *ChatResponseChunk)
func (*NullableChatResponseChunk) UnmarshalJSON ¶
func (v *NullableChatResponseChunk) UnmarshalJSON(src []byte) error
func (*NullableChatResponseChunk) Unset ¶
func (v *NullableChatResponseChunk) Unset()
type NullableChoice ¶
type NullableChoice struct {
// contains filtered or unexported fields
}
func NewNullableChoice ¶
func NewNullableChoice(val *Choice) *NullableChoice
func (NullableChoice) Get ¶
func (v NullableChoice) Get() *Choice
func (NullableChoice) IsSet ¶
func (v NullableChoice) IsSet() bool
func (NullableChoice) MarshalJSON ¶
func (v NullableChoice) MarshalJSON() ([]byte, error)
func (*NullableChoice) Set ¶
func (v *NullableChoice) Set(val *Choice)
func (*NullableChoice) UnmarshalJSON ¶
func (v *NullableChoice) UnmarshalJSON(src []byte) error
func (*NullableChoice) Unset ¶
func (v *NullableChoice) Unset()
type NullableChoiceChunk ¶
type NullableChoiceChunk struct {
// contains filtered or unexported fields
}
func NewNullableChoiceChunk ¶
func NewNullableChoiceChunk(val *ChoiceChunk) *NullableChoiceChunk
func (NullableChoiceChunk) Get ¶
func (v NullableChoiceChunk) Get() *ChoiceChunk
func (NullableChoiceChunk) IsSet ¶
func (v NullableChoiceChunk) IsSet() bool
func (NullableChoiceChunk) MarshalJSON ¶
func (v NullableChoiceChunk) MarshalJSON() ([]byte, error)
func (*NullableChoiceChunk) Set ¶
func (v *NullableChoiceChunk) Set(val *ChoiceChunk)
func (*NullableChoiceChunk) UnmarshalJSON ¶
func (v *NullableChoiceChunk) UnmarshalJSON(src []byte) error
func (*NullableChoiceChunk) Unset ¶
func (v *NullableChoiceChunk) Unset()
type NullableChoiceMessage ¶
type NullableChoiceMessage struct {
// contains filtered or unexported fields
}
func NewNullableChoiceMessage ¶
func NewNullableChoiceMessage(val *ChoiceMessage) *NullableChoiceMessage
func (NullableChoiceMessage) Get ¶
func (v NullableChoiceMessage) Get() *ChoiceMessage
func (NullableChoiceMessage) IsSet ¶
func (v NullableChoiceMessage) IsSet() bool
func (NullableChoiceMessage) MarshalJSON ¶
func (v NullableChoiceMessage) MarshalJSON() ([]byte, error)
func (*NullableChoiceMessage) Set ¶
func (v *NullableChoiceMessage) Set(val *ChoiceMessage)
func (*NullableChoiceMessage) UnmarshalJSON ¶
func (v *NullableChoiceMessage) UnmarshalJSON(src []byte) error
func (*NullableChoiceMessage) Unset ¶
func (v *NullableChoiceMessage) Unset()
type NullableCompleteRequest ¶
type NullableCompleteRequest struct {
// contains filtered or unexported fields
}
func NewNullableCompleteRequest ¶
func NewNullableCompleteRequest(val *CompleteRequest) *NullableCompleteRequest
func (NullableCompleteRequest) Get ¶
func (v NullableCompleteRequest) Get() *CompleteRequest
func (NullableCompleteRequest) IsSet ¶
func (v NullableCompleteRequest) IsSet() bool
func (NullableCompleteRequest) MarshalJSON ¶
func (v NullableCompleteRequest) MarshalJSON() ([]byte, error)
func (*NullableCompleteRequest) Set ¶
func (v *NullableCompleteRequest) Set(val *CompleteRequest)
func (*NullableCompleteRequest) UnmarshalJSON ¶
func (v *NullableCompleteRequest) UnmarshalJSON(src []byte) error
func (*NullableCompleteRequest) Unset ¶
func (v *NullableCompleteRequest) Unset()
type NullableCompleteResponse ¶
type NullableCompleteResponse struct {
// contains filtered or unexported fields
}
func NewNullableCompleteResponse ¶
func NewNullableCompleteResponse(val *CompleteResponse) *NullableCompleteResponse
func (NullableCompleteResponse) Get ¶
func (v NullableCompleteResponse) Get() *CompleteResponse
func (NullableCompleteResponse) IsSet ¶
func (v NullableCompleteResponse) IsSet() bool
func (NullableCompleteResponse) MarshalJSON ¶
func (v NullableCompleteResponse) MarshalJSON() ([]byte, error)
func (*NullableCompleteResponse) Set ¶
func (v *NullableCompleteResponse) Set(val *CompleteResponse)
func (*NullableCompleteResponse) UnmarshalJSON ¶
func (v *NullableCompleteResponse) UnmarshalJSON(src []byte) error
func (*NullableCompleteResponse) Unset ¶
func (v *NullableCompleteResponse) Unset()
type NullableCompletionUsageDetail ¶
type NullableCompletionUsageDetail struct {
// contains filtered or unexported fields
}
func NewNullableCompletionUsageDetail ¶
func NewNullableCompletionUsageDetail(val *CompletionUsageDetail) *NullableCompletionUsageDetail
func (NullableCompletionUsageDetail) Get ¶
func (v NullableCompletionUsageDetail) Get() *CompletionUsageDetail
func (NullableCompletionUsageDetail) IsSet ¶
func (v NullableCompletionUsageDetail) IsSet() bool
func (NullableCompletionUsageDetail) MarshalJSON ¶
func (v NullableCompletionUsageDetail) MarshalJSON() ([]byte, error)
func (*NullableCompletionUsageDetail) Set ¶
func (v *NullableCompletionUsageDetail) Set(val *CompletionUsageDetail)
func (*NullableCompletionUsageDetail) UnmarshalJSON ¶
func (v *NullableCompletionUsageDetail) UnmarshalJSON(src []byte) error
func (*NullableCompletionUsageDetail) Unset ¶
func (v *NullableCompletionUsageDetail) Unset()
type NullableContent ¶
type NullableContent struct {
// contains filtered or unexported fields
}
func NewNullableContent ¶
func NewNullableContent(val *Content) *NullableContent
func (NullableContent) Get ¶
func (v NullableContent) Get() *Content
func (NullableContent) IsSet ¶
func (v NullableContent) IsSet() bool
func (NullableContent) MarshalJSON ¶
func (v NullableContent) MarshalJSON() ([]byte, error)
func (*NullableContent) Set ¶
func (v *NullableContent) Set(val *Content)
func (*NullableContent) UnmarshalJSON ¶
func (v *NullableContent) UnmarshalJSON(src []byte) error
func (*NullableContent) Unset ¶
func (v *NullableContent) Unset()
type NullableContentPart ¶
type NullableContentPart struct {
// contains filtered or unexported fields
}
func NewNullableContentPart ¶
func NewNullableContentPart(val *ContentPart) *NullableContentPart
func (NullableContentPart) Get ¶
func (v NullableContentPart) Get() *ContentPart
func (NullableContentPart) IsSet ¶
func (v NullableContentPart) IsSet() bool
func (NullableContentPart) MarshalJSON ¶
func (v NullableContentPart) MarshalJSON() ([]byte, error)
func (*NullableContentPart) Set ¶
func (v *NullableContentPart) Set(val *ContentPart)
func (*NullableContentPart) UnmarshalJSON ¶
func (v *NullableContentPart) UnmarshalJSON(src []byte) error
func (*NullableContentPart) Unset ¶
func (v *NullableContentPart) Unset()
type NullableDebugOutput ¶
type NullableDebugOutput struct {
// contains filtered or unexported fields
}
func NewNullableDebugOutput ¶
func NewNullableDebugOutput(val *DebugOutput) *NullableDebugOutput
func (NullableDebugOutput) Get ¶
func (v NullableDebugOutput) Get() *DebugOutput
func (NullableDebugOutput) IsSet ¶
func (v NullableDebugOutput) IsSet() bool
func (NullableDebugOutput) MarshalJSON ¶
func (v NullableDebugOutput) MarshalJSON() ([]byte, error)
func (*NullableDebugOutput) Set ¶
func (v *NullableDebugOutput) Set(val *DebugOutput)
func (*NullableDebugOutput) UnmarshalJSON ¶
func (v *NullableDebugOutput) UnmarshalJSON(src []byte) error
func (*NullableDebugOutput) Unset ¶
func (v *NullableDebugOutput) Unset()
type NullableDelta ¶
type NullableDelta struct {
// contains filtered or unexported fields
}
func NewNullableDelta ¶
func NewNullableDelta(val *Delta) *NullableDelta
func (NullableDelta) Get ¶
func (v NullableDelta) Get() *Delta
func (NullableDelta) IsSet ¶
func (v NullableDelta) IsSet() bool
func (NullableDelta) MarshalJSON ¶
func (v NullableDelta) MarshalJSON() ([]byte, error)
func (*NullableDelta) Set ¶
func (v *NullableDelta) Set(val *Delta)
func (*NullableDelta) UnmarshalJSON ¶
func (v *NullableDelta) UnmarshalJSON(src []byte) error
func (*NullableDelta) Unset ¶
func (v *NullableDelta) Unset()
type NullableEditImageRequest ¶
type NullableEditImageRequest struct {
// contains filtered or unexported fields
}
func NewNullableEditImageRequest ¶
func NewNullableEditImageRequest(val *EditImageRequest) *NullableEditImageRequest
func (NullableEditImageRequest) Get ¶
func (v NullableEditImageRequest) Get() *EditImageRequest
func (NullableEditImageRequest) IsSet ¶
func (v NullableEditImageRequest) IsSet() bool
func (NullableEditImageRequest) MarshalJSON ¶
func (v NullableEditImageRequest) MarshalJSON() ([]byte, error)
func (*NullableEditImageRequest) Set ¶
func (v *NullableEditImageRequest) Set(val *EditImageRequest)
func (*NullableEditImageRequest) UnmarshalJSON ¶
func (v *NullableEditImageRequest) UnmarshalJSON(src []byte) error
func (*NullableEditImageRequest) Unset ¶
func (v *NullableEditImageRequest) Unset()
type NullableEmbedding ¶
type NullableEmbedding struct {
// contains filtered or unexported fields
}
func NewNullableEmbedding ¶
func NewNullableEmbedding(val *Embedding) *NullableEmbedding
func (NullableEmbedding) Get ¶
func (v NullableEmbedding) Get() *Embedding
func (NullableEmbedding) IsSet ¶
func (v NullableEmbedding) IsSet() bool
func (NullableEmbedding) MarshalJSON ¶
func (v NullableEmbedding) MarshalJSON() ([]byte, error)
func (*NullableEmbedding) Set ¶
func (v *NullableEmbedding) Set(val *Embedding)
func (*NullableEmbedding) UnmarshalJSON ¶
func (v *NullableEmbedding) UnmarshalJSON(src []byte) error
func (*NullableEmbedding) Unset ¶
func (v *NullableEmbedding) Unset()
type NullableEmbeddingContent ¶
type NullableEmbeddingContent struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingContent ¶
func NewNullableEmbeddingContent(val *EmbeddingContent) *NullableEmbeddingContent
func (NullableEmbeddingContent) Get ¶
func (v NullableEmbeddingContent) Get() *EmbeddingContent
func (NullableEmbeddingContent) IsSet ¶
func (v NullableEmbeddingContent) IsSet() bool
func (NullableEmbeddingContent) MarshalJSON ¶
func (v NullableEmbeddingContent) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingContent) Set ¶
func (v *NullableEmbeddingContent) Set(val *EmbeddingContent)
func (*NullableEmbeddingContent) UnmarshalJSON ¶
func (v *NullableEmbeddingContent) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingContent) Unset ¶
func (v *NullableEmbeddingContent) Unset()
type NullableEmbeddingInput ¶
type NullableEmbeddingInput struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingInput ¶
func NewNullableEmbeddingInput(val *EmbeddingInput) *NullableEmbeddingInput
func (NullableEmbeddingInput) Get ¶
func (v NullableEmbeddingInput) Get() *EmbeddingInput
func (NullableEmbeddingInput) IsSet ¶
func (v NullableEmbeddingInput) IsSet() bool
func (NullableEmbeddingInput) MarshalJSON ¶
func (v NullableEmbeddingInput) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingInput) Set ¶
func (v *NullableEmbeddingInput) Set(val *EmbeddingInput)
func (*NullableEmbeddingInput) UnmarshalJSON ¶
func (v *NullableEmbeddingInput) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingInput) Unset ¶
func (v *NullableEmbeddingInput) Unset()
type NullableEmbeddingInputOneOf ¶
type NullableEmbeddingInputOneOf struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingInputOneOf ¶
func NewNullableEmbeddingInputOneOf(val *EmbeddingInputOneOf) *NullableEmbeddingInputOneOf
func (NullableEmbeddingInputOneOf) Get ¶
func (v NullableEmbeddingInputOneOf) Get() *EmbeddingInputOneOf
func (NullableEmbeddingInputOneOf) IsSet ¶
func (v NullableEmbeddingInputOneOf) IsSet() bool
func (NullableEmbeddingInputOneOf) MarshalJSON ¶
func (v NullableEmbeddingInputOneOf) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingInputOneOf) Set ¶
func (v *NullableEmbeddingInputOneOf) Set(val *EmbeddingInputOneOf)
func (*NullableEmbeddingInputOneOf) UnmarshalJSON ¶
func (v *NullableEmbeddingInputOneOf) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingInputOneOf) Unset ¶
func (v *NullableEmbeddingInputOneOf) Unset()
type NullableEmbeddingInputOneOf1 ¶
type NullableEmbeddingInputOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingInputOneOf1 ¶
func NewNullableEmbeddingInputOneOf1(val *EmbeddingInputOneOf1) *NullableEmbeddingInputOneOf1
func (NullableEmbeddingInputOneOf1) Get ¶
func (v NullableEmbeddingInputOneOf1) Get() *EmbeddingInputOneOf1
func (NullableEmbeddingInputOneOf1) IsSet ¶
func (v NullableEmbeddingInputOneOf1) IsSet() bool
func (NullableEmbeddingInputOneOf1) MarshalJSON ¶
func (v NullableEmbeddingInputOneOf1) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingInputOneOf1) Set ¶
func (v *NullableEmbeddingInputOneOf1) Set(val *EmbeddingInputOneOf1)
func (*NullableEmbeddingInputOneOf1) UnmarshalJSON ¶
func (v *NullableEmbeddingInputOneOf1) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingInputOneOf1) Unset ¶
func (v *NullableEmbeddingInputOneOf1) Unset()
type NullableEmbeddingInputOneOf2 ¶
type NullableEmbeddingInputOneOf2 struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingInputOneOf2 ¶
func NewNullableEmbeddingInputOneOf2(val *EmbeddingInputOneOf2) *NullableEmbeddingInputOneOf2
func (NullableEmbeddingInputOneOf2) Get ¶
func (v NullableEmbeddingInputOneOf2) Get() *EmbeddingInputOneOf2
func (NullableEmbeddingInputOneOf2) IsSet ¶
func (v NullableEmbeddingInputOneOf2) IsSet() bool
func (NullableEmbeddingInputOneOf2) MarshalJSON ¶
func (v NullableEmbeddingInputOneOf2) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingInputOneOf2) Set ¶
func (v *NullableEmbeddingInputOneOf2) Set(val *EmbeddingInputOneOf2)
func (*NullableEmbeddingInputOneOf2) UnmarshalJSON ¶
func (v *NullableEmbeddingInputOneOf2) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingInputOneOf2) Unset ¶
func (v *NullableEmbeddingInputOneOf2) Unset()
type NullableEmbeddingInputOneOf3 ¶
type NullableEmbeddingInputOneOf3 struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingInputOneOf3 ¶
func NewNullableEmbeddingInputOneOf3(val *EmbeddingInputOneOf3) *NullableEmbeddingInputOneOf3
func (NullableEmbeddingInputOneOf3) Get ¶
func (v NullableEmbeddingInputOneOf3) Get() *EmbeddingInputOneOf3
func (NullableEmbeddingInputOneOf3) IsSet ¶
func (v NullableEmbeddingInputOneOf3) IsSet() bool
func (NullableEmbeddingInputOneOf3) MarshalJSON ¶
func (v NullableEmbeddingInputOneOf3) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingInputOneOf3) Set ¶
func (v *NullableEmbeddingInputOneOf3) Set(val *EmbeddingInputOneOf3)
func (*NullableEmbeddingInputOneOf3) UnmarshalJSON ¶
func (v *NullableEmbeddingInputOneOf3) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingInputOneOf3) Unset ¶
func (v *NullableEmbeddingInputOneOf3) Unset()
type NullableEmbeddingModel ¶
type NullableEmbeddingModel struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingModel ¶
func NewNullableEmbeddingModel(val *EmbeddingModel) *NullableEmbeddingModel
func (NullableEmbeddingModel) Get ¶
func (v NullableEmbeddingModel) Get() *EmbeddingModel
func (NullableEmbeddingModel) IsSet ¶
func (v NullableEmbeddingModel) IsSet() bool
func (NullableEmbeddingModel) MarshalJSON ¶
func (v NullableEmbeddingModel) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingModel) Set ¶
func (v *NullableEmbeddingModel) Set(val *EmbeddingModel)
func (*NullableEmbeddingModel) UnmarshalJSON ¶
func (v *NullableEmbeddingModel) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingModel) Unset ¶
func (v *NullableEmbeddingModel) Unset()
type NullableEmbeddingRequest ¶
type NullableEmbeddingRequest struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingRequest ¶
func NewNullableEmbeddingRequest(val *EmbeddingRequest) *NullableEmbeddingRequest
func (NullableEmbeddingRequest) Get ¶
func (v NullableEmbeddingRequest) Get() *EmbeddingRequest
func (NullableEmbeddingRequest) IsSet ¶
func (v NullableEmbeddingRequest) IsSet() bool
func (NullableEmbeddingRequest) MarshalJSON ¶
func (v NullableEmbeddingRequest) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingRequest) Set ¶
func (v *NullableEmbeddingRequest) Set(val *EmbeddingRequest)
func (*NullableEmbeddingRequest) UnmarshalJSON ¶
func (v *NullableEmbeddingRequest) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingRequest) Unset ¶
func (v *NullableEmbeddingRequest) Unset()
type NullableEmbeddingResponse ¶
type NullableEmbeddingResponse struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingResponse ¶
func NewNullableEmbeddingResponse(val *EmbeddingResponse) *NullableEmbeddingResponse
func (NullableEmbeddingResponse) Get ¶
func (v NullableEmbeddingResponse) Get() *EmbeddingResponse
func (NullableEmbeddingResponse) IsSet ¶
func (v NullableEmbeddingResponse) IsSet() bool
func (NullableEmbeddingResponse) MarshalJSON ¶
func (v NullableEmbeddingResponse) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingResponse) Set ¶
func (v *NullableEmbeddingResponse) Set(val *EmbeddingResponse)
func (*NullableEmbeddingResponse) UnmarshalJSON ¶
func (v *NullableEmbeddingResponse) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingResponse) Unset ¶
func (v *NullableEmbeddingResponse) Unset()
type NullableEmbeddingUsage ¶
type NullableEmbeddingUsage struct {
// contains filtered or unexported fields
}
func NewNullableEmbeddingUsage ¶
func NewNullableEmbeddingUsage(val *EmbeddingUsage) *NullableEmbeddingUsage
func (NullableEmbeddingUsage) Get ¶
func (v NullableEmbeddingUsage) Get() *EmbeddingUsage
func (NullableEmbeddingUsage) IsSet ¶
func (v NullableEmbeddingUsage) IsSet() bool
func (NullableEmbeddingUsage) MarshalJSON ¶
func (v NullableEmbeddingUsage) MarshalJSON() ([]byte, error)
func (*NullableEmbeddingUsage) Set ¶
func (v *NullableEmbeddingUsage) Set(val *EmbeddingUsage)
func (*NullableEmbeddingUsage) UnmarshalJSON ¶
func (v *NullableEmbeddingUsage) UnmarshalJSON(src []byte) error
func (*NullableEmbeddingUsage) Unset ¶
func (v *NullableEmbeddingUsage) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableFunction ¶
type NullableFunction struct {
// contains filtered or unexported fields
}
func NewNullableFunction ¶
func NewNullableFunction(val *Function) *NullableFunction
func (NullableFunction) Get ¶
func (v NullableFunction) Get() *Function
func (NullableFunction) IsSet ¶
func (v NullableFunction) IsSet() bool
func (NullableFunction) MarshalJSON ¶
func (v NullableFunction) MarshalJSON() ([]byte, error)
func (*NullableFunction) Set ¶
func (v *NullableFunction) Set(val *Function)
func (*NullableFunction) UnmarshalJSON ¶
func (v *NullableFunction) UnmarshalJSON(src []byte) error
func (*NullableFunction) Unset ¶
func (v *NullableFunction) Unset()
type NullableFunctionCall ¶
type NullableFunctionCall struct {
// contains filtered or unexported fields
}
func NewNullableFunctionCall ¶
func NewNullableFunctionCall(val *FunctionCall) *NullableFunctionCall
func (NullableFunctionCall) Get ¶
func (v NullableFunctionCall) Get() *FunctionCall
func (NullableFunctionCall) IsSet ¶
func (v NullableFunctionCall) IsSet() bool
func (NullableFunctionCall) MarshalJSON ¶
func (v NullableFunctionCall) MarshalJSON() ([]byte, error)
func (*NullableFunctionCall) Set ¶
func (v *NullableFunctionCall) Set(val *FunctionCall)
func (*NullableFunctionCall) UnmarshalJSON ¶
func (v *NullableFunctionCall) UnmarshalJSON(src []byte) error
func (*NullableFunctionCall) Unset ¶
func (v *NullableFunctionCall) Unset()
type NullableFunctionChoice ¶
type NullableFunctionChoice struct {
// contains filtered or unexported fields
}
func NewNullableFunctionChoice ¶
func NewNullableFunctionChoice(val *FunctionChoice) *NullableFunctionChoice
func (NullableFunctionChoice) Get ¶
func (v NullableFunctionChoice) Get() *FunctionChoice
func (NullableFunctionChoice) IsSet ¶
func (v NullableFunctionChoice) IsSet() bool
func (NullableFunctionChoice) MarshalJSON ¶
func (v NullableFunctionChoice) MarshalJSON() ([]byte, error)
func (*NullableFunctionChoice) Set ¶
func (v *NullableFunctionChoice) Set(val *FunctionChoice)
func (*NullableFunctionChoice) UnmarshalJSON ¶
func (v *NullableFunctionChoice) UnmarshalJSON(src []byte) error
func (*NullableFunctionChoice) Unset ¶
func (v *NullableFunctionChoice) Unset()
type NullableFunctionDefinition ¶
type NullableFunctionDefinition struct {
// contains filtered or unexported fields
}
func NewNullableFunctionDefinition ¶
func NewNullableFunctionDefinition(val *FunctionDefinition) *NullableFunctionDefinition
func (NullableFunctionDefinition) Get ¶
func (v NullableFunctionDefinition) Get() *FunctionDefinition
func (NullableFunctionDefinition) IsSet ¶
func (v NullableFunctionDefinition) IsSet() bool
func (NullableFunctionDefinition) MarshalJSON ¶
func (v NullableFunctionDefinition) MarshalJSON() ([]byte, error)
func (*NullableFunctionDefinition) Set ¶
func (v *NullableFunctionDefinition) Set(val *FunctionDefinition)
func (*NullableFunctionDefinition) UnmarshalJSON ¶
func (v *NullableFunctionDefinition) UnmarshalJSON(src []byte) error
func (*NullableFunctionDefinition) Unset ¶
func (v *NullableFunctionDefinition) Unset()
type NullableGenerateImageRequest ¶
type NullableGenerateImageRequest struct {
// contains filtered or unexported fields
}
func NewNullableGenerateImageRequest ¶
func NewNullableGenerateImageRequest(val *GenerateImageRequest) *NullableGenerateImageRequest
func (NullableGenerateImageRequest) Get ¶
func (v NullableGenerateImageRequest) Get() *GenerateImageRequest
func (NullableGenerateImageRequest) IsSet ¶
func (v NullableGenerateImageRequest) IsSet() bool
func (NullableGenerateImageRequest) MarshalJSON ¶
func (v NullableGenerateImageRequest) MarshalJSON() ([]byte, error)
func (*NullableGenerateImageRequest) Set ¶
func (v *NullableGenerateImageRequest) Set(val *GenerateImageRequest)
func (*NullableGenerateImageRequest) UnmarshalJSON ¶
func (v *NullableGenerateImageRequest) UnmarshalJSON(src []byte) error
func (*NullableGenerateImageRequest) Unset ¶
func (v *NullableGenerateImageRequest) Unset()
type NullableGeneratedImage ¶
type NullableGeneratedImage struct {
// contains filtered or unexported fields
}
func NewNullableGeneratedImage ¶
func NewNullableGeneratedImage(val *GeneratedImage) *NullableGeneratedImage
func (NullableGeneratedImage) Get ¶
func (v NullableGeneratedImage) Get() *GeneratedImage
func (NullableGeneratedImage) IsSet ¶
func (v NullableGeneratedImage) IsSet() bool
func (NullableGeneratedImage) MarshalJSON ¶
func (v NullableGeneratedImage) MarshalJSON() ([]byte, error)
func (*NullableGeneratedImage) Set ¶
func (v *NullableGeneratedImage) Set(val *GeneratedImage)
func (*NullableGeneratedImage) UnmarshalJSON ¶
func (v *NullableGeneratedImage) UnmarshalJSON(src []byte) error
func (*NullableGeneratedImage) Unset ¶
func (v *NullableGeneratedImage) Unset()
type NullableGeneratedImageResponse ¶
type NullableGeneratedImageResponse struct {
// contains filtered or unexported fields
}
func NewNullableGeneratedImageResponse ¶
func NewNullableGeneratedImageResponse(val *GeneratedImageResponse) *NullableGeneratedImageResponse
func (NullableGeneratedImageResponse) Get ¶
func (v NullableGeneratedImageResponse) Get() *GeneratedImageResponse
func (NullableGeneratedImageResponse) IsSet ¶
func (v NullableGeneratedImageResponse) IsSet() bool
func (NullableGeneratedImageResponse) MarshalJSON ¶
func (v NullableGeneratedImageResponse) MarshalJSON() ([]byte, error)
func (*NullableGeneratedImageResponse) Set ¶
func (v *NullableGeneratedImageResponse) Set(val *GeneratedImageResponse)
func (*NullableGeneratedImageResponse) UnmarshalJSON ¶
func (v *NullableGeneratedImageResponse) UnmarshalJSON(src []byte) error
func (*NullableGeneratedImageResponse) Unset ¶
func (v *NullableGeneratedImageResponse) Unset()
type NullableImageGenerationModel ¶
type NullableImageGenerationModel struct {
// contains filtered or unexported fields
}
func NewNullableImageGenerationModel ¶
func NewNullableImageGenerationModel(val *ImageGenerationModel) *NullableImageGenerationModel
func (NullableImageGenerationModel) Get ¶
func (v NullableImageGenerationModel) Get() *ImageGenerationModel
func (NullableImageGenerationModel) IsSet ¶
func (v NullableImageGenerationModel) IsSet() bool
func (NullableImageGenerationModel) MarshalJSON ¶
func (v NullableImageGenerationModel) MarshalJSON() ([]byte, error)
func (*NullableImageGenerationModel) Set ¶
func (v *NullableImageGenerationModel) Set(val *ImageGenerationModel)
func (*NullableImageGenerationModel) UnmarshalJSON ¶
func (v *NullableImageGenerationModel) UnmarshalJSON(src []byte) error
func (*NullableImageGenerationModel) Unset ¶
func (v *NullableImageGenerationModel) Unset()
type NullableImageUrl ¶
type NullableImageUrl struct {
// contains filtered or unexported fields
}
func NewNullableImageUrl ¶
func NewNullableImageUrl(val *ImageUrl) *NullableImageUrl
func (NullableImageUrl) Get ¶
func (v NullableImageUrl) Get() *ImageUrl
func (NullableImageUrl) IsSet ¶
func (v NullableImageUrl) IsSet() bool
func (NullableImageUrl) MarshalJSON ¶
func (v NullableImageUrl) MarshalJSON() ([]byte, error)
func (*NullableImageUrl) Set ¶
func (v *NullableImageUrl) Set(val *ImageUrl)
func (*NullableImageUrl) UnmarshalJSON ¶
func (v *NullableImageUrl) UnmarshalJSON(src []byte) error
func (*NullableImageUrl) Unset ¶
func (v *NullableImageUrl) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableLanguageModel ¶
type NullableLanguageModel struct {
// contains filtered or unexported fields
}
func NewNullableLanguageModel ¶
func NewNullableLanguageModel(val *LanguageModel) *NullableLanguageModel
func (NullableLanguageModel) Get ¶
func (v NullableLanguageModel) Get() *LanguageModel
func (NullableLanguageModel) IsSet ¶
func (v NullableLanguageModel) IsSet() bool
func (NullableLanguageModel) MarshalJSON ¶
func (v NullableLanguageModel) MarshalJSON() ([]byte, error)
func (*NullableLanguageModel) Set ¶
func (v *NullableLanguageModel) Set(val *LanguageModel)
func (*NullableLanguageModel) UnmarshalJSON ¶
func (v *NullableLanguageModel) UnmarshalJSON(src []byte) error
func (*NullableLanguageModel) Unset ¶
func (v *NullableLanguageModel) Unset()
type NullableListEmbeddingModelsResponse ¶
type NullableListEmbeddingModelsResponse struct {
// contains filtered or unexported fields
}
func NewNullableListEmbeddingModelsResponse ¶
func NewNullableListEmbeddingModelsResponse(val *ListEmbeddingModelsResponse) *NullableListEmbeddingModelsResponse
func (NullableListEmbeddingModelsResponse) Get ¶
func (v NullableListEmbeddingModelsResponse) Get() *ListEmbeddingModelsResponse
func (NullableListEmbeddingModelsResponse) IsSet ¶
func (v NullableListEmbeddingModelsResponse) IsSet() bool
func (NullableListEmbeddingModelsResponse) MarshalJSON ¶
func (v NullableListEmbeddingModelsResponse) MarshalJSON() ([]byte, error)
func (*NullableListEmbeddingModelsResponse) Set ¶
func (v *NullableListEmbeddingModelsResponse) Set(val *ListEmbeddingModelsResponse)
func (*NullableListEmbeddingModelsResponse) UnmarshalJSON ¶
func (v *NullableListEmbeddingModelsResponse) UnmarshalJSON(src []byte) error
func (*NullableListEmbeddingModelsResponse) Unset ¶
func (v *NullableListEmbeddingModelsResponse) Unset()
type NullableListImageGenerationModelsResponse ¶
type NullableListImageGenerationModelsResponse struct {
// contains filtered or unexported fields
}
func NewNullableListImageGenerationModelsResponse ¶
func NewNullableListImageGenerationModelsResponse(val *ListImageGenerationModelsResponse) *NullableListImageGenerationModelsResponse
func (NullableListImageGenerationModelsResponse) IsSet ¶
func (v NullableListImageGenerationModelsResponse) IsSet() bool
func (NullableListImageGenerationModelsResponse) MarshalJSON ¶
func (v NullableListImageGenerationModelsResponse) MarshalJSON() ([]byte, error)
func (*NullableListImageGenerationModelsResponse) Set ¶
func (v *NullableListImageGenerationModelsResponse) Set(val *ListImageGenerationModelsResponse)
func (*NullableListImageGenerationModelsResponse) UnmarshalJSON ¶
func (v *NullableListImageGenerationModelsResponse) UnmarshalJSON(src []byte) error
func (*NullableListImageGenerationModelsResponse) Unset ¶
func (v *NullableListImageGenerationModelsResponse) Unset()
type NullableListLanguageModelsResponse ¶
type NullableListLanguageModelsResponse struct {
// contains filtered or unexported fields
}
func NewNullableListLanguageModelsResponse ¶
func NewNullableListLanguageModelsResponse(val *ListLanguageModelsResponse) *NullableListLanguageModelsResponse
func (NullableListLanguageModelsResponse) Get ¶
func (v NullableListLanguageModelsResponse) Get() *ListLanguageModelsResponse
func (NullableListLanguageModelsResponse) IsSet ¶
func (v NullableListLanguageModelsResponse) IsSet() bool
func (NullableListLanguageModelsResponse) MarshalJSON ¶
func (v NullableListLanguageModelsResponse) MarshalJSON() ([]byte, error)
func (*NullableListLanguageModelsResponse) Set ¶
func (v *NullableListLanguageModelsResponse) Set(val *ListLanguageModelsResponse)
func (*NullableListLanguageModelsResponse) UnmarshalJSON ¶
func (v *NullableListLanguageModelsResponse) UnmarshalJSON(src []byte) error
func (*NullableListLanguageModelsResponse) Unset ¶
func (v *NullableListLanguageModelsResponse) Unset()
type NullableListModelsResponse ¶
type NullableListModelsResponse struct {
// contains filtered or unexported fields
}
func NewNullableListModelsResponse ¶
func NewNullableListModelsResponse(val *ListModelsResponse) *NullableListModelsResponse
func (NullableListModelsResponse) Get ¶
func (v NullableListModelsResponse) Get() *ListModelsResponse
func (NullableListModelsResponse) IsSet ¶
func (v NullableListModelsResponse) IsSet() bool
func (NullableListModelsResponse) MarshalJSON ¶
func (v NullableListModelsResponse) MarshalJSON() ([]byte, error)
func (*NullableListModelsResponse) Set ¶
func (v *NullableListModelsResponse) Set(val *ListModelsResponse)
func (*NullableListModelsResponse) UnmarshalJSON ¶
func (v *NullableListModelsResponse) UnmarshalJSON(src []byte) error
func (*NullableListModelsResponse) Unset ¶
func (v *NullableListModelsResponse) Unset()
type NullableLogProbs ¶
type NullableLogProbs struct {
// contains filtered or unexported fields
}
func NewNullableLogProbs ¶
func NewNullableLogProbs(val *LogProbs) *NullableLogProbs
func (NullableLogProbs) Get ¶
func (v NullableLogProbs) Get() *LogProbs
func (NullableLogProbs) IsSet ¶
func (v NullableLogProbs) IsSet() bool
func (NullableLogProbs) MarshalJSON ¶
func (v NullableLogProbs) MarshalJSON() ([]byte, error)
func (*NullableLogProbs) Set ¶
func (v *NullableLogProbs) Set(val *LogProbs)
func (*NullableLogProbs) UnmarshalJSON ¶
func (v *NullableLogProbs) UnmarshalJSON(src []byte) error
func (*NullableLogProbs) Unset ¶
func (v *NullableLogProbs) Unset()
type NullableMessage ¶
type NullableMessage struct {
// contains filtered or unexported fields
}
func NewNullableMessage ¶
func NewNullableMessage(val *Message) *NullableMessage
func (NullableMessage) Get ¶
func (v NullableMessage) Get() *Message
func (NullableMessage) IsSet ¶
func (v NullableMessage) IsSet() bool
func (NullableMessage) MarshalJSON ¶
func (v NullableMessage) MarshalJSON() ([]byte, error)
func (*NullableMessage) Set ¶
func (v *NullableMessage) Set(val *Message)
func (*NullableMessage) UnmarshalJSON ¶
func (v *NullableMessage) UnmarshalJSON(src []byte) error
func (*NullableMessage) Unset ¶
func (v *NullableMessage) Unset()
type NullableMessageBody ¶
type NullableMessageBody struct {
// contains filtered or unexported fields
}
func NewNullableMessageBody ¶
func NewNullableMessageBody(val *MessageBody) *NullableMessageBody
func (NullableMessageBody) Get ¶
func (v NullableMessageBody) Get() *MessageBody
func (NullableMessageBody) IsSet ¶
func (v NullableMessageBody) IsSet() bool
func (NullableMessageBody) MarshalJSON ¶
func (v NullableMessageBody) MarshalJSON() ([]byte, error)
func (*NullableMessageBody) Set ¶
func (v *NullableMessageBody) Set(val *MessageBody)
func (*NullableMessageBody) UnmarshalJSON ¶
func (v *NullableMessageBody) UnmarshalJSON(src []byte) error
func (*NullableMessageBody) Unset ¶
func (v *NullableMessageBody) Unset()
type NullableMessageContent ¶
type NullableMessageContent struct {
// contains filtered or unexported fields
}
func NewNullableMessageContent ¶
func NewNullableMessageContent(val *MessageContent) *NullableMessageContent
func (NullableMessageContent) Get ¶
func (v NullableMessageContent) Get() *MessageContent
func (NullableMessageContent) IsSet ¶
func (v NullableMessageContent) IsSet() bool
func (NullableMessageContent) MarshalJSON ¶
func (v NullableMessageContent) MarshalJSON() ([]byte, error)
func (*NullableMessageContent) Set ¶
func (v *NullableMessageContent) Set(val *MessageContent)
func (*NullableMessageContent) UnmarshalJSON ¶
func (v *NullableMessageContent) UnmarshalJSON(src []byte) error
func (*NullableMessageContent) Unset ¶
func (v *NullableMessageContent) Unset()
type NullableMessageContentPart ¶
type NullableMessageContentPart struct {
// contains filtered or unexported fields
}
func NewNullableMessageContentPart ¶
func NewNullableMessageContentPart(val *MessageContentPart) *NullableMessageContentPart
func (NullableMessageContentPart) Get ¶
func (v NullableMessageContentPart) Get() *MessageContentPart
func (NullableMessageContentPart) IsSet ¶
func (v NullableMessageContentPart) IsSet() bool
func (NullableMessageContentPart) MarshalJSON ¶
func (v NullableMessageContentPart) MarshalJSON() ([]byte, error)
func (*NullableMessageContentPart) Set ¶
func (v *NullableMessageContentPart) Set(val *MessageContentPart)
func (*NullableMessageContentPart) UnmarshalJSON ¶
func (v *NullableMessageContentPart) UnmarshalJSON(src []byte) error
func (*NullableMessageContentPart) Unset ¶
func (v *NullableMessageContentPart) Unset()
type NullableMessageContentPartOneOf ¶
type NullableMessageContentPartOneOf struct {
// contains filtered or unexported fields
}
func NewNullableMessageContentPartOneOf ¶
func NewNullableMessageContentPartOneOf(val *MessageContentPartOneOf) *NullableMessageContentPartOneOf
func (NullableMessageContentPartOneOf) Get ¶
func (v NullableMessageContentPartOneOf) Get() *MessageContentPartOneOf
func (NullableMessageContentPartOneOf) IsSet ¶
func (v NullableMessageContentPartOneOf) IsSet() bool
func (NullableMessageContentPartOneOf) MarshalJSON ¶
func (v NullableMessageContentPartOneOf) MarshalJSON() ([]byte, error)
func (*NullableMessageContentPartOneOf) Set ¶
func (v *NullableMessageContentPartOneOf) Set(val *MessageContentPartOneOf)
func (*NullableMessageContentPartOneOf) UnmarshalJSON ¶
func (v *NullableMessageContentPartOneOf) UnmarshalJSON(src []byte) error
func (*NullableMessageContentPartOneOf) Unset ¶
func (v *NullableMessageContentPartOneOf) Unset()
type NullableMessageContentPartOneOf1 ¶
type NullableMessageContentPartOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableMessageContentPartOneOf1 ¶
func NewNullableMessageContentPartOneOf1(val *MessageContentPartOneOf1) *NullableMessageContentPartOneOf1
func (NullableMessageContentPartOneOf1) Get ¶
func (v NullableMessageContentPartOneOf1) Get() *MessageContentPartOneOf1
func (NullableMessageContentPartOneOf1) IsSet ¶
func (v NullableMessageContentPartOneOf1) IsSet() bool
func (NullableMessageContentPartOneOf1) MarshalJSON ¶
func (v NullableMessageContentPartOneOf1) MarshalJSON() ([]byte, error)
func (*NullableMessageContentPartOneOf1) Set ¶
func (v *NullableMessageContentPartOneOf1) Set(val *MessageContentPartOneOf1)
func (*NullableMessageContentPartOneOf1) UnmarshalJSON ¶
func (v *NullableMessageContentPartOneOf1) UnmarshalJSON(src []byte) error
func (*NullableMessageContentPartOneOf1) Unset ¶
func (v *NullableMessageContentPartOneOf1) Unset()
type NullableMessageContentPartOneOf2 ¶
type NullableMessageContentPartOneOf2 struct {
// contains filtered or unexported fields
}
func NewNullableMessageContentPartOneOf2 ¶
func NewNullableMessageContentPartOneOf2(val *MessageContentPartOneOf2) *NullableMessageContentPartOneOf2
func (NullableMessageContentPartOneOf2) Get ¶
func (v NullableMessageContentPartOneOf2) Get() *MessageContentPartOneOf2
func (NullableMessageContentPartOneOf2) IsSet ¶
func (v NullableMessageContentPartOneOf2) IsSet() bool
func (NullableMessageContentPartOneOf2) MarshalJSON ¶
func (v NullableMessageContentPartOneOf2) MarshalJSON() ([]byte, error)
func (*NullableMessageContentPartOneOf2) Set ¶
func (v *NullableMessageContentPartOneOf2) Set(val *MessageContentPartOneOf2)
func (*NullableMessageContentPartOneOf2) UnmarshalJSON ¶
func (v *NullableMessageContentPartOneOf2) UnmarshalJSON(src []byte) error
func (*NullableMessageContentPartOneOf2) Unset ¶
func (v *NullableMessageContentPartOneOf2) Unset()
type NullableMessageContentPartOneOf3 ¶
type NullableMessageContentPartOneOf3 struct {
// contains filtered or unexported fields
}
func NewNullableMessageContentPartOneOf3 ¶
func NewNullableMessageContentPartOneOf3(val *MessageContentPartOneOf3) *NullableMessageContentPartOneOf3
func (NullableMessageContentPartOneOf3) Get ¶
func (v NullableMessageContentPartOneOf3) Get() *MessageContentPartOneOf3
func (NullableMessageContentPartOneOf3) IsSet ¶
func (v NullableMessageContentPartOneOf3) IsSet() bool
func (NullableMessageContentPartOneOf3) MarshalJSON ¶
func (v NullableMessageContentPartOneOf3) MarshalJSON() ([]byte, error)
func (*NullableMessageContentPartOneOf3) Set ¶
func (v *NullableMessageContentPartOneOf3) Set(val *MessageContentPartOneOf3)
func (*NullableMessageContentPartOneOf3) UnmarshalJSON ¶
func (v *NullableMessageContentPartOneOf3) UnmarshalJSON(src []byte) error
func (*NullableMessageContentPartOneOf3) Unset ¶
func (v *NullableMessageContentPartOneOf3) Unset()
type NullableMessageContentPartOneOf4 ¶
type NullableMessageContentPartOneOf4 struct {
// contains filtered or unexported fields
}
func NewNullableMessageContentPartOneOf4 ¶
func NewNullableMessageContentPartOneOf4(val *MessageContentPartOneOf4) *NullableMessageContentPartOneOf4
func (NullableMessageContentPartOneOf4) Get ¶
func (v NullableMessageContentPartOneOf4) Get() *MessageContentPartOneOf4
func (NullableMessageContentPartOneOf4) IsSet ¶
func (v NullableMessageContentPartOneOf4) IsSet() bool
func (NullableMessageContentPartOneOf4) MarshalJSON ¶
func (v NullableMessageContentPartOneOf4) MarshalJSON() ([]byte, error)
func (*NullableMessageContentPartOneOf4) Set ¶
func (v *NullableMessageContentPartOneOf4) Set(val *MessageContentPartOneOf4)
func (*NullableMessageContentPartOneOf4) UnmarshalJSON ¶
func (v *NullableMessageContentPartOneOf4) UnmarshalJSON(src []byte) error
func (*NullableMessageContentPartOneOf4) Unset ¶
func (v *NullableMessageContentPartOneOf4) Unset()
type NullableMessageContentPartOneOf5 ¶
type NullableMessageContentPartOneOf5 struct {
// contains filtered or unexported fields
}
func NewNullableMessageContentPartOneOf5 ¶
func NewNullableMessageContentPartOneOf5(val *MessageContentPartOneOf5) *NullableMessageContentPartOneOf5
func (NullableMessageContentPartOneOf5) Get ¶
func (v NullableMessageContentPartOneOf5) Get() *MessageContentPartOneOf5
func (NullableMessageContentPartOneOf5) IsSet ¶
func (v NullableMessageContentPartOneOf5) IsSet() bool
func (NullableMessageContentPartOneOf5) MarshalJSON ¶
func (v NullableMessageContentPartOneOf5) MarshalJSON() ([]byte, error)
func (*NullableMessageContentPartOneOf5) Set ¶
func (v *NullableMessageContentPartOneOf5) Set(val *MessageContentPartOneOf5)
func (*NullableMessageContentPartOneOf5) UnmarshalJSON ¶
func (v *NullableMessageContentPartOneOf5) UnmarshalJSON(src []byte) error
func (*NullableMessageContentPartOneOf5) Unset ¶
func (v *NullableMessageContentPartOneOf5) Unset()
type NullableMessageImageContent ¶
type NullableMessageImageContent struct {
// contains filtered or unexported fields
}
func NewNullableMessageImageContent ¶
func NewNullableMessageImageContent(val *MessageImageContent) *NullableMessageImageContent
func (NullableMessageImageContent) Get ¶
func (v NullableMessageImageContent) Get() *MessageImageContent
func (NullableMessageImageContent) IsSet ¶
func (v NullableMessageImageContent) IsSet() bool
func (NullableMessageImageContent) MarshalJSON ¶
func (v NullableMessageImageContent) MarshalJSON() ([]byte, error)
func (*NullableMessageImageContent) Set ¶
func (v *NullableMessageImageContent) Set(val *MessageImageContent)
func (*NullableMessageImageContent) UnmarshalJSON ¶
func (v *NullableMessageImageContent) UnmarshalJSON(src []byte) error
func (*NullableMessageImageContent) Unset ¶
func (v *NullableMessageImageContent) Unset()
type NullableMessageImageContentOneOf ¶
type NullableMessageImageContentOneOf struct {
// contains filtered or unexported fields
}
func NewNullableMessageImageContentOneOf ¶
func NewNullableMessageImageContentOneOf(val *MessageImageContentOneOf) *NullableMessageImageContentOneOf
func (NullableMessageImageContentOneOf) Get ¶
func (v NullableMessageImageContentOneOf) Get() *MessageImageContentOneOf
func (NullableMessageImageContentOneOf) IsSet ¶
func (v NullableMessageImageContentOneOf) IsSet() bool
func (NullableMessageImageContentOneOf) MarshalJSON ¶
func (v NullableMessageImageContentOneOf) MarshalJSON() ([]byte, error)
func (*NullableMessageImageContentOneOf) Set ¶
func (v *NullableMessageImageContentOneOf) Set(val *MessageImageContentOneOf)
func (*NullableMessageImageContentOneOf) UnmarshalJSON ¶
func (v *NullableMessageImageContentOneOf) UnmarshalJSON(src []byte) error
func (*NullableMessageImageContentOneOf) Unset ¶
func (v *NullableMessageImageContentOneOf) Unset()
type NullableMessageImageContentOneOf1 ¶
type NullableMessageImageContentOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableMessageImageContentOneOf1 ¶
func NewNullableMessageImageContentOneOf1(val *MessageImageContentOneOf1) *NullableMessageImageContentOneOf1
func (NullableMessageImageContentOneOf1) Get ¶
func (v NullableMessageImageContentOneOf1) Get() *MessageImageContentOneOf1
func (NullableMessageImageContentOneOf1) IsSet ¶
func (v NullableMessageImageContentOneOf1) IsSet() bool
func (NullableMessageImageContentOneOf1) MarshalJSON ¶
func (v NullableMessageImageContentOneOf1) MarshalJSON() ([]byte, error)
func (*NullableMessageImageContentOneOf1) Set ¶
func (v *NullableMessageImageContentOneOf1) Set(val *MessageImageContentOneOf1)
func (*NullableMessageImageContentOneOf1) UnmarshalJSON ¶
func (v *NullableMessageImageContentOneOf1) UnmarshalJSON(src []byte) error
func (*NullableMessageImageContentOneOf1) Unset ¶
func (v *NullableMessageImageContentOneOf1) Unset()
type NullableMessageMetadata ¶
type NullableMessageMetadata struct {
// contains filtered or unexported fields
}
func NewNullableMessageMetadata ¶
func NewNullableMessageMetadata(val *MessageMetadata) *NullableMessageMetadata
func (NullableMessageMetadata) Get ¶
func (v NullableMessageMetadata) Get() *MessageMetadata
func (NullableMessageMetadata) IsSet ¶
func (v NullableMessageMetadata) IsSet() bool
func (NullableMessageMetadata) MarshalJSON ¶
func (v NullableMessageMetadata) MarshalJSON() ([]byte, error)
func (*NullableMessageMetadata) Set ¶
func (v *NullableMessageMetadata) Set(val *MessageMetadata)
func (*NullableMessageMetadata) UnmarshalJSON ¶
func (v *NullableMessageMetadata) UnmarshalJSON(src []byte) error
func (*NullableMessageMetadata) Unset ¶
func (v *NullableMessageMetadata) Unset()
type NullableMessageOneOf ¶
type NullableMessageOneOf struct {
// contains filtered or unexported fields
}
func NewNullableMessageOneOf ¶
func NewNullableMessageOneOf(val *MessageOneOf) *NullableMessageOneOf
func (NullableMessageOneOf) Get ¶
func (v NullableMessageOneOf) Get() *MessageOneOf
func (NullableMessageOneOf) IsSet ¶
func (v NullableMessageOneOf) IsSet() bool
func (NullableMessageOneOf) MarshalJSON ¶
func (v NullableMessageOneOf) MarshalJSON() ([]byte, error)
func (*NullableMessageOneOf) Set ¶
func (v *NullableMessageOneOf) Set(val *MessageOneOf)
func (*NullableMessageOneOf) UnmarshalJSON ¶
func (v *NullableMessageOneOf) UnmarshalJSON(src []byte) error
func (*NullableMessageOneOf) Unset ¶
func (v *NullableMessageOneOf) Unset()
type NullableMessageOneOf1 ¶
type NullableMessageOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableMessageOneOf1 ¶
func NewNullableMessageOneOf1(val *MessageOneOf1) *NullableMessageOneOf1
func (NullableMessageOneOf1) Get ¶
func (v NullableMessageOneOf1) Get() *MessageOneOf1
func (NullableMessageOneOf1) IsSet ¶
func (v NullableMessageOneOf1) IsSet() bool
func (NullableMessageOneOf1) MarshalJSON ¶
func (v NullableMessageOneOf1) MarshalJSON() ([]byte, error)
func (*NullableMessageOneOf1) Set ¶
func (v *NullableMessageOneOf1) Set(val *MessageOneOf1)
func (*NullableMessageOneOf1) UnmarshalJSON ¶
func (v *NullableMessageOneOf1) UnmarshalJSON(src []byte) error
func (*NullableMessageOneOf1) Unset ¶
func (v *NullableMessageOneOf1) Unset()
type NullableMessageOneOf2 ¶
type NullableMessageOneOf2 struct {
// contains filtered or unexported fields
}
func NewNullableMessageOneOf2 ¶
func NewNullableMessageOneOf2(val *MessageOneOf2) *NullableMessageOneOf2
func (NullableMessageOneOf2) Get ¶
func (v NullableMessageOneOf2) Get() *MessageOneOf2
func (NullableMessageOneOf2) IsSet ¶
func (v NullableMessageOneOf2) IsSet() bool
func (NullableMessageOneOf2) MarshalJSON ¶
func (v NullableMessageOneOf2) MarshalJSON() ([]byte, error)
func (*NullableMessageOneOf2) Set ¶
func (v *NullableMessageOneOf2) Set(val *MessageOneOf2)
func (*NullableMessageOneOf2) UnmarshalJSON ¶
func (v *NullableMessageOneOf2) UnmarshalJSON(src []byte) error
func (*NullableMessageOneOf2) Unset ¶
func (v *NullableMessageOneOf2) Unset()
type NullableMessageOneOf3 ¶
type NullableMessageOneOf3 struct {
// contains filtered or unexported fields
}
func NewNullableMessageOneOf3 ¶
func NewNullableMessageOneOf3(val *MessageOneOf3) *NullableMessageOneOf3
func (NullableMessageOneOf3) Get ¶
func (v NullableMessageOneOf3) Get() *MessageOneOf3
func (NullableMessageOneOf3) IsSet ¶
func (v NullableMessageOneOf3) IsSet() bool
func (NullableMessageOneOf3) MarshalJSON ¶
func (v NullableMessageOneOf3) MarshalJSON() ([]byte, error)
func (*NullableMessageOneOf3) Set ¶
func (v *NullableMessageOneOf3) Set(val *MessageOneOf3)
func (*NullableMessageOneOf3) UnmarshalJSON ¶
func (v *NullableMessageOneOf3) UnmarshalJSON(src []byte) error
func (*NullableMessageOneOf3) Unset ¶
func (v *NullableMessageOneOf3) Unset()
type NullableMessageOneOf4 ¶
type NullableMessageOneOf4 struct {
// contains filtered or unexported fields
}
func NewNullableMessageOneOf4 ¶
func NewNullableMessageOneOf4(val *MessageOneOf4) *NullableMessageOneOf4
func (NullableMessageOneOf4) Get ¶
func (v NullableMessageOneOf4) Get() *MessageOneOf4
func (NullableMessageOneOf4) IsSet ¶
func (v NullableMessageOneOf4) IsSet() bool
func (NullableMessageOneOf4) MarshalJSON ¶
func (v NullableMessageOneOf4) MarshalJSON() ([]byte, error)
func (*NullableMessageOneOf4) Set ¶
func (v *NullableMessageOneOf4) Set(val *MessageOneOf4)
func (*NullableMessageOneOf4) UnmarshalJSON ¶
func (v *NullableMessageOneOf4) UnmarshalJSON(src []byte) error
func (*NullableMessageOneOf4) Unset ¶
func (v *NullableMessageOneOf4) Unset()
type NullableMessageRequest ¶
type NullableMessageRequest struct {
// contains filtered or unexported fields
}
func NewNullableMessageRequest ¶
func NewNullableMessageRequest(val *MessageRequest) *NullableMessageRequest
func (NullableMessageRequest) Get ¶
func (v NullableMessageRequest) Get() *MessageRequest
func (NullableMessageRequest) IsSet ¶
func (v NullableMessageRequest) IsSet() bool
func (NullableMessageRequest) MarshalJSON ¶
func (v NullableMessageRequest) MarshalJSON() ([]byte, error)
func (*NullableMessageRequest) Set ¶
func (v *NullableMessageRequest) Set(val *MessageRequest)
func (*NullableMessageRequest) UnmarshalJSON ¶
func (v *NullableMessageRequest) UnmarshalJSON(src []byte) error
func (*NullableMessageRequest) Unset ¶
func (v *NullableMessageRequest) Unset()
type NullableMessageResponse ¶
type NullableMessageResponse struct {
// contains filtered or unexported fields
}
func NewNullableMessageResponse ¶
func NewNullableMessageResponse(val *MessageResponse) *NullableMessageResponse
func (NullableMessageResponse) Get ¶
func (v NullableMessageResponse) Get() *MessageResponse
func (NullableMessageResponse) IsSet ¶
func (v NullableMessageResponse) IsSet() bool
func (NullableMessageResponse) MarshalJSON ¶
func (v NullableMessageResponse) MarshalJSON() ([]byte, error)
func (*NullableMessageResponse) Set ¶
func (v *NullableMessageResponse) Set(val *MessageResponse)
func (*NullableMessageResponse) UnmarshalJSON ¶
func (v *NullableMessageResponse) UnmarshalJSON(src []byte) error
func (*NullableMessageResponse) Unset ¶
func (v *NullableMessageResponse) Unset()
type NullableMessageResponseContent ¶
type NullableMessageResponseContent struct {
// contains filtered or unexported fields
}
func NewNullableMessageResponseContent ¶
func NewNullableMessageResponseContent(val *MessageResponseContent) *NullableMessageResponseContent
func (NullableMessageResponseContent) Get ¶
func (v NullableMessageResponseContent) Get() *MessageResponseContent
func (NullableMessageResponseContent) IsSet ¶
func (v NullableMessageResponseContent) IsSet() bool
func (NullableMessageResponseContent) MarshalJSON ¶
func (v NullableMessageResponseContent) MarshalJSON() ([]byte, error)
func (*NullableMessageResponseContent) Set ¶
func (v *NullableMessageResponseContent) Set(val *MessageResponseContent)
func (*NullableMessageResponseContent) UnmarshalJSON ¶
func (v *NullableMessageResponseContent) UnmarshalJSON(src []byte) error
func (*NullableMessageResponseContent) Unset ¶
func (v *NullableMessageResponseContent) Unset()
type NullableMessageResponseContentOneOf ¶
type NullableMessageResponseContentOneOf struct {
// contains filtered or unexported fields
}
func NewNullableMessageResponseContentOneOf ¶
func NewNullableMessageResponseContentOneOf(val *MessageResponseContentOneOf) *NullableMessageResponseContentOneOf
func (NullableMessageResponseContentOneOf) Get ¶
func (v NullableMessageResponseContentOneOf) Get() *MessageResponseContentOneOf
func (NullableMessageResponseContentOneOf) IsSet ¶
func (v NullableMessageResponseContentOneOf) IsSet() bool
func (NullableMessageResponseContentOneOf) MarshalJSON ¶
func (v NullableMessageResponseContentOneOf) MarshalJSON() ([]byte, error)
func (*NullableMessageResponseContentOneOf) Set ¶
func (v *NullableMessageResponseContentOneOf) Set(val *MessageResponseContentOneOf)
func (*NullableMessageResponseContentOneOf) UnmarshalJSON ¶
func (v *NullableMessageResponseContentOneOf) UnmarshalJSON(src []byte) error
func (*NullableMessageResponseContentOneOf) Unset ¶
func (v *NullableMessageResponseContentOneOf) Unset()
type NullableMessageResponseContentOneOf1 ¶
type NullableMessageResponseContentOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableMessageResponseContentOneOf1 ¶
func NewNullableMessageResponseContentOneOf1(val *MessageResponseContentOneOf1) *NullableMessageResponseContentOneOf1
func (NullableMessageResponseContentOneOf1) Get ¶
func (v NullableMessageResponseContentOneOf1) Get() *MessageResponseContentOneOf1
func (NullableMessageResponseContentOneOf1) IsSet ¶
func (v NullableMessageResponseContentOneOf1) IsSet() bool
func (NullableMessageResponseContentOneOf1) MarshalJSON ¶
func (v NullableMessageResponseContentOneOf1) MarshalJSON() ([]byte, error)
func (*NullableMessageResponseContentOneOf1) Set ¶
func (v *NullableMessageResponseContentOneOf1) Set(val *MessageResponseContentOneOf1)
func (*NullableMessageResponseContentOneOf1) UnmarshalJSON ¶
func (v *NullableMessageResponseContentOneOf1) UnmarshalJSON(src []byte) error
func (*NullableMessageResponseContentOneOf1) Unset ¶
func (v *NullableMessageResponseContentOneOf1) Unset()
type NullableMessageResponseContentOneOf2 ¶
type NullableMessageResponseContentOneOf2 struct {
// contains filtered or unexported fields
}
func NewNullableMessageResponseContentOneOf2 ¶
func NewNullableMessageResponseContentOneOf2(val *MessageResponseContentOneOf2) *NullableMessageResponseContentOneOf2
func (NullableMessageResponseContentOneOf2) Get ¶
func (v NullableMessageResponseContentOneOf2) Get() *MessageResponseContentOneOf2
func (NullableMessageResponseContentOneOf2) IsSet ¶
func (v NullableMessageResponseContentOneOf2) IsSet() bool
func (NullableMessageResponseContentOneOf2) MarshalJSON ¶
func (v NullableMessageResponseContentOneOf2) MarshalJSON() ([]byte, error)
func (*NullableMessageResponseContentOneOf2) Set ¶
func (v *NullableMessageResponseContentOneOf2) Set(val *MessageResponseContentOneOf2)
func (*NullableMessageResponseContentOneOf2) UnmarshalJSON ¶
func (v *NullableMessageResponseContentOneOf2) UnmarshalJSON(src []byte) error
func (*NullableMessageResponseContentOneOf2) Unset ¶
func (v *NullableMessageResponseContentOneOf2) Unset()
type NullableMessageResponseContentOneOf3 ¶
type NullableMessageResponseContentOneOf3 struct {
// contains filtered or unexported fields
}
func NewNullableMessageResponseContentOneOf3 ¶
func NewNullableMessageResponseContentOneOf3(val *MessageResponseContentOneOf3) *NullableMessageResponseContentOneOf3
func (NullableMessageResponseContentOneOf3) Get ¶
func (v NullableMessageResponseContentOneOf3) Get() *MessageResponseContentOneOf3
func (NullableMessageResponseContentOneOf3) IsSet ¶
func (v NullableMessageResponseContentOneOf3) IsSet() bool
func (NullableMessageResponseContentOneOf3) MarshalJSON ¶
func (v NullableMessageResponseContentOneOf3) MarshalJSON() ([]byte, error)
func (*NullableMessageResponseContentOneOf3) Set ¶
func (v *NullableMessageResponseContentOneOf3) Set(val *MessageResponseContentOneOf3)
func (*NullableMessageResponseContentOneOf3) UnmarshalJSON ¶
func (v *NullableMessageResponseContentOneOf3) UnmarshalJSON(src []byte) error
func (*NullableMessageResponseContentOneOf3) Unset ¶
func (v *NullableMessageResponseContentOneOf3) Unset()
type NullableMessageToolChoice ¶
type NullableMessageToolChoice struct {
// contains filtered or unexported fields
}
func NewNullableMessageToolChoice ¶
func NewNullableMessageToolChoice(val *MessageToolChoice) *NullableMessageToolChoice
func (NullableMessageToolChoice) Get ¶
func (v NullableMessageToolChoice) Get() *MessageToolChoice
func (NullableMessageToolChoice) IsSet ¶
func (v NullableMessageToolChoice) IsSet() bool
func (NullableMessageToolChoice) MarshalJSON ¶
func (v NullableMessageToolChoice) MarshalJSON() ([]byte, error)
func (*NullableMessageToolChoice) Set ¶
func (v *NullableMessageToolChoice) Set(val *MessageToolChoice)
func (*NullableMessageToolChoice) UnmarshalJSON ¶
func (v *NullableMessageToolChoice) UnmarshalJSON(src []byte) error
func (*NullableMessageToolChoice) Unset ¶
func (v *NullableMessageToolChoice) Unset()
type NullableMessageToolChoiceOneOf ¶
type NullableMessageToolChoiceOneOf struct {
// contains filtered or unexported fields
}
func NewNullableMessageToolChoiceOneOf ¶
func NewNullableMessageToolChoiceOneOf(val *MessageToolChoiceOneOf) *NullableMessageToolChoiceOneOf
func (NullableMessageToolChoiceOneOf) Get ¶
func (v NullableMessageToolChoiceOneOf) Get() *MessageToolChoiceOneOf
func (NullableMessageToolChoiceOneOf) IsSet ¶
func (v NullableMessageToolChoiceOneOf) IsSet() bool
func (NullableMessageToolChoiceOneOf) MarshalJSON ¶
func (v NullableMessageToolChoiceOneOf) MarshalJSON() ([]byte, error)
func (*NullableMessageToolChoiceOneOf) Set ¶
func (v *NullableMessageToolChoiceOneOf) Set(val *MessageToolChoiceOneOf)
func (*NullableMessageToolChoiceOneOf) UnmarshalJSON ¶
func (v *NullableMessageToolChoiceOneOf) UnmarshalJSON(src []byte) error
func (*NullableMessageToolChoiceOneOf) Unset ¶
func (v *NullableMessageToolChoiceOneOf) Unset()
type NullableMessageToolChoiceOneOf1 ¶
type NullableMessageToolChoiceOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableMessageToolChoiceOneOf1 ¶
func NewNullableMessageToolChoiceOneOf1(val *MessageToolChoiceOneOf1) *NullableMessageToolChoiceOneOf1
func (NullableMessageToolChoiceOneOf1) Get ¶
func (v NullableMessageToolChoiceOneOf1) Get() *MessageToolChoiceOneOf1
func (NullableMessageToolChoiceOneOf1) IsSet ¶
func (v NullableMessageToolChoiceOneOf1) IsSet() bool
func (NullableMessageToolChoiceOneOf1) MarshalJSON ¶
func (v NullableMessageToolChoiceOneOf1) MarshalJSON() ([]byte, error)
func (*NullableMessageToolChoiceOneOf1) Set ¶
func (v *NullableMessageToolChoiceOneOf1) Set(val *MessageToolChoiceOneOf1)
func (*NullableMessageToolChoiceOneOf1) UnmarshalJSON ¶
func (v *NullableMessageToolChoiceOneOf1) UnmarshalJSON(src []byte) error
func (*NullableMessageToolChoiceOneOf1) Unset ¶
func (v *NullableMessageToolChoiceOneOf1) Unset()
type NullableMessageToolChoiceOneOf2 ¶
type NullableMessageToolChoiceOneOf2 struct {
// contains filtered or unexported fields
}
func NewNullableMessageToolChoiceOneOf2 ¶
func NewNullableMessageToolChoiceOneOf2(val *MessageToolChoiceOneOf2) *NullableMessageToolChoiceOneOf2
func (NullableMessageToolChoiceOneOf2) Get ¶
func (v NullableMessageToolChoiceOneOf2) Get() *MessageToolChoiceOneOf2
func (NullableMessageToolChoiceOneOf2) IsSet ¶
func (v NullableMessageToolChoiceOneOf2) IsSet() bool
func (NullableMessageToolChoiceOneOf2) MarshalJSON ¶
func (v NullableMessageToolChoiceOneOf2) MarshalJSON() ([]byte, error)
func (*NullableMessageToolChoiceOneOf2) Set ¶
func (v *NullableMessageToolChoiceOneOf2) Set(val *MessageToolChoiceOneOf2)
func (*NullableMessageToolChoiceOneOf2) UnmarshalJSON ¶
func (v *NullableMessageToolChoiceOneOf2) UnmarshalJSON(src []byte) error
func (*NullableMessageToolChoiceOneOf2) Unset ¶
func (v *NullableMessageToolChoiceOneOf2) Unset()
type NullableMessageToolInputSchema ¶
type NullableMessageToolInputSchema struct {
// contains filtered or unexported fields
}
func NewNullableMessageToolInputSchema ¶
func NewNullableMessageToolInputSchema(val *MessageToolInputSchema) *NullableMessageToolInputSchema
func (NullableMessageToolInputSchema) Get ¶
func (v NullableMessageToolInputSchema) Get() *MessageToolInputSchema
func (NullableMessageToolInputSchema) IsSet ¶
func (v NullableMessageToolInputSchema) IsSet() bool
func (NullableMessageToolInputSchema) MarshalJSON ¶
func (v NullableMessageToolInputSchema) MarshalJSON() ([]byte, error)
func (*NullableMessageToolInputSchema) Set ¶
func (v *NullableMessageToolInputSchema) Set(val *MessageToolInputSchema)
func (*NullableMessageToolInputSchema) UnmarshalJSON ¶
func (v *NullableMessageToolInputSchema) UnmarshalJSON(src []byte) error
func (*NullableMessageToolInputSchema) Unset ¶
func (v *NullableMessageToolInputSchema) Unset()
type NullableMessageTools ¶
type NullableMessageTools struct {
// contains filtered or unexported fields
}
func NewNullableMessageTools ¶
func NewNullableMessageTools(val *MessageTools) *NullableMessageTools
func (NullableMessageTools) Get ¶
func (v NullableMessageTools) Get() *MessageTools
func (NullableMessageTools) IsSet ¶
func (v NullableMessageTools) IsSet() bool
func (NullableMessageTools) MarshalJSON ¶
func (v NullableMessageTools) MarshalJSON() ([]byte, error)
func (*NullableMessageTools) Set ¶
func (v *NullableMessageTools) Set(val *MessageTools)
func (*NullableMessageTools) UnmarshalJSON ¶
func (v *NullableMessageTools) UnmarshalJSON(src []byte) error
func (*NullableMessageTools) Unset ¶
func (v *NullableMessageTools) Unset()
type NullableMessageUsage ¶
type NullableMessageUsage struct {
// contains filtered or unexported fields
}
func NewNullableMessageUsage ¶
func NewNullableMessageUsage(val *MessageUsage) *NullableMessageUsage
func (NullableMessageUsage) Get ¶
func (v NullableMessageUsage) Get() *MessageUsage
func (NullableMessageUsage) IsSet ¶
func (v NullableMessageUsage) IsSet() bool
func (NullableMessageUsage) MarshalJSON ¶
func (v NullableMessageUsage) MarshalJSON() ([]byte, error)
func (*NullableMessageUsage) Set ¶
func (v *NullableMessageUsage) Set(val *MessageUsage)
func (*NullableMessageUsage) UnmarshalJSON ¶
func (v *NullableMessageUsage) UnmarshalJSON(src []byte) error
func (*NullableMessageUsage) Unset ¶
func (v *NullableMessageUsage) Unset()
type NullableModel ¶
type NullableModel struct {
// contains filtered or unexported fields
}
func NewNullableModel ¶
func NewNullableModel(val *Model) *NullableModel
func (NullableModel) Get ¶
func (v NullableModel) Get() *Model
func (NullableModel) IsSet ¶
func (v NullableModel) IsSet() bool
func (NullableModel) MarshalJSON ¶
func (v NullableModel) MarshalJSON() ([]byte, error)
func (*NullableModel) Set ¶
func (v *NullableModel) Set(val *Model)
func (*NullableModel) UnmarshalJSON ¶
func (v *NullableModel) UnmarshalJSON(src []byte) error
func (*NullableModel) Unset ¶
func (v *NullableModel) Unset()
type NullablePromptUsageDetail ¶
type NullablePromptUsageDetail struct {
// contains filtered or unexported fields
}
func NewNullablePromptUsageDetail ¶
func NewNullablePromptUsageDetail(val *PromptUsageDetail) *NullablePromptUsageDetail
func (NullablePromptUsageDetail) Get ¶
func (v NullablePromptUsageDetail) Get() *PromptUsageDetail
func (NullablePromptUsageDetail) IsSet ¶
func (v NullablePromptUsageDetail) IsSet() bool
func (NullablePromptUsageDetail) MarshalJSON ¶
func (v NullablePromptUsageDetail) MarshalJSON() ([]byte, error)
func (*NullablePromptUsageDetail) Set ¶
func (v *NullablePromptUsageDetail) Set(val *PromptUsageDetail)
func (*NullablePromptUsageDetail) UnmarshalJSON ¶
func (v *NullablePromptUsageDetail) UnmarshalJSON(src []byte) error
func (*NullablePromptUsageDetail) Unset ¶
func (v *NullablePromptUsageDetail) Unset()
type NullableResponseFormat ¶
type NullableResponseFormat struct {
// contains filtered or unexported fields
}
func NewNullableResponseFormat ¶
func NewNullableResponseFormat(val *ResponseFormat) *NullableResponseFormat
func (NullableResponseFormat) Get ¶
func (v NullableResponseFormat) Get() *ResponseFormat
func (NullableResponseFormat) IsSet ¶
func (v NullableResponseFormat) IsSet() bool
func (NullableResponseFormat) MarshalJSON ¶
func (v NullableResponseFormat) MarshalJSON() ([]byte, error)
func (*NullableResponseFormat) Set ¶
func (v *NullableResponseFormat) Set(val *ResponseFormat)
func (*NullableResponseFormat) UnmarshalJSON ¶
func (v *NullableResponseFormat) UnmarshalJSON(src []byte) error
func (*NullableResponseFormat) Unset ¶
func (v *NullableResponseFormat) Unset()
type NullableResponseFormatOneOf ¶
type NullableResponseFormatOneOf struct {
// contains filtered or unexported fields
}
func NewNullableResponseFormatOneOf ¶
func NewNullableResponseFormatOneOf(val *ResponseFormatOneOf) *NullableResponseFormatOneOf
func (NullableResponseFormatOneOf) Get ¶
func (v NullableResponseFormatOneOf) Get() *ResponseFormatOneOf
func (NullableResponseFormatOneOf) IsSet ¶
func (v NullableResponseFormatOneOf) IsSet() bool
func (NullableResponseFormatOneOf) MarshalJSON ¶
func (v NullableResponseFormatOneOf) MarshalJSON() ([]byte, error)
func (*NullableResponseFormatOneOf) Set ¶
func (v *NullableResponseFormatOneOf) Set(val *ResponseFormatOneOf)
func (*NullableResponseFormatOneOf) UnmarshalJSON ¶
func (v *NullableResponseFormatOneOf) UnmarshalJSON(src []byte) error
func (*NullableResponseFormatOneOf) Unset ¶
func (v *NullableResponseFormatOneOf) Unset()
type NullableResponseFormatOneOf1 ¶
type NullableResponseFormatOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableResponseFormatOneOf1 ¶
func NewNullableResponseFormatOneOf1(val *ResponseFormatOneOf1) *NullableResponseFormatOneOf1
func (NullableResponseFormatOneOf1) Get ¶
func (v NullableResponseFormatOneOf1) Get() *ResponseFormatOneOf1
func (NullableResponseFormatOneOf1) IsSet ¶
func (v NullableResponseFormatOneOf1) IsSet() bool
func (NullableResponseFormatOneOf1) MarshalJSON ¶
func (v NullableResponseFormatOneOf1) MarshalJSON() ([]byte, error)
func (*NullableResponseFormatOneOf1) Set ¶
func (v *NullableResponseFormatOneOf1) Set(val *ResponseFormatOneOf1)
func (*NullableResponseFormatOneOf1) UnmarshalJSON ¶
func (v *NullableResponseFormatOneOf1) UnmarshalJSON(src []byte) error
func (*NullableResponseFormatOneOf1) Unset ¶
func (v *NullableResponseFormatOneOf1) Unset()
type NullableResponseFormatOneOf2 ¶
type NullableResponseFormatOneOf2 struct {
// contains filtered or unexported fields
}
func NewNullableResponseFormatOneOf2 ¶
func NewNullableResponseFormatOneOf2(val *ResponseFormatOneOf2) *NullableResponseFormatOneOf2
func (NullableResponseFormatOneOf2) Get ¶
func (v NullableResponseFormatOneOf2) Get() *ResponseFormatOneOf2
func (NullableResponseFormatOneOf2) IsSet ¶
func (v NullableResponseFormatOneOf2) IsSet() bool
func (NullableResponseFormatOneOf2) MarshalJSON ¶
func (v NullableResponseFormatOneOf2) MarshalJSON() ([]byte, error)
func (*NullableResponseFormatOneOf2) Set ¶
func (v *NullableResponseFormatOneOf2) Set(val *ResponseFormatOneOf2)
func (*NullableResponseFormatOneOf2) UnmarshalJSON ¶
func (v *NullableResponseFormatOneOf2) UnmarshalJSON(src []byte) error
func (*NullableResponseFormatOneOf2) Unset ¶
func (v *NullableResponseFormatOneOf2) Unset()
type NullableSampleChoice ¶
type NullableSampleChoice struct {
// contains filtered or unexported fields
}
func NewNullableSampleChoice ¶
func NewNullableSampleChoice(val *SampleChoice) *NullableSampleChoice
func (NullableSampleChoice) Get ¶
func (v NullableSampleChoice) Get() *SampleChoice
func (NullableSampleChoice) IsSet ¶
func (v NullableSampleChoice) IsSet() bool
func (NullableSampleChoice) MarshalJSON ¶
func (v NullableSampleChoice) MarshalJSON() ([]byte, error)
func (*NullableSampleChoice) Set ¶
func (v *NullableSampleChoice) Set(val *SampleChoice)
func (*NullableSampleChoice) UnmarshalJSON ¶
func (v *NullableSampleChoice) UnmarshalJSON(src []byte) error
func (*NullableSampleChoice) Unset ¶
func (v *NullableSampleChoice) Unset()
type NullableSampleContent ¶
type NullableSampleContent struct {
// contains filtered or unexported fields
}
func NewNullableSampleContent ¶
func NewNullableSampleContent(val *SampleContent) *NullableSampleContent
func (NullableSampleContent) Get ¶
func (v NullableSampleContent) Get() *SampleContent
func (NullableSampleContent) IsSet ¶
func (v NullableSampleContent) IsSet() bool
func (NullableSampleContent) MarshalJSON ¶
func (v NullableSampleContent) MarshalJSON() ([]byte, error)
func (*NullableSampleContent) Set ¶
func (v *NullableSampleContent) Set(val *SampleContent)
func (*NullableSampleContent) UnmarshalJSON ¶
func (v *NullableSampleContent) UnmarshalJSON(src []byte) error
func (*NullableSampleContent) Unset ¶
func (v *NullableSampleContent) Unset()
type NullableSampleRequest ¶
type NullableSampleRequest struct {
// contains filtered or unexported fields
}
func NewNullableSampleRequest ¶
func NewNullableSampleRequest(val *SampleRequest) *NullableSampleRequest
func (NullableSampleRequest) Get ¶
func (v NullableSampleRequest) Get() *SampleRequest
func (NullableSampleRequest) IsSet ¶
func (v NullableSampleRequest) IsSet() bool
func (NullableSampleRequest) MarshalJSON ¶
func (v NullableSampleRequest) MarshalJSON() ([]byte, error)
func (*NullableSampleRequest) Set ¶
func (v *NullableSampleRequest) Set(val *SampleRequest)
func (*NullableSampleRequest) UnmarshalJSON ¶
func (v *NullableSampleRequest) UnmarshalJSON(src []byte) error
func (*NullableSampleRequest) Unset ¶
func (v *NullableSampleRequest) Unset()
type NullableSampleResponse ¶
type NullableSampleResponse struct {
// contains filtered or unexported fields
}
func NewNullableSampleResponse ¶
func NewNullableSampleResponse(val *SampleResponse) *NullableSampleResponse
func (NullableSampleResponse) Get ¶
func (v NullableSampleResponse) Get() *SampleResponse
func (NullableSampleResponse) IsSet ¶
func (v NullableSampleResponse) IsSet() bool
func (NullableSampleResponse) MarshalJSON ¶
func (v NullableSampleResponse) MarshalJSON() ([]byte, error)
func (*NullableSampleResponse) Set ¶
func (v *NullableSampleResponse) Set(val *SampleResponse)
func (*NullableSampleResponse) UnmarshalJSON ¶
func (v *NullableSampleResponse) UnmarshalJSON(src []byte) error
func (*NullableSampleResponse) Unset ¶
func (v *NullableSampleResponse) Unset()
type NullableSearchParameters ¶
type NullableSearchParameters struct {
// contains filtered or unexported fields
}
func NewNullableSearchParameters ¶
func NewNullableSearchParameters(val *SearchParameters) *NullableSearchParameters
func (NullableSearchParameters) Get ¶
func (v NullableSearchParameters) Get() *SearchParameters
func (NullableSearchParameters) IsSet ¶
func (v NullableSearchParameters) IsSet() bool
func (NullableSearchParameters) MarshalJSON ¶
func (v NullableSearchParameters) MarshalJSON() ([]byte, error)
func (*NullableSearchParameters) Set ¶
func (v *NullableSearchParameters) Set(val *SearchParameters)
func (*NullableSearchParameters) UnmarshalJSON ¶
func (v *NullableSearchParameters) UnmarshalJSON(src []byte) error
func (*NullableSearchParameters) Unset ¶
func (v *NullableSearchParameters) Unset()
type NullableSearchSource ¶
type NullableSearchSource struct {
// contains filtered or unexported fields
}
func NewNullableSearchSource ¶
func NewNullableSearchSource(val *SearchSource) *NullableSearchSource
func (NullableSearchSource) Get ¶
func (v NullableSearchSource) Get() *SearchSource
func (NullableSearchSource) IsSet ¶
func (v NullableSearchSource) IsSet() bool
func (NullableSearchSource) MarshalJSON ¶
func (v NullableSearchSource) MarshalJSON() ([]byte, error)
func (*NullableSearchSource) Set ¶
func (v *NullableSearchSource) Set(val *SearchSource)
func (*NullableSearchSource) UnmarshalJSON ¶
func (v *NullableSearchSource) UnmarshalJSON(src []byte) error
func (*NullableSearchSource) Unset ¶
func (v *NullableSearchSource) Unset()
type NullableSearchSourceOneOf ¶
type NullableSearchSourceOneOf struct {
// contains filtered or unexported fields
}
func NewNullableSearchSourceOneOf ¶
func NewNullableSearchSourceOneOf(val *SearchSourceOneOf) *NullableSearchSourceOneOf
func (NullableSearchSourceOneOf) Get ¶
func (v NullableSearchSourceOneOf) Get() *SearchSourceOneOf
func (NullableSearchSourceOneOf) IsSet ¶
func (v NullableSearchSourceOneOf) IsSet() bool
func (NullableSearchSourceOneOf) MarshalJSON ¶
func (v NullableSearchSourceOneOf) MarshalJSON() ([]byte, error)
func (*NullableSearchSourceOneOf) Set ¶
func (v *NullableSearchSourceOneOf) Set(val *SearchSourceOneOf)
func (*NullableSearchSourceOneOf) UnmarshalJSON ¶
func (v *NullableSearchSourceOneOf) UnmarshalJSON(src []byte) error
func (*NullableSearchSourceOneOf) Unset ¶
func (v *NullableSearchSourceOneOf) Unset()
type NullableSearchSourceOneOf1 ¶
type NullableSearchSourceOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableSearchSourceOneOf1 ¶
func NewNullableSearchSourceOneOf1(val *SearchSourceOneOf1) *NullableSearchSourceOneOf1
func (NullableSearchSourceOneOf1) Get ¶
func (v NullableSearchSourceOneOf1) Get() *SearchSourceOneOf1
func (NullableSearchSourceOneOf1) IsSet ¶
func (v NullableSearchSourceOneOf1) IsSet() bool
func (NullableSearchSourceOneOf1) MarshalJSON ¶
func (v NullableSearchSourceOneOf1) MarshalJSON() ([]byte, error)
func (*NullableSearchSourceOneOf1) Set ¶
func (v *NullableSearchSourceOneOf1) Set(val *SearchSourceOneOf1)
func (*NullableSearchSourceOneOf1) UnmarshalJSON ¶
func (v *NullableSearchSourceOneOf1) UnmarshalJSON(src []byte) error
func (*NullableSearchSourceOneOf1) Unset ¶
func (v *NullableSearchSourceOneOf1) Unset()
type NullableSearchSourceOneOf2 ¶
type NullableSearchSourceOneOf2 struct {
// contains filtered or unexported fields
}
func NewNullableSearchSourceOneOf2 ¶
func NewNullableSearchSourceOneOf2(val *SearchSourceOneOf2) *NullableSearchSourceOneOf2
func (NullableSearchSourceOneOf2) Get ¶
func (v NullableSearchSourceOneOf2) Get() *SearchSourceOneOf2
func (NullableSearchSourceOneOf2) IsSet ¶
func (v NullableSearchSourceOneOf2) IsSet() bool
func (NullableSearchSourceOneOf2) MarshalJSON ¶
func (v NullableSearchSourceOneOf2) MarshalJSON() ([]byte, error)
func (*NullableSearchSourceOneOf2) Set ¶
func (v *NullableSearchSourceOneOf2) Set(val *SearchSourceOneOf2)
func (*NullableSearchSourceOneOf2) UnmarshalJSON ¶
func (v *NullableSearchSourceOneOf2) UnmarshalJSON(src []byte) error
func (*NullableSearchSourceOneOf2) Unset ¶
func (v *NullableSearchSourceOneOf2) Unset()
type NullableSearchSourceOneOf3 ¶
type NullableSearchSourceOneOf3 struct {
// contains filtered or unexported fields
}
func NewNullableSearchSourceOneOf3 ¶
func NewNullableSearchSourceOneOf3(val *SearchSourceOneOf3) *NullableSearchSourceOneOf3
func (NullableSearchSourceOneOf3) Get ¶
func (v NullableSearchSourceOneOf3) Get() *SearchSourceOneOf3
func (NullableSearchSourceOneOf3) IsSet ¶
func (v NullableSearchSourceOneOf3) IsSet() bool
func (NullableSearchSourceOneOf3) MarshalJSON ¶
func (v NullableSearchSourceOneOf3) MarshalJSON() ([]byte, error)
func (*NullableSearchSourceOneOf3) Set ¶
func (v *NullableSearchSourceOneOf3) Set(val *SearchSourceOneOf3)
func (*NullableSearchSourceOneOf3) UnmarshalJSON ¶
func (v *NullableSearchSourceOneOf3) UnmarshalJSON(src []byte) error
func (*NullableSearchSourceOneOf3) Unset ¶
func (v *NullableSearchSourceOneOf3) Unset()
type NullableStartDeferredChatResponse ¶
type NullableStartDeferredChatResponse struct {
// contains filtered or unexported fields
}
func NewNullableStartDeferredChatResponse ¶
func NewNullableStartDeferredChatResponse(val *StartDeferredChatResponse) *NullableStartDeferredChatResponse
func (NullableStartDeferredChatResponse) Get ¶
func (v NullableStartDeferredChatResponse) Get() *StartDeferredChatResponse
func (NullableStartDeferredChatResponse) IsSet ¶
func (v NullableStartDeferredChatResponse) IsSet() bool
func (NullableStartDeferredChatResponse) MarshalJSON ¶
func (v NullableStartDeferredChatResponse) MarshalJSON() ([]byte, error)
func (*NullableStartDeferredChatResponse) Set ¶
func (v *NullableStartDeferredChatResponse) Set(val *StartDeferredChatResponse)
func (*NullableStartDeferredChatResponse) UnmarshalJSON ¶
func (v *NullableStartDeferredChatResponse) UnmarshalJSON(src []byte) error
func (*NullableStartDeferredChatResponse) Unset ¶
func (v *NullableStartDeferredChatResponse) Unset()
type NullableStreamOptions ¶
type NullableStreamOptions struct {
// contains filtered or unexported fields
}
func NewNullableStreamOptions ¶
func NewNullableStreamOptions(val *StreamOptions) *NullableStreamOptions
func (NullableStreamOptions) Get ¶
func (v NullableStreamOptions) Get() *StreamOptions
func (NullableStreamOptions) IsSet ¶
func (v NullableStreamOptions) IsSet() bool
func (NullableStreamOptions) MarshalJSON ¶
func (v NullableStreamOptions) MarshalJSON() ([]byte, error)
func (*NullableStreamOptions) Set ¶
func (v *NullableStreamOptions) Set(val *StreamOptions)
func (*NullableStreamOptions) UnmarshalJSON ¶
func (v *NullableStreamOptions) UnmarshalJSON(src []byte) error
func (*NullableStreamOptions) Unset ¶
func (v *NullableStreamOptions) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableSystemMessageContent ¶
type NullableSystemMessageContent struct {
// contains filtered or unexported fields
}
func NewNullableSystemMessageContent ¶
func NewNullableSystemMessageContent(val *SystemMessageContent) *NullableSystemMessageContent
func (NullableSystemMessageContent) Get ¶
func (v NullableSystemMessageContent) Get() *SystemMessageContent
func (NullableSystemMessageContent) IsSet ¶
func (v NullableSystemMessageContent) IsSet() bool
func (NullableSystemMessageContent) MarshalJSON ¶
func (v NullableSystemMessageContent) MarshalJSON() ([]byte, error)
func (*NullableSystemMessageContent) Set ¶
func (v *NullableSystemMessageContent) Set(val *SystemMessageContent)
func (*NullableSystemMessageContent) UnmarshalJSON ¶
func (v *NullableSystemMessageContent) UnmarshalJSON(src []byte) error
func (*NullableSystemMessageContent) Unset ¶
func (v *NullableSystemMessageContent) Unset()
type NullableSystemMessagePart ¶
type NullableSystemMessagePart struct {
// contains filtered or unexported fields
}
func NewNullableSystemMessagePart ¶
func NewNullableSystemMessagePart(val *SystemMessagePart) *NullableSystemMessagePart
func (NullableSystemMessagePart) Get ¶
func (v NullableSystemMessagePart) Get() *SystemMessagePart
func (NullableSystemMessagePart) IsSet ¶
func (v NullableSystemMessagePart) IsSet() bool
func (NullableSystemMessagePart) MarshalJSON ¶
func (v NullableSystemMessagePart) MarshalJSON() ([]byte, error)
func (*NullableSystemMessagePart) Set ¶
func (v *NullableSystemMessagePart) Set(val *SystemMessagePart)
func (*NullableSystemMessagePart) UnmarshalJSON ¶
func (v *NullableSystemMessagePart) UnmarshalJSON(src []byte) error
func (*NullableSystemMessagePart) Unset ¶
func (v *NullableSystemMessagePart) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type NullableTokenLogProb ¶
type NullableTokenLogProb struct {
// contains filtered or unexported fields
}
func NewNullableTokenLogProb ¶
func NewNullableTokenLogProb(val *TokenLogProb) *NullableTokenLogProb
func (NullableTokenLogProb) Get ¶
func (v NullableTokenLogProb) Get() *TokenLogProb
func (NullableTokenLogProb) IsSet ¶
func (v NullableTokenLogProb) IsSet() bool
func (NullableTokenLogProb) MarshalJSON ¶
func (v NullableTokenLogProb) MarshalJSON() ([]byte, error)
func (*NullableTokenLogProb) Set ¶
func (v *NullableTokenLogProb) Set(val *TokenLogProb)
func (*NullableTokenLogProb) UnmarshalJSON ¶
func (v *NullableTokenLogProb) UnmarshalJSON(src []byte) error
func (*NullableTokenLogProb) Unset ¶
func (v *NullableTokenLogProb) Unset()
type NullableTokenizeRequest ¶
type NullableTokenizeRequest struct {
// contains filtered or unexported fields
}
func NewNullableTokenizeRequest ¶
func NewNullableTokenizeRequest(val *TokenizeRequest) *NullableTokenizeRequest
func (NullableTokenizeRequest) Get ¶
func (v NullableTokenizeRequest) Get() *TokenizeRequest
func (NullableTokenizeRequest) IsSet ¶
func (v NullableTokenizeRequest) IsSet() bool
func (NullableTokenizeRequest) MarshalJSON ¶
func (v NullableTokenizeRequest) MarshalJSON() ([]byte, error)
func (*NullableTokenizeRequest) Set ¶
func (v *NullableTokenizeRequest) Set(val *TokenizeRequest)
func (*NullableTokenizeRequest) UnmarshalJSON ¶
func (v *NullableTokenizeRequest) UnmarshalJSON(src []byte) error
func (*NullableTokenizeRequest) Unset ¶
func (v *NullableTokenizeRequest) Unset()
type NullableTokenizeResponse ¶
type NullableTokenizeResponse struct {
// contains filtered or unexported fields
}
func NewNullableTokenizeResponse ¶
func NewNullableTokenizeResponse(val *TokenizeResponse) *NullableTokenizeResponse
func (NullableTokenizeResponse) Get ¶
func (v NullableTokenizeResponse) Get() *TokenizeResponse
func (NullableTokenizeResponse) IsSet ¶
func (v NullableTokenizeResponse) IsSet() bool
func (NullableTokenizeResponse) MarshalJSON ¶
func (v NullableTokenizeResponse) MarshalJSON() ([]byte, error)
func (*NullableTokenizeResponse) Set ¶
func (v *NullableTokenizeResponse) Set(val *TokenizeResponse)
func (*NullableTokenizeResponse) UnmarshalJSON ¶
func (v *NullableTokenizeResponse) UnmarshalJSON(src []byte) error
func (*NullableTokenizeResponse) Unset ¶
func (v *NullableTokenizeResponse) Unset()
type NullableTokenizeResponseToken ¶
type NullableTokenizeResponseToken struct {
// contains filtered or unexported fields
}
func NewNullableTokenizeResponseToken ¶
func NewNullableTokenizeResponseToken(val *TokenizeResponseToken) *NullableTokenizeResponseToken
func (NullableTokenizeResponseToken) Get ¶
func (v NullableTokenizeResponseToken) Get() *TokenizeResponseToken
func (NullableTokenizeResponseToken) IsSet ¶
func (v NullableTokenizeResponseToken) IsSet() bool
func (NullableTokenizeResponseToken) MarshalJSON ¶
func (v NullableTokenizeResponseToken) MarshalJSON() ([]byte, error)
func (*NullableTokenizeResponseToken) Set ¶
func (v *NullableTokenizeResponseToken) Set(val *TokenizeResponseToken)
func (*NullableTokenizeResponseToken) UnmarshalJSON ¶
func (v *NullableTokenizeResponseToken) UnmarshalJSON(src []byte) error
func (*NullableTokenizeResponseToken) Unset ¶
func (v *NullableTokenizeResponseToken) Unset()
type NullableTool ¶
type NullableTool struct {
// contains filtered or unexported fields
}
func NewNullableTool ¶
func NewNullableTool(val *Tool) *NullableTool
func (NullableTool) Get ¶
func (v NullableTool) Get() *Tool
func (NullableTool) IsSet ¶
func (v NullableTool) IsSet() bool
func (NullableTool) MarshalJSON ¶
func (v NullableTool) MarshalJSON() ([]byte, error)
func (*NullableTool) Set ¶
func (v *NullableTool) Set(val *Tool)
func (*NullableTool) UnmarshalJSON ¶
func (v *NullableTool) UnmarshalJSON(src []byte) error
func (*NullableTool) Unset ¶
func (v *NullableTool) Unset()
type NullableToolCall ¶
type NullableToolCall struct {
// contains filtered or unexported fields
}
func NewNullableToolCall ¶
func NewNullableToolCall(val *ToolCall) *NullableToolCall
func (NullableToolCall) Get ¶
func (v NullableToolCall) Get() *ToolCall
func (NullableToolCall) IsSet ¶
func (v NullableToolCall) IsSet() bool
func (NullableToolCall) MarshalJSON ¶
func (v NullableToolCall) MarshalJSON() ([]byte, error)
func (*NullableToolCall) Set ¶
func (v *NullableToolCall) Set(val *ToolCall)
func (*NullableToolCall) UnmarshalJSON ¶
func (v *NullableToolCall) UnmarshalJSON(src []byte) error
func (*NullableToolCall) Unset ¶
func (v *NullableToolCall) Unset()
type NullableToolChoice ¶
type NullableToolChoice struct {
// contains filtered or unexported fields
}
func NewNullableToolChoice ¶
func NewNullableToolChoice(val *ToolChoice) *NullableToolChoice
func (NullableToolChoice) Get ¶
func (v NullableToolChoice) Get() *ToolChoice
func (NullableToolChoice) IsSet ¶
func (v NullableToolChoice) IsSet() bool
func (NullableToolChoice) MarshalJSON ¶
func (v NullableToolChoice) MarshalJSON() ([]byte, error)
func (*NullableToolChoice) Set ¶
func (v *NullableToolChoice) Set(val *ToolChoice)
func (*NullableToolChoice) UnmarshalJSON ¶
func (v *NullableToolChoice) UnmarshalJSON(src []byte) error
func (*NullableToolChoice) Unset ¶
func (v *NullableToolChoice) Unset()
type NullableToolChoiceOneOf ¶
type NullableToolChoiceOneOf struct {
// contains filtered or unexported fields
}
func NewNullableToolChoiceOneOf ¶
func NewNullableToolChoiceOneOf(val *ToolChoiceOneOf) *NullableToolChoiceOneOf
func (NullableToolChoiceOneOf) Get ¶
func (v NullableToolChoiceOneOf) Get() *ToolChoiceOneOf
func (NullableToolChoiceOneOf) IsSet ¶
func (v NullableToolChoiceOneOf) IsSet() bool
func (NullableToolChoiceOneOf) MarshalJSON ¶
func (v NullableToolChoiceOneOf) MarshalJSON() ([]byte, error)
func (*NullableToolChoiceOneOf) Set ¶
func (v *NullableToolChoiceOneOf) Set(val *ToolChoiceOneOf)
func (*NullableToolChoiceOneOf) UnmarshalJSON ¶
func (v *NullableToolChoiceOneOf) UnmarshalJSON(src []byte) error
func (*NullableToolChoiceOneOf) Unset ¶
func (v *NullableToolChoiceOneOf) Unset()
type NullableToolOneOf ¶
type NullableToolOneOf struct {
// contains filtered or unexported fields
}
func NewNullableToolOneOf ¶
func NewNullableToolOneOf(val *ToolOneOf) *NullableToolOneOf
func (NullableToolOneOf) Get ¶
func (v NullableToolOneOf) Get() *ToolOneOf
func (NullableToolOneOf) IsSet ¶
func (v NullableToolOneOf) IsSet() bool
func (NullableToolOneOf) MarshalJSON ¶
func (v NullableToolOneOf) MarshalJSON() ([]byte, error)
func (*NullableToolOneOf) Set ¶
func (v *NullableToolOneOf) Set(val *ToolOneOf)
func (*NullableToolOneOf) UnmarshalJSON ¶
func (v *NullableToolOneOf) UnmarshalJSON(src []byte) error
func (*NullableToolOneOf) Unset ¶
func (v *NullableToolOneOf) Unset()
type NullableToolOneOf1 ¶
type NullableToolOneOf1 struct {
// contains filtered or unexported fields
}
func NewNullableToolOneOf1 ¶
func NewNullableToolOneOf1(val *ToolOneOf1) *NullableToolOneOf1
func (NullableToolOneOf1) Get ¶
func (v NullableToolOneOf1) Get() *ToolOneOf1
func (NullableToolOneOf1) IsSet ¶
func (v NullableToolOneOf1) IsSet() bool
func (NullableToolOneOf1) MarshalJSON ¶
func (v NullableToolOneOf1) MarshalJSON() ([]byte, error)
func (*NullableToolOneOf1) Set ¶
func (v *NullableToolOneOf1) Set(val *ToolOneOf1)
func (*NullableToolOneOf1) UnmarshalJSON ¶
func (v *NullableToolOneOf1) UnmarshalJSON(src []byte) error
func (*NullableToolOneOf1) Unset ¶
func (v *NullableToolOneOf1) Unset()
type NullableTopLogProb ¶
type NullableTopLogProb struct {
// contains filtered or unexported fields
}
func NewNullableTopLogProb ¶
func NewNullableTopLogProb(val *TopLogProb) *NullableTopLogProb
func (NullableTopLogProb) Get ¶
func (v NullableTopLogProb) Get() *TopLogProb
func (NullableTopLogProb) IsSet ¶
func (v NullableTopLogProb) IsSet() bool
func (NullableTopLogProb) MarshalJSON ¶
func (v NullableTopLogProb) MarshalJSON() ([]byte, error)
func (*NullableTopLogProb) Set ¶
func (v *NullableTopLogProb) Set(val *TopLogProb)
func (*NullableTopLogProb) UnmarshalJSON ¶
func (v *NullableTopLogProb) UnmarshalJSON(src []byte) error
func (*NullableTopLogProb) Unset ¶
func (v *NullableTopLogProb) Unset()
type NullableUsage ¶
type NullableUsage struct {
// contains filtered or unexported fields
}
func NewNullableUsage ¶
func NewNullableUsage(val *Usage) *NullableUsage
func (NullableUsage) Get ¶
func (v NullableUsage) Get() *Usage
func (NullableUsage) IsSet ¶
func (v NullableUsage) IsSet() bool
func (NullableUsage) MarshalJSON ¶
func (v NullableUsage) MarshalJSON() ([]byte, error)
func (*NullableUsage) Set ¶
func (v *NullableUsage) Set(val *Usage)
func (*NullableUsage) UnmarshalJSON ¶
func (v *NullableUsage) UnmarshalJSON(src []byte) error
func (*NullableUsage) Unset ¶
func (v *NullableUsage) Unset()
type NullableWebSearchOptions ¶
type NullableWebSearchOptions struct {
// contains filtered or unexported fields
}
func NewNullableWebSearchOptions ¶
func NewNullableWebSearchOptions(val *WebSearchOptions) *NullableWebSearchOptions
func (NullableWebSearchOptions) Get ¶
func (v NullableWebSearchOptions) Get() *WebSearchOptions
func (NullableWebSearchOptions) IsSet ¶
func (v NullableWebSearchOptions) IsSet() bool
func (NullableWebSearchOptions) MarshalJSON ¶
func (v NullableWebSearchOptions) MarshalJSON() ([]byte, error)
func (*NullableWebSearchOptions) Set ¶
func (v *NullableWebSearchOptions) Set(val *WebSearchOptions)
func (*NullableWebSearchOptions) UnmarshalJSON ¶
func (v *NullableWebSearchOptions) UnmarshalJSON(src []byte) error
func (*NullableWebSearchOptions) Unset ¶
func (v *NullableWebSearchOptions) Unset()
type PromptUsageDetail ¶
type PromptUsageDetail struct {
// Audio prompt token used.
AudioTokens int32 `json:"audio_tokens"`
// Token cached by xAI from previous requests and reused for this request.
CachedTokens int32 `json:"cached_tokens"`
// Image prompt token used.
ImageTokens int32 `json:"image_tokens"`
// Text prompt token used.
TextTokens int32 `json:"text_tokens"`
AdditionalProperties map[string]interface{}
}
PromptUsageDetail Details of prompt usage.
func NewPromptUsageDetail ¶
func NewPromptUsageDetail(audioTokens int32, cachedTokens int32, imageTokens int32, textTokens int32) *PromptUsageDetail
NewPromptUsageDetail instantiates a new PromptUsageDetail 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
func NewPromptUsageDetailWithDefaults ¶
func NewPromptUsageDetailWithDefaults() *PromptUsageDetail
NewPromptUsageDetailWithDefaults instantiates a new PromptUsageDetail 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
func (*PromptUsageDetail) GetAudioTokens ¶
func (o *PromptUsageDetail) GetAudioTokens() int32
GetAudioTokens returns the AudioTokens field value
func (*PromptUsageDetail) GetAudioTokensOk ¶
func (o *PromptUsageDetail) GetAudioTokensOk() (*int32, bool)
GetAudioTokensOk returns a tuple with the AudioTokens field value and a boolean to check if the value has been set.
func (*PromptUsageDetail) GetCachedTokens ¶
func (o *PromptUsageDetail) GetCachedTokens() int32
GetCachedTokens returns the CachedTokens field value
func (*PromptUsageDetail) GetCachedTokensOk ¶
func (o *PromptUsageDetail) GetCachedTokensOk() (*int32, bool)
GetCachedTokensOk returns a tuple with the CachedTokens field value and a boolean to check if the value has been set.
func (*PromptUsageDetail) GetImageTokens ¶
func (o *PromptUsageDetail) GetImageTokens() int32
GetImageTokens returns the ImageTokens field value
func (*PromptUsageDetail) GetImageTokensOk ¶
func (o *PromptUsageDetail) GetImageTokensOk() (*int32, bool)
GetImageTokensOk returns a tuple with the ImageTokens field value and a boolean to check if the value has been set.
func (*PromptUsageDetail) GetTextTokens ¶
func (o *PromptUsageDetail) GetTextTokens() int32
GetTextTokens returns the TextTokens field value
func (*PromptUsageDetail) GetTextTokensOk ¶
func (o *PromptUsageDetail) GetTextTokensOk() (*int32, bool)
GetTextTokensOk returns a tuple with the TextTokens field value and a boolean to check if the value has been set.
func (PromptUsageDetail) MarshalJSON ¶
func (o PromptUsageDetail) MarshalJSON() ([]byte, error)
func (*PromptUsageDetail) SetAudioTokens ¶
func (o *PromptUsageDetail) SetAudioTokens(v int32)
SetAudioTokens sets field value
func (*PromptUsageDetail) SetCachedTokens ¶
func (o *PromptUsageDetail) SetCachedTokens(v int32)
SetCachedTokens sets field value
func (*PromptUsageDetail) SetImageTokens ¶
func (o *PromptUsageDetail) SetImageTokens(v int32)
SetImageTokens sets field value
func (*PromptUsageDetail) SetTextTokens ¶
func (o *PromptUsageDetail) SetTextTokens(v int32)
SetTextTokens sets field value
func (PromptUsageDetail) ToMap ¶
func (o PromptUsageDetail) ToMap() (map[string]interface{}, error)
func (*PromptUsageDetail) UnmarshalJSON ¶
func (o *PromptUsageDetail) UnmarshalJSON(data []byte) (err error)
type ResponseFormat ¶
type ResponseFormat struct {
ResponseFormatOneOf *ResponseFormatOneOf
ResponseFormatOneOf1 *ResponseFormatOneOf1
ResponseFormatOneOf2 *ResponseFormatOneOf2
}
ResponseFormat - Response format parameter for structured outputs.
func ResponseFormatOneOf1AsResponseFormat ¶
func ResponseFormatOneOf1AsResponseFormat(v *ResponseFormatOneOf1) ResponseFormat
ResponseFormatOneOf1AsResponseFormat is a convenience function that returns ResponseFormatOneOf1 wrapped in ResponseFormat
func ResponseFormatOneOf2AsResponseFormat ¶
func ResponseFormatOneOf2AsResponseFormat(v *ResponseFormatOneOf2) ResponseFormat
ResponseFormatOneOf2AsResponseFormat is a convenience function that returns ResponseFormatOneOf2 wrapped in ResponseFormat
func ResponseFormatOneOfAsResponseFormat ¶
func ResponseFormatOneOfAsResponseFormat(v *ResponseFormatOneOf) ResponseFormat
ResponseFormatOneOfAsResponseFormat is a convenience function that returns ResponseFormatOneOf wrapped in ResponseFormat
func (*ResponseFormat) GetActualInstance ¶
func (obj *ResponseFormat) GetActualInstance() interface{}
Get the actual instance
func (ResponseFormat) GetActualInstanceValue ¶
func (obj ResponseFormat) GetActualInstanceValue() interface{}
Get the actual instance value
func (ResponseFormat) MarshalJSON ¶
func (src ResponseFormat) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*ResponseFormat) UnmarshalJSON ¶
func (dst *ResponseFormat) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type ResponseFormatOneOf ¶
type ResponseFormatOneOf struct {
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
ResponseFormatOneOf Specify text response format, always `\"text\"`.
func NewResponseFormatOneOf ¶
func NewResponseFormatOneOf(type_ string) *ResponseFormatOneOf
NewResponseFormatOneOf instantiates a new ResponseFormatOneOf 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
func NewResponseFormatOneOfWithDefaults ¶
func NewResponseFormatOneOfWithDefaults() *ResponseFormatOneOf
NewResponseFormatOneOfWithDefaults instantiates a new ResponseFormatOneOf 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
func (*ResponseFormatOneOf) GetType ¶
func (o *ResponseFormatOneOf) GetType() string
GetType returns the Type field value
func (*ResponseFormatOneOf) GetTypeOk ¶
func (o *ResponseFormatOneOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (ResponseFormatOneOf) MarshalJSON ¶
func (o ResponseFormatOneOf) MarshalJSON() ([]byte, error)
func (*ResponseFormatOneOf) SetType ¶
func (o *ResponseFormatOneOf) SetType(v string)
SetType sets field value
func (ResponseFormatOneOf) ToMap ¶
func (o ResponseFormatOneOf) ToMap() (map[string]interface{}, error)
func (*ResponseFormatOneOf) UnmarshalJSON ¶
func (o *ResponseFormatOneOf) UnmarshalJSON(data []byte) (err error)
type ResponseFormatOneOf1 ¶
type ResponseFormatOneOf1 struct {
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
ResponseFormatOneOf1 Specify json_object response format, always `json_object`. Used for backward compatibility. Prefer to use `\"json_schema\"` instead of this.
func NewResponseFormatOneOf1 ¶
func NewResponseFormatOneOf1(type_ string) *ResponseFormatOneOf1
NewResponseFormatOneOf1 instantiates a new ResponseFormatOneOf1 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
func NewResponseFormatOneOf1WithDefaults ¶
func NewResponseFormatOneOf1WithDefaults() *ResponseFormatOneOf1
NewResponseFormatOneOf1WithDefaults instantiates a new ResponseFormatOneOf1 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
func (*ResponseFormatOneOf1) GetType ¶
func (o *ResponseFormatOneOf1) GetType() string
GetType returns the Type field value
func (*ResponseFormatOneOf1) GetTypeOk ¶
func (o *ResponseFormatOneOf1) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (ResponseFormatOneOf1) MarshalJSON ¶
func (o ResponseFormatOneOf1) MarshalJSON() ([]byte, error)
func (*ResponseFormatOneOf1) SetType ¶
func (o *ResponseFormatOneOf1) SetType(v string)
SetType sets field value
func (ResponseFormatOneOf1) ToMap ¶
func (o ResponseFormatOneOf1) ToMap() (map[string]interface{}, error)
func (*ResponseFormatOneOf1) UnmarshalJSON ¶
func (o *ResponseFormatOneOf1) UnmarshalJSON(data []byte) (err error)
type ResponseFormatOneOf2 ¶
type ResponseFormatOneOf2 struct {
JsonSchema interface{} `json:"json_schema"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
ResponseFormatOneOf2 Specify json_schema response format with a given schema. Type is always `\"json_schema\"`.
func NewResponseFormatOneOf2 ¶
func NewResponseFormatOneOf2(jsonSchema interface{}, type_ string) *ResponseFormatOneOf2
NewResponseFormatOneOf2 instantiates a new ResponseFormatOneOf2 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
func NewResponseFormatOneOf2WithDefaults ¶
func NewResponseFormatOneOf2WithDefaults() *ResponseFormatOneOf2
NewResponseFormatOneOf2WithDefaults instantiates a new ResponseFormatOneOf2 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
func (*ResponseFormatOneOf2) GetJsonSchema ¶
func (o *ResponseFormatOneOf2) GetJsonSchema() interface{}
GetJsonSchema returns the JsonSchema field value If the value is explicit nil, the zero value for interface{} will be returned
func (*ResponseFormatOneOf2) GetJsonSchemaOk ¶
func (o *ResponseFormatOneOf2) GetJsonSchemaOk() (*interface{}, bool)
GetJsonSchemaOk returns a tuple with the JsonSchema field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ResponseFormatOneOf2) GetType ¶
func (o *ResponseFormatOneOf2) GetType() string
GetType returns the Type field value
func (*ResponseFormatOneOf2) GetTypeOk ¶
func (o *ResponseFormatOneOf2) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (ResponseFormatOneOf2) MarshalJSON ¶
func (o ResponseFormatOneOf2) MarshalJSON() ([]byte, error)
func (*ResponseFormatOneOf2) SetJsonSchema ¶
func (o *ResponseFormatOneOf2) SetJsonSchema(v interface{})
SetJsonSchema sets field value
func (*ResponseFormatOneOf2) SetType ¶
func (o *ResponseFormatOneOf2) SetType(v string)
SetType sets field value
func (ResponseFormatOneOf2) ToMap ¶
func (o ResponseFormatOneOf2) ToMap() (map[string]interface{}, error)
func (*ResponseFormatOneOf2) UnmarshalJSON ¶
func (o *ResponseFormatOneOf2) UnmarshalJSON(data []byte) (err error)
type SampleChoice ¶
type SampleChoice struct {
// Finish reason. `\"stop\"` means the inference has reached a model-defined or user-supplied stop sequence in `stop`. `\"length\"` means the inference result has reached models' maximum allowed token length or user defined value in `max_tokens`. `\"end_turn\"` or `null` in streaming mode when the chunk is not the last.
FinishReason string `json:"finish_reason"`
// Index of the choice.
Index int32 `json:"index"`
// Text response.
Text string `json:"text"`
AdditionalProperties map[string]interface{}
}
SampleChoice struct for SampleChoice
func NewSampleChoice ¶
func NewSampleChoice(finishReason string, index int32, text string) *SampleChoice
NewSampleChoice instantiates a new SampleChoice 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
func NewSampleChoiceWithDefaults ¶
func NewSampleChoiceWithDefaults() *SampleChoice
NewSampleChoiceWithDefaults instantiates a new SampleChoice 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
func (*SampleChoice) GetFinishReason ¶
func (o *SampleChoice) GetFinishReason() string
GetFinishReason returns the FinishReason field value
func (*SampleChoice) GetFinishReasonOk ¶
func (o *SampleChoice) GetFinishReasonOk() (*string, bool)
GetFinishReasonOk returns a tuple with the FinishReason field value and a boolean to check if the value has been set.
func (*SampleChoice) GetIndex ¶
func (o *SampleChoice) GetIndex() int32
GetIndex returns the Index field value
func (*SampleChoice) GetIndexOk ¶
func (o *SampleChoice) GetIndexOk() (*int32, bool)
GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.
func (*SampleChoice) GetText ¶
func (o *SampleChoice) GetText() string
GetText returns the Text field value
func (*SampleChoice) GetTextOk ¶
func (o *SampleChoice) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value and a boolean to check if the value has been set.
func (SampleChoice) MarshalJSON ¶
func (o SampleChoice) MarshalJSON() ([]byte, error)
func (*SampleChoice) SetFinishReason ¶
func (o *SampleChoice) SetFinishReason(v string)
SetFinishReason sets field value
func (SampleChoice) ToMap ¶
func (o SampleChoice) ToMap() (map[string]interface{}, error)
func (*SampleChoice) UnmarshalJSON ¶
func (o *SampleChoice) UnmarshalJSON(data []byte) (err error)
type SampleContent ¶
SampleContent - struct for SampleContent
func ArrayOfStringAsSampleContent ¶
func ArrayOfStringAsSampleContent(v *[]string) SampleContent
[]stringAsSampleContent is a convenience function that returns []string wrapped in SampleContent
func StringAsSampleContent ¶
func StringAsSampleContent(v *string) SampleContent
stringAsSampleContent is a convenience function that returns string wrapped in SampleContent
func (*SampleContent) GetActualInstance ¶
func (obj *SampleContent) GetActualInstance() interface{}
Get the actual instance
func (SampleContent) GetActualInstanceValue ¶
func (obj SampleContent) GetActualInstanceValue() interface{}
Get the actual instance value
func (SampleContent) MarshalJSON ¶
func (src SampleContent) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*SampleContent) UnmarshalJSON ¶
func (dst *SampleContent) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type SampleRequest ¶
type SampleRequest struct {
// (Unsupported) Generates multiple completions internally and returns the top-scoring one. Not functional yet.
BestOf NullableInt32 `json:"best_of,omitempty"`
// Option to include the original prompt in the response along with the generated completion.
Echo NullableBool `json:"echo,omitempty"`
// (Unsupported) Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
FrequencyPenalty NullableFloat32 `json:"frequency_penalty,omitempty"`
// (Unsupported) Accepts a JSON object that maps tokens to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
LogitBias map[string]float32 `json:"logit_bias,omitempty"`
// Include the log probabilities on the `logprobs` most likely output tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to `logprobs+1` elements in the response.
Logprobs NullableBool `json:"logprobs,omitempty"`
// Limits the number of tokens that can be produced in the output. Ensure the sum of prompt tokens and `max_tokens` does not exceed the model's context limit.
MaxTokens NullableInt32 `json:"max_tokens,omitempty"`
// Specifies the model to be used for the request.
Model *string `json:"model,omitempty"`
// Determines how many completion sequences to produce for each prompt. Be cautious with its use due to high token consumption; adjust `max_tokens` and stop sequences accordingly.
N NullableInt32 `json:"n,omitempty"`
// (Not supported by `grok-3` and reasoning models) Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
PresencePenalty NullableFloat32 `json:"presence_penalty,omitempty"`
// Input for generating completions, which can be a string, list of strings, token list, or list of token lists. `<|endoftext|>` is used as a document separator, implying a new context start if omitted.
Prompt *SampleContent `json:"prompt,omitempty"`
// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.
Seed NullableInt32 `json:"seed,omitempty"`
// (Not supported by reasoning models) Up to 4 sequences where the API will stop generating further tokens.
Stop []string `json:"stop,omitempty"`
// Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message.
Stream NullableBool `json:"stream,omitempty"`
// Options for streaming response. Only set this when you set `stream: true`.
StreamOptions NullableStreamOptions `json:"stream_options,omitempty"`
// (Unsupported) Optional string to append after the generated text.
Suffix NullableString `json:"suffix,omitempty"`
// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both.
Temperature NullableFloat32 `json:"temperature,omitempty"`
// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.
TopP NullableFloat32 `json:"top_p,omitempty"`
// A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.
User NullableString `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
SampleRequest (Legacy) Request for `/v1/completions` endpoint
func NewSampleRequest ¶
func NewSampleRequest() *SampleRequest
NewSampleRequest instantiates a new SampleRequest 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
func NewSampleRequestWithDefaults ¶
func NewSampleRequestWithDefaults() *SampleRequest
NewSampleRequestWithDefaults instantiates a new SampleRequest 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
func (*SampleRequest) GetBestOf ¶
func (o *SampleRequest) GetBestOf() int32
GetBestOf returns the BestOf field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetBestOfOk ¶
func (o *SampleRequest) GetBestOfOk() (*int32, bool)
GetBestOfOk returns a tuple with the BestOf field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetEcho ¶
func (o *SampleRequest) GetEcho() bool
GetEcho returns the Echo field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetEchoOk ¶
func (o *SampleRequest) GetEchoOk() (*bool, bool)
GetEchoOk returns a tuple with the Echo field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetFrequencyPenalty ¶
func (o *SampleRequest) GetFrequencyPenalty() float32
GetFrequencyPenalty returns the FrequencyPenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetFrequencyPenaltyOk ¶
func (o *SampleRequest) GetFrequencyPenaltyOk() (*float32, bool)
GetFrequencyPenaltyOk returns a tuple with the FrequencyPenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetLogitBias ¶
func (o *SampleRequest) GetLogitBias() map[string]float32
GetLogitBias returns the LogitBias field value if set, zero value otherwise.
func (*SampleRequest) GetLogitBiasOk ¶
func (o *SampleRequest) GetLogitBiasOk() (map[string]float32, bool)
GetLogitBiasOk returns a tuple with the LogitBias field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SampleRequest) GetLogprobs ¶
func (o *SampleRequest) GetLogprobs() bool
GetLogprobs returns the Logprobs field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetLogprobsOk ¶
func (o *SampleRequest) GetLogprobsOk() (*bool, bool)
GetLogprobsOk returns a tuple with the Logprobs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetMaxTokens ¶
func (o *SampleRequest) GetMaxTokens() int32
GetMaxTokens returns the MaxTokens field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetMaxTokensOk ¶
func (o *SampleRequest) GetMaxTokensOk() (*int32, bool)
GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetModel ¶
func (o *SampleRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*SampleRequest) GetModelOk ¶
func (o *SampleRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SampleRequest) GetN ¶
func (o *SampleRequest) GetN() int32
GetN returns the N field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetNOk ¶
func (o *SampleRequest) GetNOk() (*int32, bool)
GetNOk returns a tuple with the N field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetPresencePenalty ¶
func (o *SampleRequest) GetPresencePenalty() float32
GetPresencePenalty returns the PresencePenalty field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetPresencePenaltyOk ¶
func (o *SampleRequest) GetPresencePenaltyOk() (*float32, bool)
GetPresencePenaltyOk returns a tuple with the PresencePenalty field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetPrompt ¶
func (o *SampleRequest) GetPrompt() SampleContent
GetPrompt returns the Prompt field value if set, zero value otherwise.
func (*SampleRequest) GetPromptOk ¶
func (o *SampleRequest) GetPromptOk() (*SampleContent, bool)
GetPromptOk returns a tuple with the Prompt field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SampleRequest) GetSeed ¶
func (o *SampleRequest) GetSeed() int32
GetSeed returns the Seed field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetSeedOk ¶
func (o *SampleRequest) GetSeedOk() (*int32, bool)
GetSeedOk returns a tuple with the Seed field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetStop ¶
func (o *SampleRequest) GetStop() []string
GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetStopOk ¶
func (o *SampleRequest) GetStopOk() ([]string, bool)
GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetStream ¶
func (o *SampleRequest) GetStream() bool
GetStream returns the Stream field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetStreamOk ¶
func (o *SampleRequest) GetStreamOk() (*bool, bool)
GetStreamOk returns a tuple with the Stream field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetStreamOptions ¶
func (o *SampleRequest) GetStreamOptions() StreamOptions
GetStreamOptions returns the StreamOptions field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetStreamOptionsOk ¶
func (o *SampleRequest) GetStreamOptionsOk() (*StreamOptions, bool)
GetStreamOptionsOk returns a tuple with the StreamOptions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetSuffix ¶
func (o *SampleRequest) GetSuffix() string
GetSuffix returns the Suffix field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetSuffixOk ¶
func (o *SampleRequest) GetSuffixOk() (*string, bool)
GetSuffixOk returns a tuple with the Suffix field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetTemperature ¶
func (o *SampleRequest) GetTemperature() float32
GetTemperature returns the Temperature field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetTemperatureOk ¶
func (o *SampleRequest) GetTemperatureOk() (*float32, bool)
GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetTopP ¶
func (o *SampleRequest) GetTopP() float32
GetTopP returns the TopP field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetTopPOk ¶
func (o *SampleRequest) GetTopPOk() (*float32, bool)
GetTopPOk returns a tuple with the TopP field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) GetUser ¶
func (o *SampleRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleRequest) GetUserOk ¶
func (o *SampleRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleRequest) HasBestOf ¶
func (o *SampleRequest) HasBestOf() bool
HasBestOf returns a boolean if a field has been set.
func (*SampleRequest) HasEcho ¶
func (o *SampleRequest) HasEcho() bool
HasEcho returns a boolean if a field has been set.
func (*SampleRequest) HasFrequencyPenalty ¶
func (o *SampleRequest) HasFrequencyPenalty() bool
HasFrequencyPenalty returns a boolean if a field has been set.
func (*SampleRequest) HasLogitBias ¶
func (o *SampleRequest) HasLogitBias() bool
HasLogitBias returns a boolean if a field has been set.
func (*SampleRequest) HasLogprobs ¶
func (o *SampleRequest) HasLogprobs() bool
HasLogprobs returns a boolean if a field has been set.
func (*SampleRequest) HasMaxTokens ¶
func (o *SampleRequest) HasMaxTokens() bool
HasMaxTokens returns a boolean if a field has been set.
func (*SampleRequest) HasModel ¶
func (o *SampleRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*SampleRequest) HasN ¶
func (o *SampleRequest) HasN() bool
HasN returns a boolean if a field has been set.
func (*SampleRequest) HasPresencePenalty ¶
func (o *SampleRequest) HasPresencePenalty() bool
HasPresencePenalty returns a boolean if a field has been set.
func (*SampleRequest) HasPrompt ¶
func (o *SampleRequest) HasPrompt() bool
HasPrompt returns a boolean if a field has been set.
func (*SampleRequest) HasSeed ¶
func (o *SampleRequest) HasSeed() bool
HasSeed returns a boolean if a field has been set.
func (*SampleRequest) HasStop ¶
func (o *SampleRequest) HasStop() bool
HasStop returns a boolean if a field has been set.
func (*SampleRequest) HasStream ¶
func (o *SampleRequest) HasStream() bool
HasStream returns a boolean if a field has been set.
func (*SampleRequest) HasStreamOptions ¶
func (o *SampleRequest) HasStreamOptions() bool
HasStreamOptions returns a boolean if a field has been set.
func (*SampleRequest) HasSuffix ¶
func (o *SampleRequest) HasSuffix() bool
HasSuffix returns a boolean if a field has been set.
func (*SampleRequest) HasTemperature ¶
func (o *SampleRequest) HasTemperature() bool
HasTemperature returns a boolean if a field has been set.
func (*SampleRequest) HasTopP ¶
func (o *SampleRequest) HasTopP() bool
HasTopP returns a boolean if a field has been set.
func (*SampleRequest) HasUser ¶
func (o *SampleRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (SampleRequest) MarshalJSON ¶
func (o SampleRequest) MarshalJSON() ([]byte, error)
func (*SampleRequest) SetBestOf ¶
func (o *SampleRequest) SetBestOf(v int32)
SetBestOf gets a reference to the given NullableInt32 and assigns it to the BestOf field.
func (*SampleRequest) SetBestOfNil ¶
func (o *SampleRequest) SetBestOfNil()
SetBestOfNil sets the value for BestOf to be an explicit nil
func (*SampleRequest) SetEcho ¶
func (o *SampleRequest) SetEcho(v bool)
SetEcho gets a reference to the given NullableBool and assigns it to the Echo field.
func (*SampleRequest) SetEchoNil ¶
func (o *SampleRequest) SetEchoNil()
SetEchoNil sets the value for Echo to be an explicit nil
func (*SampleRequest) SetFrequencyPenalty ¶
func (o *SampleRequest) SetFrequencyPenalty(v float32)
SetFrequencyPenalty gets a reference to the given NullableFloat32 and assigns it to the FrequencyPenalty field.
func (*SampleRequest) SetFrequencyPenaltyNil ¶
func (o *SampleRequest) SetFrequencyPenaltyNil()
SetFrequencyPenaltyNil sets the value for FrequencyPenalty to be an explicit nil
func (*SampleRequest) SetLogitBias ¶
func (o *SampleRequest) SetLogitBias(v map[string]float32)
SetLogitBias gets a reference to the given map[string]float32 and assigns it to the LogitBias field.
func (*SampleRequest) SetLogprobs ¶
func (o *SampleRequest) SetLogprobs(v bool)
SetLogprobs gets a reference to the given NullableBool and assigns it to the Logprobs field.
func (*SampleRequest) SetLogprobsNil ¶
func (o *SampleRequest) SetLogprobsNil()
SetLogprobsNil sets the value for Logprobs to be an explicit nil
func (*SampleRequest) SetMaxTokens ¶
func (o *SampleRequest) SetMaxTokens(v int32)
SetMaxTokens gets a reference to the given NullableInt32 and assigns it to the MaxTokens field.
func (*SampleRequest) SetMaxTokensNil ¶
func (o *SampleRequest) SetMaxTokensNil()
SetMaxTokensNil sets the value for MaxTokens to be an explicit nil
func (*SampleRequest) SetModel ¶
func (o *SampleRequest) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*SampleRequest) SetN ¶
func (o *SampleRequest) SetN(v int32)
SetN gets a reference to the given NullableInt32 and assigns it to the N field.
func (*SampleRequest) SetNNil ¶
func (o *SampleRequest) SetNNil()
SetNNil sets the value for N to be an explicit nil
func (*SampleRequest) SetPresencePenalty ¶
func (o *SampleRequest) SetPresencePenalty(v float32)
SetPresencePenalty gets a reference to the given NullableFloat32 and assigns it to the PresencePenalty field.
func (*SampleRequest) SetPresencePenaltyNil ¶
func (o *SampleRequest) SetPresencePenaltyNil()
SetPresencePenaltyNil sets the value for PresencePenalty to be an explicit nil
func (*SampleRequest) SetPrompt ¶
func (o *SampleRequest) SetPrompt(v SampleContent)
SetPrompt gets a reference to the given SampleContent and assigns it to the Prompt field.
func (*SampleRequest) SetSeed ¶
func (o *SampleRequest) SetSeed(v int32)
SetSeed gets a reference to the given NullableInt32 and assigns it to the Seed field.
func (*SampleRequest) SetSeedNil ¶
func (o *SampleRequest) SetSeedNil()
SetSeedNil sets the value for Seed to be an explicit nil
func (*SampleRequest) SetStop ¶
func (o *SampleRequest) SetStop(v []string)
SetStop gets a reference to the given []string and assigns it to the Stop field.
func (*SampleRequest) SetStream ¶
func (o *SampleRequest) SetStream(v bool)
SetStream gets a reference to the given NullableBool and assigns it to the Stream field.
func (*SampleRequest) SetStreamNil ¶
func (o *SampleRequest) SetStreamNil()
SetStreamNil sets the value for Stream to be an explicit nil
func (*SampleRequest) SetStreamOptions ¶
func (o *SampleRequest) SetStreamOptions(v StreamOptions)
SetStreamOptions gets a reference to the given NullableStreamOptions and assigns it to the StreamOptions field.
func (*SampleRequest) SetStreamOptionsNil ¶
func (o *SampleRequest) SetStreamOptionsNil()
SetStreamOptionsNil sets the value for StreamOptions to be an explicit nil
func (*SampleRequest) SetSuffix ¶
func (o *SampleRequest) SetSuffix(v string)
SetSuffix gets a reference to the given NullableString and assigns it to the Suffix field.
func (*SampleRequest) SetSuffixNil ¶
func (o *SampleRequest) SetSuffixNil()
SetSuffixNil sets the value for Suffix to be an explicit nil
func (*SampleRequest) SetTemperature ¶
func (o *SampleRequest) SetTemperature(v float32)
SetTemperature gets a reference to the given NullableFloat32 and assigns it to the Temperature field.
func (*SampleRequest) SetTemperatureNil ¶
func (o *SampleRequest) SetTemperatureNil()
SetTemperatureNil sets the value for Temperature to be an explicit nil
func (*SampleRequest) SetTopP ¶
func (o *SampleRequest) SetTopP(v float32)
SetTopP gets a reference to the given NullableFloat32 and assigns it to the TopP field.
func (*SampleRequest) SetTopPNil ¶
func (o *SampleRequest) SetTopPNil()
SetTopPNil sets the value for TopP to be an explicit nil
func (*SampleRequest) SetUser ¶
func (o *SampleRequest) SetUser(v string)
SetUser gets a reference to the given NullableString and assigns it to the User field.
func (*SampleRequest) SetUserNil ¶
func (o *SampleRequest) SetUserNil()
SetUserNil sets the value for User to be an explicit nil
func (SampleRequest) ToMap ¶
func (o SampleRequest) ToMap() (map[string]interface{}, error)
func (*SampleRequest) UnmarshalJSON ¶
func (o *SampleRequest) UnmarshalJSON(data []byte) (err error)
func (*SampleRequest) UnsetBestOf ¶
func (o *SampleRequest) UnsetBestOf()
UnsetBestOf ensures that no value is present for BestOf, not even an explicit nil
func (*SampleRequest) UnsetEcho ¶
func (o *SampleRequest) UnsetEcho()
UnsetEcho ensures that no value is present for Echo, not even an explicit nil
func (*SampleRequest) UnsetFrequencyPenalty ¶
func (o *SampleRequest) UnsetFrequencyPenalty()
UnsetFrequencyPenalty ensures that no value is present for FrequencyPenalty, not even an explicit nil
func (*SampleRequest) UnsetLogprobs ¶
func (o *SampleRequest) UnsetLogprobs()
UnsetLogprobs ensures that no value is present for Logprobs, not even an explicit nil
func (*SampleRequest) UnsetMaxTokens ¶
func (o *SampleRequest) UnsetMaxTokens()
UnsetMaxTokens ensures that no value is present for MaxTokens, not even an explicit nil
func (*SampleRequest) UnsetN ¶
func (o *SampleRequest) UnsetN()
UnsetN ensures that no value is present for N, not even an explicit nil
func (*SampleRequest) UnsetPresencePenalty ¶
func (o *SampleRequest) UnsetPresencePenalty()
UnsetPresencePenalty ensures that no value is present for PresencePenalty, not even an explicit nil
func (*SampleRequest) UnsetSeed ¶
func (o *SampleRequest) UnsetSeed()
UnsetSeed ensures that no value is present for Seed, not even an explicit nil
func (*SampleRequest) UnsetStream ¶
func (o *SampleRequest) UnsetStream()
UnsetStream ensures that no value is present for Stream, not even an explicit nil
func (*SampleRequest) UnsetStreamOptions ¶
func (o *SampleRequest) UnsetStreamOptions()
UnsetStreamOptions ensures that no value is present for StreamOptions, not even an explicit nil
func (*SampleRequest) UnsetSuffix ¶
func (o *SampleRequest) UnsetSuffix()
UnsetSuffix ensures that no value is present for Suffix, not even an explicit nil
func (*SampleRequest) UnsetTemperature ¶
func (o *SampleRequest) UnsetTemperature()
UnsetTemperature ensures that no value is present for Temperature, not even an explicit nil
func (*SampleRequest) UnsetTopP ¶
func (o *SampleRequest) UnsetTopP()
UnsetTopP ensures that no value is present for TopP, not even an explicit nil
func (*SampleRequest) UnsetUser ¶
func (o *SampleRequest) UnsetUser()
UnsetUser ensures that no value is present for User, not even an explicit nil
type SampleResponse ¶
type SampleResponse struct {
// A list of response choices from the model. The length corresponds to the `n` in request body (default to 1).
Choices []SampleChoice `json:"choices"`
// The chat completion creation time in Unix timestamp.
Created int64 `json:"created"`
// ID of the request.
Id string `json:"id"`
// Model to be used.
Model string `json:"model"`
// Object type of the response. This is always `\"text_completion\"`.
Object string `json:"object"`
// System fingerprint, used to indicate xAI system configuration changes.
SystemFingerprint NullableString `json:"system_fingerprint,omitempty"`
// Token usage information.
Usage NullableUsage `json:"usage,omitempty"`
AdditionalProperties map[string]interface{}
}
SampleResponse (Legacy) Response for `/v1/completions` endpoint
func NewSampleResponse ¶
func NewSampleResponse(choices []SampleChoice, created int64, id string, model string, object string) *SampleResponse
NewSampleResponse instantiates a new SampleResponse 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
func NewSampleResponseWithDefaults ¶
func NewSampleResponseWithDefaults() *SampleResponse
NewSampleResponseWithDefaults instantiates a new SampleResponse 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
func (*SampleResponse) GetChoices ¶
func (o *SampleResponse) GetChoices() []SampleChoice
GetChoices returns the Choices field value
func (*SampleResponse) GetChoicesOk ¶
func (o *SampleResponse) GetChoicesOk() ([]SampleChoice, bool)
GetChoicesOk returns a tuple with the Choices field value and a boolean to check if the value has been set.
func (*SampleResponse) GetCreated ¶
func (o *SampleResponse) GetCreated() int64
GetCreated returns the Created field value
func (*SampleResponse) GetCreatedOk ¶
func (o *SampleResponse) GetCreatedOk() (*int64, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*SampleResponse) GetId ¶
func (o *SampleResponse) GetId() string
GetId returns the Id field value
func (*SampleResponse) GetIdOk ¶
func (o *SampleResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*SampleResponse) GetModel ¶
func (o *SampleResponse) GetModel() string
GetModel returns the Model field value
func (*SampleResponse) GetModelOk ¶
func (o *SampleResponse) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.
func (*SampleResponse) GetObject ¶
func (o *SampleResponse) GetObject() string
GetObject returns the Object field value
func (*SampleResponse) GetObjectOk ¶
func (o *SampleResponse) GetObjectOk() (*string, bool)
GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.
func (*SampleResponse) GetSystemFingerprint ¶
func (o *SampleResponse) GetSystemFingerprint() string
GetSystemFingerprint returns the SystemFingerprint field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleResponse) GetSystemFingerprintOk ¶
func (o *SampleResponse) GetSystemFingerprintOk() (*string, bool)
GetSystemFingerprintOk returns a tuple with the SystemFingerprint field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleResponse) GetUsage ¶
func (o *SampleResponse) GetUsage() Usage
GetUsage returns the Usage field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SampleResponse) GetUsageOk ¶
func (o *SampleResponse) GetUsageOk() (*Usage, bool)
GetUsageOk returns a tuple with the Usage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SampleResponse) HasSystemFingerprint ¶
func (o *SampleResponse) HasSystemFingerprint() bool
HasSystemFingerprint returns a boolean if a field has been set.
func (*SampleResponse) HasUsage ¶
func (o *SampleResponse) HasUsage() bool
HasUsage returns a boolean if a field has been set.
func (SampleResponse) MarshalJSON ¶
func (o SampleResponse) MarshalJSON() ([]byte, error)
func (*SampleResponse) SetChoices ¶
func (o *SampleResponse) SetChoices(v []SampleChoice)
SetChoices sets field value
func (*SampleResponse) SetCreated ¶
func (o *SampleResponse) SetCreated(v int64)
SetCreated sets field value
func (*SampleResponse) SetModel ¶
func (o *SampleResponse) SetModel(v string)
SetModel sets field value
func (*SampleResponse) SetObject ¶
func (o *SampleResponse) SetObject(v string)
SetObject sets field value
func (*SampleResponse) SetSystemFingerprint ¶
func (o *SampleResponse) SetSystemFingerprint(v string)
SetSystemFingerprint gets a reference to the given NullableString and assigns it to the SystemFingerprint field.
func (*SampleResponse) SetSystemFingerprintNil ¶
func (o *SampleResponse) SetSystemFingerprintNil()
SetSystemFingerprintNil sets the value for SystemFingerprint to be an explicit nil
func (*SampleResponse) SetUsage ¶
func (o *SampleResponse) SetUsage(v Usage)
SetUsage gets a reference to the given NullableUsage and assigns it to the Usage field.
func (*SampleResponse) SetUsageNil ¶
func (o *SampleResponse) SetUsageNil()
SetUsageNil sets the value for Usage to be an explicit nil
func (SampleResponse) ToMap ¶
func (o SampleResponse) ToMap() (map[string]interface{}, error)
func (*SampleResponse) UnmarshalJSON ¶
func (o *SampleResponse) UnmarshalJSON(data []byte) (err error)
func (*SampleResponse) UnsetSystemFingerprint ¶
func (o *SampleResponse) UnsetSystemFingerprint()
UnsetSystemFingerprint ensures that no value is present for SystemFingerprint, not even an explicit nil
func (*SampleResponse) UnsetUsage ¶
func (o *SampleResponse) UnsetUsage()
UnsetUsage ensures that no value is present for Usage, not even an explicit nil
type SearchParameters ¶
type SearchParameters struct {
// Date from which to consider the results in ISO-8601 YYYY-MM-DD. See https://en.wikipedia.org/wiki/ISO_8601.
FromDate NullableString `json:"from_date,omitempty"`
// Maximum number of search results to use.
MaxSearchResults NullableInt32 `json:"max_search_results,omitempty"`
// Choose the mode to query realtime data: * `off`: no search performed and no external will be considered. * `on` (default): the model will search in every sources for relevant data. * `auto`: the model choose whether to search data or not and where to search the data.
Mode NullableString `json:"mode,omitempty"`
// Whether to return citations in the response or not.
ReturnCitations NullableBool `json:"return_citations,omitempty"`
// List of sources to search in. If no sources specified, the model will look over the web and X by default.
Sources []SearchSource `json:"sources,omitempty"`
// Date up to which to consider the results in ISO-8601 YYYY-MM-DD. See https://en.wikipedia.org/wiki/ISO_8601.
ToDate NullableString `json:"to_date,omitempty"`
AdditionalProperties map[string]interface{}
}
SearchParameters Parameters to control realtime data.
func NewSearchParameters ¶
func NewSearchParameters() *SearchParameters
NewSearchParameters instantiates a new SearchParameters 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
func NewSearchParametersWithDefaults ¶
func NewSearchParametersWithDefaults() *SearchParameters
NewSearchParametersWithDefaults instantiates a new SearchParameters 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
func (*SearchParameters) GetFromDate ¶
func (o *SearchParameters) GetFromDate() string
GetFromDate returns the FromDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchParameters) GetFromDateOk ¶
func (o *SearchParameters) GetFromDateOk() (*string, bool)
GetFromDateOk returns a tuple with the FromDate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchParameters) GetMaxSearchResults ¶
func (o *SearchParameters) GetMaxSearchResults() int32
GetMaxSearchResults returns the MaxSearchResults field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchParameters) GetMaxSearchResultsOk ¶
func (o *SearchParameters) GetMaxSearchResultsOk() (*int32, bool)
GetMaxSearchResultsOk returns a tuple with the MaxSearchResults field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchParameters) GetMode ¶
func (o *SearchParameters) GetMode() string
GetMode returns the Mode field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchParameters) GetModeOk ¶
func (o *SearchParameters) GetModeOk() (*string, bool)
GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchParameters) GetReturnCitations ¶
func (o *SearchParameters) GetReturnCitations() bool
GetReturnCitations returns the ReturnCitations field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchParameters) GetReturnCitationsOk ¶
func (o *SearchParameters) GetReturnCitationsOk() (*bool, bool)
GetReturnCitationsOk returns a tuple with the ReturnCitations field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchParameters) GetSources ¶
func (o *SearchParameters) GetSources() []SearchSource
GetSources returns the Sources field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchParameters) GetSourcesOk ¶
func (o *SearchParameters) GetSourcesOk() ([]SearchSource, bool)
GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchParameters) GetToDate ¶
func (o *SearchParameters) GetToDate() string
GetToDate returns the ToDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchParameters) GetToDateOk ¶
func (o *SearchParameters) GetToDateOk() (*string, bool)
GetToDateOk returns a tuple with the ToDate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchParameters) HasFromDate ¶
func (o *SearchParameters) HasFromDate() bool
HasFromDate returns a boolean if a field has been set.
func (*SearchParameters) HasMaxSearchResults ¶
func (o *SearchParameters) HasMaxSearchResults() bool
HasMaxSearchResults returns a boolean if a field has been set.
func (*SearchParameters) HasMode ¶
func (o *SearchParameters) HasMode() bool
HasMode returns a boolean if a field has been set.
func (*SearchParameters) HasReturnCitations ¶
func (o *SearchParameters) HasReturnCitations() bool
HasReturnCitations returns a boolean if a field has been set.
func (*SearchParameters) HasSources ¶
func (o *SearchParameters) HasSources() bool
HasSources returns a boolean if a field has been set.
func (*SearchParameters) HasToDate ¶
func (o *SearchParameters) HasToDate() bool
HasToDate returns a boolean if a field has been set.
func (SearchParameters) MarshalJSON ¶
func (o SearchParameters) MarshalJSON() ([]byte, error)
func (*SearchParameters) SetFromDate ¶
func (o *SearchParameters) SetFromDate(v string)
SetFromDate gets a reference to the given NullableString and assigns it to the FromDate field.
func (*SearchParameters) SetFromDateNil ¶
func (o *SearchParameters) SetFromDateNil()
SetFromDateNil sets the value for FromDate to be an explicit nil
func (*SearchParameters) SetMaxSearchResults ¶
func (o *SearchParameters) SetMaxSearchResults(v int32)
SetMaxSearchResults gets a reference to the given NullableInt32 and assigns it to the MaxSearchResults field.
func (*SearchParameters) SetMaxSearchResultsNil ¶
func (o *SearchParameters) SetMaxSearchResultsNil()
SetMaxSearchResultsNil sets the value for MaxSearchResults to be an explicit nil
func (*SearchParameters) SetMode ¶
func (o *SearchParameters) SetMode(v string)
SetMode gets a reference to the given NullableString and assigns it to the Mode field.
func (*SearchParameters) SetModeNil ¶
func (o *SearchParameters) SetModeNil()
SetModeNil sets the value for Mode to be an explicit nil
func (*SearchParameters) SetReturnCitations ¶
func (o *SearchParameters) SetReturnCitations(v bool)
SetReturnCitations gets a reference to the given NullableBool and assigns it to the ReturnCitations field.
func (*SearchParameters) SetReturnCitationsNil ¶
func (o *SearchParameters) SetReturnCitationsNil()
SetReturnCitationsNil sets the value for ReturnCitations to be an explicit nil
func (*SearchParameters) SetSources ¶
func (o *SearchParameters) SetSources(v []SearchSource)
SetSources gets a reference to the given []SearchSource and assigns it to the Sources field.
func (*SearchParameters) SetToDate ¶
func (o *SearchParameters) SetToDate(v string)
SetToDate gets a reference to the given NullableString and assigns it to the ToDate field.
func (*SearchParameters) SetToDateNil ¶
func (o *SearchParameters) SetToDateNil()
SetToDateNil sets the value for ToDate to be an explicit nil
func (SearchParameters) ToMap ¶
func (o SearchParameters) ToMap() (map[string]interface{}, error)
func (*SearchParameters) UnmarshalJSON ¶
func (o *SearchParameters) UnmarshalJSON(data []byte) (err error)
func (*SearchParameters) UnsetFromDate ¶
func (o *SearchParameters) UnsetFromDate()
UnsetFromDate ensures that no value is present for FromDate, not even an explicit nil
func (*SearchParameters) UnsetMaxSearchResults ¶
func (o *SearchParameters) UnsetMaxSearchResults()
UnsetMaxSearchResults ensures that no value is present for MaxSearchResults, not even an explicit nil
func (*SearchParameters) UnsetMode ¶
func (o *SearchParameters) UnsetMode()
UnsetMode ensures that no value is present for Mode, not even an explicit nil
func (*SearchParameters) UnsetReturnCitations ¶
func (o *SearchParameters) UnsetReturnCitations()
UnsetReturnCitations ensures that no value is present for ReturnCitations, not even an explicit nil
func (*SearchParameters) UnsetToDate ¶
func (o *SearchParameters) UnsetToDate()
UnsetToDate ensures that no value is present for ToDate, not even an explicit nil
type SearchSource ¶
type SearchSource struct {
SearchSourceOneOf *SearchSourceOneOf
SearchSourceOneOf1 *SearchSourceOneOf1
SearchSourceOneOf2 *SearchSourceOneOf2
SearchSourceOneOf3 *SearchSourceOneOf3
}
SearchSource - struct for SearchSource
func SearchSourceOneOf1AsSearchSource ¶
func SearchSourceOneOf1AsSearchSource(v *SearchSourceOneOf1) SearchSource
SearchSourceOneOf1AsSearchSource is a convenience function that returns SearchSourceOneOf1 wrapped in SearchSource
func SearchSourceOneOf2AsSearchSource ¶
func SearchSourceOneOf2AsSearchSource(v *SearchSourceOneOf2) SearchSource
SearchSourceOneOf2AsSearchSource is a convenience function that returns SearchSourceOneOf2 wrapped in SearchSource
func SearchSourceOneOf3AsSearchSource ¶
func SearchSourceOneOf3AsSearchSource(v *SearchSourceOneOf3) SearchSource
SearchSourceOneOf3AsSearchSource is a convenience function that returns SearchSourceOneOf3 wrapped in SearchSource
func SearchSourceOneOfAsSearchSource ¶
func SearchSourceOneOfAsSearchSource(v *SearchSourceOneOf) SearchSource
SearchSourceOneOfAsSearchSource is a convenience function that returns SearchSourceOneOf wrapped in SearchSource
func (*SearchSource) GetActualInstance ¶
func (obj *SearchSource) GetActualInstance() interface{}
Get the actual instance
func (SearchSource) GetActualInstanceValue ¶
func (obj SearchSource) GetActualInstanceValue() interface{}
Get the actual instance value
func (SearchSource) MarshalJSON ¶
func (src SearchSource) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*SearchSource) UnmarshalJSON ¶
func (dst *SearchSource) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type SearchSourceOneOf ¶
type SearchSourceOneOf struct {
// List of X handles to exclude from the search results. X posts returned will not include any posts authored by these handles.
ExcludedXHandles []string `json:"excluded_x_handles,omitempty"`
// NOTE: `included_x_handles` and `x_handles` are the same parameter. `included_x_handles` is the new name but we keep both for backward compatibility. X Handles of the users from whom to consider the posts. Only available if mode is `auto`, `on` or `x`.
IncludedXHandles []string `json:"included_x_handles,omitempty"`
// The minimum favorite count of the X posts to consider.
PostFavoriteCount NullableInt32 `json:"post_favorite_count,omitempty"`
// The minimum view count of the X posts to consider.
PostViewCount NullableInt32 `json:"post_view_count,omitempty"`
Type string `json:"type"`
// DEPRECATED in favor of `included_x_handles`. Use `included_x_handles` instead. X Handles of the users from whom to consider the posts. Only available if mode is `auto`, `on` or `x`.
XHandles []string `json:"x_handles,omitempty"`
AdditionalProperties map[string]interface{}
}
SearchSourceOneOf struct for SearchSourceOneOf
func NewSearchSourceOneOf ¶
func NewSearchSourceOneOf(type_ string) *SearchSourceOneOf
NewSearchSourceOneOf instantiates a new SearchSourceOneOf 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
func NewSearchSourceOneOfWithDefaults ¶
func NewSearchSourceOneOfWithDefaults() *SearchSourceOneOf
NewSearchSourceOneOfWithDefaults instantiates a new SearchSourceOneOf 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
func (*SearchSourceOneOf) GetExcludedXHandles ¶
func (o *SearchSourceOneOf) GetExcludedXHandles() []string
GetExcludedXHandles returns the ExcludedXHandles field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf) GetExcludedXHandlesOk ¶
func (o *SearchSourceOneOf) GetExcludedXHandlesOk() ([]string, bool)
GetExcludedXHandlesOk returns a tuple with the ExcludedXHandles field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf) GetIncludedXHandles ¶
func (o *SearchSourceOneOf) GetIncludedXHandles() []string
GetIncludedXHandles returns the IncludedXHandles field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf) GetIncludedXHandlesOk ¶
func (o *SearchSourceOneOf) GetIncludedXHandlesOk() ([]string, bool)
GetIncludedXHandlesOk returns a tuple with the IncludedXHandles field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf) GetPostFavoriteCount ¶
func (o *SearchSourceOneOf) GetPostFavoriteCount() int32
GetPostFavoriteCount returns the PostFavoriteCount field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf) GetPostFavoriteCountOk ¶
func (o *SearchSourceOneOf) GetPostFavoriteCountOk() (*int32, bool)
GetPostFavoriteCountOk returns a tuple with the PostFavoriteCount field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf) GetPostViewCount ¶
func (o *SearchSourceOneOf) GetPostViewCount() int32
GetPostViewCount returns the PostViewCount field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf) GetPostViewCountOk ¶
func (o *SearchSourceOneOf) GetPostViewCountOk() (*int32, bool)
GetPostViewCountOk returns a tuple with the PostViewCount field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf) GetType ¶
func (o *SearchSourceOneOf) GetType() string
GetType returns the Type field value
func (*SearchSourceOneOf) GetTypeOk ¶
func (o *SearchSourceOneOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*SearchSourceOneOf) GetXHandles ¶
func (o *SearchSourceOneOf) GetXHandles() []string
GetXHandles returns the XHandles field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf) GetXHandlesOk ¶
func (o *SearchSourceOneOf) GetXHandlesOk() ([]string, bool)
GetXHandlesOk returns a tuple with the XHandles field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf) HasExcludedXHandles ¶
func (o *SearchSourceOneOf) HasExcludedXHandles() bool
HasExcludedXHandles returns a boolean if a field has been set.
func (*SearchSourceOneOf) HasIncludedXHandles ¶
func (o *SearchSourceOneOf) HasIncludedXHandles() bool
HasIncludedXHandles returns a boolean if a field has been set.
func (*SearchSourceOneOf) HasPostFavoriteCount ¶
func (o *SearchSourceOneOf) HasPostFavoriteCount() bool
HasPostFavoriteCount returns a boolean if a field has been set.
func (*SearchSourceOneOf) HasPostViewCount ¶
func (o *SearchSourceOneOf) HasPostViewCount() bool
HasPostViewCount returns a boolean if a field has been set.
func (*SearchSourceOneOf) HasXHandles ¶
func (o *SearchSourceOneOf) HasXHandles() bool
HasXHandles returns a boolean if a field has been set.
func (SearchSourceOneOf) MarshalJSON ¶
func (o SearchSourceOneOf) MarshalJSON() ([]byte, error)
func (*SearchSourceOneOf) SetExcludedXHandles ¶
func (o *SearchSourceOneOf) SetExcludedXHandles(v []string)
SetExcludedXHandles gets a reference to the given []string and assigns it to the ExcludedXHandles field.
func (*SearchSourceOneOf) SetIncludedXHandles ¶
func (o *SearchSourceOneOf) SetIncludedXHandles(v []string)
SetIncludedXHandles gets a reference to the given []string and assigns it to the IncludedXHandles field.
func (*SearchSourceOneOf) SetPostFavoriteCount ¶
func (o *SearchSourceOneOf) SetPostFavoriteCount(v int32)
SetPostFavoriteCount gets a reference to the given NullableInt32 and assigns it to the PostFavoriteCount field.
func (*SearchSourceOneOf) SetPostFavoriteCountNil ¶
func (o *SearchSourceOneOf) SetPostFavoriteCountNil()
SetPostFavoriteCountNil sets the value for PostFavoriteCount to be an explicit nil
func (*SearchSourceOneOf) SetPostViewCount ¶
func (o *SearchSourceOneOf) SetPostViewCount(v int32)
SetPostViewCount gets a reference to the given NullableInt32 and assigns it to the PostViewCount field.
func (*SearchSourceOneOf) SetPostViewCountNil ¶
func (o *SearchSourceOneOf) SetPostViewCountNil()
SetPostViewCountNil sets the value for PostViewCount to be an explicit nil
func (*SearchSourceOneOf) SetType ¶
func (o *SearchSourceOneOf) SetType(v string)
SetType sets field value
func (*SearchSourceOneOf) SetXHandles ¶
func (o *SearchSourceOneOf) SetXHandles(v []string)
SetXHandles gets a reference to the given []string and assigns it to the XHandles field.
func (SearchSourceOneOf) ToMap ¶
func (o SearchSourceOneOf) ToMap() (map[string]interface{}, error)
func (*SearchSourceOneOf) UnmarshalJSON ¶
func (o *SearchSourceOneOf) UnmarshalJSON(data []byte) (err error)
func (*SearchSourceOneOf) UnsetPostFavoriteCount ¶
func (o *SearchSourceOneOf) UnsetPostFavoriteCount()
UnsetPostFavoriteCount ensures that no value is present for PostFavoriteCount, not even an explicit nil
func (*SearchSourceOneOf) UnsetPostViewCount ¶
func (o *SearchSourceOneOf) UnsetPostViewCount()
UnsetPostViewCount ensures that no value is present for PostViewCount, not even an explicit nil
type SearchSourceOneOf1 ¶
type SearchSourceOneOf1 struct {
// List of website to allow in the search results. This parameter act as a whitelist where only those websites can be selected. A maximum of 5 websites can be selected. Note 1: If no relevant information is found on those websites, the number of results returned might be smaller than `max_search_results`. Note 2: This parameter cannot be set with `excluded_websites`.
AllowedWebsites []string `json:"allowed_websites,omitempty"`
// ISO alpha-2 code of the country. If the country is set, only data coming from this country will be considered. See https://en.wikipedia.org/wiki/ISO_3166-2.
Country NullableString `json:"country,omitempty"`
// List of website to exclude from the search results without protocol specification or subdomains. A maximum of 5 websites can be excluded. Note 2: This parameter cannot be set with `allowed_websites`
ExcludedWebsites []string `json:"excluded_websites,omitempty"`
// If set to true, mature content won't be considered during the search. Default to `true`.
SafeSearch NullableBool `json:"safe_search,omitempty"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
SearchSourceOneOf1 struct for SearchSourceOneOf1
func NewSearchSourceOneOf1 ¶
func NewSearchSourceOneOf1(type_ string) *SearchSourceOneOf1
NewSearchSourceOneOf1 instantiates a new SearchSourceOneOf1 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
func NewSearchSourceOneOf1WithDefaults ¶
func NewSearchSourceOneOf1WithDefaults() *SearchSourceOneOf1
NewSearchSourceOneOf1WithDefaults instantiates a new SearchSourceOneOf1 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
func (*SearchSourceOneOf1) GetAllowedWebsites ¶
func (o *SearchSourceOneOf1) GetAllowedWebsites() []string
GetAllowedWebsites returns the AllowedWebsites field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf1) GetAllowedWebsitesOk ¶
func (o *SearchSourceOneOf1) GetAllowedWebsitesOk() ([]string, bool)
GetAllowedWebsitesOk returns a tuple with the AllowedWebsites field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf1) GetCountry ¶
func (o *SearchSourceOneOf1) GetCountry() string
GetCountry returns the Country field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf1) GetCountryOk ¶
func (o *SearchSourceOneOf1) GetCountryOk() (*string, bool)
GetCountryOk returns a tuple with the Country field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf1) GetExcludedWebsites ¶
func (o *SearchSourceOneOf1) GetExcludedWebsites() []string
GetExcludedWebsites returns the ExcludedWebsites field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf1) GetExcludedWebsitesOk ¶
func (o *SearchSourceOneOf1) GetExcludedWebsitesOk() ([]string, bool)
GetExcludedWebsitesOk returns a tuple with the ExcludedWebsites field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf1) GetSafeSearch ¶
func (o *SearchSourceOneOf1) GetSafeSearch() bool
GetSafeSearch returns the SafeSearch field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf1) GetSafeSearchOk ¶
func (o *SearchSourceOneOf1) GetSafeSearchOk() (*bool, bool)
GetSafeSearchOk returns a tuple with the SafeSearch field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf1) GetType ¶
func (o *SearchSourceOneOf1) GetType() string
GetType returns the Type field value
func (*SearchSourceOneOf1) GetTypeOk ¶
func (o *SearchSourceOneOf1) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*SearchSourceOneOf1) HasAllowedWebsites ¶
func (o *SearchSourceOneOf1) HasAllowedWebsites() bool
HasAllowedWebsites returns a boolean if a field has been set.
func (*SearchSourceOneOf1) HasCountry ¶
func (o *SearchSourceOneOf1) HasCountry() bool
HasCountry returns a boolean if a field has been set.
func (*SearchSourceOneOf1) HasExcludedWebsites ¶
func (o *SearchSourceOneOf1) HasExcludedWebsites() bool
HasExcludedWebsites returns a boolean if a field has been set.
func (*SearchSourceOneOf1) HasSafeSearch ¶
func (o *SearchSourceOneOf1) HasSafeSearch() bool
HasSafeSearch returns a boolean if a field has been set.
func (SearchSourceOneOf1) MarshalJSON ¶
func (o SearchSourceOneOf1) MarshalJSON() ([]byte, error)
func (*SearchSourceOneOf1) SetAllowedWebsites ¶
func (o *SearchSourceOneOf1) SetAllowedWebsites(v []string)
SetAllowedWebsites gets a reference to the given []string and assigns it to the AllowedWebsites field.
func (*SearchSourceOneOf1) SetCountry ¶
func (o *SearchSourceOneOf1) SetCountry(v string)
SetCountry gets a reference to the given NullableString and assigns it to the Country field.
func (*SearchSourceOneOf1) SetCountryNil ¶
func (o *SearchSourceOneOf1) SetCountryNil()
SetCountryNil sets the value for Country to be an explicit nil
func (*SearchSourceOneOf1) SetExcludedWebsites ¶
func (o *SearchSourceOneOf1) SetExcludedWebsites(v []string)
SetExcludedWebsites gets a reference to the given []string and assigns it to the ExcludedWebsites field.
func (*SearchSourceOneOf1) SetSafeSearch ¶
func (o *SearchSourceOneOf1) SetSafeSearch(v bool)
SetSafeSearch gets a reference to the given NullableBool and assigns it to the SafeSearch field.
func (*SearchSourceOneOf1) SetSafeSearchNil ¶
func (o *SearchSourceOneOf1) SetSafeSearchNil()
SetSafeSearchNil sets the value for SafeSearch to be an explicit nil
func (*SearchSourceOneOf1) SetType ¶
func (o *SearchSourceOneOf1) SetType(v string)
SetType sets field value
func (SearchSourceOneOf1) ToMap ¶
func (o SearchSourceOneOf1) ToMap() (map[string]interface{}, error)
func (*SearchSourceOneOf1) UnmarshalJSON ¶
func (o *SearchSourceOneOf1) UnmarshalJSON(data []byte) (err error)
func (*SearchSourceOneOf1) UnsetCountry ¶
func (o *SearchSourceOneOf1) UnsetCountry()
UnsetCountry ensures that no value is present for Country, not even an explicit nil
func (*SearchSourceOneOf1) UnsetSafeSearch ¶
func (o *SearchSourceOneOf1) UnsetSafeSearch()
UnsetSafeSearch ensures that no value is present for SafeSearch, not even an explicit nil
type SearchSourceOneOf2 ¶
type SearchSourceOneOf2 struct {
// ISO alpha-2 code of the country. If the country is set, only data coming from this country will be considered. See https://en.wikipedia.org/wiki/ISO_3166-2.
Country NullableString `json:"country,omitempty"`
// List of website to exclude from the search results without protocol specification or subdomains. A maximum of 5 websites can be excluded.
ExcludedWebsites []string `json:"excluded_websites,omitempty"`
// If set to true, mature content won't be considered during the search. Default to `true`.
SafeSearch NullableBool `json:"safe_search,omitempty"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
SearchSourceOneOf2 struct for SearchSourceOneOf2
func NewSearchSourceOneOf2 ¶
func NewSearchSourceOneOf2(type_ string) *SearchSourceOneOf2
NewSearchSourceOneOf2 instantiates a new SearchSourceOneOf2 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
func NewSearchSourceOneOf2WithDefaults ¶
func NewSearchSourceOneOf2WithDefaults() *SearchSourceOneOf2
NewSearchSourceOneOf2WithDefaults instantiates a new SearchSourceOneOf2 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
func (*SearchSourceOneOf2) GetCountry ¶
func (o *SearchSourceOneOf2) GetCountry() string
GetCountry returns the Country field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf2) GetCountryOk ¶
func (o *SearchSourceOneOf2) GetCountryOk() (*string, bool)
GetCountryOk returns a tuple with the Country field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf2) GetExcludedWebsites ¶
func (o *SearchSourceOneOf2) GetExcludedWebsites() []string
GetExcludedWebsites returns the ExcludedWebsites field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf2) GetExcludedWebsitesOk ¶
func (o *SearchSourceOneOf2) GetExcludedWebsitesOk() ([]string, bool)
GetExcludedWebsitesOk returns a tuple with the ExcludedWebsites field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf2) GetSafeSearch ¶
func (o *SearchSourceOneOf2) GetSafeSearch() bool
GetSafeSearch returns the SafeSearch field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchSourceOneOf2) GetSafeSearchOk ¶
func (o *SearchSourceOneOf2) GetSafeSearchOk() (*bool, bool)
GetSafeSearchOk returns a tuple with the SafeSearch field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchSourceOneOf2) GetType ¶
func (o *SearchSourceOneOf2) GetType() string
GetType returns the Type field value
func (*SearchSourceOneOf2) GetTypeOk ¶
func (o *SearchSourceOneOf2) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*SearchSourceOneOf2) HasCountry ¶
func (o *SearchSourceOneOf2) HasCountry() bool
HasCountry returns a boolean if a field has been set.
func (*SearchSourceOneOf2) HasExcludedWebsites ¶
func (o *SearchSourceOneOf2) HasExcludedWebsites() bool
HasExcludedWebsites returns a boolean if a field has been set.
func (*SearchSourceOneOf2) HasSafeSearch ¶
func (o *SearchSourceOneOf2) HasSafeSearch() bool
HasSafeSearch returns a boolean if a field has been set.
func (SearchSourceOneOf2) MarshalJSON ¶
func (o SearchSourceOneOf2) MarshalJSON() ([]byte, error)
func (*SearchSourceOneOf2) SetCountry ¶
func (o *SearchSourceOneOf2) SetCountry(v string)
SetCountry gets a reference to the given NullableString and assigns it to the Country field.
func (*SearchSourceOneOf2) SetCountryNil ¶
func (o *SearchSourceOneOf2) SetCountryNil()
SetCountryNil sets the value for Country to be an explicit nil
func (*SearchSourceOneOf2) SetExcludedWebsites ¶
func (o *SearchSourceOneOf2) SetExcludedWebsites(v []string)
SetExcludedWebsites gets a reference to the given []string and assigns it to the ExcludedWebsites field.
func (*SearchSourceOneOf2) SetSafeSearch ¶
func (o *SearchSourceOneOf2) SetSafeSearch(v bool)
SetSafeSearch gets a reference to the given NullableBool and assigns it to the SafeSearch field.
func (*SearchSourceOneOf2) SetSafeSearchNil ¶
func (o *SearchSourceOneOf2) SetSafeSearchNil()
SetSafeSearchNil sets the value for SafeSearch to be an explicit nil
func (*SearchSourceOneOf2) SetType ¶
func (o *SearchSourceOneOf2) SetType(v string)
SetType sets field value
func (SearchSourceOneOf2) ToMap ¶
func (o SearchSourceOneOf2) ToMap() (map[string]interface{}, error)
func (*SearchSourceOneOf2) UnmarshalJSON ¶
func (o *SearchSourceOneOf2) UnmarshalJSON(data []byte) (err error)
func (*SearchSourceOneOf2) UnsetCountry ¶
func (o *SearchSourceOneOf2) UnsetCountry()
UnsetCountry ensures that no value is present for Country, not even an explicit nil
func (*SearchSourceOneOf2) UnsetSafeSearch ¶
func (o *SearchSourceOneOf2) UnsetSafeSearch()
UnsetSafeSearch ensures that no value is present for SafeSearch, not even an explicit nil
type SearchSourceOneOf3 ¶
type SearchSourceOneOf3 struct {
// Links of the RSS feeds.
Links []string `json:"links"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
SearchSourceOneOf3 struct for SearchSourceOneOf3
func NewSearchSourceOneOf3 ¶
func NewSearchSourceOneOf3(links []string, type_ string) *SearchSourceOneOf3
NewSearchSourceOneOf3 instantiates a new SearchSourceOneOf3 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
func NewSearchSourceOneOf3WithDefaults ¶
func NewSearchSourceOneOf3WithDefaults() *SearchSourceOneOf3
NewSearchSourceOneOf3WithDefaults instantiates a new SearchSourceOneOf3 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
func (*SearchSourceOneOf3) GetLinks ¶
func (o *SearchSourceOneOf3) GetLinks() []string
GetLinks returns the Links field value
func (*SearchSourceOneOf3) GetLinksOk ¶
func (o *SearchSourceOneOf3) GetLinksOk() ([]string, bool)
GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set.
func (*SearchSourceOneOf3) GetType ¶
func (o *SearchSourceOneOf3) GetType() string
GetType returns the Type field value
func (*SearchSourceOneOf3) GetTypeOk ¶
func (o *SearchSourceOneOf3) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (SearchSourceOneOf3) MarshalJSON ¶
func (o SearchSourceOneOf3) MarshalJSON() ([]byte, error)
func (*SearchSourceOneOf3) SetLinks ¶
func (o *SearchSourceOneOf3) SetLinks(v []string)
SetLinks sets field value
func (*SearchSourceOneOf3) SetType ¶
func (o *SearchSourceOneOf3) SetType(v string)
SetType sets field value
func (SearchSourceOneOf3) ToMap ¶
func (o SearchSourceOneOf3) ToMap() (map[string]interface{}, error)
func (*SearchSourceOneOf3) UnmarshalJSON ¶
func (o *SearchSourceOneOf3) UnmarshalJSON(data []byte) (err error)
type ServerConfiguration ¶
type ServerConfiguration struct {
URL string
Description string
Variables map[string]ServerVariable
}
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type StartDeferredChatResponse ¶
type StartDeferredChatResponse struct {
// A unique request ID for the chat response.
RequestId string `json:"request_id"`
AdditionalProperties map[string]interface{}
}
StartDeferredChatResponse struct for StartDeferredChatResponse
func NewStartDeferredChatResponse ¶
func NewStartDeferredChatResponse(requestId string) *StartDeferredChatResponse
NewStartDeferredChatResponse instantiates a new StartDeferredChatResponse 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
func NewStartDeferredChatResponseWithDefaults ¶
func NewStartDeferredChatResponseWithDefaults() *StartDeferredChatResponse
NewStartDeferredChatResponseWithDefaults instantiates a new StartDeferredChatResponse 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
func (*StartDeferredChatResponse) GetRequestId ¶
func (o *StartDeferredChatResponse) GetRequestId() string
GetRequestId returns the RequestId field value
func (*StartDeferredChatResponse) GetRequestIdOk ¶
func (o *StartDeferredChatResponse) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value and a boolean to check if the value has been set.
func (StartDeferredChatResponse) MarshalJSON ¶
func (o StartDeferredChatResponse) MarshalJSON() ([]byte, error)
func (*StartDeferredChatResponse) SetRequestId ¶
func (o *StartDeferredChatResponse) SetRequestId(v string)
SetRequestId sets field value
func (StartDeferredChatResponse) ToMap ¶
func (o StartDeferredChatResponse) ToMap() (map[string]interface{}, error)
func (*StartDeferredChatResponse) UnmarshalJSON ¶
func (o *StartDeferredChatResponse) UnmarshalJSON(data []byte) (err error)
type StreamOptions ¶
type StreamOptions struct {
// Set an additional chunk to be streamed before the `data: [DONE]` message. The other chunks will return `null` in `usage` field.
IncludeUsage bool `json:"include_usage"`
AdditionalProperties map[string]interface{}
}
StreamOptions Options available when using streaming response.
func NewStreamOptions ¶
func NewStreamOptions(includeUsage bool) *StreamOptions
NewStreamOptions instantiates a new StreamOptions 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
func NewStreamOptionsWithDefaults ¶
func NewStreamOptionsWithDefaults() *StreamOptions
NewStreamOptionsWithDefaults instantiates a new StreamOptions 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
func (*StreamOptions) GetIncludeUsage ¶
func (o *StreamOptions) GetIncludeUsage() bool
GetIncludeUsage returns the IncludeUsage field value
func (*StreamOptions) GetIncludeUsageOk ¶
func (o *StreamOptions) GetIncludeUsageOk() (*bool, bool)
GetIncludeUsageOk returns a tuple with the IncludeUsage field value and a boolean to check if the value has been set.
func (StreamOptions) MarshalJSON ¶
func (o StreamOptions) MarshalJSON() ([]byte, error)
func (*StreamOptions) SetIncludeUsage ¶
func (o *StreamOptions) SetIncludeUsage(v bool)
SetIncludeUsage sets field value
func (StreamOptions) ToMap ¶
func (o StreamOptions) ToMap() (map[string]interface{}, error)
func (*StreamOptions) UnmarshalJSON ¶
func (o *StreamOptions) UnmarshalJSON(data []byte) (err error)
type SystemMessageContent ¶
type SystemMessageContent struct {
ArrayOfSystemMessagePart *[]SystemMessagePart
String *string
}
SystemMessageContent - struct for SystemMessageContent
func ArrayOfSystemMessagePartAsSystemMessageContent ¶
func ArrayOfSystemMessagePartAsSystemMessageContent(v *[]SystemMessagePart) SystemMessageContent
[]SystemMessagePartAsSystemMessageContent is a convenience function that returns []SystemMessagePart wrapped in SystemMessageContent
func StringAsSystemMessageContent ¶
func StringAsSystemMessageContent(v *string) SystemMessageContent
stringAsSystemMessageContent is a convenience function that returns string wrapped in SystemMessageContent
func (*SystemMessageContent) GetActualInstance ¶
func (obj *SystemMessageContent) GetActualInstance() interface{}
Get the actual instance
func (SystemMessageContent) GetActualInstanceValue ¶
func (obj SystemMessageContent) GetActualInstanceValue() interface{}
Get the actual instance value
func (SystemMessageContent) MarshalJSON ¶
func (src SystemMessageContent) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*SystemMessageContent) UnmarshalJSON ¶
func (dst *SystemMessageContent) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type SystemMessagePart ¶
type SystemMessagePart struct {
CacheControl interface{} `json:"cache_control,omitempty"`
// System prompt text.
Text string `json:"text"`
// Type of the object. This is always `\"text\"`.
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
SystemMessagePart struct for SystemMessagePart
func NewSystemMessagePart ¶
func NewSystemMessagePart(text string, type_ string) *SystemMessagePart
NewSystemMessagePart instantiates a new SystemMessagePart 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
func NewSystemMessagePartWithDefaults ¶
func NewSystemMessagePartWithDefaults() *SystemMessagePart
NewSystemMessagePartWithDefaults instantiates a new SystemMessagePart 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
func (*SystemMessagePart) GetCacheControl ¶
func (o *SystemMessagePart) GetCacheControl() interface{}
GetCacheControl returns the CacheControl field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SystemMessagePart) GetCacheControlOk ¶
func (o *SystemMessagePart) GetCacheControlOk() (*interface{}, bool)
GetCacheControlOk returns a tuple with the CacheControl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SystemMessagePart) GetText ¶
func (o *SystemMessagePart) GetText() string
GetText returns the Text field value
func (*SystemMessagePart) GetTextOk ¶
func (o *SystemMessagePart) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value and a boolean to check if the value has been set.
func (*SystemMessagePart) GetType ¶
func (o *SystemMessagePart) GetType() string
GetType returns the Type field value
func (*SystemMessagePart) GetTypeOk ¶
func (o *SystemMessagePart) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*SystemMessagePart) HasCacheControl ¶
func (o *SystemMessagePart) HasCacheControl() bool
HasCacheControl returns a boolean if a field has been set.
func (SystemMessagePart) MarshalJSON ¶
func (o SystemMessagePart) MarshalJSON() ([]byte, error)
func (*SystemMessagePart) SetCacheControl ¶
func (o *SystemMessagePart) SetCacheControl(v interface{})
SetCacheControl gets a reference to the given interface{} and assigns it to the CacheControl field.
func (*SystemMessagePart) SetText ¶
func (o *SystemMessagePart) SetText(v string)
SetText sets field value
func (*SystemMessagePart) SetType ¶
func (o *SystemMessagePart) SetType(v string)
SetType sets field value
func (SystemMessagePart) ToMap ¶
func (o SystemMessagePart) ToMap() (map[string]interface{}, error)
func (*SystemMessagePart) UnmarshalJSON ¶
func (o *SystemMessagePart) UnmarshalJSON(data []byte) (err error)
type TokenLogProb ¶
type TokenLogProb struct {
// The ASCII encoding of the output character.
Bytes []int32 `json:"bytes,omitempty"`
// The log probability of returning this token.
Logprob float32 `json:"logprob"`
// The token.
Token string `json:"token"`
// An array of the most likely tokens to return at this token position.
TopLogprobs []TopLogProb `json:"top_logprobs"`
AdditionalProperties map[string]interface{}
}
TokenLogProb struct for TokenLogProb
func NewTokenLogProb ¶
func NewTokenLogProb(logprob float32, token string, topLogprobs []TopLogProb) *TokenLogProb
NewTokenLogProb instantiates a new TokenLogProb 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
func NewTokenLogProbWithDefaults ¶
func NewTokenLogProbWithDefaults() *TokenLogProb
NewTokenLogProbWithDefaults instantiates a new TokenLogProb 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
func (*TokenLogProb) GetBytes ¶
func (o *TokenLogProb) GetBytes() []int32
GetBytes returns the Bytes field value if set, zero value otherwise (both if not set or set to explicit null).
func (*TokenLogProb) GetBytesOk ¶
func (o *TokenLogProb) GetBytesOk() ([]int32, bool)
GetBytesOk returns a tuple with the Bytes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*TokenLogProb) GetLogprob ¶
func (o *TokenLogProb) GetLogprob() float32
GetLogprob returns the Logprob field value
func (*TokenLogProb) GetLogprobOk ¶
func (o *TokenLogProb) GetLogprobOk() (*float32, bool)
GetLogprobOk returns a tuple with the Logprob field value and a boolean to check if the value has been set.
func (*TokenLogProb) GetToken ¶
func (o *TokenLogProb) GetToken() string
GetToken returns the Token field value
func (*TokenLogProb) GetTokenOk ¶
func (o *TokenLogProb) GetTokenOk() (*string, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (*TokenLogProb) GetTopLogprobs ¶
func (o *TokenLogProb) GetTopLogprobs() []TopLogProb
GetTopLogprobs returns the TopLogprobs field value
func (*TokenLogProb) GetTopLogprobsOk ¶
func (o *TokenLogProb) GetTopLogprobsOk() ([]TopLogProb, bool)
GetTopLogprobsOk returns a tuple with the TopLogprobs field value and a boolean to check if the value has been set.
func (*TokenLogProb) HasBytes ¶
func (o *TokenLogProb) HasBytes() bool
HasBytes returns a boolean if a field has been set.
func (TokenLogProb) MarshalJSON ¶
func (o TokenLogProb) MarshalJSON() ([]byte, error)
func (*TokenLogProb) SetBytes ¶
func (o *TokenLogProb) SetBytes(v []int32)
SetBytes gets a reference to the given []int32 and assigns it to the Bytes field.
func (*TokenLogProb) SetLogprob ¶
func (o *TokenLogProb) SetLogprob(v float32)
SetLogprob sets field value
func (*TokenLogProb) SetTopLogprobs ¶
func (o *TokenLogProb) SetTopLogprobs(v []TopLogProb)
SetTopLogprobs sets field value
func (TokenLogProb) ToMap ¶
func (o TokenLogProb) ToMap() (map[string]interface{}, error)
func (*TokenLogProb) UnmarshalJSON ¶
func (o *TokenLogProb) UnmarshalJSON(data []byte) (err error)
type TokenizeRequest ¶
type TokenizeRequest struct {
// The model to tokenize with.
Model *string `json:"model,omitempty"`
// The text content to be tokenized.
Text *string `json:"text,omitempty"`
// Optional user identifier.
User NullableString `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
TokenizeRequest struct for TokenizeRequest
func NewTokenizeRequest ¶
func NewTokenizeRequest() *TokenizeRequest
NewTokenizeRequest instantiates a new TokenizeRequest 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
func NewTokenizeRequestWithDefaults ¶
func NewTokenizeRequestWithDefaults() *TokenizeRequest
NewTokenizeRequestWithDefaults instantiates a new TokenizeRequest 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
func (*TokenizeRequest) GetModel ¶
func (o *TokenizeRequest) GetModel() string
GetModel returns the Model field value if set, zero value otherwise.
func (*TokenizeRequest) GetModelOk ¶
func (o *TokenizeRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field value if set, nil otherwise and a boolean to check if the value has been set.
func (*TokenizeRequest) GetText ¶
func (o *TokenizeRequest) GetText() string
GetText returns the Text field value if set, zero value otherwise.
func (*TokenizeRequest) GetTextOk ¶
func (o *TokenizeRequest) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set.
func (*TokenizeRequest) GetUser ¶
func (o *TokenizeRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null).
func (*TokenizeRequest) GetUserOk ¶
func (o *TokenizeRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*TokenizeRequest) HasModel ¶
func (o *TokenizeRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
func (*TokenizeRequest) HasText ¶
func (o *TokenizeRequest) HasText() bool
HasText returns a boolean if a field has been set.
func (*TokenizeRequest) HasUser ¶
func (o *TokenizeRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (TokenizeRequest) MarshalJSON ¶
func (o TokenizeRequest) MarshalJSON() ([]byte, error)
func (*TokenizeRequest) SetModel ¶
func (o *TokenizeRequest) SetModel(v string)
SetModel gets a reference to the given string and assigns it to the Model field.
func (*TokenizeRequest) SetText ¶
func (o *TokenizeRequest) SetText(v string)
SetText gets a reference to the given string and assigns it to the Text field.
func (*TokenizeRequest) SetUser ¶
func (o *TokenizeRequest) SetUser(v string)
SetUser gets a reference to the given NullableString and assigns it to the User field.
func (*TokenizeRequest) SetUserNil ¶
func (o *TokenizeRequest) SetUserNil()
SetUserNil sets the value for User to be an explicit nil
func (TokenizeRequest) ToMap ¶
func (o TokenizeRequest) ToMap() (map[string]interface{}, error)
func (*TokenizeRequest) UnmarshalJSON ¶
func (o *TokenizeRequest) UnmarshalJSON(data []byte) (err error)
func (*TokenizeRequest) UnsetUser ¶
func (o *TokenizeRequest) UnsetUser()
UnsetUser ensures that no value is present for User, not even an explicit nil
type TokenizeResponse ¶
type TokenizeResponse struct {
// A list of tokens.
TokenIds []TokenizeResponseToken `json:"token_ids"`
AdditionalProperties map[string]interface{}
}
TokenizeResponse struct for TokenizeResponse
func NewTokenizeResponse ¶
func NewTokenizeResponse(tokenIds []TokenizeResponseToken) *TokenizeResponse
NewTokenizeResponse instantiates a new TokenizeResponse 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
func NewTokenizeResponseWithDefaults ¶
func NewTokenizeResponseWithDefaults() *TokenizeResponse
NewTokenizeResponseWithDefaults instantiates a new TokenizeResponse 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
func (*TokenizeResponse) GetTokenIds ¶
func (o *TokenizeResponse) GetTokenIds() []TokenizeResponseToken
GetTokenIds returns the TokenIds field value
func (*TokenizeResponse) GetTokenIdsOk ¶
func (o *TokenizeResponse) GetTokenIdsOk() ([]TokenizeResponseToken, bool)
GetTokenIdsOk returns a tuple with the TokenIds field value and a boolean to check if the value has been set.
func (TokenizeResponse) MarshalJSON ¶
func (o TokenizeResponse) MarshalJSON() ([]byte, error)
func (*TokenizeResponse) SetTokenIds ¶
func (o *TokenizeResponse) SetTokenIds(v []TokenizeResponseToken)
SetTokenIds sets field value
func (TokenizeResponse) ToMap ¶
func (o TokenizeResponse) ToMap() (map[string]interface{}, error)
func (*TokenizeResponse) UnmarshalJSON ¶
func (o *TokenizeResponse) UnmarshalJSON(data []byte) (err error)
type TokenizeResponseToken ¶
type TokenizeResponseToken struct {
// The string of the token.
StringToken string `json:"string_token"`
// The bytes that constituted the token.
TokenBytes []int32 `json:"token_bytes"`
// The integer representation of the token for the model.
TokenId int32 `json:"token_id"`
AdditionalProperties map[string]interface{}
}
TokenizeResponseToken struct for TokenizeResponseToken
func NewTokenizeResponseToken ¶
func NewTokenizeResponseToken(stringToken string, tokenBytes []int32, tokenId int32) *TokenizeResponseToken
NewTokenizeResponseToken instantiates a new TokenizeResponseToken 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
func NewTokenizeResponseTokenWithDefaults ¶
func NewTokenizeResponseTokenWithDefaults() *TokenizeResponseToken
NewTokenizeResponseTokenWithDefaults instantiates a new TokenizeResponseToken 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
func (*TokenizeResponseToken) GetStringToken ¶
func (o *TokenizeResponseToken) GetStringToken() string
GetStringToken returns the StringToken field value
func (*TokenizeResponseToken) GetStringTokenOk ¶
func (o *TokenizeResponseToken) GetStringTokenOk() (*string, bool)
GetStringTokenOk returns a tuple with the StringToken field value and a boolean to check if the value has been set.
func (*TokenizeResponseToken) GetTokenBytes ¶
func (o *TokenizeResponseToken) GetTokenBytes() []int32
GetTokenBytes returns the TokenBytes field value
func (*TokenizeResponseToken) GetTokenBytesOk ¶
func (o *TokenizeResponseToken) GetTokenBytesOk() ([]int32, bool)
GetTokenBytesOk returns a tuple with the TokenBytes field value and a boolean to check if the value has been set.
func (*TokenizeResponseToken) GetTokenId ¶
func (o *TokenizeResponseToken) GetTokenId() int32
GetTokenId returns the TokenId field value
func (*TokenizeResponseToken) GetTokenIdOk ¶
func (o *TokenizeResponseToken) GetTokenIdOk() (*int32, bool)
GetTokenIdOk returns a tuple with the TokenId field value and a boolean to check if the value has been set.
func (TokenizeResponseToken) MarshalJSON ¶
func (o TokenizeResponseToken) MarshalJSON() ([]byte, error)
func (*TokenizeResponseToken) SetStringToken ¶
func (o *TokenizeResponseToken) SetStringToken(v string)
SetStringToken sets field value
func (*TokenizeResponseToken) SetTokenBytes ¶
func (o *TokenizeResponseToken) SetTokenBytes(v []int32)
SetTokenBytes sets field value
func (*TokenizeResponseToken) SetTokenId ¶
func (o *TokenizeResponseToken) SetTokenId(v int32)
SetTokenId sets field value
func (TokenizeResponseToken) ToMap ¶
func (o TokenizeResponseToken) ToMap() (map[string]interface{}, error)
func (*TokenizeResponseToken) UnmarshalJSON ¶
func (o *TokenizeResponseToken) UnmarshalJSON(data []byte) (err error)
type Tool ¶
type Tool struct {
ToolOneOf *ToolOneOf
ToolOneOf1 *ToolOneOf1
}
Tool - Definition of one tool that the model can call.
func ToolOneOf1AsTool ¶
func ToolOneOf1AsTool(v *ToolOneOf1) Tool
ToolOneOf1AsTool is a convenience function that returns ToolOneOf1 wrapped in Tool
func ToolOneOfAsTool ¶
ToolOneOfAsTool is a convenience function that returns ToolOneOf wrapped in Tool
func (*Tool) GetActualInstance ¶
func (obj *Tool) GetActualInstance() interface{}
Get the actual instance
func (Tool) GetActualInstanceValue ¶
func (obj Tool) GetActualInstanceValue() interface{}
Get the actual instance value
func (Tool) MarshalJSON ¶
Marshal data from the first non-nil pointers in the struct to JSON
func (*Tool) UnmarshalJSON ¶
Unmarshal JSON data into one of the pointers in the struct
type ToolCall ¶
type ToolCall struct {
// Function to call for the tool call.
Function Function `json:"function"`
// A unique ID of the tool call generated by xAI. After performing tool call's function, user provides this ID with tool call's result in the subsequent request to xAI. xAI can then match the tool call result sent with tool call request.
Id string `json:"id"`
// Index of the tool call.
Index NullableInt32 `json:"index,omitempty"`
// Type of tool call, should always be `\"function\"`
Type NullableString `json:"type,omitempty"`
AdditionalProperties map[string]interface{}
}
ToolCall struct for ToolCall
func NewToolCall ¶
NewToolCall instantiates a new ToolCall 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
func NewToolCallWithDefaults ¶
func NewToolCallWithDefaults() *ToolCall
NewToolCallWithDefaults instantiates a new ToolCall 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
func (*ToolCall) GetFunction ¶
GetFunction returns the Function field value
func (*ToolCall) GetFunctionOk ¶
GetFunctionOk returns a tuple with the Function field value and a boolean to check if the value has been set.
func (*ToolCall) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*ToolCall) GetIndex ¶
GetIndex returns the Index field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ToolCall) GetIndexOk ¶
GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ToolCall) GetType ¶
GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ToolCall) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (ToolCall) MarshalJSON ¶
func (*ToolCall) SetFunction ¶
SetFunction sets field value
func (*ToolCall) SetIndex ¶
SetIndex gets a reference to the given NullableInt32 and assigns it to the Index field.
func (*ToolCall) SetIndexNil ¶
func (o *ToolCall) SetIndexNil()
SetIndexNil sets the value for Index to be an explicit nil
func (*ToolCall) SetType ¶
SetType gets a reference to the given NullableString and assigns it to the Type field.
func (*ToolCall) SetTypeNil ¶
func (o *ToolCall) SetTypeNil()
SetTypeNil sets the value for Type to be an explicit nil
func (*ToolCall) UnmarshalJSON ¶
func (*ToolCall) UnsetIndex ¶
func (o *ToolCall) UnsetIndex()
UnsetIndex ensures that no value is present for Index, not even an explicit nil
type ToolChoice ¶
type ToolChoice struct {
ToolChoiceOneOf *ToolChoiceOneOf
String *string
}
ToolChoice - Parameter to control how model chooses the tools.
func StringAsToolChoice ¶
func StringAsToolChoice(v *string) ToolChoice
stringAsToolChoice is a convenience function that returns string wrapped in ToolChoice
func ToolChoiceOneOfAsToolChoice ¶
func ToolChoiceOneOfAsToolChoice(v *ToolChoiceOneOf) ToolChoice
ToolChoiceOneOfAsToolChoice is a convenience function that returns ToolChoiceOneOf wrapped in ToolChoice
func (*ToolChoice) GetActualInstance ¶
func (obj *ToolChoice) GetActualInstance() interface{}
Get the actual instance
func (ToolChoice) GetActualInstanceValue ¶
func (obj ToolChoice) GetActualInstanceValue() interface{}
Get the actual instance value
func (ToolChoice) MarshalJSON ¶
func (src ToolChoice) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*ToolChoice) UnmarshalJSON ¶
func (dst *ToolChoice) UnmarshalJSON(data []byte) error
Unmarshal JSON data into one of the pointers in the struct
type ToolChoiceOneOf ¶
type ToolChoiceOneOf struct {
// Name of the function to use.
Function NullableFunctionChoice `json:"function,omitempty"`
// Type is always `\"function\"`.
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
ToolChoiceOneOf struct for ToolChoiceOneOf
func NewToolChoiceOneOf ¶
func NewToolChoiceOneOf(type_ string) *ToolChoiceOneOf
NewToolChoiceOneOf instantiates a new ToolChoiceOneOf 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
func NewToolChoiceOneOfWithDefaults ¶
func NewToolChoiceOneOfWithDefaults() *ToolChoiceOneOf
NewToolChoiceOneOfWithDefaults instantiates a new ToolChoiceOneOf 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
func (*ToolChoiceOneOf) GetFunction ¶
func (o *ToolChoiceOneOf) GetFunction() FunctionChoice
GetFunction returns the Function field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ToolChoiceOneOf) GetFunctionOk ¶
func (o *ToolChoiceOneOf) GetFunctionOk() (*FunctionChoice, bool)
GetFunctionOk returns a tuple with the Function field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ToolChoiceOneOf) GetType ¶
func (o *ToolChoiceOneOf) GetType() string
GetType returns the Type field value
func (*ToolChoiceOneOf) GetTypeOk ¶
func (o *ToolChoiceOneOf) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*ToolChoiceOneOf) HasFunction ¶
func (o *ToolChoiceOneOf) HasFunction() bool
HasFunction returns a boolean if a field has been set.
func (ToolChoiceOneOf) MarshalJSON ¶
func (o ToolChoiceOneOf) MarshalJSON() ([]byte, error)
func (*ToolChoiceOneOf) SetFunction ¶
func (o *ToolChoiceOneOf) SetFunction(v FunctionChoice)
SetFunction gets a reference to the given NullableFunctionChoice and assigns it to the Function field.
func (*ToolChoiceOneOf) SetFunctionNil ¶
func (o *ToolChoiceOneOf) SetFunctionNil()
SetFunctionNil sets the value for Function to be an explicit nil
func (*ToolChoiceOneOf) SetType ¶
func (o *ToolChoiceOneOf) SetType(v string)
SetType sets field value
func (ToolChoiceOneOf) ToMap ¶
func (o ToolChoiceOneOf) ToMap() (map[string]interface{}, error)
func (*ToolChoiceOneOf) UnmarshalJSON ¶
func (o *ToolChoiceOneOf) UnmarshalJSON(data []byte) (err error)
func (*ToolChoiceOneOf) UnsetFunction ¶
func (o *ToolChoiceOneOf) UnsetFunction()
UnsetFunction ensures that no value is present for Function, not even an explicit nil
type ToolOneOf ¶
type ToolOneOf struct {
// Definition of tool call available to the model.
Function FunctionDefinition `json:"function"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
ToolOneOf struct for ToolOneOf
func NewToolOneOf ¶
func NewToolOneOf(function FunctionDefinition, type_ string) *ToolOneOf
NewToolOneOf instantiates a new ToolOneOf 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
func NewToolOneOfWithDefaults ¶
func NewToolOneOfWithDefaults() *ToolOneOf
NewToolOneOfWithDefaults instantiates a new ToolOneOf 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
func (*ToolOneOf) GetFunction ¶
func (o *ToolOneOf) GetFunction() FunctionDefinition
GetFunction returns the Function field value
func (*ToolOneOf) GetFunctionOk ¶
func (o *ToolOneOf) GetFunctionOk() (*FunctionDefinition, bool)
GetFunctionOk returns a tuple with the Function field value and a boolean to check if the value has been set.
func (*ToolOneOf) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (ToolOneOf) MarshalJSON ¶
func (*ToolOneOf) SetFunction ¶
func (o *ToolOneOf) SetFunction(v FunctionDefinition)
SetFunction sets field value
func (*ToolOneOf) UnmarshalJSON ¶
type ToolOneOf1 ¶
type ToolOneOf1 struct {
Sources []SearchSource `json:"sources"`
Type string `json:"type"`
AdditionalProperties map[string]interface{}
}
ToolOneOf1 struct for ToolOneOf1
func NewToolOneOf1 ¶
func NewToolOneOf1(sources []SearchSource, type_ string) *ToolOneOf1
NewToolOneOf1 instantiates a new ToolOneOf1 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
func NewToolOneOf1WithDefaults ¶
func NewToolOneOf1WithDefaults() *ToolOneOf1
NewToolOneOf1WithDefaults instantiates a new ToolOneOf1 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
func (*ToolOneOf1) GetSources ¶
func (o *ToolOneOf1) GetSources() []SearchSource
GetSources returns the Sources field value
func (*ToolOneOf1) GetSourcesOk ¶
func (o *ToolOneOf1) GetSourcesOk() ([]SearchSource, bool)
GetSourcesOk returns a tuple with the Sources field value and a boolean to check if the value has been set.
func (*ToolOneOf1) GetType ¶
func (o *ToolOneOf1) GetType() string
GetType returns the Type field value
func (*ToolOneOf1) GetTypeOk ¶
func (o *ToolOneOf1) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (ToolOneOf1) MarshalJSON ¶
func (o ToolOneOf1) MarshalJSON() ([]byte, error)
func (*ToolOneOf1) SetSources ¶
func (o *ToolOneOf1) SetSources(v []SearchSource)
SetSources sets field value
func (ToolOneOf1) ToMap ¶
func (o ToolOneOf1) ToMap() (map[string]interface{}, error)
func (*ToolOneOf1) UnmarshalJSON ¶
func (o *ToolOneOf1) UnmarshalJSON(data []byte) (err error)
type TopLogProb ¶
type TopLogProb struct {
// The ASCII encoding of the output character.
Bytes []int32 `json:"bytes,omitempty"`
// The log probability of returning this token.
Logprob float32 `json:"logprob"`
// The token.
Token string `json:"token"`
AdditionalProperties map[string]interface{}
}
TopLogProb struct for TopLogProb
func NewTopLogProb ¶
func NewTopLogProb(logprob float32, token string) *TopLogProb
NewTopLogProb instantiates a new TopLogProb 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
func NewTopLogProbWithDefaults ¶
func NewTopLogProbWithDefaults() *TopLogProb
NewTopLogProbWithDefaults instantiates a new TopLogProb 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
func (*TopLogProb) GetBytes ¶
func (o *TopLogProb) GetBytes() []int32
GetBytes returns the Bytes field value if set, zero value otherwise (both if not set or set to explicit null).
func (*TopLogProb) GetBytesOk ¶
func (o *TopLogProb) GetBytesOk() ([]int32, bool)
GetBytesOk returns a tuple with the Bytes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*TopLogProb) GetLogprob ¶
func (o *TopLogProb) GetLogprob() float32
GetLogprob returns the Logprob field value
func (*TopLogProb) GetLogprobOk ¶
func (o *TopLogProb) GetLogprobOk() (*float32, bool)
GetLogprobOk returns a tuple with the Logprob field value and a boolean to check if the value has been set.
func (*TopLogProb) GetToken ¶
func (o *TopLogProb) GetToken() string
GetToken returns the Token field value
func (*TopLogProb) GetTokenOk ¶
func (o *TopLogProb) GetTokenOk() (*string, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (*TopLogProb) HasBytes ¶
func (o *TopLogProb) HasBytes() bool
HasBytes returns a boolean if a field has been set.
func (TopLogProb) MarshalJSON ¶
func (o TopLogProb) MarshalJSON() ([]byte, error)
func (*TopLogProb) SetBytes ¶
func (o *TopLogProb) SetBytes(v []int32)
SetBytes gets a reference to the given []int32 and assigns it to the Bytes field.
func (*TopLogProb) SetLogprob ¶
func (o *TopLogProb) SetLogprob(v float32)
SetLogprob sets field value
func (TopLogProb) ToMap ¶
func (o TopLogProb) ToMap() (map[string]interface{}, error)
func (*TopLogProb) UnmarshalJSON ¶
func (o *TopLogProb) UnmarshalJSON(data []byte) (err error)
type Usage ¶
type Usage struct {
// Total completion token used.
CompletionTokens int32 `json:"completion_tokens"`
// Breakdown of completion token usage of different types.
CompletionTokensDetails CompletionUsageDetail `json:"completion_tokens_details"`
// Number of individual live search source used.
NumSourcesUsed int32 `json:"num_sources_used"`
// Total prompt token used.
PromptTokens int32 `json:"prompt_tokens"`
// Breakdown of prompt token usage of different types.
PromptTokensDetails PromptUsageDetail `json:"prompt_tokens_details"`
// Total token used, the sum of prompt token and completion token amount.
TotalTokens int32 `json:"total_tokens"`
AdditionalProperties map[string]interface{}
}
Usage struct for Usage
func NewUsage ¶
func NewUsage(completionTokens int32, completionTokensDetails CompletionUsageDetail, numSourcesUsed int32, promptTokens int32, promptTokensDetails PromptUsageDetail, totalTokens int32) *Usage
NewUsage instantiates a new Usage 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
func NewUsageWithDefaults ¶
func NewUsageWithDefaults() *Usage
NewUsageWithDefaults instantiates a new Usage 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
func (*Usage) GetCompletionTokens ¶
GetCompletionTokens returns the CompletionTokens field value
func (*Usage) GetCompletionTokensDetails ¶
func (o *Usage) GetCompletionTokensDetails() CompletionUsageDetail
GetCompletionTokensDetails returns the CompletionTokensDetails field value
func (*Usage) GetCompletionTokensDetailsOk ¶
func (o *Usage) GetCompletionTokensDetailsOk() (*CompletionUsageDetail, bool)
GetCompletionTokensDetailsOk returns a tuple with the CompletionTokensDetails field value and a boolean to check if the value has been set.
func (*Usage) GetCompletionTokensOk ¶
GetCompletionTokensOk returns a tuple with the CompletionTokens field value and a boolean to check if the value has been set.
func (*Usage) GetNumSourcesUsed ¶
GetNumSourcesUsed returns the NumSourcesUsed field value
func (*Usage) GetNumSourcesUsedOk ¶
GetNumSourcesUsedOk returns a tuple with the NumSourcesUsed field value and a boolean to check if the value has been set.
func (*Usage) GetPromptTokens ¶
GetPromptTokens returns the PromptTokens field value
func (*Usage) GetPromptTokensDetails ¶
func (o *Usage) GetPromptTokensDetails() PromptUsageDetail
GetPromptTokensDetails returns the PromptTokensDetails field value
func (*Usage) GetPromptTokensDetailsOk ¶
func (o *Usage) GetPromptTokensDetailsOk() (*PromptUsageDetail, bool)
GetPromptTokensDetailsOk returns a tuple with the PromptTokensDetails field value and a boolean to check if the value has been set.
func (*Usage) GetPromptTokensOk ¶
GetPromptTokensOk returns a tuple with the PromptTokens field value and a boolean to check if the value has been set.
func (*Usage) GetTotalTokens ¶
GetTotalTokens returns the TotalTokens field value
func (*Usage) GetTotalTokensOk ¶
GetTotalTokensOk returns a tuple with the TotalTokens field value and a boolean to check if the value has been set.
func (Usage) MarshalJSON ¶
func (*Usage) SetCompletionTokens ¶
SetCompletionTokens sets field value
func (*Usage) SetCompletionTokensDetails ¶
func (o *Usage) SetCompletionTokensDetails(v CompletionUsageDetail)
SetCompletionTokensDetails sets field value
func (*Usage) SetNumSourcesUsed ¶
SetNumSourcesUsed sets field value
func (*Usage) SetPromptTokens ¶
SetPromptTokens sets field value
func (*Usage) SetPromptTokensDetails ¶
func (o *Usage) SetPromptTokensDetails(v PromptUsageDetail)
SetPromptTokensDetails sets field value
func (*Usage) SetTotalTokens ¶
SetTotalTokens sets field value
func (*Usage) UnmarshalJSON ¶
type V1API ¶
type V1API interface {
/*
HandleEmbeddingModelGetRequest Get full information about an embedding model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param modelId ID of the model to get.
@return ApiHandleEmbeddingModelGetRequestRequest
*/
HandleEmbeddingModelGetRequest(ctx context.Context, modelId string) ApiHandleEmbeddingModelGetRequestRequest
// HandleEmbeddingModelGetRequestExecute executes the request
// @return EmbeddingModel
HandleEmbeddingModelGetRequestExecute(r ApiHandleEmbeddingModelGetRequestRequest) (*EmbeddingModel, *http.Response, error)
/*
HandleEmbeddingModelsListRequest List all embedding models available to the authenticating API key with full information. Additional information compared to /v1/models includes modalities, pricing, fingerprint and alias(es).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleEmbeddingModelsListRequestRequest
*/
HandleEmbeddingModelsListRequest(ctx context.Context) ApiHandleEmbeddingModelsListRequestRequest
// HandleEmbeddingModelsListRequestExecute executes the request
// @return ListEmbeddingModelsResponse
HandleEmbeddingModelsListRequestExecute(r ApiHandleEmbeddingModelsListRequestRequest) (*ListEmbeddingModelsResponse, *http.Response, error)
/*
HandleEmbeddingRequest Create an embedding vector representation corresponding to the input text. This is the endpoint for making requests to embedding models.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleEmbeddingRequestRequest
*/
HandleEmbeddingRequest(ctx context.Context) ApiHandleEmbeddingRequestRequest
// HandleEmbeddingRequestExecute executes the request
// @return EmbeddingResponse
HandleEmbeddingRequestExecute(r ApiHandleEmbeddingRequestRequest) (*EmbeddingResponse, *http.Response, error)
/*
HandleGenerateImageRequest Generate an image based on a prompt. This is the endpoint for making generation requests to image generation models.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleGenerateImageRequestRequest
*/
HandleGenerateImageRequest(ctx context.Context) ApiHandleGenerateImageRequestRequest
// HandleGenerateImageRequestExecute executes the request
// @return GeneratedImageResponse
HandleGenerateImageRequestExecute(r ApiHandleGenerateImageRequestRequest) (*GeneratedImageResponse, *http.Response, error)
/*
HandleGenericCompleteRequest (Legacy - Not supported by reasoning models) Create a text completion response. This endpoint is compatible with the Anthropic API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleGenericCompleteRequestRequest
*/
HandleGenericCompleteRequest(ctx context.Context) ApiHandleGenericCompleteRequestRequest
// HandleGenericCompleteRequestExecute executes the request
// @return CompleteResponse
HandleGenericCompleteRequestExecute(r ApiHandleGenericCompleteRequestRequest) (*CompleteResponse, *http.Response, error)
/*
HandleGenericCompletionRequest Create a chat response from text/image chat prompts. This is the endpoint for making requests to chat and image understanding models.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleGenericCompletionRequestRequest
*/
HandleGenericCompletionRequest(ctx context.Context) ApiHandleGenericCompletionRequestRequest
// HandleGenericCompletionRequestExecute executes the request
// @return ChatResponse
HandleGenericCompletionRequestExecute(r ApiHandleGenericCompletionRequestRequest) (*ChatResponse, *http.Response, error)
/*
HandleGenericMessagesRequest Create a messages response. This endpoint is compatible with the Anthropic API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleGenericMessagesRequestRequest
*/
HandleGenericMessagesRequest(ctx context.Context) ApiHandleGenericMessagesRequestRequest
// HandleGenericMessagesRequestExecute executes the request
// @return MessageResponse
HandleGenericMessagesRequestExecute(r ApiHandleGenericMessagesRequestRequest) (*MessageResponse, *http.Response, error)
/*
HandleGetApiKeyInfoRequest Get information about an API key, including name, status, permissions and users who created or modified this key.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleGetApiKeyInfoRequestRequest
*/
HandleGetApiKeyInfoRequest(ctx context.Context) ApiHandleGetApiKeyInfoRequestRequest
// HandleGetApiKeyInfoRequestExecute executes the request
// @return ApiKey
HandleGetApiKeyInfoRequestExecute(r ApiHandleGetApiKeyInfoRequestRequest) (*ApiKey, *http.Response, error)
/*
HandleGetDeferredCompletionRequest Tries to fetch a result for a previously-started deferred completion. Returns `200 Success` with the response body, if the request has been completed. Returns `202 Accepted` when the request is pending processing.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The deferred request id returned by a previous deferred chat request.
@return ApiHandleGetDeferredCompletionRequestRequest
*/
HandleGetDeferredCompletionRequest(ctx context.Context, requestId string) ApiHandleGetDeferredCompletionRequestRequest
// HandleGetDeferredCompletionRequestExecute executes the request
// @return ChatResponse
HandleGetDeferredCompletionRequestExecute(r ApiHandleGetDeferredCompletionRequestRequest) (*ChatResponse, *http.Response, error)
/*
HandleImageGenerationModelGetRequest Get full information about an image generation model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param modelId ID of the model to get.
@return ApiHandleImageGenerationModelGetRequestRequest
*/
HandleImageGenerationModelGetRequest(ctx context.Context, modelId string) ApiHandleImageGenerationModelGetRequestRequest
// HandleImageGenerationModelGetRequestExecute executes the request
// @return ImageGenerationModel
HandleImageGenerationModelGetRequestExecute(r ApiHandleImageGenerationModelGetRequestRequest) (*ImageGenerationModel, *http.Response, error)
/*
HandleImageGenerationModelsListRequest List all image generation models available to the authenticating API key with full information. Additional information compared to /v1/models includes modalities, pricing, fingerprint and alias(es).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleImageGenerationModelsListRequestRequest
*/
HandleImageGenerationModelsListRequest(ctx context.Context) ApiHandleImageGenerationModelsListRequestRequest
// HandleImageGenerationModelsListRequestExecute executes the request
// @return ListImageGenerationModelsResponse
HandleImageGenerationModelsListRequestExecute(r ApiHandleImageGenerationModelsListRequestRequest) (*ListImageGenerationModelsResponse, *http.Response, error)
/*
HandleLanguageModelGetRequest Get full information about a chat or image understanding model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param modelId ID of the model to get.
@return ApiHandleLanguageModelGetRequestRequest
*/
HandleLanguageModelGetRequest(ctx context.Context, modelId string) ApiHandleLanguageModelGetRequestRequest
// HandleLanguageModelGetRequestExecute executes the request
// @return LanguageModel
HandleLanguageModelGetRequestExecute(r ApiHandleLanguageModelGetRequestRequest) (*LanguageModel, *http.Response, error)
/*
HandleLanguageModelsListRequest List all chat and image understanding models available to the authenticating API key with full information. Additional information compared to /v1/models includes modalities, pricing, fingerprint and alias(es).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleLanguageModelsListRequestRequest
*/
HandleLanguageModelsListRequest(ctx context.Context) ApiHandleLanguageModelsListRequestRequest
// HandleLanguageModelsListRequestExecute executes the request
// @return ListLanguageModelsResponse
HandleLanguageModelsListRequestExecute(r ApiHandleLanguageModelsListRequestRequest) (*ListLanguageModelsResponse, *http.Response, error)
/*
HandleModelGetRequest Get minimalized information about a model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param modelId ID of the model to get.
@return ApiHandleModelGetRequestRequest
*/
HandleModelGetRequest(ctx context.Context, modelId string) ApiHandleModelGetRequestRequest
// HandleModelGetRequestExecute executes the request
// @return Model
HandleModelGetRequestExecute(r ApiHandleModelGetRequestRequest) (*Model, *http.Response, error)
/*
HandleModelsListRequest List all models available to the authenticating API key with minimalized information, including model names (ID), creation times, etc.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleModelsListRequestRequest
*/
HandleModelsListRequest(ctx context.Context) ApiHandleModelsListRequestRequest
// HandleModelsListRequestExecute executes the request
// @return ListModelsResponse
HandleModelsListRequestExecute(r ApiHandleModelsListRequestRequest) (*ListModelsResponse, *http.Response, error)
/*
HandleSampleRequest (Legacy - Not supported by reasoning models) Create a text completion response for a given prompt. Replaced by /v1/chat/completions.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleSampleRequestRequest
*/
HandleSampleRequest(ctx context.Context) ApiHandleSampleRequestRequest
// HandleSampleRequestExecute executes the request
// @return SampleResponse
HandleSampleRequestExecute(r ApiHandleSampleRequestRequest) (*SampleResponse, *http.Response, error)
/*
HandleTokenizeTextRequest Tokenize text with the specified model
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHandleTokenizeTextRequestRequest
*/
HandleTokenizeTextRequest(ctx context.Context) ApiHandleTokenizeTextRequestRequest
// HandleTokenizeTextRequestExecute executes the request
// @return TokenizeResponse
HandleTokenizeTextRequestExecute(r ApiHandleTokenizeTextRequestRequest) (*TokenizeResponse, *http.Response, error)
}
type V1APIService ¶
type V1APIService service
V1APIService V1API service
func (*V1APIService) HandleEmbeddingModelGetRequest ¶
func (a *V1APIService) HandleEmbeddingModelGetRequest(ctx context.Context, modelId string) ApiHandleEmbeddingModelGetRequestRequest
HandleEmbeddingModelGetRequest Get full information about an embedding model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param modelId ID of the model to get. @return ApiHandleEmbeddingModelGetRequestRequest
func (*V1APIService) HandleEmbeddingModelGetRequestExecute ¶
func (a *V1APIService) HandleEmbeddingModelGetRequestExecute(r ApiHandleEmbeddingModelGetRequestRequest) (*EmbeddingModel, *http.Response, error)
Execute executes the request
@return EmbeddingModel
func (*V1APIService) HandleEmbeddingModelsListRequest ¶
func (a *V1APIService) HandleEmbeddingModelsListRequest(ctx context.Context) ApiHandleEmbeddingModelsListRequestRequest
HandleEmbeddingModelsListRequest List all embedding models available to the authenticating API key with full information. Additional information compared to /v1/models includes modalities, pricing, fingerprint and alias(es).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleEmbeddingModelsListRequestRequest
func (*V1APIService) HandleEmbeddingModelsListRequestExecute ¶
func (a *V1APIService) HandleEmbeddingModelsListRequestExecute(r ApiHandleEmbeddingModelsListRequestRequest) (*ListEmbeddingModelsResponse, *http.Response, error)
Execute executes the request
@return ListEmbeddingModelsResponse
func (*V1APIService) HandleEmbeddingRequest ¶
func (a *V1APIService) HandleEmbeddingRequest(ctx context.Context) ApiHandleEmbeddingRequestRequest
HandleEmbeddingRequest Create an embedding vector representation corresponding to the input text. This is the endpoint for making requests to embedding models.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleEmbeddingRequestRequest
func (*V1APIService) HandleEmbeddingRequestExecute ¶
func (a *V1APIService) HandleEmbeddingRequestExecute(r ApiHandleEmbeddingRequestRequest) (*EmbeddingResponse, *http.Response, error)
Execute executes the request
@return EmbeddingResponse
func (*V1APIService) HandleGenerateImageRequest ¶
func (a *V1APIService) HandleGenerateImageRequest(ctx context.Context) ApiHandleGenerateImageRequestRequest
HandleGenerateImageRequest Generate an image based on a prompt. This is the endpoint for making generation requests to image generation models.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleGenerateImageRequestRequest
func (*V1APIService) HandleGenerateImageRequestExecute ¶
func (a *V1APIService) HandleGenerateImageRequestExecute(r ApiHandleGenerateImageRequestRequest) (*GeneratedImageResponse, *http.Response, error)
Execute executes the request
@return GeneratedImageResponse
func (*V1APIService) HandleGenericCompleteRequest ¶
func (a *V1APIService) HandleGenericCompleteRequest(ctx context.Context) ApiHandleGenericCompleteRequestRequest
HandleGenericCompleteRequest (Legacy - Not supported by reasoning models) Create a text completion response. This endpoint is compatible with the Anthropic API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleGenericCompleteRequestRequest
func (*V1APIService) HandleGenericCompleteRequestExecute ¶
func (a *V1APIService) HandleGenericCompleteRequestExecute(r ApiHandleGenericCompleteRequestRequest) (*CompleteResponse, *http.Response, error)
Execute executes the request
@return CompleteResponse
func (*V1APIService) HandleGenericCompletionRequest ¶
func (a *V1APIService) HandleGenericCompletionRequest(ctx context.Context) ApiHandleGenericCompletionRequestRequest
HandleGenericCompletionRequest Create a chat response from text/image chat prompts. This is the endpoint for making requests to chat and image understanding models.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleGenericCompletionRequestRequest
func (*V1APIService) HandleGenericCompletionRequestExecute ¶
func (a *V1APIService) HandleGenericCompletionRequestExecute(r ApiHandleGenericCompletionRequestRequest) (*ChatResponse, *http.Response, error)
Execute executes the request
@return ChatResponse
func (*V1APIService) HandleGenericMessagesRequest ¶
func (a *V1APIService) HandleGenericMessagesRequest(ctx context.Context) ApiHandleGenericMessagesRequestRequest
HandleGenericMessagesRequest Create a messages response. This endpoint is compatible with the Anthropic API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleGenericMessagesRequestRequest
func (*V1APIService) HandleGenericMessagesRequestExecute ¶
func (a *V1APIService) HandleGenericMessagesRequestExecute(r ApiHandleGenericMessagesRequestRequest) (*MessageResponse, *http.Response, error)
Execute executes the request
@return MessageResponse
func (*V1APIService) HandleGetApiKeyInfoRequest ¶
func (a *V1APIService) HandleGetApiKeyInfoRequest(ctx context.Context) ApiHandleGetApiKeyInfoRequestRequest
HandleGetApiKeyInfoRequest Get information about an API key, including name, status, permissions and users who created or modified this key.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleGetApiKeyInfoRequestRequest
func (*V1APIService) HandleGetApiKeyInfoRequestExecute ¶
func (a *V1APIService) HandleGetApiKeyInfoRequestExecute(r ApiHandleGetApiKeyInfoRequestRequest) (*ApiKey, *http.Response, error)
Execute executes the request
@return ApiKey
func (*V1APIService) HandleGetDeferredCompletionRequest ¶
func (a *V1APIService) HandleGetDeferredCompletionRequest(ctx context.Context, requestId string) ApiHandleGetDeferredCompletionRequestRequest
HandleGetDeferredCompletionRequest Tries to fetch a result for a previously-started deferred completion. Returns `200 Success` with the response body, if the request has been completed. Returns `202 Accepted` when the request is pending processing.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param requestId The deferred request id returned by a previous deferred chat request. @return ApiHandleGetDeferredCompletionRequestRequest
func (*V1APIService) HandleGetDeferredCompletionRequestExecute ¶
func (a *V1APIService) HandleGetDeferredCompletionRequestExecute(r ApiHandleGetDeferredCompletionRequestRequest) (*ChatResponse, *http.Response, error)
Execute executes the request
@return ChatResponse
func (*V1APIService) HandleImageGenerationModelGetRequest ¶
func (a *V1APIService) HandleImageGenerationModelGetRequest(ctx context.Context, modelId string) ApiHandleImageGenerationModelGetRequestRequest
HandleImageGenerationModelGetRequest Get full information about an image generation model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param modelId ID of the model to get. @return ApiHandleImageGenerationModelGetRequestRequest
func (*V1APIService) HandleImageGenerationModelGetRequestExecute ¶
func (a *V1APIService) HandleImageGenerationModelGetRequestExecute(r ApiHandleImageGenerationModelGetRequestRequest) (*ImageGenerationModel, *http.Response, error)
Execute executes the request
@return ImageGenerationModel
func (*V1APIService) HandleImageGenerationModelsListRequest ¶
func (a *V1APIService) HandleImageGenerationModelsListRequest(ctx context.Context) ApiHandleImageGenerationModelsListRequestRequest
HandleImageGenerationModelsListRequest List all image generation models available to the authenticating API key with full information. Additional information compared to /v1/models includes modalities, pricing, fingerprint and alias(es).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleImageGenerationModelsListRequestRequest
func (*V1APIService) HandleImageGenerationModelsListRequestExecute ¶
func (a *V1APIService) HandleImageGenerationModelsListRequestExecute(r ApiHandleImageGenerationModelsListRequestRequest) (*ListImageGenerationModelsResponse, *http.Response, error)
Execute executes the request
@return ListImageGenerationModelsResponse
func (*V1APIService) HandleLanguageModelGetRequest ¶
func (a *V1APIService) HandleLanguageModelGetRequest(ctx context.Context, modelId string) ApiHandleLanguageModelGetRequestRequest
HandleLanguageModelGetRequest Get full information about a chat or image understanding model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param modelId ID of the model to get. @return ApiHandleLanguageModelGetRequestRequest
func (*V1APIService) HandleLanguageModelGetRequestExecute ¶
func (a *V1APIService) HandleLanguageModelGetRequestExecute(r ApiHandleLanguageModelGetRequestRequest) (*LanguageModel, *http.Response, error)
Execute executes the request
@return LanguageModel
func (*V1APIService) HandleLanguageModelsListRequest ¶
func (a *V1APIService) HandleLanguageModelsListRequest(ctx context.Context) ApiHandleLanguageModelsListRequestRequest
HandleLanguageModelsListRequest List all chat and image understanding models available to the authenticating API key with full information. Additional information compared to /v1/models includes modalities, pricing, fingerprint and alias(es).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleLanguageModelsListRequestRequest
func (*V1APIService) HandleLanguageModelsListRequestExecute ¶
func (a *V1APIService) HandleLanguageModelsListRequestExecute(r ApiHandleLanguageModelsListRequestRequest) (*ListLanguageModelsResponse, *http.Response, error)
Execute executes the request
@return ListLanguageModelsResponse
func (*V1APIService) HandleModelGetRequest ¶
func (a *V1APIService) HandleModelGetRequest(ctx context.Context, modelId string) ApiHandleModelGetRequestRequest
HandleModelGetRequest Get minimalized information about a model with its model_id.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param modelId ID of the model to get. @return ApiHandleModelGetRequestRequest
func (*V1APIService) HandleModelGetRequestExecute ¶
func (a *V1APIService) HandleModelGetRequestExecute(r ApiHandleModelGetRequestRequest) (*Model, *http.Response, error)
Execute executes the request
@return Model
func (*V1APIService) HandleModelsListRequest ¶
func (a *V1APIService) HandleModelsListRequest(ctx context.Context) ApiHandleModelsListRequestRequest
HandleModelsListRequest List all models available to the authenticating API key with minimalized information, including model names (ID), creation times, etc.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleModelsListRequestRequest
func (*V1APIService) HandleModelsListRequestExecute ¶
func (a *V1APIService) HandleModelsListRequestExecute(r ApiHandleModelsListRequestRequest) (*ListModelsResponse, *http.Response, error)
Execute executes the request
@return ListModelsResponse
func (*V1APIService) HandleSampleRequest ¶
func (a *V1APIService) HandleSampleRequest(ctx context.Context) ApiHandleSampleRequestRequest
HandleSampleRequest (Legacy - Not supported by reasoning models) Create a text completion response for a given prompt. Replaced by /v1/chat/completions.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleSampleRequestRequest
func (*V1APIService) HandleSampleRequestExecute ¶
func (a *V1APIService) HandleSampleRequestExecute(r ApiHandleSampleRequestRequest) (*SampleResponse, *http.Response, error)
Execute executes the request
@return SampleResponse
func (*V1APIService) HandleTokenizeTextRequest ¶
func (a *V1APIService) HandleTokenizeTextRequest(ctx context.Context) ApiHandleTokenizeTextRequestRequest
HandleTokenizeTextRequest Tokenize text with the specified model
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiHandleTokenizeTextRequestRequest
func (*V1APIService) HandleTokenizeTextRequestExecute ¶
func (a *V1APIService) HandleTokenizeTextRequestExecute(r ApiHandleTokenizeTextRequestRequest) (*TokenizeResponse, *http.Response, error)
Execute executes the request
@return TokenizeResponse
type WebSearchOptions ¶
type WebSearchOptions struct {
// This field included for compatibility reason with OpenAI's API. It is mapped to `max_search`.
SearchContextSize NullableString `json:"search_context_size,omitempty"`
UserLocation interface{} `json:"user_location,omitempty"`
AdditionalProperties map[string]interface{}
}
WebSearchOptions struct for WebSearchOptions
func NewWebSearchOptions ¶
func NewWebSearchOptions() *WebSearchOptions
NewWebSearchOptions instantiates a new WebSearchOptions 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
func NewWebSearchOptionsWithDefaults ¶
func NewWebSearchOptionsWithDefaults() *WebSearchOptions
NewWebSearchOptionsWithDefaults instantiates a new WebSearchOptions 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
func (*WebSearchOptions) GetSearchContextSize ¶
func (o *WebSearchOptions) GetSearchContextSize() string
GetSearchContextSize returns the SearchContextSize field value if set, zero value otherwise (both if not set or set to explicit null).
func (*WebSearchOptions) GetSearchContextSizeOk ¶
func (o *WebSearchOptions) GetSearchContextSizeOk() (*string, bool)
GetSearchContextSizeOk returns a tuple with the SearchContextSize field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*WebSearchOptions) GetUserLocation ¶
func (o *WebSearchOptions) GetUserLocation() interface{}
GetUserLocation returns the UserLocation field value if set, zero value otherwise (both if not set or set to explicit null).
func (*WebSearchOptions) GetUserLocationOk ¶
func (o *WebSearchOptions) GetUserLocationOk() (*interface{}, bool)
GetUserLocationOk returns a tuple with the UserLocation field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*WebSearchOptions) HasSearchContextSize ¶
func (o *WebSearchOptions) HasSearchContextSize() bool
HasSearchContextSize returns a boolean if a field has been set.
func (*WebSearchOptions) HasUserLocation ¶
func (o *WebSearchOptions) HasUserLocation() bool
HasUserLocation returns a boolean if a field has been set.
func (WebSearchOptions) MarshalJSON ¶
func (o WebSearchOptions) MarshalJSON() ([]byte, error)
func (*WebSearchOptions) SetSearchContextSize ¶
func (o *WebSearchOptions) SetSearchContextSize(v string)
SetSearchContextSize gets a reference to the given NullableString and assigns it to the SearchContextSize field.
func (*WebSearchOptions) SetSearchContextSizeNil ¶
func (o *WebSearchOptions) SetSearchContextSizeNil()
SetSearchContextSizeNil sets the value for SearchContextSize to be an explicit nil
func (*WebSearchOptions) SetUserLocation ¶
func (o *WebSearchOptions) SetUserLocation(v interface{})
SetUserLocation gets a reference to the given interface{} and assigns it to the UserLocation field.
func (WebSearchOptions) ToMap ¶
func (o WebSearchOptions) ToMap() (map[string]interface{}, error)
func (*WebSearchOptions) UnmarshalJSON ¶
func (o *WebSearchOptions) UnmarshalJSON(data []byte) (err error)
func (*WebSearchOptions) UnsetSearchContextSize ¶
func (o *WebSearchOptions) UnsetSearchContextSize()
UnsetSearchContextSize ensures that no value is present for SearchContextSize, not even an explicit nil
Source Files
¶
- api_v1.go
- client.go
- configuration.go
- model_api_key.go
- model_chat_request.go
- model_chat_response.go
- model_chat_response_chunk.go
- model_choice.go
- model_choice_chunk.go
- model_choice_message.go
- model_complete_request.go
- model_complete_response.go
- model_completion_usage_detail.go
- model_content.go
- model_content_part.go
- model_debug_output.go
- model_delta.go
- model_edit_image_request.go
- model_embedding.go
- model_embedding_content.go
- model_embedding_input.go
- model_embedding_input_one_of.go
- model_embedding_input_one_of_1.go
- model_embedding_input_one_of_2.go
- model_embedding_input_one_of_3.go
- model_embedding_model.go
- model_embedding_request.go
- model_embedding_response.go
- model_embedding_usage.go
- model_function.go
- model_function_call.go
- model_function_choice.go
- model_function_definition.go
- model_generate_image_request.go
- model_generated_image.go
- model_generated_image_response.go
- model_image_generation_model.go
- model_image_url.go
- model_language_model.go
- model_list_embedding_models_response.go
- model_list_image_generation_models_response.go
- model_list_language_models_response.go
- model_list_models_response.go
- model_log_probs.go
- model_message.go
- model_message_body.go
- model_message_content.go
- model_message_content_part.go
- model_message_content_part_one_of.go
- model_message_content_part_one_of_1.go
- model_message_content_part_one_of_2.go
- model_message_content_part_one_of_3.go
- model_message_content_part_one_of_4.go
- model_message_content_part_one_of_5.go
- model_message_image_content.go
- model_message_image_content_one_of.go
- model_message_image_content_one_of_1.go
- model_message_metadata.go
- model_message_one_of.go
- model_message_one_of_1.go
- model_message_one_of_2.go
- model_message_one_of_3.go
- model_message_one_of_4.go
- model_message_request.go
- model_message_response.go
- model_message_response_content.go
- model_message_response_content_one_of.go
- model_message_response_content_one_of_1.go
- model_message_response_content_one_of_2.go
- model_message_response_content_one_of_3.go
- model_message_tool_choice.go
- model_message_tool_choice_one_of.go
- model_message_tool_choice_one_of_1.go
- model_message_tool_choice_one_of_2.go
- model_message_tool_input_schema.go
- model_message_tools.go
- model_message_usage.go
- model_model.go
- model_prompt_usage_detail.go
- model_response_format.go
- model_response_format_one_of.go
- model_response_format_one_of_1.go
- model_response_format_one_of_2.go
- model_sample_choice.go
- model_sample_content.go
- model_sample_request.go
- model_sample_response.go
- model_search_parameters.go
- model_search_source.go
- model_search_source_one_of.go
- model_search_source_one_of_1.go
- model_search_source_one_of_2.go
- model_search_source_one_of_3.go
- model_start_deferred_chat_response.go
- model_stream_options.go
- model_system_message_content.go
- model_system_message_part.go
- model_token_log_prob.go
- model_tokenize_request.go
- model_tokenize_response.go
- model_tokenize_response_token.go
- model_tool.go
- model_tool_call.go
- model_tool_choice.go
- model_tool_choice_one_of.go
- model_tool_one_of.go
- model_tool_one_of_1.go
- model_top_log_prob.go
- model_usage.go
- model_web_search_options.go
- response.go
- utils.go