mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1856 lines
50 KiB
Go
1856 lines
50 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the Provider type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &Provider{}
|
|
|
|
// Provider struct for Provider
|
|
type Provider struct {
|
|
ApiVersion *string `json:"apiVersion,omitempty"`
|
|
Asset *string `json:"asset,omitempty"`
|
|
BrowserUrl *string `json:"browserUrl,omitempty"`
|
|
Category *string `json:"category,omitempty"`
|
|
Chain *string `json:"chain,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientSecret *string `json:"clientSecret,omitempty"`
|
|
CompatibleProvider *string `json:"compatibleProvider,omitempty"`
|
|
ConfigText *string `json:"configText,omitempty"`
|
|
ContractMethod *string `json:"contractMethod,omitempty"`
|
|
ContractName *string `json:"contractName,omitempty"`
|
|
CreatedTime *string `json:"createdTime,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
DisplayName *string `json:"displayName,omitempty"`
|
|
EnableThinking *bool `json:"enableThinking,omitempty"`
|
|
ErrorText *string `json:"errorText,omitempty"`
|
|
Flavor *string `json:"flavor,omitempty"`
|
|
FrequencyPenalty *float32 `json:"frequencyPenalty,omitempty"`
|
|
InputPricePerThousandTokens *float32 `json:"inputPricePerThousandTokens,omitempty"`
|
|
IsDefault *bool `json:"isDefault,omitempty"`
|
|
IsRemote *bool `json:"isRemote,omitempty"`
|
|
McpTools []AgentMcpTools `json:"mcpTools,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Network *string `json:"network,omitempty"`
|
|
OutputPricePerThousandTokens *float32 `json:"outputPricePerThousandTokens,omitempty"`
|
|
Owner *string `json:"owner,omitempty"`
|
|
PresencePenalty *float32 `json:"presencePenalty,omitempty"`
|
|
ProviderKey *string `json:"providerKey,omitempty"`
|
|
ProviderUrl *string `json:"providerUrl,omitempty"`
|
|
RawText *string `json:"rawText,omitempty"`
|
|
Region *string `json:"region,omitempty"`
|
|
ResultSummary *string `json:"resultSummary,omitempty"`
|
|
Runner *string `json:"runner,omitempty"`
|
|
SignCert *string `json:"signCert,omitempty"`
|
|
SignKey *string `json:"signKey,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
SubType *string `json:"subType,omitempty"`
|
|
Target *string `json:"target,omitempty"`
|
|
TargetMode *string `json:"targetMode,omitempty"`
|
|
Temperature *float32 `json:"temperature,omitempty"`
|
|
TestContent *string `json:"testContent,omitempty"`
|
|
Text *string `json:"text,omitempty"`
|
|
TopK *int32 `json:"topK,omitempty"`
|
|
TopP *float32 `json:"topP,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserCert *string `json:"userCert,omitempty"`
|
|
UserKey *string `json:"userKey,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _Provider Provider
|
|
|
|
// NewProvider instantiates a new Provider 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 NewProvider() *Provider {
|
|
this := Provider{}
|
|
return &this
|
|
}
|
|
|
|
// NewProviderWithDefaults instantiates a new Provider 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 NewProviderWithDefaults() *Provider {
|
|
this := Provider{}
|
|
return &this
|
|
}
|
|
|
|
// GetApiVersion returns the ApiVersion field value if set, zero value otherwise.
|
|
func (o *Provider) GetApiVersion() string {
|
|
if o == nil || IsNil(o.ApiVersion) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ApiVersion
|
|
}
|
|
|
|
// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetApiVersionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ApiVersion) {
|
|
return nil, false
|
|
}
|
|
return o.ApiVersion, true
|
|
}
|
|
|
|
// HasApiVersion returns a boolean if a field has been set.
|
|
func (o *Provider) HasApiVersion() bool {
|
|
if o != nil && !IsNil(o.ApiVersion) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field.
|
|
func (o *Provider) SetApiVersion(v string) {
|
|
o.ApiVersion = &v
|
|
}
|
|
|
|
// GetAsset returns the Asset field value if set, zero value otherwise.
|
|
func (o *Provider) GetAsset() string {
|
|
if o == nil || IsNil(o.Asset) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Asset
|
|
}
|
|
|
|
// GetAssetOk returns a tuple with the Asset field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetAssetOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Asset) {
|
|
return nil, false
|
|
}
|
|
return o.Asset, true
|
|
}
|
|
|
|
// HasAsset returns a boolean if a field has been set.
|
|
func (o *Provider) HasAsset() bool {
|
|
if o != nil && !IsNil(o.Asset) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAsset gets a reference to the given string and assigns it to the Asset field.
|
|
func (o *Provider) SetAsset(v string) {
|
|
o.Asset = &v
|
|
}
|
|
|
|
// GetBrowserUrl returns the BrowserUrl field value if set, zero value otherwise.
|
|
func (o *Provider) GetBrowserUrl() string {
|
|
if o == nil || IsNil(o.BrowserUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.BrowserUrl
|
|
}
|
|
|
|
// GetBrowserUrlOk returns a tuple with the BrowserUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetBrowserUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.BrowserUrl) {
|
|
return nil, false
|
|
}
|
|
return o.BrowserUrl, true
|
|
}
|
|
|
|
// HasBrowserUrl returns a boolean if a field has been set.
|
|
func (o *Provider) HasBrowserUrl() bool {
|
|
if o != nil && !IsNil(o.BrowserUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBrowserUrl gets a reference to the given string and assigns it to the BrowserUrl field.
|
|
func (o *Provider) SetBrowserUrl(v string) {
|
|
o.BrowserUrl = &v
|
|
}
|
|
|
|
// GetCategory returns the Category field value if set, zero value otherwise.
|
|
func (o *Provider) GetCategory() string {
|
|
if o == nil || IsNil(o.Category) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Category
|
|
}
|
|
|
|
// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetCategoryOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Category) {
|
|
return nil, false
|
|
}
|
|
return o.Category, true
|
|
}
|
|
|
|
// HasCategory returns a boolean if a field has been set.
|
|
func (o *Provider) HasCategory() bool {
|
|
if o != nil && !IsNil(o.Category) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCategory gets a reference to the given string and assigns it to the Category field.
|
|
func (o *Provider) SetCategory(v string) {
|
|
o.Category = &v
|
|
}
|
|
|
|
// GetChain returns the Chain field value if set, zero value otherwise.
|
|
func (o *Provider) GetChain() string {
|
|
if o == nil || IsNil(o.Chain) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Chain
|
|
}
|
|
|
|
// GetChainOk returns a tuple with the Chain field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetChainOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Chain) {
|
|
return nil, false
|
|
}
|
|
return o.Chain, true
|
|
}
|
|
|
|
// HasChain returns a boolean if a field has been set.
|
|
func (o *Provider) HasChain() bool {
|
|
if o != nil && !IsNil(o.Chain) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetChain gets a reference to the given string and assigns it to the Chain field.
|
|
func (o *Provider) SetChain(v string) {
|
|
o.Chain = &v
|
|
}
|
|
|
|
// GetClientId returns the ClientId field value if set, zero value otherwise.
|
|
func (o *Provider) GetClientId() string {
|
|
if o == nil || IsNil(o.ClientId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ClientId
|
|
}
|
|
|
|
// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetClientIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ClientId) {
|
|
return nil, false
|
|
}
|
|
return o.ClientId, true
|
|
}
|
|
|
|
// HasClientId returns a boolean if a field has been set.
|
|
func (o *Provider) HasClientId() bool {
|
|
if o != nil && !IsNil(o.ClientId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClientId gets a reference to the given string and assigns it to the ClientId field.
|
|
func (o *Provider) SetClientId(v string) {
|
|
o.ClientId = &v
|
|
}
|
|
|
|
// GetClientSecret returns the ClientSecret field value if set, zero value otherwise.
|
|
func (o *Provider) GetClientSecret() string {
|
|
if o == nil || IsNil(o.ClientSecret) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ClientSecret
|
|
}
|
|
|
|
// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetClientSecretOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ClientSecret) {
|
|
return nil, false
|
|
}
|
|
return o.ClientSecret, true
|
|
}
|
|
|
|
// HasClientSecret returns a boolean if a field has been set.
|
|
func (o *Provider) HasClientSecret() bool {
|
|
if o != nil && !IsNil(o.ClientSecret) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field.
|
|
func (o *Provider) SetClientSecret(v string) {
|
|
o.ClientSecret = &v
|
|
}
|
|
|
|
// GetCompatibleProvider returns the CompatibleProvider field value if set, zero value otherwise.
|
|
func (o *Provider) GetCompatibleProvider() string {
|
|
if o == nil || IsNil(o.CompatibleProvider) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CompatibleProvider
|
|
}
|
|
|
|
// GetCompatibleProviderOk returns a tuple with the CompatibleProvider field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetCompatibleProviderOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CompatibleProvider) {
|
|
return nil, false
|
|
}
|
|
return o.CompatibleProvider, true
|
|
}
|
|
|
|
// HasCompatibleProvider returns a boolean if a field has been set.
|
|
func (o *Provider) HasCompatibleProvider() bool {
|
|
if o != nil && !IsNil(o.CompatibleProvider) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCompatibleProvider gets a reference to the given string and assigns it to the CompatibleProvider field.
|
|
func (o *Provider) SetCompatibleProvider(v string) {
|
|
o.CompatibleProvider = &v
|
|
}
|
|
|
|
// GetConfigText returns the ConfigText field value if set, zero value otherwise.
|
|
func (o *Provider) GetConfigText() string {
|
|
if o == nil || IsNil(o.ConfigText) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ConfigText
|
|
}
|
|
|
|
// GetConfigTextOk returns a tuple with the ConfigText field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetConfigTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ConfigText) {
|
|
return nil, false
|
|
}
|
|
return o.ConfigText, true
|
|
}
|
|
|
|
// HasConfigText returns a boolean if a field has been set.
|
|
func (o *Provider) HasConfigText() bool {
|
|
if o != nil && !IsNil(o.ConfigText) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetConfigText gets a reference to the given string and assigns it to the ConfigText field.
|
|
func (o *Provider) SetConfigText(v string) {
|
|
o.ConfigText = &v
|
|
}
|
|
|
|
// GetContractMethod returns the ContractMethod field value if set, zero value otherwise.
|
|
func (o *Provider) GetContractMethod() string {
|
|
if o == nil || IsNil(o.ContractMethod) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ContractMethod
|
|
}
|
|
|
|
// GetContractMethodOk returns a tuple with the ContractMethod field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetContractMethodOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ContractMethod) {
|
|
return nil, false
|
|
}
|
|
return o.ContractMethod, true
|
|
}
|
|
|
|
// HasContractMethod returns a boolean if a field has been set.
|
|
func (o *Provider) HasContractMethod() bool {
|
|
if o != nil && !IsNil(o.ContractMethod) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContractMethod gets a reference to the given string and assigns it to the ContractMethod field.
|
|
func (o *Provider) SetContractMethod(v string) {
|
|
o.ContractMethod = &v
|
|
}
|
|
|
|
// GetContractName returns the ContractName field value if set, zero value otherwise.
|
|
func (o *Provider) GetContractName() string {
|
|
if o == nil || IsNil(o.ContractName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ContractName
|
|
}
|
|
|
|
// GetContractNameOk returns a tuple with the ContractName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetContractNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ContractName) {
|
|
return nil, false
|
|
}
|
|
return o.ContractName, true
|
|
}
|
|
|
|
// HasContractName returns a boolean if a field has been set.
|
|
func (o *Provider) HasContractName() bool {
|
|
if o != nil && !IsNil(o.ContractName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContractName gets a reference to the given string and assigns it to the ContractName field.
|
|
func (o *Provider) SetContractName(v string) {
|
|
o.ContractName = &v
|
|
}
|
|
|
|
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
|
|
func (o *Provider) GetCreatedTime() string {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedTime
|
|
}
|
|
|
|
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetCreatedTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedTime, true
|
|
}
|
|
|
|
// HasCreatedTime returns a boolean if a field has been set.
|
|
func (o *Provider) HasCreatedTime() bool {
|
|
if o != nil && !IsNil(o.CreatedTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
|
|
func (o *Provider) SetCreatedTime(v string) {
|
|
o.CreatedTime = &v
|
|
}
|
|
|
|
// GetCurrency returns the Currency field value if set, zero value otherwise.
|
|
func (o *Provider) GetCurrency() string {
|
|
if o == nil || IsNil(o.Currency) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Currency
|
|
}
|
|
|
|
// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetCurrencyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Currency) {
|
|
return nil, false
|
|
}
|
|
return o.Currency, true
|
|
}
|
|
|
|
// HasCurrency returns a boolean if a field has been set.
|
|
func (o *Provider) HasCurrency() bool {
|
|
if o != nil && !IsNil(o.Currency) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCurrency gets a reference to the given string and assigns it to the Currency field.
|
|
func (o *Provider) SetCurrency(v string) {
|
|
o.Currency = &v
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
|
func (o *Provider) GetDisplayName() string {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DisplayName
|
|
}
|
|
|
|
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetDisplayNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
return nil, false
|
|
}
|
|
return o.DisplayName, true
|
|
}
|
|
|
|
// HasDisplayName returns a boolean if a field has been set.
|
|
func (o *Provider) HasDisplayName() bool {
|
|
if o != nil && !IsNil(o.DisplayName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
|
|
func (o *Provider) SetDisplayName(v string) {
|
|
o.DisplayName = &v
|
|
}
|
|
|
|
// GetEnableThinking returns the EnableThinking field value if set, zero value otherwise.
|
|
func (o *Provider) GetEnableThinking() bool {
|
|
if o == nil || IsNil(o.EnableThinking) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.EnableThinking
|
|
}
|
|
|
|
// GetEnableThinkingOk returns a tuple with the EnableThinking field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetEnableThinkingOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.EnableThinking) {
|
|
return nil, false
|
|
}
|
|
return o.EnableThinking, true
|
|
}
|
|
|
|
// HasEnableThinking returns a boolean if a field has been set.
|
|
func (o *Provider) HasEnableThinking() bool {
|
|
if o != nil && !IsNil(o.EnableThinking) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnableThinking gets a reference to the given bool and assigns it to the EnableThinking field.
|
|
func (o *Provider) SetEnableThinking(v bool) {
|
|
o.EnableThinking = &v
|
|
}
|
|
|
|
// GetErrorText returns the ErrorText field value if set, zero value otherwise.
|
|
func (o *Provider) GetErrorText() string {
|
|
if o == nil || IsNil(o.ErrorText) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ErrorText
|
|
}
|
|
|
|
// GetErrorTextOk returns a tuple with the ErrorText field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetErrorTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ErrorText) {
|
|
return nil, false
|
|
}
|
|
return o.ErrorText, true
|
|
}
|
|
|
|
// HasErrorText returns a boolean if a field has been set.
|
|
func (o *Provider) HasErrorText() bool {
|
|
if o != nil && !IsNil(o.ErrorText) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetErrorText gets a reference to the given string and assigns it to the ErrorText field.
|
|
func (o *Provider) SetErrorText(v string) {
|
|
o.ErrorText = &v
|
|
}
|
|
|
|
// GetFlavor returns the Flavor field value if set, zero value otherwise.
|
|
func (o *Provider) GetFlavor() string {
|
|
if o == nil || IsNil(o.Flavor) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Flavor
|
|
}
|
|
|
|
// GetFlavorOk returns a tuple with the Flavor field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetFlavorOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Flavor) {
|
|
return nil, false
|
|
}
|
|
return o.Flavor, true
|
|
}
|
|
|
|
// HasFlavor returns a boolean if a field has been set.
|
|
func (o *Provider) HasFlavor() bool {
|
|
if o != nil && !IsNil(o.Flavor) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFlavor gets a reference to the given string and assigns it to the Flavor field.
|
|
func (o *Provider) SetFlavor(v string) {
|
|
o.Flavor = &v
|
|
}
|
|
|
|
// GetFrequencyPenalty returns the FrequencyPenalty field value if set, zero value otherwise.
|
|
func (o *Provider) GetFrequencyPenalty() float32 {
|
|
if o == nil || IsNil(o.FrequencyPenalty) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.FrequencyPenalty
|
|
}
|
|
|
|
// GetFrequencyPenaltyOk returns a tuple with the FrequencyPenalty field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetFrequencyPenaltyOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.FrequencyPenalty) {
|
|
return nil, false
|
|
}
|
|
return o.FrequencyPenalty, true
|
|
}
|
|
|
|
// HasFrequencyPenalty returns a boolean if a field has been set.
|
|
func (o *Provider) HasFrequencyPenalty() bool {
|
|
if o != nil && !IsNil(o.FrequencyPenalty) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFrequencyPenalty gets a reference to the given float32 and assigns it to the FrequencyPenalty field.
|
|
func (o *Provider) SetFrequencyPenalty(v float32) {
|
|
o.FrequencyPenalty = &v
|
|
}
|
|
|
|
// GetInputPricePerThousandTokens returns the InputPricePerThousandTokens field value if set, zero value otherwise.
|
|
func (o *Provider) GetInputPricePerThousandTokens() float32 {
|
|
if o == nil || IsNil(o.InputPricePerThousandTokens) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.InputPricePerThousandTokens
|
|
}
|
|
|
|
// GetInputPricePerThousandTokensOk returns a tuple with the InputPricePerThousandTokens field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetInputPricePerThousandTokensOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.InputPricePerThousandTokens) {
|
|
return nil, false
|
|
}
|
|
return o.InputPricePerThousandTokens, true
|
|
}
|
|
|
|
// HasInputPricePerThousandTokens returns a boolean if a field has been set.
|
|
func (o *Provider) HasInputPricePerThousandTokens() bool {
|
|
if o != nil && !IsNil(o.InputPricePerThousandTokens) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInputPricePerThousandTokens gets a reference to the given float32 and assigns it to the InputPricePerThousandTokens field.
|
|
func (o *Provider) SetInputPricePerThousandTokens(v float32) {
|
|
o.InputPricePerThousandTokens = &v
|
|
}
|
|
|
|
// GetIsDefault returns the IsDefault field value if set, zero value otherwise.
|
|
func (o *Provider) GetIsDefault() bool {
|
|
if o == nil || IsNil(o.IsDefault) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsDefault
|
|
}
|
|
|
|
// GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetIsDefaultOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsDefault) {
|
|
return nil, false
|
|
}
|
|
return o.IsDefault, true
|
|
}
|
|
|
|
// HasIsDefault returns a boolean if a field has been set.
|
|
func (o *Provider) HasIsDefault() bool {
|
|
if o != nil && !IsNil(o.IsDefault) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.
|
|
func (o *Provider) SetIsDefault(v bool) {
|
|
o.IsDefault = &v
|
|
}
|
|
|
|
// GetIsRemote returns the IsRemote field value if set, zero value otherwise.
|
|
func (o *Provider) GetIsRemote() bool {
|
|
if o == nil || IsNil(o.IsRemote) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsRemote
|
|
}
|
|
|
|
// GetIsRemoteOk returns a tuple with the IsRemote field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetIsRemoteOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsRemote) {
|
|
return nil, false
|
|
}
|
|
return o.IsRemote, true
|
|
}
|
|
|
|
// HasIsRemote returns a boolean if a field has been set.
|
|
func (o *Provider) HasIsRemote() bool {
|
|
if o != nil && !IsNil(o.IsRemote) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsRemote gets a reference to the given bool and assigns it to the IsRemote field.
|
|
func (o *Provider) SetIsRemote(v bool) {
|
|
o.IsRemote = &v
|
|
}
|
|
|
|
// GetMcpTools returns the McpTools field value if set, zero value otherwise.
|
|
func (o *Provider) GetMcpTools() []AgentMcpTools {
|
|
if o == nil || IsNil(o.McpTools) {
|
|
var ret []AgentMcpTools
|
|
return ret
|
|
}
|
|
return o.McpTools
|
|
}
|
|
|
|
// GetMcpToolsOk returns a tuple with the McpTools field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetMcpToolsOk() ([]AgentMcpTools, bool) {
|
|
if o == nil || IsNil(o.McpTools) {
|
|
return nil, false
|
|
}
|
|
return o.McpTools, true
|
|
}
|
|
|
|
// HasMcpTools returns a boolean if a field has been set.
|
|
func (o *Provider) HasMcpTools() bool {
|
|
if o != nil && !IsNil(o.McpTools) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMcpTools gets a reference to the given []AgentMcpTools and assigns it to the McpTools field.
|
|
func (o *Provider) SetMcpTools(v []AgentMcpTools) {
|
|
o.McpTools = v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *Provider) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *Provider) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *Provider) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetNetwork returns the Network field value if set, zero value otherwise.
|
|
func (o *Provider) GetNetwork() string {
|
|
if o == nil || IsNil(o.Network) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Network
|
|
}
|
|
|
|
// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetNetworkOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Network) {
|
|
return nil, false
|
|
}
|
|
return o.Network, true
|
|
}
|
|
|
|
// HasNetwork returns a boolean if a field has been set.
|
|
func (o *Provider) HasNetwork() bool {
|
|
if o != nil && !IsNil(o.Network) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNetwork gets a reference to the given string and assigns it to the Network field.
|
|
func (o *Provider) SetNetwork(v string) {
|
|
o.Network = &v
|
|
}
|
|
|
|
// GetOutputPricePerThousandTokens returns the OutputPricePerThousandTokens field value if set, zero value otherwise.
|
|
func (o *Provider) GetOutputPricePerThousandTokens() float32 {
|
|
if o == nil || IsNil(o.OutputPricePerThousandTokens) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.OutputPricePerThousandTokens
|
|
}
|
|
|
|
// GetOutputPricePerThousandTokensOk returns a tuple with the OutputPricePerThousandTokens field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetOutputPricePerThousandTokensOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.OutputPricePerThousandTokens) {
|
|
return nil, false
|
|
}
|
|
return o.OutputPricePerThousandTokens, true
|
|
}
|
|
|
|
// HasOutputPricePerThousandTokens returns a boolean if a field has been set.
|
|
func (o *Provider) HasOutputPricePerThousandTokens() bool {
|
|
if o != nil && !IsNil(o.OutputPricePerThousandTokens) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOutputPricePerThousandTokens gets a reference to the given float32 and assigns it to the OutputPricePerThousandTokens field.
|
|
func (o *Provider) SetOutputPricePerThousandTokens(v float32) {
|
|
o.OutputPricePerThousandTokens = &v
|
|
}
|
|
|
|
// GetOwner returns the Owner field value if set, zero value otherwise.
|
|
func (o *Provider) GetOwner() string {
|
|
if o == nil || IsNil(o.Owner) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Owner
|
|
}
|
|
|
|
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetOwnerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Owner) {
|
|
return nil, false
|
|
}
|
|
return o.Owner, true
|
|
}
|
|
|
|
// HasOwner returns a boolean if a field has been set.
|
|
func (o *Provider) HasOwner() bool {
|
|
if o != nil && !IsNil(o.Owner) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwner gets a reference to the given string and assigns it to the Owner field.
|
|
func (o *Provider) SetOwner(v string) {
|
|
o.Owner = &v
|
|
}
|
|
|
|
// GetPresencePenalty returns the PresencePenalty field value if set, zero value otherwise.
|
|
func (o *Provider) GetPresencePenalty() float32 {
|
|
if o == nil || IsNil(o.PresencePenalty) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.PresencePenalty
|
|
}
|
|
|
|
// GetPresencePenaltyOk returns a tuple with the PresencePenalty field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetPresencePenaltyOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.PresencePenalty) {
|
|
return nil, false
|
|
}
|
|
return o.PresencePenalty, true
|
|
}
|
|
|
|
// HasPresencePenalty returns a boolean if a field has been set.
|
|
func (o *Provider) HasPresencePenalty() bool {
|
|
if o != nil && !IsNil(o.PresencePenalty) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPresencePenalty gets a reference to the given float32 and assigns it to the PresencePenalty field.
|
|
func (o *Provider) SetPresencePenalty(v float32) {
|
|
o.PresencePenalty = &v
|
|
}
|
|
|
|
// GetProviderKey returns the ProviderKey field value if set, zero value otherwise.
|
|
func (o *Provider) GetProviderKey() string {
|
|
if o == nil || IsNil(o.ProviderKey) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ProviderKey
|
|
}
|
|
|
|
// GetProviderKeyOk returns a tuple with the ProviderKey field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetProviderKeyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ProviderKey) {
|
|
return nil, false
|
|
}
|
|
return o.ProviderKey, true
|
|
}
|
|
|
|
// HasProviderKey returns a boolean if a field has been set.
|
|
func (o *Provider) HasProviderKey() bool {
|
|
if o != nil && !IsNil(o.ProviderKey) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProviderKey gets a reference to the given string and assigns it to the ProviderKey field.
|
|
func (o *Provider) SetProviderKey(v string) {
|
|
o.ProviderKey = &v
|
|
}
|
|
|
|
// GetProviderUrl returns the ProviderUrl field value if set, zero value otherwise.
|
|
func (o *Provider) GetProviderUrl() string {
|
|
if o == nil || IsNil(o.ProviderUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ProviderUrl
|
|
}
|
|
|
|
// GetProviderUrlOk returns a tuple with the ProviderUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetProviderUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ProviderUrl) {
|
|
return nil, false
|
|
}
|
|
return o.ProviderUrl, true
|
|
}
|
|
|
|
// HasProviderUrl returns a boolean if a field has been set.
|
|
func (o *Provider) HasProviderUrl() bool {
|
|
if o != nil && !IsNil(o.ProviderUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProviderUrl gets a reference to the given string and assigns it to the ProviderUrl field.
|
|
func (o *Provider) SetProviderUrl(v string) {
|
|
o.ProviderUrl = &v
|
|
}
|
|
|
|
// GetRawText returns the RawText field value if set, zero value otherwise.
|
|
func (o *Provider) GetRawText() string {
|
|
if o == nil || IsNil(o.RawText) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RawText
|
|
}
|
|
|
|
// GetRawTextOk returns a tuple with the RawText field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetRawTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RawText) {
|
|
return nil, false
|
|
}
|
|
return o.RawText, true
|
|
}
|
|
|
|
// HasRawText returns a boolean if a field has been set.
|
|
func (o *Provider) HasRawText() bool {
|
|
if o != nil && !IsNil(o.RawText) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRawText gets a reference to the given string and assigns it to the RawText field.
|
|
func (o *Provider) SetRawText(v string) {
|
|
o.RawText = &v
|
|
}
|
|
|
|
// GetRegion returns the Region field value if set, zero value otherwise.
|
|
func (o *Provider) GetRegion() string {
|
|
if o == nil || IsNil(o.Region) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Region
|
|
}
|
|
|
|
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetRegionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Region) {
|
|
return nil, false
|
|
}
|
|
return o.Region, true
|
|
}
|
|
|
|
// HasRegion returns a boolean if a field has been set.
|
|
func (o *Provider) HasRegion() bool {
|
|
if o != nil && !IsNil(o.Region) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRegion gets a reference to the given string and assigns it to the Region field.
|
|
func (o *Provider) SetRegion(v string) {
|
|
o.Region = &v
|
|
}
|
|
|
|
// GetResultSummary returns the ResultSummary field value if set, zero value otherwise.
|
|
func (o *Provider) GetResultSummary() string {
|
|
if o == nil || IsNil(o.ResultSummary) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ResultSummary
|
|
}
|
|
|
|
// GetResultSummaryOk returns a tuple with the ResultSummary field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetResultSummaryOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ResultSummary) {
|
|
return nil, false
|
|
}
|
|
return o.ResultSummary, true
|
|
}
|
|
|
|
// HasResultSummary returns a boolean if a field has been set.
|
|
func (o *Provider) HasResultSummary() bool {
|
|
if o != nil && !IsNil(o.ResultSummary) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetResultSummary gets a reference to the given string and assigns it to the ResultSummary field.
|
|
func (o *Provider) SetResultSummary(v string) {
|
|
o.ResultSummary = &v
|
|
}
|
|
|
|
// GetRunner returns the Runner field value if set, zero value otherwise.
|
|
func (o *Provider) GetRunner() string {
|
|
if o == nil || IsNil(o.Runner) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Runner
|
|
}
|
|
|
|
// GetRunnerOk returns a tuple with the Runner field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetRunnerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Runner) {
|
|
return nil, false
|
|
}
|
|
return o.Runner, true
|
|
}
|
|
|
|
// HasRunner returns a boolean if a field has been set.
|
|
func (o *Provider) HasRunner() bool {
|
|
if o != nil && !IsNil(o.Runner) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRunner gets a reference to the given string and assigns it to the Runner field.
|
|
func (o *Provider) SetRunner(v string) {
|
|
o.Runner = &v
|
|
}
|
|
|
|
// GetSignCert returns the SignCert field value if set, zero value otherwise.
|
|
func (o *Provider) GetSignCert() string {
|
|
if o == nil || IsNil(o.SignCert) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SignCert
|
|
}
|
|
|
|
// GetSignCertOk returns a tuple with the SignCert field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetSignCertOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SignCert) {
|
|
return nil, false
|
|
}
|
|
return o.SignCert, true
|
|
}
|
|
|
|
// HasSignCert returns a boolean if a field has been set.
|
|
func (o *Provider) HasSignCert() bool {
|
|
if o != nil && !IsNil(o.SignCert) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignCert gets a reference to the given string and assigns it to the SignCert field.
|
|
func (o *Provider) SetSignCert(v string) {
|
|
o.SignCert = &v
|
|
}
|
|
|
|
// GetSignKey returns the SignKey field value if set, zero value otherwise.
|
|
func (o *Provider) GetSignKey() string {
|
|
if o == nil || IsNil(o.SignKey) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SignKey
|
|
}
|
|
|
|
// GetSignKeyOk returns a tuple with the SignKey field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetSignKeyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SignKey) {
|
|
return nil, false
|
|
}
|
|
return o.SignKey, true
|
|
}
|
|
|
|
// HasSignKey returns a boolean if a field has been set.
|
|
func (o *Provider) HasSignKey() bool {
|
|
if o != nil && !IsNil(o.SignKey) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignKey gets a reference to the given string and assigns it to the SignKey field.
|
|
func (o *Provider) SetSignKey(v string) {
|
|
o.SignKey = &v
|
|
}
|
|
|
|
// GetState returns the State field value if set, zero value otherwise.
|
|
func (o *Provider) GetState() string {
|
|
if o == nil || IsNil(o.State) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.State
|
|
}
|
|
|
|
// GetStateOk returns a tuple with the State field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetStateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.State) {
|
|
return nil, false
|
|
}
|
|
return o.State, true
|
|
}
|
|
|
|
// HasState returns a boolean if a field has been set.
|
|
func (o *Provider) HasState() bool {
|
|
if o != nil && !IsNil(o.State) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetState gets a reference to the given string and assigns it to the State field.
|
|
func (o *Provider) SetState(v string) {
|
|
o.State = &v
|
|
}
|
|
|
|
// GetSubType returns the SubType field value if set, zero value otherwise.
|
|
func (o *Provider) GetSubType() string {
|
|
if o == nil || IsNil(o.SubType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SubType
|
|
}
|
|
|
|
// GetSubTypeOk returns a tuple with the SubType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetSubTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SubType) {
|
|
return nil, false
|
|
}
|
|
return o.SubType, true
|
|
}
|
|
|
|
// HasSubType returns a boolean if a field has been set.
|
|
func (o *Provider) HasSubType() bool {
|
|
if o != nil && !IsNil(o.SubType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSubType gets a reference to the given string and assigns it to the SubType field.
|
|
func (o *Provider) SetSubType(v string) {
|
|
o.SubType = &v
|
|
}
|
|
|
|
// GetTarget returns the Target field value if set, zero value otherwise.
|
|
func (o *Provider) GetTarget() string {
|
|
if o == nil || IsNil(o.Target) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Target
|
|
}
|
|
|
|
// GetTargetOk returns a tuple with the Target field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetTargetOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Target) {
|
|
return nil, false
|
|
}
|
|
return o.Target, true
|
|
}
|
|
|
|
// HasTarget returns a boolean if a field has been set.
|
|
func (o *Provider) HasTarget() bool {
|
|
if o != nil && !IsNil(o.Target) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTarget gets a reference to the given string and assigns it to the Target field.
|
|
func (o *Provider) SetTarget(v string) {
|
|
o.Target = &v
|
|
}
|
|
|
|
// GetTargetMode returns the TargetMode field value if set, zero value otherwise.
|
|
func (o *Provider) GetTargetMode() string {
|
|
if o == nil || IsNil(o.TargetMode) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.TargetMode
|
|
}
|
|
|
|
// GetTargetModeOk returns a tuple with the TargetMode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetTargetModeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.TargetMode) {
|
|
return nil, false
|
|
}
|
|
return o.TargetMode, true
|
|
}
|
|
|
|
// HasTargetMode returns a boolean if a field has been set.
|
|
func (o *Provider) HasTargetMode() bool {
|
|
if o != nil && !IsNil(o.TargetMode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTargetMode gets a reference to the given string and assigns it to the TargetMode field.
|
|
func (o *Provider) SetTargetMode(v string) {
|
|
o.TargetMode = &v
|
|
}
|
|
|
|
// GetTemperature returns the Temperature field value if set, zero value otherwise.
|
|
func (o *Provider) GetTemperature() float32 {
|
|
if o == nil || IsNil(o.Temperature) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.Temperature
|
|
}
|
|
|
|
// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetTemperatureOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.Temperature) {
|
|
return nil, false
|
|
}
|
|
return o.Temperature, true
|
|
}
|
|
|
|
// HasTemperature returns a boolean if a field has been set.
|
|
func (o *Provider) HasTemperature() bool {
|
|
if o != nil && !IsNil(o.Temperature) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTemperature gets a reference to the given float32 and assigns it to the Temperature field.
|
|
func (o *Provider) SetTemperature(v float32) {
|
|
o.Temperature = &v
|
|
}
|
|
|
|
// GetTestContent returns the TestContent field value if set, zero value otherwise.
|
|
func (o *Provider) GetTestContent() string {
|
|
if o == nil || IsNil(o.TestContent) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.TestContent
|
|
}
|
|
|
|
// GetTestContentOk returns a tuple with the TestContent field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetTestContentOk() (*string, bool) {
|
|
if o == nil || IsNil(o.TestContent) {
|
|
return nil, false
|
|
}
|
|
return o.TestContent, true
|
|
}
|
|
|
|
// HasTestContent returns a boolean if a field has been set.
|
|
func (o *Provider) HasTestContent() bool {
|
|
if o != nil && !IsNil(o.TestContent) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTestContent gets a reference to the given string and assigns it to the TestContent field.
|
|
func (o *Provider) SetTestContent(v string) {
|
|
o.TestContent = &v
|
|
}
|
|
|
|
// GetText returns the Text field value if set, zero value otherwise.
|
|
func (o *Provider) GetText() string {
|
|
if o == nil || IsNil(o.Text) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Text
|
|
}
|
|
|
|
// 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 (o *Provider) GetTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Text) {
|
|
return nil, false
|
|
}
|
|
return o.Text, true
|
|
}
|
|
|
|
// HasText returns a boolean if a field has been set.
|
|
func (o *Provider) HasText() bool {
|
|
if o != nil && !IsNil(o.Text) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetText gets a reference to the given string and assigns it to the Text field.
|
|
func (o *Provider) SetText(v string) {
|
|
o.Text = &v
|
|
}
|
|
|
|
// GetTopK returns the TopK field value if set, zero value otherwise.
|
|
func (o *Provider) GetTopK() int32 {
|
|
if o == nil || IsNil(o.TopK) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.TopK
|
|
}
|
|
|
|
// GetTopKOk returns a tuple with the TopK field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetTopKOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.TopK) {
|
|
return nil, false
|
|
}
|
|
return o.TopK, true
|
|
}
|
|
|
|
// HasTopK returns a boolean if a field has been set.
|
|
func (o *Provider) HasTopK() bool {
|
|
if o != nil && !IsNil(o.TopK) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTopK gets a reference to the given int32 and assigns it to the TopK field.
|
|
func (o *Provider) SetTopK(v int32) {
|
|
o.TopK = &v
|
|
}
|
|
|
|
// GetTopP returns the TopP field value if set, zero value otherwise.
|
|
func (o *Provider) GetTopP() float32 {
|
|
if o == nil || IsNil(o.TopP) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.TopP
|
|
}
|
|
|
|
// GetTopPOk returns a tuple with the TopP field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetTopPOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.TopP) {
|
|
return nil, false
|
|
}
|
|
return o.TopP, true
|
|
}
|
|
|
|
// HasTopP returns a boolean if a field has been set.
|
|
func (o *Provider) HasTopP() bool {
|
|
if o != nil && !IsNil(o.TopP) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTopP gets a reference to the given float32 and assigns it to the TopP field.
|
|
func (o *Provider) SetTopP(v float32) {
|
|
o.TopP = &v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise.
|
|
func (o *Provider) GetType() string {
|
|
if o == nil || IsNil(o.Type) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Type
|
|
}
|
|
|
|
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Type) {
|
|
return nil, false
|
|
}
|
|
return o.Type, true
|
|
}
|
|
|
|
// HasType returns a boolean if a field has been set.
|
|
func (o *Provider) HasType() bool {
|
|
if o != nil && !IsNil(o.Type) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetType gets a reference to the given string and assigns it to the Type field.
|
|
func (o *Provider) SetType(v string) {
|
|
o.Type = &v
|
|
}
|
|
|
|
// GetUserCert returns the UserCert field value if set, zero value otherwise.
|
|
func (o *Provider) GetUserCert() string {
|
|
if o == nil || IsNil(o.UserCert) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserCert
|
|
}
|
|
|
|
// GetUserCertOk returns a tuple with the UserCert field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetUserCertOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserCert) {
|
|
return nil, false
|
|
}
|
|
return o.UserCert, true
|
|
}
|
|
|
|
// HasUserCert returns a boolean if a field has been set.
|
|
func (o *Provider) HasUserCert() bool {
|
|
if o != nil && !IsNil(o.UserCert) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserCert gets a reference to the given string and assigns it to the UserCert field.
|
|
func (o *Provider) SetUserCert(v string) {
|
|
o.UserCert = &v
|
|
}
|
|
|
|
// GetUserKey returns the UserKey field value if set, zero value otherwise.
|
|
func (o *Provider) GetUserKey() string {
|
|
if o == nil || IsNil(o.UserKey) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UserKey
|
|
}
|
|
|
|
// GetUserKeyOk returns a tuple with the UserKey field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Provider) GetUserKeyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UserKey) {
|
|
return nil, false
|
|
}
|
|
return o.UserKey, true
|
|
}
|
|
|
|
// HasUserKey returns a boolean if a field has been set.
|
|
func (o *Provider) HasUserKey() bool {
|
|
if o != nil && !IsNil(o.UserKey) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserKey gets a reference to the given string and assigns it to the UserKey field.
|
|
func (o *Provider) SetUserKey(v string) {
|
|
o.UserKey = &v
|
|
}
|
|
|
|
func (o Provider) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o Provider) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ApiVersion) {
|
|
toSerialize["apiVersion"] = o.ApiVersion
|
|
}
|
|
if !IsNil(o.Asset) {
|
|
toSerialize["asset"] = o.Asset
|
|
}
|
|
if !IsNil(o.BrowserUrl) {
|
|
toSerialize["browserUrl"] = o.BrowserUrl
|
|
}
|
|
if !IsNil(o.Category) {
|
|
toSerialize["category"] = o.Category
|
|
}
|
|
if !IsNil(o.Chain) {
|
|
toSerialize["chain"] = o.Chain
|
|
}
|
|
if !IsNil(o.ClientId) {
|
|
toSerialize["clientId"] = o.ClientId
|
|
}
|
|
if !IsNil(o.ClientSecret) {
|
|
toSerialize["clientSecret"] = o.ClientSecret
|
|
}
|
|
if !IsNil(o.CompatibleProvider) {
|
|
toSerialize["compatibleProvider"] = o.CompatibleProvider
|
|
}
|
|
if !IsNil(o.ConfigText) {
|
|
toSerialize["configText"] = o.ConfigText
|
|
}
|
|
if !IsNil(o.ContractMethod) {
|
|
toSerialize["contractMethod"] = o.ContractMethod
|
|
}
|
|
if !IsNil(o.ContractName) {
|
|
toSerialize["contractName"] = o.ContractName
|
|
}
|
|
if !IsNil(o.CreatedTime) {
|
|
toSerialize["createdTime"] = o.CreatedTime
|
|
}
|
|
if !IsNil(o.Currency) {
|
|
toSerialize["currency"] = o.Currency
|
|
}
|
|
if !IsNil(o.DisplayName) {
|
|
toSerialize["displayName"] = o.DisplayName
|
|
}
|
|
if !IsNil(o.EnableThinking) {
|
|
toSerialize["enableThinking"] = o.EnableThinking
|
|
}
|
|
if !IsNil(o.ErrorText) {
|
|
toSerialize["errorText"] = o.ErrorText
|
|
}
|
|
if !IsNil(o.Flavor) {
|
|
toSerialize["flavor"] = o.Flavor
|
|
}
|
|
if !IsNil(o.FrequencyPenalty) {
|
|
toSerialize["frequencyPenalty"] = o.FrequencyPenalty
|
|
}
|
|
if !IsNil(o.InputPricePerThousandTokens) {
|
|
toSerialize["inputPricePerThousandTokens"] = o.InputPricePerThousandTokens
|
|
}
|
|
if !IsNil(o.IsDefault) {
|
|
toSerialize["isDefault"] = o.IsDefault
|
|
}
|
|
if !IsNil(o.IsRemote) {
|
|
toSerialize["isRemote"] = o.IsRemote
|
|
}
|
|
if !IsNil(o.McpTools) {
|
|
toSerialize["mcpTools"] = o.McpTools
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Network) {
|
|
toSerialize["network"] = o.Network
|
|
}
|
|
if !IsNil(o.OutputPricePerThousandTokens) {
|
|
toSerialize["outputPricePerThousandTokens"] = o.OutputPricePerThousandTokens
|
|
}
|
|
if !IsNil(o.Owner) {
|
|
toSerialize["owner"] = o.Owner
|
|
}
|
|
if !IsNil(o.PresencePenalty) {
|
|
toSerialize["presencePenalty"] = o.PresencePenalty
|
|
}
|
|
if !IsNil(o.ProviderKey) {
|
|
toSerialize["providerKey"] = o.ProviderKey
|
|
}
|
|
if !IsNil(o.ProviderUrl) {
|
|
toSerialize["providerUrl"] = o.ProviderUrl
|
|
}
|
|
if !IsNil(o.RawText) {
|
|
toSerialize["rawText"] = o.RawText
|
|
}
|
|
if !IsNil(o.Region) {
|
|
toSerialize["region"] = o.Region
|
|
}
|
|
if !IsNil(o.ResultSummary) {
|
|
toSerialize["resultSummary"] = o.ResultSummary
|
|
}
|
|
if !IsNil(o.Runner) {
|
|
toSerialize["runner"] = o.Runner
|
|
}
|
|
if !IsNil(o.SignCert) {
|
|
toSerialize["signCert"] = o.SignCert
|
|
}
|
|
if !IsNil(o.SignKey) {
|
|
toSerialize["signKey"] = o.SignKey
|
|
}
|
|
if !IsNil(o.State) {
|
|
toSerialize["state"] = o.State
|
|
}
|
|
if !IsNil(o.SubType) {
|
|
toSerialize["subType"] = o.SubType
|
|
}
|
|
if !IsNil(o.Target) {
|
|
toSerialize["target"] = o.Target
|
|
}
|
|
if !IsNil(o.TargetMode) {
|
|
toSerialize["targetMode"] = o.TargetMode
|
|
}
|
|
if !IsNil(o.Temperature) {
|
|
toSerialize["temperature"] = o.Temperature
|
|
}
|
|
if !IsNil(o.TestContent) {
|
|
toSerialize["testContent"] = o.TestContent
|
|
}
|
|
if !IsNil(o.Text) {
|
|
toSerialize["text"] = o.Text
|
|
}
|
|
if !IsNil(o.TopK) {
|
|
toSerialize["topK"] = o.TopK
|
|
}
|
|
if !IsNil(o.TopP) {
|
|
toSerialize["topP"] = o.TopP
|
|
}
|
|
if !IsNil(o.Type) {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if !IsNil(o.UserCert) {
|
|
toSerialize["userCert"] = o.UserCert
|
|
}
|
|
if !IsNil(o.UserKey) {
|
|
toSerialize["userKey"] = o.UserKey
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *Provider) UnmarshalJSON(data []byte) (err error) {
|
|
varProvider := _Provider{}
|
|
|
|
err = json.Unmarshal(data, &varProvider)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = Provider(varProvider)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "apiVersion")
|
|
delete(additionalProperties, "asset")
|
|
delete(additionalProperties, "browserUrl")
|
|
delete(additionalProperties, "category")
|
|
delete(additionalProperties, "chain")
|
|
delete(additionalProperties, "clientId")
|
|
delete(additionalProperties, "clientSecret")
|
|
delete(additionalProperties, "compatibleProvider")
|
|
delete(additionalProperties, "configText")
|
|
delete(additionalProperties, "contractMethod")
|
|
delete(additionalProperties, "contractName")
|
|
delete(additionalProperties, "createdTime")
|
|
delete(additionalProperties, "currency")
|
|
delete(additionalProperties, "displayName")
|
|
delete(additionalProperties, "enableThinking")
|
|
delete(additionalProperties, "errorText")
|
|
delete(additionalProperties, "flavor")
|
|
delete(additionalProperties, "frequencyPenalty")
|
|
delete(additionalProperties, "inputPricePerThousandTokens")
|
|
delete(additionalProperties, "isDefault")
|
|
delete(additionalProperties, "isRemote")
|
|
delete(additionalProperties, "mcpTools")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "network")
|
|
delete(additionalProperties, "outputPricePerThousandTokens")
|
|
delete(additionalProperties, "owner")
|
|
delete(additionalProperties, "presencePenalty")
|
|
delete(additionalProperties, "providerKey")
|
|
delete(additionalProperties, "providerUrl")
|
|
delete(additionalProperties, "rawText")
|
|
delete(additionalProperties, "region")
|
|
delete(additionalProperties, "resultSummary")
|
|
delete(additionalProperties, "runner")
|
|
delete(additionalProperties, "signCert")
|
|
delete(additionalProperties, "signKey")
|
|
delete(additionalProperties, "state")
|
|
delete(additionalProperties, "subType")
|
|
delete(additionalProperties, "target")
|
|
delete(additionalProperties, "targetMode")
|
|
delete(additionalProperties, "temperature")
|
|
delete(additionalProperties, "testContent")
|
|
delete(additionalProperties, "text")
|
|
delete(additionalProperties, "topK")
|
|
delete(additionalProperties, "topP")
|
|
delete(additionalProperties, "type")
|
|
delete(additionalProperties, "userCert")
|
|
delete(additionalProperties, "userKey")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableProvider struct {
|
|
value *Provider
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableProvider) Get() *Provider {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableProvider) Set(val *Provider) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableProvider) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableProvider) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableProvider(val *Provider) *NullableProvider {
|
|
return &NullableProvider{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableProvider) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableProvider) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|