2023-06-17 01:24:46 +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 sfgate_models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/go-openapi/strfmt"
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
"github.com/go-openapi/swag/jsonutils"
|
2023-06-17 01:24:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
}
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
return jsonutils.WriteJSON(m)
|
2023-06-17 01:24:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnmarshalBinary interface implementation
|
|
|
|
|
func (m *PromptAnswer) UnmarshalBinary(b []byte) error {
|
|
|
|
|
var res PromptAnswer
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := jsonutils.ReadJSON(b, &res); err != nil {
|
2023-06-17 01:24:46 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
*m = res
|
|
|
|
|
return nil
|
|
|
|
|
}
|