Skip to main content

Type Alias: SessionSummarizerInvoker()

SessionSummarizerInvoker = (system, user) => Promise<{ model: string; text: string; tokensIn: number; tokensOut: number; }>

Defined in: packages/agentos/src/memory/ingest/SessionSummarizer.ts:68

Callable that invokes a chat LLM given a system + user prompt and returns the generated text. The bench constructs one from the existing IReader so summarization reuses the same pricing + timeout plumbing as the benchmark's reader.

Parameters

system

string

user

string

Returns

Promise<{ model: string; text: string; tokensIn: number; tokensOut: number; }>