Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewModel ¶
func NewModel() func(NewModelParams) *Model
Types ¶
type FromPlatform ¶
type FromPlatform int
const ( FromPlatformTelegram FromPlatform = iota FromPlatformSlack FromPlatformDiscord )
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) SummarizeInputURL ¶
func (m *Model) SummarizeInputURL(ctx context.Context, url string, fromPlatform FromPlatform) (*URLSummarizationOutput, error)
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.