Documentation
¶
Index ¶
- type Handler
- func (h *Handler) GetChatMessages(ctx context.Context, req *frontendapi.GetChatMessagesRequest) (*frontendapi.GetChatMessagesResponse, error)
- func (h *Handler) GetChats(ctx context.Context, _ *frontendapi.GetChatsRequest) (*frontendapi.GetChatsResponse, error)
- func (h *Handler) SendMessage(ctx context.Context, req *frontendapi.SendMessageRequest) (*frontendapi.SendMessageResponse, error)
- func (h *Handler) StartChat(ctx context.Context, _ *frontendapi.StartChatRequest) (*frontendapi.StartChatResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(client *firestore.Client, model *genai.GenerativeModel) *Handler
New returns a Handler for chatting.
func (*Handler) GetChatMessages ¶
func (h *Handler) GetChatMessages(ctx context.Context, req *frontendapi.GetChatMessagesRequest) (*frontendapi.GetChatMessagesResponse, error)
func (*Handler) GetChats ¶
func (h *Handler) GetChats(ctx context.Context, _ *frontendapi.GetChatsRequest) (*frontendapi.GetChatsResponse, error)
func (*Handler) SendMessage ¶
func (h *Handler) SendMessage(ctx context.Context, req *frontendapi.SendMessageRequest) (*frontendapi.SendMessageResponse, error)
func (*Handler) StartChat ¶
func (h *Handler) StartChat(ctx context.Context, _ *frontendapi.StartChatRequest) (*frontendapi.StartChatResponse, error)
Click to show internal directories.
Click to hide internal directories.