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

  • AgentControlledContextCompactor

Class AgentControlledContextCompactor

A context compactor that triggers compaction when the agent explicitly requests it via the ConsolidateContextTool.

Implements

  • BaseContextCompactor
  • Defined in core/src/context/agent_controlled_context_compactor.ts:18

Constructors

constructor

  • new AgentControlledContextCompactor(
        options: { summarizer: BaseSummarizer },
    ): AgentControlledContextCompactor

    Parameters

    • options: { summarizer: BaseSummarizer }

    Returns AgentControlledContextCompactor

    • Defined in core/src/context/agent_controlled_context_compactor.ts:22

Properties

Readonlytrigger

trigger: AgentControlled = ContextCompactionTrigger.AgentControlled

The trigger associated with this compactor.

Implementation of BaseContextCompactor.trigger

  • Defined in core/src/context/agent_controlled_context_compactor.ts:19

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/agent_controlled_context_compactor.ts:30

shouldCompact

  • shouldCompact(invocationContext: InvocationContext): boolean

    Determines whether the context should be compacted.

    Parameters

    • invocationContext: InvocationContext

      The current invocation context.

    Returns boolean

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

    Implementation of BaseContextCompactor.shouldCompact

    • Defined in core/src/context/agent_controlled_context_compactor.ts:26
Constructors
constructor
Properties
trigger
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.