Skip to main content
We are sunsetting our SDKs and will no longer add new features, security patches, bug fixes, or technical support for them. To access the latest capabilities and ongoing improvements, we encourage you to migrate to our RESTful API.SDK support will officially end on December 31, 2026. On this date, the underlying endpoints used by the SDKs and related documentation will be decommissioned.To avoid any disruption to your services, please ensure your migration is complete by that date.For migration assistance, please contact us at support@bigdata.com.
Formatter for inline attributions in chat messages that uses Markdown links.

Methods

__init__(headline_length=None, skip_empty_urls=True)

Initialize the MarkdownLinkInlineAttributionFormatter. Parameters:
int
The maximum length of the headline to be displayed in the link.
bool
Whether to skip sources with empty URLs.

format(index, source)

Format an inline attribution as a Markdown link. Parameters:
int
required
The index of the attribution within the list of attributions.
ChatSource
required
The inline attribution to format: ChatSource
Returns: A string representing the formatted attribution as a Markdown link.