lib/api/members/members_models/prompt.go

124 lines
3.0 KiB
Go
Raw Normal View History

2023-06-04 23:54:48 +00:00
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package members_models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// Prompt A prompt
//
// swagger:model prompt
type Prompt struct {
// The ID of the user who created the prompt
2023-06-05 19:44:18 +00:00
CreatedByID *string `json:"CreatedByID,omitempty"`
2023-06-04 23:54:48 +00:00
// The date the prompt was created
2023-06-05 19:44:18 +00:00
CreatedDate *string `json:"CreatedDate,omitempty"`
2023-06-04 23:54:48 +00:00
// Record Id
ID string `json:"ID,omitempty"`
// The icon for the prompt
2023-06-05 19:44:18 +00:00
Icon *string `json:"Icon,omitempty"`
2023-06-04 23:54:48 +00:00
// The alt text for the prompt image
2023-06-05 19:44:18 +00:00
ImageAltText *string `json:"ImageAltText,omitempty"`
2023-06-04 23:54:48 +00:00
// The URL of the prompt image
2023-06-05 19:44:18 +00:00
ImageURL *string `json:"ImageURL,omitempty"`
2023-06-04 23:54:48 +00:00
// The ID of the user who last modified the prompt
2023-06-05 19:44:18 +00:00
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
2023-06-04 23:54:48 +00:00
// The date the prompt was last modified
2023-06-05 19:44:18 +00:00
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
// The logo for the prompt
Logo *string `json:"Logo,omitempty"`
2023-06-17 01:24:46 +00:00
// The model for the prompt
Model *string `json:"Model,omitempty"`
// The name of the prompt
Name *string `json:"Name,omitempty"`
// The order of the prompt
Order *float64 `json:"Order,omitempty"`
// A list of parameters encoded as JSON
Parameters *string `json:"Parameters,omitempty"`
2023-06-05 19:44:18 +00:00
// The prompt text
Prompt *string `json:"Prompt,omitempty"`
2023-06-04 23:54:48 +00:00
// The ID of the prompt category
2023-06-05 19:44:18 +00:00
PromptCategoryID *string `json:"PromptCategoryID,omitempty"`
2023-06-04 23:54:48 +00:00
// A list of research project IDs
ResearchProjectIDs []string `json:"ResearchProjectIDs"`
// The slug for the prompt
2023-06-05 19:44:18 +00:00
Slug *string `json:"Slug,omitempty"`
2023-06-04 23:54:48 +00:00
2023-06-17 01:24:46 +00:00
// The System prompt to be used
System *string `json:"System,omitempty"`
2023-06-04 23:54:48 +00:00
// A list of tags
Tags []string `json:"Tags"`
2023-06-17 01:24:46 +00:00
// The temperature of the prompt
Temperature *float64 `json:"Temperature,omitempty"`
2023-06-05 19:44:18 +00:00
// The ID of the tenant
TenantID *string `json:"TenantID,omitempty"`
// The title of the prompt
Title *string `json:"Title,omitempty"`
2023-06-04 23:54:48 +00:00
// The number of times the prompt has been used
2023-06-05 19:44:18 +00:00
UsedCount *float64 `json:"UsedCount,omitempty"`
// The ID of the user who created the prompt
UserID *string `json:"UserID,omitempty"`
2023-06-04 23:54:48 +00:00
}
// Validate validates this prompt
func (m *Prompt) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this prompt based on context it is used
func (m *Prompt) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Prompt) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Prompt) UnmarshalBinary(b []byte) error {
var res Prompt
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}