lib/api/members/members_models/prompt_answer.go

100 lines
2.4 KiB
Go
Raw Normal View History

2023-09-23 17:19:44 +00:00
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2023 by Vernon Keenan
// 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"
)
// PromptAnswer A prompt response/answer
//
// swagger:model promptAnswer
type PromptAnswer struct {
// The answer to the prompt
Answer *string `json:"Answer,omitempty"`
// The ID of the user who created the prompt tag
CreatedByID *string `json:"CreatedByID,omitempty"`
// The date the prompt tag was created
CreatedDate *string `json:"CreatedDate,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// The ID of the user who last modified the prompt tag
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
// The date the prompt tag was last modified
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
// The name of the Answer
Name *string `json:"Name,omitempty"`
// The prompt tag name
ParameterValues *string `json:"ParameterValues,omitempty"`
// The ID of the prompt
PromptID *string `json:"PromptID,omitempty"`
// The prompt used
PromptUsed *string `json:"PromptUsed,omitempty"`
// The system used
SystemUsed *string `json:"SystemUsed,omitempty"`
// The temperature used
Temperature *float64 `json:"Temperature,omitempty"`
// The ID of the tenant
TenantID *string `json:"TenantID,omitempty"`
// The tokens used
TokensUsed *float64 `json:"TokensUsed,omitempty"`
// The type of answer to the prompt
Type *string `json:"Type,omitempty"`
// The ID of the user
UserID *string `json:"UserID,omitempty"`
}
// Validate validates this prompt answer
func (m *PromptAnswer) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this prompt answer based on context it is used
func (m *PromptAnswer) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *PromptAnswer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PromptAnswer) UnmarshalBinary(b []byte) error {
var res PromptAnswer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}