UNPKG

@promptbook/azure-openai

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

13 lines (12 loc) 588 B
import type { CitationLabelResolver } from '../types/CitationLabelResolver'; import type { ParsedCitation } from '../utils/parseCitationsFromContent'; /** * Resolves the best available label for one citation. * * @param citation - Citation metadata. * @param resolveCitationLabel - Optional async host resolver. * @returns Current label, starting with a synchronous fallback and updating when the resolver finishes. * * @private hook of `<Chat/>` */ export declare function useResolvedCitationLabel(citation: ParsedCitation, resolveCitationLabel?: CitationLabelResolver): string;