Documentation ¶
Index ¶
- Variables
- func NewModel() func(NewModelParams) *Model
- type FeedbackSummarizationsReactionsCounts
- type Model
- func (m *Model) FeedbackReactSummarizationsToChatIDAndLogID(chatID int64, logID uuid.UUID, userID int64, ...) error
- func (m *Model) FindFeedbackSummarizationsReactionCountsForChatIDAndLogID(chatID int64, logID uuid.UUID) (FeedbackSummarizationsReactionsCounts, error)
- func (m *Model) HasFeedbackReactSummarizationsToChatIDAndLogID(chatID int64, logID uuid.UUID, userID int64, ...) (bool, error)
- func (m *Model) NewFeedbackSummarizationsDownVoteReactionButton(bot *tgbot.Bot, chatID int64, logID uuid.UUID, downVoteCount int) (tgbotapi.InlineKeyboardButton, error)
- func (m *Model) NewFeedbackSummarizationsLmaoReactionButton(bot *tgbot.Bot, chatID int64, logID uuid.UUID, downVoteCount int) (tgbotapi.InlineKeyboardButton, error)
- func (m *Model) NewFeedbackSummarizationsUpVoteReactionButton(bot *tgbot.Bot, chatID int64, logID uuid.UUID, upVoteCount int) (tgbotapi.InlineKeyboardButton, error)
- func (m *Model) NewVoteSummarizationsReactionsInlineKeyboardMarkup(bot *tgbot.Bot, chatID int64, logID uuid.UUID, upVoteCount int, ...) (tgbotapi.InlineKeyboardMarkup, error)
- func (m *Model) SummarizeInputURL(ctx context.Context, url string, fromPlatform bot.FromPlatform) (*URLSummarizationOutput, error)
- func (m *Model) SummarizeWebpageRatePerSeconds() time.Duration
- type NewModelParams
- type URLSummarizationOutput
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewModel ¶
func NewModel() func(NewModelParams) *Model
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) FeedbackReactSummarizationsToChatIDAndLogID ¶
func (*Model) FindFeedbackSummarizationsReactionCountsForChatIDAndLogID ¶
func (*Model) HasFeedbackReactSummarizationsToChatIDAndLogID ¶
func (*Model) NewFeedbackSummarizationsDownVoteReactionButton ¶
func (*Model) NewFeedbackSummarizationsLmaoReactionButton ¶
func (*Model) NewFeedbackSummarizationsUpVoteReactionButton ¶
func (*Model) NewVoteSummarizationsReactionsInlineKeyboardMarkup ¶
func (*Model) SummarizeInputURL ¶
func (m *Model) SummarizeInputURL(ctx context.Context, url string, fromPlatform bot.FromPlatform) (*URLSummarizationOutput, error)
func (*Model) SummarizeWebpageRatePerSeconds ¶
type NewModelParams ¶
type URLSummarizationOutput ¶
func (*URLSummarizationOutput) FormatSummarizationAsDiscordMarkdown ¶
func (u *URLSummarizationOutput) FormatSummarizationAsDiscordMarkdown() string
FormatSummarizationAsDiscordMarkdown the link syntax is not support for all servers currently.
func (*URLSummarizationOutput) FormatSummarizationAsHTML ¶
func (u *URLSummarizationOutput) FormatSummarizationAsHTML() string
func (*URLSummarizationOutput) FormatSummarizationAsSlackMarkdown ¶
func (u *URLSummarizationOutput) FormatSummarizationAsSlackMarkdown() string
FormatSummarizationAsSlackMarkdown the link syntax in slack markdown flavor is different than standard.
Click to show internal directories.
Click to hide internal directories.