Documentation
¶
Index ¶
- func AiUsageSliceToJSON(e []AiUsage) json.RawMessage
- func AiUsageToJSON(e AiUsage) json.RawMessage
- func ContextSliceToJSON(in []Context) json.RawMessage
- func ProviderSliceToJSON(in []Provider) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- type AiUsage
- func (e AiUsage) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e AiUsage) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
- func (e AiUsage) EntityIdentifier() string
- func (e AiUsage) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e AiUsage) IsDependant() bool
- func (e AiUsage) OrderedFieldIdentifiers() []string
- func (e AiUsage) PrimaryKeyIdentifier() string
- func (e AiUsage) PrimaryKeyValue() string
- func (e AiUsage) String() string
- func (e AiUsage) ToJSON() json.RawMessage
- type Context
- type Provider
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AiUsageSliceToJSON ¶
func AiUsageSliceToJSON(e []AiUsage) json.RawMessage
func AiUsageToJSON ¶
func AiUsageToJSON(e AiUsage) json.RawMessage
func ContextSliceToJSON ¶
func ContextSliceToJSON(in []Context) json.RawMessage
func ProviderSliceToJSON ¶
func ProviderSliceToJSON(in []Provider) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
Types ¶
type AiUsage ¶
type AiUsage struct {
UUID uuid.UUID `json:"uuid"`
UserUUID uuid.UUID `json:"user_uuid"`
ProjectUUID uuid.UUID `json:"project_uuid"`
ProjectVersionUUID uuid.UUID `json:"project_version_uuid"`
UserPrompt string `json:"user_prompt"`
Step string `json:"step"`
Context Context `json:"context"`
Provider Provider `json:"provider"`
InputTokens int64 `json:"input_tokens"`
OutputTokens int64 `json:"output_tokens"`
Status Status `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
CreatedByUUID uuid.UUID `json:"created_by_uuid"`
UpdatedByUUID uuid.UUID `json:"updated_by_uuid"`
}
func AiUsageFromJSON ¶
func AiUsageFromJSON(data json.RawMessage) AiUsage
func AiUsageSliceFromJSON ¶
func AiUsageSliceFromJSON(data json.RawMessage) []AiUsage
func NewAiUsageWithRandomValues ¶
func NewAiUsageWithRandomValues() AiUsage
func (AiUsage) ArrayFieldIdentifierToType ¶
func (AiUsage) DependantFieldIdentifierToTypeMap ¶
func (AiUsage) EntityIdentifier ¶
func (AiUsage) FieldIdentfierToTypeMap ¶
func (AiUsage) IsDependant ¶
func (AiUsage) OrderedFieldIdentifiers ¶
func (AiUsage) PrimaryKeyIdentifier ¶
func (AiUsage) PrimaryKeyValue ¶
func (AiUsage) ToJSON ¶
func (e AiUsage) ToJSON() json.RawMessage
type Context ¶
type Context int64
func ContextFromString ¶
func JSONToContextSlice ¶
func JSONToContextSlice(in json.RawMessage) []Context
type Provider ¶
type Provider int64
func JSONToProviderSlice ¶
func JSONToProviderSlice(in json.RawMessage) []Provider
func ProviderFromString ¶
type Status ¶
type Status int64
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
Click to show internal directories.
Click to hide internal directories.