SDK classes
MarkdownLinkFormatter
Formatter for inline attributions in chat messages that uses Markdown links.
Methods
__init__(headline_length=None, skip_empty_urls=True)
Initialize the MarkdownLinkInlineAttributionFormatter.
Parameters:
The maximum length of the headline to be displayed in the link.
Whether to skip sources with empty URLs.
format(index, source)
Format an inline attribution as a Markdown link.
Parameters:
The index of the attribution within the list of attributions.
The inline attribution to format: ChatSource
Returns:
A string representing the formatted attribution as a Markdown link.