// 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

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag/jsonutils"
)

// 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 jsonutils.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *PromptAnswer) UnmarshalBinary(b []byte) error {
	var res PromptAnswer
	if err := jsonutils.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
