Create a Citation.
create_citation(
*,
url: str | None = None,
title: str | None = None,
start_index: int | None = None,
end_index: int | None = None,
cited_text: str | None = None,
id: str | None = None,
**kwargs: Any = {}
) -> CitationThe id is generated automatically if not provided, using a UUID4 format
prefixed with 'lc_' to indicate it is a LangChain-generated ID.
| Name | Type | Description |
|---|---|---|
url | str | None | Default: NoneURL of the document source. |
title | str | None | Default: NoneSource document title. |
start_index | int | None | Default: NoneStart index in the response text where citation applies. |
end_index | int | None | Default: NoneEnd index in the response text where citation applies. |
cited_text | str | None | Default: NoneExcerpt of source text being cited. |
id | str | None | Default: NoneContent block identifier. Generated automatically if not provided. |