GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — AnchoredContextCompactor | ADK for TypeScript: API Reference - v2.5.0

  • AnchoredContextCompactor

Class AnchoredContextCompactor

A context compactor that maintains a single persistent 'Scratchpad' or 'State Tracker' event at the top of the context history.

When compaction is triggered, it merges new raw events into the existing Scratchpad event and discards them from the active history view.

Implements

  • BaseContextCompactor
  • Defined in core/src/context/anchored_context_compactor.ts:36

Constructors

constructor

  • new AnchoredContextCompactor(
        options: AnchoredContextCompactorOptions,
    ): AnchoredContextCompactor

    Parameters

    • options: AnchoredContextCompactorOptions

    Returns AnchoredContextCompactor

    • Defined in core/src/context/anchored_context_compactor.ts:41

Methods

compact

  • compact(invocationContext: InvocationContext): Promise<void>

    Compacts the context in place.

    Parameters

    • invocationContext: InvocationContext

      The current invocation context.

    Returns Promise<void>

    Implementation of BaseContextCompactor.compact

    • Defined in core/src/context/anchored_context_compactor.ts:107

shouldCompact

  • shouldCompact(invocationContext: InvocationContext): boolean | Promise<boolean>

    Determines whether the context should be compacted.

    Parameters

    • invocationContext: InvocationContext

      The current invocation context.

    Returns boolean | Promise<boolean>

    A boolean or a promise resolving to a boolean indicating if compaction should occur.

    Implementation of BaseContextCompactor.shouldCompact

    • Defined in core/src/context/anchored_context_compactor.ts:75
Constructors
constructor
Methods
compactshouldCompact
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.