Skip to content

WebSearchCitation

NexusLabs.Needlr.Copilot

WebSearchCitation Class

Represents a citation from a Copilot web search result, linking a span of the answer text to a source URL.

public sealed class WebSearchCitation

Inheritance System.Object 🡒 WebSearchCitation

Remarks

StartIndex and EndIndex are character offsets into Text exactly as returned by the API. They correspond to the 【3:N†source】 markers in the raw text.

Properties

WebSearchCitation.EndIndex Property

The end character offset (exclusive) in Text where this citation marker ends.

public int EndIndex { get; }

Property Value

System.Int32

WebSearchCitation.StartIndex Property

The start character offset (inclusive) in Text where this citation marker appears.

public int StartIndex { get; }

Property Value

System.Int32

WebSearchCitation.Title Property

The title of the cited source page.

public string Title { get; }

Property Value

System.String

WebSearchCitation.Url Property

The URL of the cited source.

public string Url { get; }

Property Value

System.String