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

  • LlmSummarizer

Class LlmSummarizer

A summarizer that uses an LLM to generate a compacted representation of existing events.

Implements

  • BaseSummarizer
  • Defined in core/src/context/summarizers/llm_summarizer.ts:37

Constructors

constructor

  • new LlmSummarizer(options: LlmSummarizerOptions): LlmSummarizer

    Parameters

    • options: LlmSummarizerOptions

      Configuration specifying the LLM and optional prompt.

    Returns LlmSummarizer

    • Defined in core/src/context/summarizers/llm_summarizer.ts:44

Methods

summarize

  • summarize(events: Event[]): Promise<CompactedEvent>

    Summarizes a list of events into a single CompactedEvent using the configured LLM.

    Parameters

    • events: Event[]

      The events to summarize. Must be non-empty.

    Returns Promise<CompactedEvent>

    A promise resolving to the compacted representation.

    Throws

    If events is empty or the LLM returns no content.

    Implementation of BaseSummarizer.summarize

    • Defined in core/src/context/summarizers/llm_summarizer.ts:57
Constructors
constructor
Methods
summarize
You are visitor 01402792 — 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.