Skip to main content
Version: v2

ISummarizer Interface

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-runtime/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface ISummarizer extends IEventProvider<ISummarizerEvents>

Extends: IEventProvider<ISummarizerEvents>

Properties​

PropertyAlertsModifiersTypeDescription
ISummarizerBetaoptional, readonlyISummarizerAllows ISummarizer to be used with our FluidObject pattern.

Methods​

MethodAlertsReturn TypeDescription
close()Betavoid
enqueueSummarize(options)BetaEnqueueSummarizeResultEnqueue an attempt to summarize after the specified sequence number. If afterSequenceNumber is provided, the summarize attempt is "enqueued" to run once an eligible op comes in with sequenceNumber >= afterSequenceNumber.
run(onBehalfOf)BetaPromise<SummarizerStopReason>
stop(reason)Betavoid
summarizeOnDemand(options)BetaISummarizeResultsAttempts to generate a summary on demand. If already running, takes no action.

Property Details​

ISummarizer​

Allows ISummarizer to be used with our FluidObject pattern.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly ISummarizer?: ISummarizer;

Type: ISummarizer

Method Details​

close​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

close(): void;

enqueueSummarize​

Enqueue an attempt to summarize after the specified sequence number. If afterSequenceNumber is provided, the summarize attempt is "enqueued" to run once an eligible op comes in with sequenceNumber >= afterSequenceNumber.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;

Parameters​

ParameterTypeDescription
optionsIEnqueueSummarizeOptionsoptions controlling the summarize attempt

Returns​

an object containing an alreadyEnqueued flag to indicate if another summarize attempt has already been enqueued. It also may contain an overridden flag when alreadyEnqueued is true, that indicates whether this attempt forced the previous attempt to abort. If this attempt becomes enqueued, it returns an object containing promises that resolve as the summarize attempt progresses. They will resolve with success false if a failure is encountered.

Return type: EnqueueSummarizeResult

run​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

run(onBehalfOf: string): Promise<SummarizerStopReason>;

Parameters​

ParameterTypeDescription
onBehalfOfstring

Returns​

Return type: Promise<SummarizerStopReason>

stop​

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

stop(reason: SummarizerStopReason): void;

Parameters​

ParameterTypeDescription
reasonSummarizerStopReason

summarizeOnDemand​

Attempts to generate a summary on demand. If already running, takes no action.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;

Parameters​

ParameterTypeDescription
optionsIOnDemandSummarizeOptionsoptions controlling the summarize attempt

Returns​

an alreadyRunning promise if a summarize attempt is already in progress, which will resolve when the current attempt completes. At that point caller can decide to try again or not. Otherwise, it will return an object containing promises that resolve as the summarize attempt progresses. They will resolve with success false if a failure is encountered.

Return type: ISummarizeResults