2.2 KiB
OpenaiTool
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Function | Pointer to OpenaiFunctionDefinition | [optional] | |
| Type | Pointer to string | [optional] |
Methods
NewOpenaiTool
func NewOpenaiTool() *OpenaiTool
NewOpenaiTool instantiates a new OpenaiTool 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
NewOpenaiToolWithDefaults
func NewOpenaiToolWithDefaults() *OpenaiTool
NewOpenaiToolWithDefaults instantiates a new OpenaiTool 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
GetFunction
func (o *OpenaiTool) GetFunction() OpenaiFunctionDefinition
GetFunction returns the Function field if non-nil, zero value otherwise.
GetFunctionOk
func (o *OpenaiTool) GetFunctionOk() (*OpenaiFunctionDefinition, bool)
GetFunctionOk returns a tuple with the Function field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFunction
func (o *OpenaiTool) SetFunction(v OpenaiFunctionDefinition)
SetFunction sets Function field to given value.
HasFunction
func (o *OpenaiTool) HasFunction() bool
HasFunction returns a boolean if a field has been set.
GetType
func (o *OpenaiTool) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
GetTypeOk
func (o *OpenaiTool) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetType
func (o *OpenaiTool) SetType(v string)
SetType sets Type field to given value.
HasType
func (o *OpenaiTool) HasType() bool
HasType returns a boolean if a field has been set.