Documentation
¶
Index ¶
- Constants
- func ErrColumnNameOrIdEmpty() error
- func ErrColumnNotFound(input string) error
- func ErrTableNameOrIdEmpty() error
- func ErrTableNotFound(input string) error
- func GetLinkedCellValue(ctx context.Context, db *ent.Client, column *ent.TableColumn, linkedRow string) (*schema.CellValue, error)
- type AISource
- type InvalidSource
- type LinkedSource
- type ListSource
- type Source
Constants ¶
View Source
const OptionGenMaxTokens = 3000
Variables ¶
This section is empty.
Functions ¶
func ErrColumnNameOrIdEmpty ¶
func ErrColumnNameOrIdEmpty() error
func ErrColumnNotFound ¶
func ErrTableNameOrIdEmpty ¶
func ErrTableNameOrIdEmpty() error
func ErrTableNotFound ¶
Types ¶
type AISource ¶
type AISource struct {
Type string `json:"type"`
Prompt string `json:"prompt"`
Options []string `json:"options"`
// contains filtered or unexported fields
}
type InvalidSource ¶
type InvalidSource struct {
// contains filtered or unexported fields
}
func (*InvalidSource) Error ¶
func (e *InvalidSource) Error() string
type LinkedSource ¶
type LinkedSource struct {
Type string `json:"type"`
Table string `json:"table"`
Column string `json:"column"`
ContextColumns []string `json:"context_columns"`
// contains filtered or unexported fields
}
func (*LinkedSource) Init ¶
func (ls *LinkedSource) Init(ctx context.Context, db *ent.Client, column *ent.TableColumn) error
type ListSource ¶
Click to show internal directories.
Click to hide internal directories.