Versions in this module Expand all Collapse all v1 v1.0.2 Aug 23, 2025 v1.0.1 Aug 23, 2025 Changes in this version + type ChatHandler struct + func NewChatHandler(cmd *cli.Command, chatID string) (*ChatHandler, error) + func (h *ChatHandler) Handle(ctx context.Context, cmd *cli.Command, prompt string) (string, error) + type ChatSession struct + func NewChatSession(storagePath string) (*ChatSession, error) + func (c *ChatSession) Wrap(...) ... + type Content struct + Text string + Type string + type DefaultHandler struct + func NewDefaultHandler(cmd *cli.Command) (*DefaultHandler, error) + func (h *DefaultHandler) Handle(ctx context.Context, cmd *cli.Command, prompt string) (string, error) + type GeminiChatHandler struct + func NewGeminiChatHandler(ctx context.Context, apiKey string, model string) (*GeminiChatHandler, error) + func (h *GeminiChatHandler) Handle(ctx context.Context, cmd *cli.Command, prompt string) (string, error) + type Handler interface + Handle func(ctx context.Context, cmd *cli.Command, prompt string) (string, error) + type Message struct + Content interface{} + Role string + type Root struct + Messages []Message + Model string