Documentation ¶
Index ¶
- type AddMessageParams
- type Chat
- type CreateChatParams
- type DBTX
- type Message
- type Queries
- func (q *Queries) AddMessage(ctx context.Context, arg AddMessageParams) error
- func (q *Queries) CreateChat(ctx context.Context, arg CreateChatParams) error
- func (q *Queries) DeleteChatMessages(ctx context.Context, chatID string) error
- func (q *Queries) DeleteErasedChatMessages(ctx context.Context, chatID string) error
- func (q *Queries) FindChatByID(ctx context.Context, id string) (Chat, error)
- func (q *Queries) FindErasedMessagesByChatID(ctx context.Context, chatID string) ([]Message, error)
- func (q *Queries) FindMessagesByChatID(ctx context.Context, chatID string) ([]Message, error)
- func (q *Queries) SaveChat(ctx context.Context, arg SaveChatParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SaveChatParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMessageParams ¶
type CreateChatParams ¶
type CreateChatParams struct { ID string UserID string InitialMessageID string Status string TokenUsage int32 Model string ModelMaxTokens int32 Temperature float64 TopP float64 N int32 Stop string MaxTokens int32 PresencePenalty float64 FrequencyPenalty float64 CreatedAt time.Time UpdatedAt time.Time }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddMessage ¶
func (q *Queries) AddMessage(ctx context.Context, arg AddMessageParams) error
func (*Queries) CreateChat ¶
func (q *Queries) CreateChat(ctx context.Context, arg CreateChatParams) error
func (*Queries) DeleteChatMessages ¶
func (*Queries) DeleteErasedChatMessages ¶
func (*Queries) FindChatByID ¶
func (*Queries) FindErasedMessagesByChatID ¶
func (*Queries) FindMessagesByChatID ¶
type SaveChatParams ¶
Click to show internal directories.
Click to hide internal directories.