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 — ContextCompactorRequestProcessor | ADK for TypeScript: API Reference - v2.5.0

  • ContextCompactorRequestProcessor

Class ContextCompactorRequestProcessor

A processor that evaluates a set of compactors to optionally compact the conversation history (events) prior to generating an LLM request.

It evaluates each compactor in priority order. The first one that indicates it should compact will perform the compaction and iteration stops.

Implements

  • BaseLlmRequestProcessor
  • Defined in core/src/agents/processors/context_compactor_request_processor.ts:22

Constructors

constructor

  • new ContextCompactorRequestProcessor(
        compactors: BaseContextCompactor[],
    ): ContextCompactorRequestProcessor

    Parameters

    • compactors: BaseContextCompactor[]

      Ordered list of compactors to evaluate; the first one that reports it should compact will perform the compaction.

    Returns ContextCompactorRequestProcessor

    • Defined in core/src/agents/processors/context_compactor_request_processor.ts:29

Methods

runAsync

  • runAsync(
        invocationContext: InvocationContext,
        _llmRequest: LlmRequest,
    ): AsyncGenerator<Event, void, void>

    Evaluates compactors in priority order. The first compactor that indicates it should compact will compact the session history, fire plugin hooks, and yield any newly generated events. Iteration stops after one compaction.

    Parameters

    • invocationContext: InvocationContext

      The current invocation context.

    • _llmRequest: LlmRequest

      Unused; present to satisfy the BaseLlmRequestProcessor interface.

    Returns AsyncGenerator<Event, void, void>

    Implementation of BaseLlmRequestProcessor.runAsync

    • Defined in core/src/agents/processors/context_compactor_request_processor.ts:41
Constructors
constructor
Methods
runAsync
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.